| | |
| | | BCOR=1cm, |
| | | twoside] |
| | | {scrreprt} |
| | | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Schrift-Codierung |
| | | \usepackage{fontspec} % UNICODE für Umlauten |
| | | |
| | | % * Anpassung für deutschsprachige Dokumenten |
| | | \usepackage{fontspec} % UNICODE für Umlauten |
| | | \usepackage[ngerman]{babel} % Anpassung für Kaptitel-Name, |
| | | % Abschnitte-Name, Silbentrennung ect. |
| | | % Schriften |
| | | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% minted muss vor polyglosia laden |
| | | \usepackage{minted} |
| | | \newminted{latex} |
| | | {fontsize=\small,tabsize=2,linenos} % definition von umgebung kann man |
| | | % nach polyglossia platzieren |
| | | \newmintedfile[inputtexcode]{latex} |
| | | {fontsize=\small,tabsize=2,linenos} |
| | | |
| | | \newminted{bibtex} |
| | | {fontsize=\small,tabsize=4} |
| | | \newmintedfile[inputbibcode]{bibtex} |
| | | {fontsize=\small,tabsize=4} |
| | | |
| | | |
| | | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Anpassung für deutschsprachige Dokumenten |
| | | \usepackage{polyglossia} % Anpassung für Kaptitel-Name, |
| | | % Abschnitte-Name, Silbentrennung ect. |
| | | \setdefaultlanguage[ |
| | | variant=german, |
| | | spelling=new, |
| | | babelshorthands=true]{german} |
| | | |
| | | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Schriften |
| | | \usepackage{libertine} |
| | | %\setmonofont[Scale=0.8]{Luxi Mono} % Nutzung von Luxi Mono |
| | | \setmonofont[Scale=0.9]{Source Code Pro} % Nutzung von Source Code Pro |
| | | \setmonofont[Scale=0.8]{Luxi Mono} % Nutzung von Luxi Mono |
| | | %\setmonofont[Scale=0.9]{Source Code Pro} % Nutzung von Source Code Pro |
| | | % für pdflatex: \usepackage[Scale=0.8]{luximono} |
| | | \usepackage{microtype} |
| | | |
| | | \usepackage{mathtools}%amsmath |
| | | \usepackage{nicefrac} |
| | | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Typography feinheit |
| | | \usepackage{microtype} % RechtenRand ausgleichen |
| | | |
| | | % Anpassung von Leerraum zischen Befehlen und dem nächsten Worte |
| | | \usepackage{xspace} |
| | | \usepackage{textcomp} |
| | | |
| | | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Math-Tools |
| | | \usepackage{mathtools} |
| | | \usepackage{nicefrac} |
| | | |
| | | % Setze Tabellesverzeichnis in zweispaltig |
| | | \usepackage[toc]{multitoc} |
| | | |
| | | |
| | | % Ausgabe von Sorucecode |
| | | \usepackage{xcolor} |
| | | \definecolor{keywords2}{HTML}{8A4A0B} |
| | | |
| | | \usepackage{listings} |
| | | \lstset{basicstyle=\ttfamily,% |
| | | 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} |
| | | }{} |
| | | |
| | | \usepackage{float} |
| | | \usepackage{showkeys} |
| | | |
| | | \usepackage{caption} |
| | | \usepackage{subcaption} |
| | | \usepackage{wrapfig} |
| | | |
| | | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Literaturverzeichnis |
| | | \usepackage[babel]{csquotes} |
| | | \usepackage[ |
| | | backend=biber |
| | |
| | | \addbibresource{literatur.bib} |
| | | \addbibresource{literatur2.bib} |
| | | |
| | | % Typographische Anpassung |
| | | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Seiten-Layout |
| | | \usepackage[automark,autooneside=false]{scrlayer-scrpage} |
| | | \pagestyle{scrheadings} |
| | | |
| | | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Tables |
| | | \usepackage{booktabs} |
| | | %====== Typographische Anpassung für Tabelle |
| | | \renewcommand{\arraystretch}{1.3} %(oder 1.2) |
| | | |
| | | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Graphics |
| | | \usepackage{graphicx} |
| | | \usepackage{float} |
| | | |
| | | \usepackage{caption} |
| | | \usepackage{subcaption} |
| | | \usepackage{wrapfig} |
| | | |
| | | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Macht das Doku klickbar |
| | | \usepackage[pdfencoding=auto, |
| | | hidelinks, |
| | | pdfauthor={Hong-Phuc Bui}, |
| | | pdftitle={Latex Kurs an der HTW Saar}, |
| | | pdfsubject={Eine sehr kurze Einführung in Latex}, |
| | | pdfkeywords={tex,latex,Typographie} |
| | | ]{hyperref} |
| | | |
| | | % Eigene Anpassung |
| | | \setkomafont{caption}{\itshape\sffamily} |
| | | \setkomafont{captionlabel}{\upshape\bfseries\sffamily} |
| | | \renewcaptionname{german}{\figurename}{Abb.} %Figure |
| | | \renewcaptionname{german}{\tablename}{Tab.} %Table |
| | | |
| | | |
| | | % Shortcut |
| | | \newcommand{\latex}{\LaTeX\xspace} |
| | | \newcommand{\KOMA}{\textsf{KOMA}\xspace} |
| | | |
| | | \setkomafont{caption}{\itshape\sffamily} |
| | | \setkomafont{captionlabel}{\upshape\bfseries\sffamily} |
| | | \renewcaptionname{ngerman}{\figurename}{Abb.} %Figure |
| | | \renewcaptionname{ngerman}{\tablename}{Tab.} %Table |
| | | |
| | | % title |
| | | \title{Kurze Einführung in \LaTeX} |
| | | \subtitle{zusammengefasst während des \latex-Kurses an der HTW Saar} |
| | | \date{Sommersemester 2015} |
| | | \date{Wintersemester 2015/2016} |
| | | \author{Hong-Phuc Bui} |
| | | |
| | | \usepackage[automark]{scrpage2} |
| | | \pagestyle{scrheadings} |
| | | |
| | | \usepackage[pdftex, |
| | | pdfauthor={Hong-Phuc Bui}, |
| | | pdftitle={Latex Kurs an der HTW Saar}, |
| | | pdfsubject={Eine sehr kurze Einführung in Latex}, |
| | | pdfkeywords={tex,latex,typographie} |
| | | ]{hyperref} |
| | | |
| | | |
| | | |
| | | \begin{document} |
| | |
| | | \include{text-strukture} |
| | | \include{graphik} |
| | | \include{table} |
| | | \include{zitation} |
| | | \include{einheitliche-formatierung} |
| | | \include{silbentrennung} |
| | | \include{mathematische-formel} |