Skip to content
Snippets Groups Projects
Commit 4ba0a0c7 authored by Jan Wille's avatar Jan Wille
Browse files

cleanup package lists

parent ac2cdc4f
No related branches found
No related tags found
No related merge requests found
...@@ -435,6 +435,7 @@ http://www.latex-project.org/lppl.txt ...@@ -435,6 +435,7 @@ http://www.latex-project.org/lppl.txt
% \item[amsmath,amssymb,amsfonts] more options when typesetting math % \item[amsmath,amssymb,amsfonts] more options when typesetting math
% \item[lmodern] sets up the Latin-Modern font % \item[lmodern] sets up the Latin-Modern font
% \item[setspace] used for configuring linespacing % \item[setspace] used for configuring linespacing
% \item[enumitem] more powerfull item-lists and enumerations
% \end{packages} % \end{packages}
% %
% There are also some packages for internal functionalaty that shouln't conserne the % There are also some packages for internal functionalaty that shouln't conserne the
...@@ -454,10 +455,18 @@ http://www.latex-project.org/lppl.txt ...@@ -454,10 +455,18 @@ http://www.latex-project.org/lppl.txt
% \item[todonotes] loaded depending on \opt{todos} % \item[todonotes] loaded depending on \opt{todos}
% \end{packages} % \end{packages}
% %
% \subsection{Pre-configured Packages} % \subsection{Pre-configured, but not loaded Packages}
% These packages are coonfigured by the class to work in a cooperative way. The % These packages are coonfigured by the class to work in a cooperative way. The
% user must load them in this preable via |\usepackage|\marg{pkg-name} however, as % user must load them manually in this preable via |\usepackage|\marg{pkg-name},
% loading them allways bears additional, unnecicary overhead. % as loading them allways bears additional, unnecicary overhead.
% \begin{packages}
% \item[biblatex] create a bibliography
% \item[siunitx] use units in text and equations
% \item[listings] typset sourcecode snippets
% \item[csvsimple] import csv-files into tables
% \item[pgfplots / tikz] A powerfull package for drawing and plotting data
% \item[circuitikz] A TikZ libary for drawing circuits
% \end{packages}
% %
% %
% \StopEventually{^^A % \StopEventually{^^A
...@@ -960,12 +969,12 @@ http://www.latex-project.org/lppl.txt ...@@ -960,12 +969,12 @@ http://www.latex-project.org/lppl.txt
% %
% \subsubsection{Generally usefull packages} % \subsubsection{Generally usefull packages}
% %
% We load \pkg{hyperref} for clikable links and configure it to write meta-date to % We load \pkg{hyperref} for clickable links, a interacitve document outline
% the PDF. % in the PDF and configure it to write meta-date to the PDF.
% \begin{macrocode} % \begin{macrocode}
%<*!standalone>
\RequirePackage[hidelinks]{hyperref} % must load before `bookmarks' \RequirePackage[hidelinks]{hyperref} % must load before `bookmarks'
\RequirePackage{bookmark} \RequirePackage{bookmark}
%<*!standalone>
\AtBeginDocument{ \AtBeginDocument{
\hypersetup{ \hypersetup{
pdfinfo={ pdfinfo={
...@@ -976,19 +985,42 @@ http://www.latex-project.org/lppl.txt ...@@ -976,19 +985,42 @@ http://www.latex-project.org/lppl.txt
} }
} }
} }
\PassOptionsToPackage{hyperref}{xcolor}
%</!standalone> %</!standalone>
% \end{macrocode} % \end{macrocode}
% %
% The \pkg{hyperref} package has a problem when linking to images,
% clicking a linke to one leads to the \emph{bottom} of the float
% (where the caption is located), instead of to the \emph{top}.
% Loading the \pkg{captoion} package with the \opt{hypercap} option
% fixes that.
% \begin{macrocode}
\RequirePackage[hypcap=true]{caption}
% \end{macrocode}
%
% To display images (mostly through the |\includegraphics| command)
% we require the \pkg{graphicx} package.
% \begin{macrocode}
\RequirePackage{graphicx}
% \end{macrocode}
%
% The \pkg{ams} family of packages containes a wide collection of math
% related commands that are generally usefull.
% \begin{macrocode}
\RequirePackage{amsmath,amssymb,amsfonts}
% \end{macrocode}
%
% The \pkg{todonotes} package is greate for anotation, but extremly expensive on % The \pkg{todonotes} package is greate for anotation, but extremly expensive on
% compiletime. So we load it only if the user requests it. Also its commands are % compiletime. So we load it only if the user requests it. Also its commands are
% stubed, so that they can be left in the sourcecode and jut not output anything. % stubed, so that they can be left in the sourcecode and jut not output anything.
% \begin{macrocode} % \begin{macrocode}
\if@todos \if@todos
\PassOptionsToPackage{ \PassOptionsToPackage{svgnames}{xcolor}
\AtBeginOfDocument{\RequirePackage{xcolor}}
\RequirePackage[
textsize=small, textsize=small,
figwidth=.6\textwidth figwidth=.6\textwidth
}{todonotes} ]{todonotes}
\RequirePackage{todonotes}
\else \else
\newcommand{\listoftodos}[1]{} \newcommand{\listoftodos}[1]{}
\newcommand{\todo}[2][]{} \newcommand{\todo}[2][]{}
...@@ -996,11 +1028,9 @@ http://www.latex-project.org/lppl.txt ...@@ -996,11 +1028,9 @@ http://www.latex-project.org/lppl.txt
\fi \fi
% \end{macrocode} % \end{macrocode}
% %
% Some more micalanious packages:
% \begin{macrocode} % \begin{macrocode}
\RequirePackage[hypcap=true]{caption} \RequirePackage{xcolor}
\RequirePackage{graphicx}
\RequirePackage{amsmath,amssymb,amsfonts}
\RequirePackage[svgnames]{xcolor}
% \end{macrocode} % \end{macrocode}
% %
% \subsubsection{Options for packages that could be loaded by the user} % \subsubsection{Options for packages that could be loaded by the user}
......
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment