Add hyperref and gloassaries

This commit is contained in:
Marcel Radzio 2022-10-17 21:46:05 +02:00
parent a0ea1a3997
commit 3b1807aeed
5 changed files with 32 additions and 9 deletions

View File

@ -1,7 +1,18 @@
\documentclass{class/documentation}
\usepackage{blindtext}
\def\title{Nheko}
\def\author{Marcel Radzio}
\def\company{Nheko Team}
\def\logoImage{assets/nheko.png}
\title{Nheko}
\author{Marcel Radzio}
\company{Nheko Team}
\logoImage{assets/nheko.png}
\newglossaryentry{community}
{
name=Community,
description={A way to group multiple Matrix Rooms together},
first={\glsentrytext{community}},
plural={communities},
descriptionplural={A way to group multiple Matrix Rooms together},
firstplural={\glsentryplural{community}}
}
\begin{document}

View File

@ -29,3 +29,9 @@
}
\hypersetup{
pdfauthor={\author{}},
pdftitle={\title{}},
colorlinks=false,
hidelinks
}

View File

@ -2,6 +2,10 @@
\usepackage{graphicx}
\usepackage{changepage}
\usepackage{nameref}
\usepackage{hyperref}
\usepackage[toc]{glossaries}
\makenoidxglossaries
\newcounter{secautolabel}
\AddtoDoHook{heading/endgroup}{\setautolabel}

View File

@ -10,20 +10,22 @@
\pagestyle{scrheadings}
\ohead{\title}
%\chead{\chaptertitle}
\ihead{\chaptertitle}
\AtBeginDocument{
\maketitle
\clearpage
\tableofcontents
\ohead{\title}
%\chead{\chaptertitle}
\ihead{\chaptertitle}
\clearpage
}
\AtEndDocument{
\cleardoublepage
\printbibliography
\printbibliography[heading=bibintoc]
\printnoidxglossaries
}
% biblatex is special as it does some weird things

View File

@ -2,4 +2,4 @@
\section{Oh}
\Blindtext
\section{No}
OH NO\cite{foo1999}
OH NO \cite{foo1999} so many \glspl{community}!