Compare commits

...

3 Commits

Author SHA1 Message Date
d8222e2e8a Fix typo 2023-01-03 11:24:08 +01:00
3c534cb32c Add details on the literate option for listings 2023-01-03 11:08:30 +01:00
576c579cf2 Fix literate ß in listings 2023-01-03 10:58:15 +01:00
3 changed files with 5 additions and 3 deletions

View File

@ -73,7 +73,7 @@ Allgemeiner Aufbau eine Befehls:
``` {.lang-tex .tex .hljs .fragment}
\newpage % fügt eine neue Seite ein
\textbf{fetter Text} % schreibt den übergebenen Text fett
\documentclass[10pt,a5paper,landscape]{article} % setzt konfiguriert die Dokumentenklasse
\documentclass[10pt,a5paper,landscape]{article} % konfiguriert die Dokumentenklasse
\frac{1}{4} % fügt den mathematischen Bruch ein
```

View File

@ -67,7 +67,7 @@ Themen und Stile
breaklines=true,
keywordstyle=\color{ForestGreen},
commentstyle=\color{DarkGray},
literate={ö}{{\"o}}
literate={ö}{{\"o}}1
]
% …
\end{lstlisting}
@ -84,6 +84,7 @@ Weitere Materialien
@content
* [Einführung](https://www.overleaf.com/learn/latex/Code_listing#Reference_guide) in das Paket
* offizielle [Dokumentation](https://www.overleaf.com/learn/latex/Code_listing#Reference_guide)
* vordefinierte [UTF-8-Konfiguration](https://en.wikibooks.org/wiki/LaTeX/Source_Code_Listings#Encoding_issue)
* das Paket [`xcolor`](https://www.overleaf.com/learn/latex/Using_colours_in_LaTeX) für Farben
* zwei [Themes](https://github.com/jez/latex-solarized) im solarized-Stil für `listings`

View File

@ -67,7 +67,7 @@ Themes and styles
breaklines=true,
keywordstyle=\color{ForestGreen},
commentstyle=\color{DarkGray},
literate={ö}{{\"o}}
literate={ö}{{\"o}}1
]
% …
\end{lstlisting}
@ -84,6 +84,7 @@ Further resources
@content
* [introduction](https://www.overleaf.com/learn/latex/Code_listing#Reference_guide) to the package
* official [documentation](https://www.overleaf.com/learn/latex/Code_listing#Reference_guide)
* predefined [UTF-8 configuration](https://en.wikibooks.org/wiki/LaTeX/Source_Code_Listings#Encoding_issue)
* [`xcolor` package](https://www.overleaf.com/learn/latex/Using_colours_in_LaTeX) for colors
* two [solarized themes](https://github.com/jez/latex-solarized) for `listings`