From 4b81252cd6e2a2f56202e3a4690368849ab479f2 Mon Sep 17 00:00:00 2001 From: Kim Wittenburg Date: Sun, 23 Apr 2017 23:14:13 +0200 Subject: [PATCH] Fix Index --- uhhassignment.dtx | 50 ++++++++++++++++++++++++++++++++--------------- 1 file changed, 34 insertions(+), 16 deletions(-) diff --git a/uhhassignment.dtx b/uhhassignment.dtx index 10ece01..e6b66f4 100644 --- a/uhhassignment.dtx +++ b/uhhassignment.dtx @@ -26,13 +26,14 @@ \usepackage[T1]{fontenc} \usepackage[english]{babel} -\usepackage{hyperref} +\usepackage{idxlayout} +\usepackage{hypdoc} \usepackage{enumitem} \usepackage{lmodern} -\EnableCrossrefs \CodelineIndex +\EnableCrossrefs \RecordChanges \begin{document} \DocInput{uhhassignment.dtx} @@ -41,7 +42,7 @@ % \fi -% \CheckSum{0} +% \CheckSum{409} % % \CharacterTable % {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z @@ -62,10 +63,24 @@ % \changes{v1.0}{2017/04/12}{Initial version} % -% \DoNotIndex{\#,\$,\%,\&,\@,\\,\{,\},\^,\_,\~,\ } -% \DoNotIndex{\@ne} -% \DoNotIndex{\advance,\begingroup,\catcode,\closein} -% \DoNotIndex{\closeout,\day,\def,\edef,\else,\empty,\endgroup} +% \DoNotIndex{\#,\$,\%,\&,\@,\\,\{,\},\^,\_,\~,\ ,\relax} +% \DoNotIndex{\@ne,\newif,\fi,\gdef,\let,\newcommand,\renewcommand,\ifdefempty, +% \ifstrempty,\RequirePackage} +% \DoNotIndex{\LoadClassWithOptions,\ClassWarning,\DeclareOption, +% \ExecuteOptions,\ProcessOptions} +% \DoNotIndex{\advance,\begingroup,\catcode,\closein,\begin} +% \DoNotIndex{\end,\closeout,\day,\def,\edef,\else,\empty,\endgroup} +% \DoNotIndex{\newcounter,\arabic,\setcounter,\stepcounter} +% \DoNotIndex{\baselineskip,\headheight,\hfill,\par,\parskip,\setlength,\vspace, +% \widthof} +% \DoNotIndex{\bfseries,\Huge,\footnotesize,\LARGE,\Large,\large,\normalfont, +% \raggedright,\raggedleft,\RedeclareSectionCommands,\scriptsize, +% \setkomafont,\sffamily,\textbf,\textnormal,\textsc,\ttfamily, +% \usekomafont} +% \DoNotIndex{\ifoot,\ihead,\cfoot,\clearpairofpagestyles,\newpagestyle,\color, +% \colorbox,\marginpar,\ofoot,\ohead,\pagestyle,\thispagestyle} +% \DoNotIndex{\pagemark,\pageref} +% \DoNotIndex{\protect,\space} % \title{The \textsf{uhhassignment} document class} % \author{Kim Wittenburg \\ \texttt{5wittenb@informatik.uni-hamburg.de}} @@ -80,6 +95,9 @@ % Hamburg. % \end{abstract} % +% \addcontentsline{toc}{section}{Change History} +% \PrintChanges +% % \tableofcontents % % \section{Usage} @@ -89,16 +107,17 @@ % Currently the \textsf{uhhassignment} class supports three (or rather six) % options: % -% \DescribeMacro{unnumberedsheets} +% \index{unnumberedsheets} % By default the \textsf{uhhassignment} class expects the assignment sheets to % be numbered and issues a warning if the |\sheetno| is missing. However if you % do not want to specify a sheet number you can use the % \texttt{unnumberedsheets} class option to suppress the warning. The package % option also removes any text indicating the sheet number from the output. % +% \index{numberedsheets} % The opposite option \texttt{numberedsheets} is used by default. % -% \DescribeMacro{repeatauthor} +% \index{repeatauthor} % You can specify the \texttt{repeatauthor} class option to display a short % version of the |\author| on each page in the footer (including the first % page). The short version of the author is specified with the |\author| command @@ -106,12 +125,12 @@ % short author as well. By default the short author will not be displayed at % all. % -% \DescribeMacro{shorttitle} +% \index{shorttitle}\index{longtitle} % You can pass \texttt{shorttitle} class option to display the short university % name and short course name in the title. You could also explicitly pass % \texttt{longtitle} which is the default. % -% \DescribeMacro{shortheader} +% \index{shortheader}\index{longheader} % Similarly you cann pass \texttt{shortheader} or \texttt{longheader} to display % the short or regular university and course name in the header on each % subsequent page. @@ -204,17 +223,16 @@ % The |\todo| command does two things: % \begin{enumerate} % \item It puts a todo marker in the text where the |\todo| command is -% specified. The todo marker is defined by the |\todomarker| command. -% \DescribeMacro{\todomarker} +% specified. The todo marker is defined by the |\todomark| command. +% \DescribeMacro{\todomark} % \item It puts a todo note at the page margin so that you can easily spot % open todos in the PDF. The text of the todo note can be customized using % the \meta{todo text} optional argument. % \end{enumerate} % % \StopEventually{ -% \addcontentsline{toc}{section}{Change History} +% \addcontentsline{toc}{section}{Index} % \PrintIndex -% \PrintChanges % } % % \section{Implementation} @@ -295,7 +313,7 @@ \RequirePackage{xcolor} % Colors \RequirePackage{framed} % Colored Boxes -\RequirePackage[colorlinks,linkcolor=black]{hyperref} % Links and References +\RequirePackage[colorlinks,linkcolor=black]{hyperref} % References \RequirePackage{lmodern} % Better Font % \end{macrocode}