From 1aca9fc5ddc2b932991f1cf139755d8a38705067 Mon Sep 17 00:00:00 2001 From: Hong-Phuc Bui <hong-phuc.bui@htwsaar.de> Date: Thu, 29 Sep 2016 21:54:21 +0200 Subject: [PATCH] add makefile --- /dev/null | 4 - .gitignore | 51 +++++++++++++++++ eignemacro.tex | 3 + code/eigenemacro.tex | 3 + listing-codelisting.tex | 52 +++++++++++++++++ makefile | 37 ++++++++++++ latexmkrc | 15 +++++ 7 files changed, 161 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f2ddb64 --- /dev/null +++ b/.gitignore @@ -0,0 +1,51 @@ +*.aux +*.bbl +*.bbl +*.bcf +*.bcf +*.blg +*.fls +*.idx +*.ilg +*.ind +*.lof +*.lol +*.log +*.out +*.pdf +*.pyg.lst +*.pyg.sty +*.pyg.vrb +*.run.xml +*.fdb_latexmk +*.synctex.gz +*.toc +*.tdo +*.thm +*.pyg.lol + +**/*.aux +**/*.bbl +**/*.bbl +**/*.bcf +**/*.bcf +**/*.blg +**/*.fls +**/*.idx +**/*.ilg +**/*.ind +**/*.lof +**/*.lol +**/*.log +**/*.out +**/*.pdf +**/*.pyg.lst +**/*.pyg.sty +**/*.pyg.vrb +**/*.run.xml +**/*.fdb_latexmk +**/*.synctex.gz +**/*.toc +**/*.tdo +**/*.thm +**/*.pyg.lol diff --git a/code/eigenemacro.tex b/code/eigenemacro.tex new file mode 100644 index 0000000..43886ba --- /dev/null +++ b/code/eigenemacro.tex @@ -0,0 +1,3 @@ +\newcommand{\bundesland}[1]{\textit{#1}} +% Nutzung: \bundesland{Saarland} + diff --git a/eignemacro.tex b/eignemacro.tex new file mode 100644 index 0000000..43886ba --- /dev/null +++ b/eignemacro.tex @@ -0,0 +1,3 @@ +\newcommand{\bundesland}[1]{\textit{#1}} +% Nutzung: \bundesland{Saarland} + diff --git a/img/.directory b/img/.directory deleted file mode 100644 index 186e15b..0000000 --- a/img/.directory +++ /dev/null @@ -1,4 +0,0 @@ -[Dolphin] -Timestamp=2013,11,25,18,7,5 -Version=3 -ViewMode=1 diff --git a/latexmkrc b/latexmkrc new file mode 100644 index 0000000..67432ac --- /dev/null +++ b/latexmkrc @@ -0,0 +1,15 @@ +# Benutz okular als PDF Viewer +$pdf_previewer ="start okular %O %S"; + +# use pdf mode instead of dvi to compile files +$pdf_mode = 1; + +# bbl soll entfernt werden +#$bibtex_use = 2; + +# benutzt xindy um index zu generieren +$makeindex = "texindy -C utf8 -L german-duden -M page-ranges %O %S"; + +# erweitet die liste der extension von generierten dateien. + + diff --git a/listing-codelisting.tex b/listing-codelisting.tex new file mode 100644 index 0000000..3cb3214 --- /dev/null +++ b/listing-codelisting.tex @@ -0,0 +1,52 @@ +\usepackage{listings} +\lstset{basicstyle=\ttfamily,% + tabsize=2, + keywordstyle=\color{blue},% + keywordstyle=[2]\color{keywords2}% +} + + +% definiert shortcut-Umgebung fuer latex code +\lstnewenvironment{latexcode}[1][] + {\lstset{language={[LaTeX]TeX},% +% backgroundcolor=\color[gray]{0.7},% +morekeywords={maketitle,titlehead,subject,subtitle,publishers,includegraphics}, + numbers=left,numberstyle=\small,#1} + }{} + +% definiert shoutcut fuer die Anbindung von Latex code aus Dateien +\newcommand{\inputtexcode}[2][]% + {\lstinputlisting[language={[LaTeX]TeX},% + numbers=left,% +% backgroundcolor={\color{white}},% +morekeywords={maketitle,titlehead,subject,subtitle,publishers,includegraphics}, + fontadjust=true, + numberstyle=\small,#1] + {#2} + } + +\lstdefinelanguage{bibtex} + {keywords={% + @article,@book,@collectedbook,@conference,@electronic,@ieeetranbstctl,% + @inbook,@incollectedbook,@incollection,@injournal,@inproceedings,% + @manual,@mastersthesis,@misc,@patent,@periodical,@phdthesis,@preamble,% + @proceedings,@standard,@string,@techreport,@unpublished,% + @online,@collection,% + @<literatur-type>% + }, + keywords=[2]{author,year,title,subtitle,indexsorttitle,url,% + urldate,editor,booktitle,publisher,address,isbn,% + doi,crossref,booktitleadon,% + edition,option,date,note,and + }, + comment=[l][\itshape]{@comment}, + sensitive=false, + } + +\lstnewenvironment{bibtexcode}[1][] + {\lstset{language={bibtex},% +% backgroundcolor=\color[gray]{0.7},% + keywordstyle=\color{blue}, + numbers=left,numberstyle=\small,#1} + }{} + diff --git a/makefile b/makefile new file mode 100644 index 0000000..4b17100 --- /dev/null +++ b/makefile @@ -0,0 +1,37 @@ +#setup for latex +LATEX=lualatex +LATEXOPT=--shell-escape --synctex=1 -file-line-error +NONSTOP=--interaction=nonstopmode + +LATEXMK=latexmk +LATEXMKOPT=-lualatex -bibtex +CONTINUOUS=-pvc + +MAIN=zusammenfassung +PROJECT=project +SOURCES:=$(shell ls *.tex) + +TEX_EXTENSION=aux bbl bcf blg fls idx ilg ind lof lol log out pdf pyg.lst pyg.sty pyg.vrb run.xml fdb_latexmk synctex.gz toc tdo thm pyg.lol + + +.PHONY:listing image clean debug + +all:$(MAIN).pdf + +$(MAIN).pdf:$(MAIN).tex $(SOURCES) + $(LATEXMK) $(LATEXMKOPT) -pdflatex="$(LATEX) $(LATEXOPT) $(NONSTOP) %O %S" $< + +debug: $(MAIN).tex + $(LATEX) $(LATEXOPT) $< + +interactive: $(MAIN).tex listing + $(LATEXMK) $(LATEXMKOPT) $(CONTINUOUS) -pdflatex="$(LATEX) $(LATEXOPT)%O %S" $< + +clean: + rm -f *.pyc *.pyg + rm -rf _minted-$(MAIN) + rm -f $(addprefix $(MAIN).,$(TEX_EXTENSION)) + $(LATEXMK) -C + + + -- Gitblit v1.10.0-SNAPSHOT