X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=preamble.tex;h=984b7fa24b0c15aeb0e8fe04f53060b6d208c53d;hb=0c4686b70dcb071a6537cdb52beb6bf4183334a1;hp=392fc22870cc90baf6de820f5e76d72335e22482;hpb=658c18356eecd7b43b27b5ee450db4d12a985834;p=phd-thesis.git diff --git a/preamble.tex b/preamble.tex index 392fc22..984b7fa 100644 --- a/preamble.tex +++ b/preamble.tex @@ -127,6 +127,20 @@ \apptocmd{\thebibliography}{\raggedright}{}{} \usepackage{bibentry} % Cite bib entry completely \nobibliography* +\newcommand{\citeentry}[1]{\begin{NoHyper}\bibentry{#1}\end{NoHyper}. \citep{#1}} + +\makeatletter +\newcommand{\citepage}[1]{p.~#1} +\newcommand{\citepages}[1]{pp.~#1} +\newcommand{\citechapter}[1]{\cref@chapter@name~#1} +\newcommand{\citechapters}[1]{\cref@chapter@name@plural~#1} +\newcommand{\citesection}[1]{\cref@section@name~#1} +\newcommand{\citesections}[1]{\cref@section@name@plural~#1} +%\newcommand{\citesection}[1]{\S.~#1} +%\newcommand{\citesections}[1]{\S\S.~#1} +\newcommand{\citeparagraph}[1]{\P.~#1} +\newcommand{\citeparagraphs}[1]{\P\P.~#1} +\makeatother % Graphics \usepackage{graphicx} % Images @@ -259,23 +273,23 @@ \newcommand{\fullref}[1]{\Cref{#1}: \nameref{#1}} % Glossaries and acronyms -\usepackage[nolangwarn,acronym,nonumberlist]{glossaries} +\usepackage[nolangwarn,acronym,nonumberlist]{glossaries-extra} \Addlcwords{of} % Titlecase glossary commands \newcommand{\glst}[1]{\titlecap{\glsentrylong{#1}}} \newcommand{\Glst}[1]{\glst{#1}} % Fix gls in hyperlink errors \pdfstringdefDisableCommands{% - \def\acrlong#1{}% - \def\acrlongpl#1{}% - \def\acrshort#1{}% - \def\acrshortpl#1{}% + \def\glsxtrlong#1{}% + \def\glsxtrlongpl#1{}% + \def\glsxtrshort#1{}% + \def\glsxtrshortpl#1{}% \def\acrfull#1{}% \def\acrfullpl#1{}% - \def\Acrlong#1{}% - \def\Acrlongpl#1{}% - \def\Acrshort#1{}% - \def\Acrshortpl#1{}% + \def\Glsxtrlong#1{}% + \def\Glsxtrlongpl#1{}% + \def\Glsxtrshort#1{}% + \def\Glsxtrshortpl#1{}% \def\Acrfull#1{}% \def\Acrfullpl#1{}% \def\gls#1{}%