diff --git a/README.md b/README.md index f274d36..871243c 100644 --- a/README.md +++ b/README.md @@ -10,8 +10,8 @@ To compile your document, you need to take the `thesis.typ` file as the input file. To use the CLI, compile using `typst watch thesis.typ` or `typst compile thesis.typ`. -If you intend to use the VS Code plug-in "Typst-LSP", -make sure it is either configured to only take the `thesis.typ` as input -or not to perform compilation at all (to use the CLI). + +If you intend to use the VS Code extension "Typst-LSP", don't, +and use the Tinymist Typst extension instead. This is a adapted version of a template by [@satoqz](https://github.com/satoqz/). diff --git a/template.typ b/template.typ index d1ff060..fed4d9f 100755 --- a/template.typ +++ b/template.typ @@ -184,7 +184,7 @@ // suggested font and font size by the DHBW style guide #set text( - font: "Linux Libertine", + font: "Libertinus Serif", // font: "New Computer Modern Sans", size: 12pt, hyphenate: false, @@ -499,25 +499,25 @@ #let acro(short, pref: "normal", append: "") = { let item = acronyms.at(short) - locate(loc => { - let entries = acroStates.at(loc).filter(e => e == short); + context({ + let entries = acroStates.at(here()).filter(e => e == short); - // Already used once - if entries.len() > 0 { - if pref == "long" { - link(label(short))[#item#append] + // Already used once + if entries.len() > 0 { + if pref == "long" { + link(label(short))[#item#append] + } else { + link(label(short))[#short#append] + } + // First usage } else { - link(label(short))[#short#append] + acroStates.update(e => {e.push(short); e;}); + if pref == "short" { + link(label(short))[#short#append (#item)] + } else { + link(label(short))[#item#append (#short)] + } } - // First usage - } else { - acroStates.update(e => {e.push(short); e;}); - if pref == "short" { - link(label(short))[#short#append (#item)] - } else { - link(label(short))[#item#append (#short)] - } - } }); } diff --git a/thesis.pdf b/thesis.pdf new file mode 100644 index 0000000..190b194 Binary files /dev/null and b/thesis.pdf differ