No description
- Typst 96.1%
- TeX 3.9%
| pictures | ||
| .gitignore | ||
| main.typ | ||
| README.md | ||
| refs.bib | ||
| template.typ | ||
OTY
Dieses Typst-Template ermöchlicht ein nervenschonendes Layout für Deine Maturaarbeit.
Enthaltene Dateien
| Datei | Funktion |
|---|---|
template.typ |
Layout / Vorlage |
main.typ |
Beispiel für die Nutzung |
refs.bib |
Zitationen für das Beispiel |
pictures/* |
Bilder für das Beispiel |
Abhängigkeiten
- Typst Compiler
- Editor (VS Code mit Tinymist Typst empfohlen)
- Pandoc (Optional für Konvertierung)
Installation
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression
scoop install git
scoop bucket add extras
scoop install main/typst
scoop install main/pandoc
scoop install extras/vscode
code --install-extension myriad-dreamin.tinymist
Handhabung
Mit den installierten Abhängigkeiten kann man anfangen, dafür macht man ein neues Dokument nach der Struktur die in main.typ gezeigt wird.
Wenn man das Dokument zu einem PDF machen will führt man typst compile main.typ oder typst watch main.typ (für Fortlaufende Kompilierung) aus und erhält ein main.pdf.
#import "template.typ": *
#show: oty.with(
titlepage: (
// Pfad zum Bild, wie in cover image
logo: none,
subtitle: lorem(20),
coverimage: "pictures/schloss.jpg",
teacher: "Teacher, Firstname",
),
title: "Typst Template",
authors: (
(firstname: "Firstname", lastname: "Lastname", affiliation: "Class"),
),
// Das Abstrakt / die Zusammenfassung
// Lorem macht Blindtext zum füllen des Beispiels
abstract: [#lorem(55)],
date: datetime.today(),
// Document types:
// draft: like official, but show todos
// official: make the publishable document for submission
// correction: Add rulers
// correction-comments: Show the comments from a correction
// censor: remove all elements marked with `ccensor`
//
// publish: make a document which looks like a published paper
// small: Only include minimal features, useful if you are only writing a small document
documenttype: "draft",
)
= Titel
// Pagebreak schiebt alles nachfolgende auf eine neue Seite
#pagebreak()
#bibliography("refs.bib")
// Appendix macht den Anhang, ändert auch die Sektionsnummerierung
#show: appendix
= Titel
Konvertierung
Typst -> Word
Die Konvertierung von Typst zu Word ist schwierig, weil viele Pakete genutzt werden, vor allem die Diagramme sind nur schwer übernehmbar.
pandoc -f typst -t docx -o main.docx main.typ
Word -> Typst
Die Konvertierung von Word zu Typst ist einfacher, danach muss man einfach diverse Anpassungen machen, dass das Design stimmt. Aber allgemein kann man einfach den Output mit dem Template-Header versehen.
pandoc -f docx -t typst -o main2.typ main.docx