diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a30d7b6..8c4e8d3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,7 +25,8 @@ jobs: cache-dependency-path: requirements.typ - name: Compile Typst files run: | - typst compile main.typ main.pdf + typst compile --font-path=assets/fonts main.typ Cagulis_Kristians.Francis_kc22015.pdf + typst compile --font-path=assets/fonts documentary_page.typ reg_lapa_Cagulis_Kristians.Francis_kc22015.pdf - name: Upload PDF file uses: actions/upload-artifact@v4 with: @@ -40,4 +41,5 @@ jobs: with: name: "${{ github.ref_name }} — ${{ env.DATE }}" files: | - main.pdf + Cagulis_Kristians.Francis_kc22015.pdf + reg_lapa_Cagulis_Kristians.Francis_kc22015.pdf diff --git a/.gitignore b/.gitignore index 68cae0c..cbf0b25 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /target +/files *.pdf diff --git a/assets/fonts/JetBrainsMono/JetBrains Mono Regular Nerd Font Complete.ttf b/assets/fonts/JetBrainsMono/JetBrains Mono Regular Nerd Font Complete.ttf new file mode 100644 index 0000000..a2162d5 Binary files /dev/null and b/assets/fonts/JetBrainsMono/JetBrains Mono Regular Nerd Font Complete.ttf differ diff --git a/assets/fonts/TimesNewRoman/Times.TTF b/assets/fonts/TimesNewRoman/Times.TTF new file mode 100644 index 0000000..55f734a Binary files /dev/null and b/assets/fonts/TimesNewRoman/Times.TTF differ diff --git a/assets/fonts/TimesNewRoman/Times.ttf b/assets/fonts/TimesNewRoman/Times.ttf new file mode 100644 index 0000000..55f734a Binary files /dev/null and b/assets/fonts/TimesNewRoman/Times.ttf differ diff --git a/assets/fonts/TimesNewRoman/Timesbd.TTF b/assets/fonts/TimesNewRoman/Timesbd.TTF new file mode 100644 index 0000000..0fc9d84 Binary files /dev/null and b/assets/fonts/TimesNewRoman/Timesbd.TTF differ diff --git a/assets/fonts/TimesNewRoman/Timesbi.TTF b/assets/fonts/TimesNewRoman/Timesbi.TTF new file mode 100644 index 0000000..8a6266f Binary files /dev/null and b/assets/fonts/TimesNewRoman/Timesbi.TTF differ diff --git a/assets/fonts/TimesNewRoman/Timesi.TTF b/assets/fonts/TimesNewRoman/Timesi.TTF new file mode 100644 index 0000000..a326a5c Binary files /dev/null and b/assets/fonts/TimesNewRoman/Timesi.TTF differ diff --git a/assets/img/placeholder.jpg b/assets/img/placeholder.jpg new file mode 100644 index 0000000..9a74bb1 Binary files /dev/null and b/assets/img/placeholder.jpg differ diff --git a/bibliography.yml b/bibliography.yml index e69de29..3d58675 100644 --- a/bibliography.yml +++ b/bibliography.yml @@ -0,0 +1,10 @@ +typst: + type: Web + title: Typst + author: + - Mädje + - Laurenz + - Haug + - Martin + - Typst Projekta Izstrādātāji + url: {value: "https://typst.app/", date: 2025-01-01} diff --git a/justfile b/justfile new file mode 100644 index 0000000..506e681 --- /dev/null +++ b/justfile @@ -0,0 +1,15 @@ +# List all available commands +default: + @just --list + +alias c := compile +# Compile main file +compile: + mkdir -p target + typst compile --font-path=assets/fonts main.typ target/main.pdf + +alias w := watch +# Watch main file +watch: + mkdir -p target + typst watch --font-path=assets/fonts main.typ target/main.pdf diff --git a/main.typ b/main.typ index e69de29..b542ba2 100644 --- a/main.typ +++ b/main.typ @@ -0,0 +1,101 @@ +#import "@preview/solo-lu-df:0.1.0": * + +#show: ludf.with( + title: "Darba Nosaukums", + authors: ( + ( + name: "Jānis Bērziņš", + code: "jb12345", + location: [Riga, Latvia], + email: "jb12345@edu.lu.lv", + ), + ( + name: "Zane Kalniņa", + code: "zk67890", + location: [Riga, Latvia], + email: "zk67890@edu.lu.lv", + ), + ), + advisors: ( + ( + title: "Mg. dat.", + name: "Ivars Ozoliņš", + ), + ), + date: datetime( + year: 2025, + month: 1, + day: 1, + ), // defaults to datetime.today() + place: "Rīga", + bibliography: bibliography("bibliography.yml"), + abstract: ( + primary: ( + text: [ + #lorem(50) + + #lorem(30) + + #lorem(20) + ], + keywords: ( + "Foo", + "Bar", + "Baz", + ), + ), + secondary: ( + text: [ + #lorem(20) + + #lorem(30) + + #lorem(50) + ], + keywords: ( + "foo", + "bar", + "baz", + ), + ), + ), + attachments: ( + attachment( + caption: "Attachment table", + label: , + table( + columns: (1fr, 1fr), + [Column 1], [Column 2], + ), + ), + ), +) + + +#set heading(numbering: none) += Apzīmējumu saraksts +/ Docs: Typst dokumentācija.#footnote[https://typst.com/docs/] +/ Universe: Typst kopienas paketes un šabloni.#footnote[https://typst.app/universe/] + += Ievads +#lorem(100)@typst + +#set heading(numbering: "1.1.") + += Nodaļas nosaukums +== Apakšnodaļas nosaukums +== Apakšnodaļas nosaukums +== Apakšnodaļas nosaukums + += Nodaļas nosaukums +== Apakšnodaļas nosaukums +== Apakšnodaļas nosaukums + += Nodaļas nosaukums +== Apakšnodaļas nosaukums +== Apakšnodaļas nosaukums + +#set heading(numbering: none) += Rezultāti += Secinājumi +