Compare commits

...

2 Commits

4 changed files with 8 additions and 8 deletions

View File

@ -36,7 +36,7 @@ Anpassungen beim Kompilieren
Um Dokumente mit Quelltext-Listings kompilieren zu können, muss die Flag `--shell-escape` an den Compiler übergeben werden.
</div>
In TeXstudio muss diese unter **`Optionen → TeXstudio konfigurieren → Befehle`** bei PdfLaTeX vor `%.tex` ergänzt werden:
In TeXstudio muss diese unter **`Optionen → TeXstudio konfigurieren → Befehle`** (`TeXstudio → Einstellungen` unter macOS) bei PdfLaTeX vor `%.tex` ergänzt werden:
<code>pdflatex -synctex=1 -interaction=nonstopmode **\-\-shell-escape** %.tex</code>
@ -81,7 +81,7 @@ Um Redundanz zu vermeiden, ist es manchmal praktisch, den Quelltext direkt aus d
```
``` {.lang-java .hljs data-sourcefile="Test.java"}
public class HelloWorld {
public class Test {
public static void main(/*…*/) {
System.out.println(/*…*/);
}

View File

@ -36,7 +36,7 @@ Compiler settings
We need to pass the additional flag `--shell-escape` to our compiler in order to use `minted`.
</div>
In TeXstudio, go to **`Options → Configure TeXstudio → Commands`** and add the flag in the PdfLaTeX row before `%.tex`:
In TeXstudio, go to **`Options → Configure TeXstudio → Commands`** (`TeXstudio → Settings` on macOS) and add the flag in the PdfLaTeX row before `%.tex`:
<code>pdflatex -synctex=1 -interaction=nonstopmode **\-\-shell-escape** %.tex</code>
@ -81,7 +81,7 @@ We can avoid redundancy by including source code directly from its source file.
```
``` {.lang-java .hljs data-sourcefile="Test.java"}
public class HelloWorld {
public class Test {
public static void main(/*…*/) {
System.out.println(/*…*/);
}

View File

@ -15,8 +15,8 @@ Um Grafiken darzustellen, muss das Paket `graphicx` eingebunden werden.
``` {.lang-tex .hljs}
\begin{figure}
\includegraphics{<dateipfad>}
\caption[<kurztitel>]
{<bildunterschrift>}
\caption[<kurztitel (abbildungsver-
zeichnis)>]{<bildunterschrift>}
\end{figure}
```

View File

@ -15,8 +15,8 @@ To display graphics, we need the `graphicx` package.
``` {.lang-tex .hljs}
\begin{figure}
\includegraphics{<file path>}
\caption[<short caption>]
{<full caption>}
\caption[<short caption (table of
figures)>]{<full caption>}
\end{figure}
```