added support for reference sources

This commit is contained in:
Sven Vogel 2023-09-27 17:05:50 +02:00
parent 5cbdb52c60
commit d1f7ff0c20
5 changed files with 58 additions and 2 deletions

View File

@ -19,7 +19,6 @@ The directories are as follows:
Acronyms are defined in the file `acros.tex`. Likewise, glossaries are all defined in `glossary.tex`. Acronyms are defined in the file `acros.tex`. Likewise, glossaries are all defined in `glossary.tex`.
## Build ## Build
The project is intended to be build by TexLive through the use of latexmk. This is why there is a custom `.latexmkrc` file specified to keep the build process clean. The project is intended to be build by TexLive through the use of latexmk. This is why there is a custom `.latexmkrc` file specified to keep the build process clean.
## Dependencies ## Dependencies

1
config/bibtex.tex Normal file
View File

@ -0,0 +1 @@
\bibliographystyle{unsrtnat} % set listing style of reference sources: Harvard Method

View File

@ -25,6 +25,7 @@
\usepackage{color} % more colors \usepackage{color} % more colors
\usepackage{tikz} % painting \usepackage{tikz} % painting
\usepackage{tikz-imagelabels} % overlay labels for images \usepackage{tikz-imagelabels} % overlay labels for images
\usepackage{cite} % citation for bibliography
\makeindex \makeindex
\makenomenclature \makenomenclature
@ -33,6 +34,7 @@
% include acronym definitions % include acronym definitions
\input{acros} \input{acros}
\input{glossary} \input{glossary}
\input{config/bibtex}
% include file with fixes and workaround % include file with fixes and workaround
% as well as special settings % as well as special settings
\input{extra/fixes} \input{extra/fixes}
@ -72,4 +74,7 @@
% include all used chapters % include all used chapters
\input{pages/page-08-chapter} \input{pages/page-08-chapter}
% source references follow content of article
\input{pages/page-09-bibliography}
\end{document} \end{document}

View File

@ -0,0 +1,6 @@
% =====================================================================
% Bilbiography
\cleardoublepage % should start on new empty page
\addcontentsline{toc}{section}{Literatur} % add table of contents entry
\bibliography{../refs} % Entries are in the refs.bib file

45
refs.bib Normal file
View File

@ -0,0 +1,45 @@
% ____ _ _ _
% | __ )(_) |__ | |_ _____ __
% | _ \| | '_ \| __/ _ \ \/ /
% | |_) | | |_) | || __/> <
% |____/|_|_.__/ \__\___/_/\_\
%
% Biblatex database for storing bibliography entries that can be cited within the document.
% See: https://www.overleaf.com/learn/latex/Bibliography_management_with_bibtex.
%
% --------------------------------------------------------
% Reference a book:
%
% @book{reference-name,
% author = {Donald E. Knuth},
% year = {1986},
% title = {The Book},
% publisher = {Addison-Wesley Professional}
% edition = {2}
% }
%
% --------------------------------------------------------
% Reference an article:
%
% @article{reference-name,
% title = {Literate Programming},
% author = {Donald E. Knuth},
% journal = {The Computer Journal},
% volume = {27},
% number = {2},
% pages = {97--111},
% year = {1984},
% publisher = {Oxford University Press}
% }
%
% --------------------------------------------------------
% For citing a certain reference within the document use:
% \cite{reference-name}
@book{somebook,
author = {Donald E. Knuth},
year = {1986},
title = {The Book},
publisher = {Addison-Wesley Professional}
edition = {2}
}