Hong-Phuc Bui
2020-10-05 8877eafc556514537494d8b75254e03e29d71ac0
app/latex-indeepth.tex
File was renamed from chap/latex-indeepth.tex
@@ -58,7 +58,7 @@
Ein weitere Möglichkeit ist das Paket \verb:listings:. Das Paket \verb:listings: 
in vollständig in \TeX implementiert. Es bedeutet dass man kein zusätzliche Software
braucht um das Paket zu benutzen. Der Nachteil ist, das Paket \verb:listings: bietet
eine sehr überschaubares Anzahl von Lexer. Die Seite~\autocite{wikibooks:Source_Code_Listings}
eine sehr überschaubares Anzahl von Lexer. Die Webseite~\autocite{wikibooks:Source_Code_Listings}
bietet eine gutes Tutorium im Bezug auf das Paket \verb:listings: an.
Im Gegensatz zum Paket \verb:listings: benutzt das Paket \verb:minted: das external Lexer-Programm
@@ -80,64 +80,10 @@
Man kann das Programm make benutzen um den Compilierungsprozess von \latex-Dateien, die Bib-Dateien
in PDF-Datei zu automatisieren. Ein Makefile Template sieht etwa so aus:
\begin{minted}{makefile}
#latex compiler
LATEX = lualatex
LATEX_OPT :=-shell-escape -interaction=nonstopmode --synctex=1
#bibtex
BIBTEX := biber
BIBTEX_OPT :=
# latexmk setting
LATEXMK = latexmk
LATEXMK_OPT :=
LATEXMK_INTERACTIVE_OPT := -pvc
# interactive TARGET
INTERACTIVE_TARGET = zusammenfassung.pdf
########################################################
# file variables
pdf = zusammenfassung.pdf
main_tex = zusammenfassung.tex
chapter = $(wildcard chap/*.tex)
.PHONY: all
all: $(pdf)
$(pdf): $(main_tex)
        $(LATEX) $(LATEX_OPT) $<
        $(BIBTEX) $(BIBTEX_OPT) $(<:.tex=)
        $(LATEX) $(LATEX_OPT) $<
        $(LATEX) $(LATEX_OPT) $<
$(main_tex): $(chapter)
        touch $@
.PHONY: interactive
interactive: $(INTERACTIVE_TARGET)
        $(LATEXMK) $(LATEXMK_INTERACTIVE_OPT) $(<:.pdf=.tex)
.PHONY: mostlyclean clean
mostlyclean:
        rm -fv *.aux *.out *.bbl *.blg *.pytxcode *.toc *.nav
        rm -rf *.bcf *.log *.run.xml *.snm *.vrb *.synctex.gz
        rm -fv chap/*.aux
clean:
        make mostlyclean
        rm -fv *.pdf
        rm -rfv pythontex-files-*
        rm -rfv _minted-*
        rm -rf *.fdb_latexmk *.fls
\end{minted}
\inputminted[tabsize=4]{makefile}{makefile}
Der Makefile-Template geht davon aus, dass die Hauptdatei \texttt{zusammenfassung.tex} ist,
die einzelnen Kapitel werden im Unterordner \texttt{chap}.
die einzelnen Kapitel sind im Unterordner \texttt{chap} zu finden.
\section{Konfiguration von anderen \latex Editoren}
@@ -152,4 +98,5 @@
    \item \menu{Bib(la)tex}:   \verb:biber %:
  \end{enumerate}
  \item \menu{Schnelles Übersetzen} → \menu{PdfLaTeX + PDF anzeigen}
  \item \menu{OK}
\end{enumerate}