Skip to content

Commit

Permalink
Switch to pdflatex as default
Browse files Browse the repository at this point in the history
  • Loading branch information
koppor committed Sep 3, 2020
1 parent 42ea432 commit bfecdaf
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 17 deletions.
4 changes: 2 additions & 2 deletions .latexmkrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#`-file-line-error` is similar to `--interaction nonstopmode`, but shows the concrete line number
#Remove it, it you want lualatex to stop on errors
$pdflatex = 'lualatex -shell-escape -file-line-error --synctex=-1 %O %S';
#Remove it, it you want pdflatex to stop on errors
$pdflatex = 'pdflatex -shell-escape -file-line-error --synctex=-1 %O %S';

#Use SumatraPDF instead of the default PDF viewer
$pdf_previewer = 'start "C:\Program Files\SumatraPDF\SumatraPDF.exe"';
Expand Down
13 changes: 7 additions & 6 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ For [architectural decision records](https://adr.github.io) see [docs/adr](https
## Characteristics of the template

- Most recent packages and package configuration based on long-time experience.
- [lualatex](http://www.luatex.org/) to enable proper typeset [ligatures](https://en.wikipedia.org/wiki/Typographic_ligature).
- ~~[lualatex](http://www.luatex.org/) to enable proper typeset [ligatures](https://en.wikipedia.org/wiki/Typographic_ligature).~~
For older systems, [pdflatex](https://en.wikipedia.org/wiki/PdfTeX) is still supported.
- Open for contributions.
- [latexmk] - Reasoning available at <https://tex.stackexchange.com/a/249243/9075>.
- [biblatex]+[biber] instead of plain [bibtex], because biblatex fully supports UTF-8 and commands such as `\citeauthor{...}` work out of the box. See also <https://tex.stackexchange.com/q/8411/9075>.
- Automatic adjustment of wrong [ligatures](https://en.wikipedia.org/wiki/Typographic_ligature) using the [selnolig](https://tex.meta.stackexchange.com/questions/2884/new-package-selnolig-that-automates-suppression-of-typographic-ligatures) package
- ~~Automatic adjustment of wrong [ligatures](https://en.wikipedia.org/wiki/Typographic_ligature) using the [selnolig](https://tex.meta.stackexchange.com/questions/2884/new-package-selnolig-that-automates-suppression-of-typographic-ligatures) package~~
- Full Unicode (UTF-8) support
- Optional: Render listings using [minted](https://github.com/gpoore/minted/), which provides better output than [listings](https://ctan.org/pkg/listings), but requires [pygments](http://pygments.org/) to be installed.
- Optional: Direct inclusion of [PlantUML](http://plantuml.com/) diagram.s
Expand Down Expand Up @@ -108,10 +108,11 @@ This is provides a perfectly configured latex distribution with all required too
Will download approx. 4GB.
4. Open TeXstudio
5. Options > Configure TeXstudio > Commands
6. Set "LuaLaTeX" to `docker run --rm -v DIROFTEXDOCUMENT:/home danteev/texlive lualatex --shell-escape -synctex=1 -interaction=nonstopmode %.tex`, replace `DIROFTEXDOCUMENT` by the directory of your latex document. Example: `/home/user/thesis`.
7. Set "Biber" to `docker run --rm -v DIROFTEXDOCUMENT:/home danteev/texlive biber %`, replace `DIROFTEXDOCUMENT` by the directory of your latex document. Example: `/home/user/thesis`.
8. Check if the "docker pull" command from step 3 succeed. If not, wait.
9. Try to press the "Compile" (<kbd>F6</kbd>) button in TeXstudio.
6. Set "PdfLaTeX" to `docker run --rm -v DIROFTEXDOCUMENT:/home danteev/texlive pdflatex --shell-escape -synctex=1 -interaction=nonstopmode %.tex`, replace `DIROFTEXDOCUMENT` by the directory of your latex document. Example: `/home/user/thesis`.
7. Set "LuaLaTeX" to `docker run --rm -v DIROFTEXDOCUMENT:/home danteev/texlive lualatex --shell-escape -synctex=1 -interaction=nonstopmode %.tex`, replace `DIROFTEXDOCUMENT` by the directory of your latex document. Example: `/home/user/thesis`.
8. Set "Biber" to `docker run --rm -v DIROFTEXDOCUMENT:/home danteev/texlive biber %`, replace `DIROFTEXDOCUMENT` by the directory of your latex document. Example: `/home/user/thesis`.
9. Check if the "docker pull" command from step 3 succeed. If not, wait.
10. Try to press the "Compile" (<kbd>F6</kbd>) button in TeXstudio.

## Installation hints for Windows

Expand Down
6 changes: 3 additions & 3 deletions main-english.tex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
% !TeX spellcheck = en-US
% !TeX encoding = utf8
% !TeX program = lualatex
% !TeX program = pdflatex
% !BIB program = biber
% -*- coding:utf-8 mod:LaTeX -*-

Expand Down Expand Up @@ -124,7 +124,7 @@
\listoftables
%Wird nur bei Verwendung von der lstlisting-Umgebung mit dem "caption"-Parameter benoetigt
%\lstlistoflistings
%\lstlistoflistings
%ansonsten:
\ifdeutsch
\listof{Listing}{Verzeichnis der Listings}
Expand Down Expand Up @@ -220,7 +220,7 @@ \chapter{Chapter Two}
\chapter{Related Work}
Describe relevant scientific literature related to your work.
Describe relevant scientific literature related to your work.
\chapter{Conclusion and Outlook}
\label{chap:zusfas}
Expand Down
2 changes: 1 addition & 1 deletion main-german.tex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
% !TeX spellcheck = de-DE
% !TeX encoding = utf8
% !TeX program = lualatex
% !TeX program = pdflatex
% !BIB program = biber
% -*- coding:utf-8 mod:LaTeX -*-

Expand Down
4 changes: 2 additions & 2 deletions main-minted-german.tex
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
% !TeX spellcheck = de-DE
% !TeX encoding = utf8
% !TeX program = lualatex
% !TeX TXS-program:compile = txs:///lualatex/[--shell-escape]
% !TeX program = pdflatex
% !TeX TXS-program:compile = txs:///pdflatex/[--shell-escape]
% !BIB program = biber
% -*- coding:utf-8 mod:LaTeX -*-

Expand Down
2 changes: 1 addition & 1 deletion main-paderborn-english.tex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
% !TeX spellcheck = en-US
% !TeX encoding = utf8
% !TeX program = lualatex
% !TeX program = pdflatex
% !BIB program = biber
% -*- coding:utf-8 mod:LaTeX -*-

Expand Down
4 changes: 2 additions & 2 deletions main-paderborn-german.tex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
% !TeX spellcheck = de-DE
% !TeX encoding = utf8
% !TeX program = lualatex
% !TeX program = pdflatex
% !BIB program = biber
% -*- coding:utf-8 mod:LaTeX -*-

Expand Down Expand Up @@ -137,7 +137,7 @@
\listoftables
%Wird nur bei Verwendung von der lstlisting-Umgebung mit dem "caption"-Parameter benoetigt
%\lstlistoflistings
%\lstlistoflistings
%ansonsten:
\ifdeutsch
\listof{Listing}{Verzeichnis der Listings}
Expand Down

0 comments on commit bfecdaf

Please sign in to comment.