Merge branch 'master' of git.stuve-bamberg.de:latex/latex-wochenende
This commit is contained in:
commit
af852da666
@ -1 +1,31 @@
|
|||||||
TODO: Listings
|
TODO: Listings
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
<div class="layout-content-and-preview">
|
||||||
|
<div class="layout-content">
|
||||||
|
<h2>Codeblöcke mit Syntaxhighlighting</h2>
|
||||||
|
<p>Paket <code>minted</code></p>
|
||||||
|
<p>Voraussetzungen: das Python-Paket <code>Pygments</code></p>
|
||||||
|
<p>--shell-escape Flag hinzufügen (TeXstudio: Options > Configure TeXstudio > Commands "pdflatex -syntex=1 -interaction=nonstopmode %.tex" in "pdflatex -syntex=1 -interaction=nonstopmode --shell-escape %.tex" ändern)</p>
|
||||||
|
<pre class="lang-tex hljs">
|
||||||
|
<code>
|
||||||
|
\begin{minted}{java}
|
||||||
|
public class Duck {
|
||||||
|
public static void main(String[] args) {
|
||||||
|
System.out.println("Hallo,Welt!");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
\end{minted}
|
||||||
|
|
||||||
|
\begin{minted}{python}
|
||||||
|
def printHello:
|
||||||
|
print("Hallo, Welt!")
|
||||||
|
\end{minted}
|
||||||
|
</code>
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
<div class="preview-layout">
|
||||||
|
<img src="sections/german/10/minted.png">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|||||||
@ -6,16 +6,6 @@
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
Weitere Umgebungen
|
|
||||||
|
|
||||||
* Abstracts (für Paper)
|
|
||||||
* Algorithmen
|
|
||||||
* Blockquotes
|
|
||||||
* Chemische Strukturformeln
|
|
||||||
* Konstituentenbäume
|
|
||||||
* Abhängigkeitsbäume
|
|
||||||
* Indizes
|
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
<div class="layout-content-and-preview">
|
<div class="layout-content-and-preview">
|
||||||
@ -82,7 +72,6 @@ child { node {home}
|
|||||||
\end{tikzpicture}
|
\end{tikzpicture}
|
||||||
</code>
|
</code>
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="layout-preview">
|
<div class="layout-preview">
|
||||||
<img src="sections/german/04/relative_path.png">
|
<img src="sections/german/04/relative_path.png">
|
||||||
@ -91,6 +80,49 @@ child { node {home}
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
<div class="layout-content-and-preview">
|
||||||
|
<div class="layout-content">
|
||||||
|
<h2>paralist</h2>
|
||||||
|
<p>Paket für platzsparendere Listen</p>
|
||||||
|
<pre class="lang-tex hljs">
|
||||||
|
<code>
|
||||||
|
\begin{asparaenum} %enumerate
|
||||||
|
\item Erdbeeren
|
||||||
|
\item Stachelbeeren
|
||||||
|
\item Eisbären
|
||||||
|
\end{asparaenum}
|
||||||
|
|
||||||
|
\begin{asparaitem} %itemize
|
||||||
|
\item Erdbeeren
|
||||||
|
\item Stachelbeeren
|
||||||
|
\item Eisbären
|
||||||
|
\end{asparaitem}
|
||||||
|
</code>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<img src="sections/german/15/paralist.png">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
<div class="layout-content-and-preview">
|
||||||
|
<div class="layout-content">
|
||||||
|
<h2>Linguistik</h2>
|
||||||
|
<p>Beispiel Konstituentenbäume mit <code>qtree</code></p>
|
||||||
|
</div>
|
||||||
|
<div class="layout-preview">
|
||||||
|
<pre class="lang-tex hljs">
|
||||||
|
<code>
|
||||||
|
\Tree [.S [.NP LaTeX ] [.VP [.V is ] [.NP fun ] ] ]
|
||||||
|
</code>
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
<div class="layout-preview">
|
||||||
|
<img src="sections/german/15/constituency_tree.png">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
<div class="layout-content-and-preview">
|
<div class="layout-content-and-preview">
|
||||||
<div class="layout-content">
|
<div class="layout-content">
|
||||||
<h2><a href="https://ctan.org">CTAN - Comprehensive TeX Archive Network</a></h2>
|
<h2><a href="https://ctan.org">CTAN - Comprehensive TeX Archive Network</a></h2>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user