You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15-6Lines changed: 15 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
-
# Typst Template for the Corporate Design of TU Darmstadt :book:
2
-
This**unofficial**template can be used to write in [Typst](https://github.com/typst/typst) with the corporate design of [TU Darmstadt](https://www.tu-darmstadt.de/).
1
+
# Typst Templates for the Corporate Design of TU Darmstadt :book:
2
+
These**unofficial**templates can be used to write in [Typst](https://github.com/typst/typst) with the corporate design of [TU Darmstadt](https://www.tu-darmstadt.de/).
3
3
4
4
#### Disclaimer
5
5
Please ask your supervisor if you are allowed to use typst and this template for your thesis or other documents.
@@ -18,13 +18,18 @@ For missing features, ideas or other problems you can just open an issue :wink:.
18
18
| Template | Preview | Example | Scope |
19
19
|----------|---------|---------|-------|
20
20
|[tudapub](templates/tudapub/template/tudapub.typ)| <imgsrc="templates/tudapub/preview/tudapub_prev-01.png"height="300px"> |[example_tudapub.pdf](example_tudapub.pdf) <br/> [example_tudapub.typ](example_tudapub.typ)| Master and Bachelor thesis |
Note: The here used `pdf2svg` command might not be available. In this case we recommend a online converter like [PDF24 Tools](https://tools.pdf24.org/en/pdf-to-svg). There also is a [tool](https://github.com/FussballAndy/typst-img-to-local) to install images as local typst packages.
57
+
51
58
Also download the required fonts `Roboto` and `XCharter`:
52
59
```bash
53
60
cd asssets/fonts
54
61
./download_fonts.sh
55
62
```
56
-
Now you can install all fonts in the folders in `fonts` on your system.
63
+
Optionally you can install all fonts in the folders in `fonts` on your system. But you can also use Typst's `--font-path` option. Or install them in a folder and add the folder to `TYPST_FONT_PATHS` for a single font folder.
64
+
65
+
Note: wget might not be available. In this case either download it or replace the command with something like `curl <url> -o <filename> -L`
57
66
58
67
<details>
59
68
<summary>Create a main.typ file for the manual template installation.</summary>
@@ -82,7 +91,7 @@ Some Text
82
91
typst --watch main.typ --font-path asssets/fonts/
83
92
```
84
93
85
-
This will watch your file and recompile it to a pdf when the file is saved. For writing, you can use [Vscode](https://code.visualstudio.com/) with these extensions: [Typst LSP](https://marketplace.visualstudio.com/items?itemName=nvarner.typst-lsp) and [Typst Preview](https://marketplace.visualstudio.com/items?itemName=mgt19937.typst-preview). Or use the [typst web app](https://typst.app/) (here you need to upload the logo and the fonts).
94
+
This will watch your file and recompile it to a pdf when the file is saved. For writing, you can use [Vscode](https://code.visualstudio.com/) with these extensions: [Tinymist Typst](https://marketplace.visualstudio.com/items?itemName=myriad-dreamin.tinymist). Or use the [typst web app](https://typst.app/) (here you need to upload the logo and the fonts).
86
95
87
96
Note that we add `--font-path` to ensure that the correct fonts are used.
88
97
Due to a bug (typst/typst#2917typst/typst#2098) typst sometimes uses the font `Roboto condensed` instead of `Roboto`.
0 commit comments