diff --git a/.gitignore b/.gitignore index 8962417..9c90fdf 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,5 @@ *.vrb *local *.lof +*.bcf +*.run.xml diff --git a/bibfile.bib b/bibfile.bib index 2b12a3d..f1013af 100644 --- a/bibfile.bib +++ b/bibfile.bib @@ -9,7 +9,7 @@ @online{chatgpt, author = {ChatGPT}, url = {https://chat.openai.com/chat}, - date = {23.02.2023}, + date = {2023-02-23}, year = 2023, title = {Prompt: 'Was ist Mathematik?'} } @@ -17,7 +17,7 @@ author = {Pascal Brachet}, title = {Texmaker (free cross-platform latex editor).}, url = {https://www.xm1math.net/texmaker/doc.html#SECTION31}, - date = {26. Mai 2023}, + date = {2023-05-26}, year = 2023 } @online{apaciteCtan, @@ -33,6 +33,11 @@ year = {2023}, url = {https://latexref.xyz/Using-BibTeX.html}, title = {Using BibTeX}, - month = {September}, lastchecked = {2023-10-10} +} +@online{biblatex-apa, + url = {https://www.ctan.org/pkg/biblatex-apa}, + title = {biblatex-apa – BibLaTeX citation and reference style for APA}, + author = {Philip Kime}, + date = {2023-03-20} } \ No newline at end of file diff --git a/kapitel/100_installation.tex b/kapitel/100_installation.tex index e3a5a3b..e23fd1e 100644 --- a/kapitel/100_installation.tex +++ b/kapitel/100_installation.tex @@ -13,10 +13,10 @@ Die Repositories beinhalten das texlive und sie können es einfach über den Ter %sudo apt install texlive-full \begin{verbatim} # Debian based -sudo apt install texlive-latex-extra texlive-lang-german +sudo apt install texlive-latex-extra texlive-lang-german biber # Arch based -sudo pacman -S texlive texlive-langgerman texlive-bin +sudo pacman -S texlive texlive-langgerman texlive-bin biber # RedHat based (Fedora) sudo dnf install texlive-scheme-full @@ -39,11 +39,13 @@ Lluís Usó und Beat Jäckle benützen TeXstudio (für Windows, GNU+Linux und ma \href{https://texstudio.org/}{https://texstudio.org/} +TeXstudio bassiert auf Texmaker, wird aber von einer Community betrieben. Es werden viele Features eingebaut, während die Entwicklung von Texmaker nur von einer Person betrieben wird. Deswegen wechselte Herr Jäckle auch von Texmaker zu TeXstudio. + \item Es gibt Texmaker (für Windows, macOS und GNU+Linux) \href{https://xm1math.net/texmaker/}{https://xm1math.net/texmaker/} -Ein wichtiger Hinweis aus dem Handbuch. \cite[Kapitel 4.2]{masterdocument} +Ein wichtiger Hinweis aus dem Handbuch. %\parcite[Kapitel 4.2]{masterdocument} \begin{quote} Texmaker allows you to work onto documents separated in several files. To include a TeX file into your document, just use the \verb`\include{file}` command in the \textit{LaTeX} menu. The file will appear in the \textit{Structure View}. With a click on his name, Texmaker will open it. diff --git a/kapitel/300_cite.tex b/kapitel/300_cite.tex index 08d0869..f2015a1 100644 --- a/kapitel/300_cite.tex +++ b/kapitel/300_cite.tex @@ -40,6 +40,21 @@ Mit \texttt{apalike} kann man ähnlich zu APA zitieren. Doch nach Tests von Herr % \printbibliography %\end{verbatim} % -\subsection{APAcite}\label{sec:apacite}\label{bib:empfehlung} +\subsection{APAcite}\label{sec:apacite} \texttt{apacite} ist ein Paket, welches das nach APA6 zitiert. Die Richtlinien der KZO basiert auf APA. -\cite{apaciteCtan} \ No newline at end of file +\cite{apaciteCtan} + +\subsection{biblatex-apa}\label{sec:biblatex-apa}\label{bib:empfehlung} +biblatex-apa\footnote{\cite{biblatex-apa}} ist ein Paket, welches das nach APA7 zitiert. Die Richtlinien der KZO basiert auf APA. +Man benötigt \texttt{Biber}. \texttt{@online} Typen werden unterstützt. +Man muss beim Kompilieren bei TeXstudio F8 drücken, damit die Bibliothek \glqq aktualisiert\grqq{} wird. + +Die Bib Datei wird vor dem \verb`\begin{document}` eingefügt. Mit dem Befehl \verb`\addbibresource{bibfile.bib}`. + + An der Stell, an der das Literaturverzeichnis hinkommen soll, ruft man es mit dem Befehl \verb`\printbibliography` auf. + +Folgende Pakete werden benörigt: +\begin{verbatim} +\usepackage{csquotes} +\usepackage[style=apa,backend=biber]{biblatex} +\end{verbatim} \ No newline at end of file diff --git a/src/kzo-thesis.sty b/src/kzo-thesis.sty index f528145..f8fe7f1 100644 --- a/src/kzo-thesis.sty +++ b/src/kzo-thesis.sty @@ -11,9 +11,11 @@ \RequirePackage{graphicx} \RequirePackage[pdfusetitle]{hyperref} \RequirePackage[ngerman]{babel} -\newenvironment{abstract}{}{} -\RequirePackage{abstract} -\RequirePackage{apacite} +%\newenvironment{abstract}{}{} %% Nicht benötigt in report +%\RequirePackage{abstract} %% Nicht benötigt in report +%\RequirePackage{apacite} +\RequirePackage{csquotes} +\RequirePackage[style=apa,backend=biber]{biblatex} \pagestyle{empty} \makeatletter\@addtoreset{section}{part}\makeatother% diff --git a/src/titlepage.sty b/src/titlepage.sty index 77f99c3..a91b6c1 100644 --- a/src/titlepage.sty +++ b/src/titlepage.sty @@ -7,7 +7,7 @@ \newcommand*{\form}[1]{\gdef\@form{#1}} \newcommand*{\@form}{\texttt{TODO: Set \string\form\string{...\string}}} -\renewcommand{\maketitle}{% +\renewcommand{\maketitle}{\hypersetup{pageanchor=false} % { %\setlength{\marginparwidth}{10cm} %\setlength{\marginparsep}{10cm} @@ -30,6 +30,6 @@ \@supervisor \textbf{Datum}\\ -\thedate +\thedate \hypersetup{pageanchor=true}% } diff --git a/template.pdf b/template.pdf index adfce5e..71a73d2 100644 Binary files a/template.pdf and b/template.pdf differ diff --git a/template.tex b/template.tex index 1f96a6f..f272d79 100644 --- a/template.tex +++ b/template.tex @@ -1,11 +1,15 @@ -\documentclass[10pt,a4paper]{book} +% !TEX programm=latexmk +% !BIB program = biber +\documentclass[10pt,a4paper]{report} \usepackage{src/kzo-thesis} + \title{KZO LaTeX Vorlage} \author{Beat Jäckle (Jb)} \date{\today} \supervisor{Michael Bürgisser} \project{Maturitätsarbeit} +\addbibresource{bibfile.bib} \begin{document} \hypersetup{pageanchor=false} @@ -20,17 +24,10 @@ \include{kapitel/100_installation} \include{kapitel/200_mb} \include{kapitel/300_cite} -% include -% Much more tipps: https://github.com/oetiker/lshort -% Literautrverzeichnis -%\include{kapitel/bibl.tex} -%\thebibliography -%https://tex.stackexchange.com/questions/85623/ieeetran-bibliography-germanify-it -%\bibliographystyle{src/deIEEEtran} -\bibliographystyle{apacite} + \nocite{chatgpt} -\bibliography{bibfile} +\printbibliography % Abbildungsverzechnis, eventuell weglassen \listoffigures