add even more examples to theses examples

This commit is contained in:
2025-11-22 21:20:14 +01:00
parent f871c5f7af
commit de4f72aa54
2 changed files with 132 additions and 0 deletions

View File

@@ -202,6 +202,27 @@ Nějak takhle: \\
Nějak takhle: \\
== Pomlčky
Možná jste někdy slyšeli, že pokud napíšete na klávesnici pomlčku, tak to není skutečná pomlčka.
Píšete totiž ve skutečnosti spojovník, který se má používat na slovo-spojování.
Jak napsat pomlčku? Stačí napsat víc spojovníků za sebou.
```typst
-- // Krátká pomlčka
--- // Dlouhá pomlčka
```
#highlight[
V češtině se k účelům spojování logických celků používá výhradně krátká pomlčka -- tedy "--".
]
#rect[
*TIP*:
Zkuste si znaky zkopírovat a vložit například do #link("https://apps.timwhitlock.info/unicode/inspect")[Unicode Inspektoru] -- ten vám ukáže podrobnosti o nějakém znaku.
]
== Odkazy<links>
Odkazy je možné dělat na URL/URI zdroje, emaily, telefony, atd...
@@ -372,6 +393,52 @@ Nakonec je zde opět parametr `caption` sloužící k zadání popisku tabulky.
Tabulky se zobrazí na začátku dokumentu v seznamu (pokud to daný typ dokumentu vyžaduje).
Jak jste asi pochopili, i toto provede šablona automaticky.
= Pokročilé formátování obsahu
Dále si ukážeme neobvyklé (ale stále užitečné) způsoby formátování obsahu.
== Speciální znaky v textu
Díky Typstu speciální znaky neusíte kopírovat z internetu.
Typst na speciální znaky funkci "`sym`".
V online editoru stačí napsat "`#sym.`" a editor vám začne našeptávat velkou spoustu znaků.
Například znak #sym.pi (pí) lze zapsat takto:
```typst
#sym.pi
```
Další znaky lze najít v dokumentaci Typstu: https://typst.app/docs/reference/symbols/sym/
== Horní / spodní text
Občas můžete chtít napsat text v menší velikosti a zarovnat ho na horní nebo spodní okraj řádku.
=== Horní text
Horní#super[text] lze napsat takto:
```typst
Horní#super[text]
```
=== Spodní text
Spodní#sub[text] lze napsat takto:
```typst
Spodní#sub[text]
```
== Ještě stále nemáte dost?
V tomto dokumentu naleznete vše, co v drtivé většině případů budete potřebovat ke psaní své práce.
Pokud se ale chcete dozvědět _ještě_ víc, pak vám doporučujeme se podívat na dokumentaci formátování obsahu přímo od vývojářů Typstu.
https://typst.app/docs/reference/text/
= Přílohy
Na konec souboru je také možné přidat seznam příloh.

View File

@@ -202,6 +202,25 @@ Like so: \\
Like so: \\
== Dashes
You may have heard that if you write a dash on a keyboard --- it's really a hyphen.
How to actually write a dash then?
```typst
-- // En dash
--- // Em dash
```
#highlight[
To join logical groups in English, we strictly use the em dash --- so "---".
]
#rect[
*TIP*:
Try copy-pasting symbols to #link("https://apps.timwhitlock.info/unicode/inspect")[Unicode Inspector] --- it will show you the details of a symbol.
]
== Links<links>
You can create links to URLs/URIs, emails, phone numbers, and more.
@@ -378,6 +397,52 @@ Finally, there's again a `caption` parameter, used to provide a caption for the
Tables also appear at the beginning of the document in a list (if required by the document type).
As you've probably noticed by now, this template takes care of this automatically too.
= Advanced content formatting
Now we'll look into some uncommon (but still useful) ways of content formatting.
== Special symbols in text
Thanks to Typst, you can quit copy-pasting symbols from the internet.
Typst has a function for special symbols --- function "`sym`".
In the online editor, you can just type "`#sym.`" and the editor will start autocompleting a load of symbols.
The symbol #sym.pi (pi), for example, can be written as so:
```typst
#sym.pi
```
You can find more symbols in the Typst reference documentation: https://typst.app/docs/reference/symbols/sym/
== Superscript / subscript
You may wish to write a smaller text aligned to the top of the line or to the bottom of the line.
=== Superscript
Super#super[script] can be written as:
```typst
Super#super[script]
```
=== Subscript
Sub#sub[script] can be written as:
```typst
Sub#sub[script]
```
== You want more?
In this document you'll find all the stuff that you will, in the majority of cases, need to write your thesis.
However, if you want to know _even more_, we recommend checking out the documentation on how to format content from the Typst developers.
https://typst.app/docs/reference/text/
= Attachments
At the end of the file, you can add the list of attachments.