Commit 825368cf5bc27b2daf4dba0a47cb2d2178545d73
authorMarian Korosec <kormam13@htl-kaindorf.ac.at>
Wed, 21 Mar 2018 11:09:04 +0000 (12:09 +0100)
committerMarian Korosec <kormam13@htl-kaindorf.ac.at>
Wed, 21 Mar 2018 11:09:04 +0000 (12:09 +0100)
7 files changed:
Literaturverzeichnis.bib
appendix.tex
biber.tex [new file with mode: 0644]
inhalt.tex
listings.tex
main.pdf
main.tex

index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..1a22f0544ff73fd8915347130fdddcd49ba5efba 100644 (file)
@@ -0,0 +1,6 @@
+@online{test-website,
+author = {Google},
+title = {Google Suchmaschine},
+urldate = {2018-03-19},
+url = {https://www.google.at/},
+}
\ No newline at end of file
index 9dc74cc7da53966994a6eeb8a71d4a0919be81f5..b452b264f55604daf09734d4a3357745d9752177 100644 (file)
@@ -19,8 +19,8 @@
 
 \markboth{}{}  %end chapter
 
-\bibliography{Literaturverzeichnis}
-\bibliographystyle{unsrt}
+\printbibliography
+\nocite{*}
 
 \chapter{Abkürzungsverzeichnis}
 \begin{acronym}
diff --git a/biber.tex b/biber.tex
new file mode 100644 (file)
index 0000000..28a8fac
--- /dev/null
+++ b/biber.tex
@@ -0,0 +1,39 @@
+\usepackage[autostyle]{csquotes}
+\usepackage[
+       backend=biber,
+       style=authoryear,
+       sortlocale=de_DE,
+]{biblatex}
+\addbibresource{Literaturverzeichnis.bib}
+\DeclareNameAlias{sortname}{first-last}
+
+\DeclareFieldFormat{url}{\newline\url{#1}}
+\newbibmacro*{url+urldate}{%
+ \printfield[url]{url}%   
+ \iffieldundef{urlyear}     
+ {}     
+ {\setunit*{\addspace}%      
+ \printtext{\printurldate}}}
+
+\DeclareLabeldate{%
+  \field{date}
+  \field{eventdate}
+  \field{origdate}
+}
+
+\renewbibmacro*{date+extradate}{%
+  \ifboolexpr{test {\iffieldundef{labelyear}}
+    or (test {\iffieldequalstr{labelyear}{nodate}}
+        and test {\ifentrytype{online}})}
+    {}
+    {\printtext[parens]{%
+       \iflabeldateisdate
+         {\printdateextra}
+         {\printlabeldateextra}}}}
+
+\renewbibmacro*{cite:labeldate+extradate}{%
+  \ifboolexpr{test {\iffieldundef{labelyear}}
+    or (test {\iffieldequalstr{labelyear}{nodate}}
+        and test {\ifentrytype{online}})}
+    {}
+    {\printtext[bibhyperref]{\printlabeldateextra}}}
\ No newline at end of file
index 5aa7c4bca59b734a08ea19f699a6e5c31f57e903..4ed09d8f243abcfa3c471d2cd772393ae4a5a978 100644 (file)
@@ -106,7 +106,7 @@ Tabelle \ref{Tabellenbeispiel} ist mit einem Onlinegenerator erzeugt, da Tabelle
 
 \section{Akronyme}
 \label{sec:akronyme}
-Akronyme können mit dem \textbackslash{}ac\{\} Kommando angezeigt werden. Bei diesem Befehl wird eine Abkürzung beim 1. Aufruf so angezeigt: \ac{uC} und danach nur mehr das Kürzel \ac{uC}. Das \ac{WWW} ist unkontrollierbar. Möchte man das Kürzel ausschreiben, verwendet man \textbackslash{}acl\{\}: \acl{WWW}
+Akronyme können mit dem \textbackslash{}ac\{\} Kommando angezeigt werden. Bei diesem Befehl wird eine Abkürzung beim 1. Aufruf so angezeigt: \ac{uC} und danach nur mehr das Kürzel \ac{uC}. Das \ac{WWW} ist unkontrollierbar. Möchte man das Kürzel ausschreiben, verwendet man \textbackslash{}acl\{\}: \acl{WWW}\footfullcite{test-website}
 
 \section{C Beispiel}
 \label{sec:c-beispiel}
index 288d2cacd6d3ac7837d1f07ab33878ae92b242f0..4d4d366e72b3b80265a4cb542f3a99f611a258b5 100644 (file)
@@ -21,7 +21,7 @@
 \lstdefinestyle{java}{                                                                                                                                                                         % define java style
   language=Java,                                                                                                                                                               % the language of the code
   backgroundcolor=\color{codeBackGray},                                                                                                                                % choose the background color
-  basicstyle=\fontencoding{T1}\fontfamily{DejaVuSansMono-TLF}\fontseries{m}\selectfont\footnotesize,   % the size and the font that are used for the code
+  basicstyle=\fontencoding{T1}\fontfamily{courier}\fontseries{m}\selectfont\footnotesize,      % the size and the font that are used for the code
   breakatwhitespace=false,                                                                                                                                                     % sets if automatic breaks should only happen at whitespace
   breaklines=true,                                                                                                                                                             % sets automatic line breaking
   captionpos=b,                                                                                                                                                                % sets the caption-position to bottom
@@ -69,7 +69,7 @@
 \lstdefinestyle{C}{ %define c style
   language=C,                                  % the language of the code
   backgroundcolor=\color{codeBackGray},        % choose the background color; you must add \usepackage{color} or \usepackage{xcolor}
-  basicstyle=\fontencoding{T1}\fontfamily{DejaVuSansMono-TLF}\fontseries{m}\selectfont\footnotesize,                   % the size of the fonts that are used for the code
+  basicstyle=\fontencoding{T1}\fontfamily{courier}\fontseries{m}\selectfont\footnotesize,                      % the size of the fonts that are used for the code
   breakatwhitespace=false,                     % sets if automatic breaks should only happen at whitespace
   breaklines=true,                                     % sets automatic line breaking
   captionpos=b,                                        % sets the caption-position to bottom
index f0f4d29116d649448d847a8fcd5a576dcc7e8732..0c034c12cba80c278b6d9d21819e7dff6e24bd57 100644 (file)
Binary files a/main.pdf and b/main.pdf differ
index cd052b10ff669c32b2916accc8e112bfddf80f05..aa237d734d10d3bb963ffc326aa8cea48ecc17e9 100644 (file)
--- a/main.tex
+++ b/main.tex
@@ -25,31 +25,37 @@ bibliography=totocnumbered,                                                                                 %Literaturverzeichnis
 \renewcommand*{\chapterpagestyle}{scrheadings}                                         %Kopf und Fußzeile auf Seiten mit Überschriften anders
 
 %Dokumenteinstellungen und Paketimporte
+\usepackage[T1]{fontenc}                                                                                       %Outputencoding
+\usepackage{lmodern}
+\usepackage[utf8]{inputenc}                                                                                    %UTF8 + Sonderzeichen
 \usepackage[ngerman]{babel}                                                                                    %Deutsch
-\usepackage{graphicx}                                                                                          %Bilder
+\usepackage{newtxtext,newtxmath}                                       %font new TX (standard text)
+\renewcommand{\headfont}{\rmfamily}                                    %use new tx for headers
+\setkomafont{sectioning}{\rmfamily\bfseries}           %use new tx for chapters, sections, etc
 \usepackage{caption}                                                                                           %Tabellen Listings und Figuren mit Beschriftung in Verzeichnissen
-\usepackage[T1]{fontenc}                                                                                       %Outputencoding
+\usepackage{graphicx}                                                                                          %Bilder
 \usepackage{float}                                                                                                     %Plazierung von Floats (Bilder Tabellen)
-\usepackage[utf8x]{inputenc}                                                                           %UTF8 + Sonderzeichen
 \usepackage{wrapfig}                                                                                           %Textumfluss von Bildern, die nicht die ganze Seite brauchen
 \usepackage{setspace}                                                                                          %Zeilenabstand
 \usepackage{listings}                                                                                          %Listings (=Code)
-\usepackage{DejaVuSerif}                                                                                       %DejaVu Sans Mono (listings)
+\usepackage{courier}                                                                                           %Courier (listings)
 \usepackage{times}                                                                                                     %Schriftart Times Roman
 \usepackage{courier}                                                                                           %Schriftart Courier
-\usepackage{multirow}                                                                                          %Bessere Tabellenformatierung
-\usepackage{array}                                                                                                     %Bessere Tabellenformatierung
+\usepackage{array,multirow}                                                                                            %Bessere Tabellenformatierung
 \usepackage{xcolor}                                                                                                    %Farben für Codehighlighting oder ähnliches
-\usepackage{appendix}                                                                                          %Anhang Titelseite
 \usepackage{tabularx}                                                                                          %Bessere Tabellen
-\usepackage{jurabib}                                                                                           %Zitierung
+\usepackage{appendix}                                                                                          %Anhang Titelseite
 \usepackage[printonlyused,withpage]{acronym}                                           %Für die Verwendung von Akronymen + Verzeichnis - printonlyused: Abkürzung nur im Verzeichnis wenn auch benutzt; withpage: Seite der 1. Verwendung im Verzeichnis anzeigen
 
 \setlength{\parindent}{0em}                                                                                    %Einrücken
 \setcounter{tocdepth}{5}                                                                                       %Tiefe der Überschriften
 \setcounter{secnumdepth}{5}                                                                                    %Nummerierungstiefe der Überschriften
 
+\input{listings}                                                                                                       %Datei importieren
+\input{biber}
+
 \usepackage[bookmarks]{hyperref}                                                                       %Automatische Lesezeichen
+\usepackage[figure]{hypcap}                                                                            %Bild referenzieren
 
 \subject{\includegraphics[scale=0.7]{fig/logoMecha}}
 \title{Diplomarbeitvorlage}
@@ -62,7 +68,6 @@ Ausbildungsschwerpunkt Mechatronik und Automatisierungstechnik}
 \begin{document}                                                                                                       %Dokumentbeginn
 \onehalfspace                                                                                                          %Zeilenabstand
 \maketitle                                                                                                                     %Titelseite
-\input{listings}                                                                                                       %Datei importieren
 \input{opening}                                                                                                                %Datei importieren
 \tableofcontents                                                                                                       %Inhaltsverzeichnis
 \mainmatter                                                                                                                    %Seitennummerierung