Skip to content

Commit

Permalink
Annotated packages in dgs.cls
Browse files Browse the repository at this point in the history
  • Loading branch information
sesquideus committed Jan 4, 2024
1 parent 5811ab6 commit f70f9fd
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 27 deletions.
33 changes: 16 additions & 17 deletions core/tex/dgs.cls
Original file line number Diff line number Diff line change
Expand Up @@ -22,31 +22,32 @@
%showframe % display visual frame (must be turned off for production)
]{geometry}

\RequirePackage{tikz}
\RequirePackage{amsmath}
\RequirePackage{amssymb}
\RequirePackage{mleftright}
\RequirePackage{siunitx}
\RequirePackage{siunitx} % SI units
\RequirePackage{xparse}
\RequirePackage{enumitem}
\RequirePackage{minted}
\RequirePackage{enumitem} % sets properties for itemize, enumerate, description...
\RequirePackage{minted} % nice rendering of included code
\RequirePackage{lastpage}
\RequirePackage{wasysym}
\RequirePackage{wasysym} % extra symbols for planets, astrology, ...
\RequirePackage{pdftexcmds}
\RequirePackage{xifthen}
\RequirePackage{verbatim}
\RequirePackage{xcolor}
\RequirePackage{float}
\RequirePackage{caption}
\RequirePackage{caption} % fancy formatting of figure and table captions
\RequirePackage{booktabs}
\RequirePackage{titlesec}
\RequirePackage{leftidx}
\RequirePackage{leftidx} % left subscript and superscript
\RequirePackage{afterpage}
\RequirePackage{longtable}
\RequirePackage{graphicx}
\RequirePackage{etoolbox}
\RequirePackage{cancel}
\RequirePackage{cancel} % cancellation of terms in mathematical expressions
\RequirePackage{multicol}
\RequirePackage{fancyhdr}
\RequirePackage{fancyhdr} % fancy header and footer
\RequirePackage{hyphenat}
\RequirePackage{nicefrac}
\RequirePackage{pifont}
Expand All @@ -57,10 +58,10 @@
\RequirePackage{nth}
\RequirePackage{fancyvrb} % fancy verbatim (currently unused)
\RequirePackage{framed}
\RequirePackage[version=4]{mhchem}
\RequirePackage{chemfig}
\RequirePackage[version=4]{mhchem} % chemical formulae in math in \ce{...}
\RequirePackage{chemfig} % complex chemical formulae

\RequirePackage[all]{nowidow}
\RequirePackage[all]{nowidow} % prevent widow and orphan lines
%\RequirePackage{boolexpr} % boolean expressions, switch
\RequirePackage[mathlf]{MinionPro}
\RequirePackage[MnSymbol]{mathspec} % includes fontspec
Expand All @@ -75,7 +76,7 @@
\definecolor{orange}{RGB}{255, 128, 0}

\RequirePackage[
colorlinks = true,
colorlinks = true, % use coloured links
linkcolor = colour-link, % custom Trojsten link colour
urlcolor = colour-url, % custom Trojsten URL link colour
]{hyperref}
Expand All @@ -92,11 +93,9 @@
shorthands=off,
]{babel} % multi-language support
\RequirePackage{xunicode}
\RequirePackage{cleveref}
\RequirePackage[
autostyle,
]{csquotes}
%\RequirePackage{bidi} % keep this off unless building Parsi or Hebrew
\RequirePackage{cleveref} % clever references
\RequirePackage[autostyle]{csquotes} % propr localized quotation marks
%\RequirePackage{bidi} % bidirecitonal support, keep this off unless building Parsi or Hebrew

\RequirePackage[nodisplayskipstretch]{setspace}

Expand Down
14 changes: 4 additions & 10 deletions core/tex/hacks.tex
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
\makeatletter

% Fix bug in pandoc
% fix bug in pandoc where lists are not rendered
\providecommand{\tightlist}{}

% Render percent sign with nice font, not ugly Computer modern
% force rendering the percent sign with nice font, not ugly Computer modern
\mathcode`\%="7025
\DeclareRobustCommand{\%}{\text{\symbol{`\%}}}

Expand All @@ -13,16 +13,13 @@

\setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio}

% Force float placement for figures to H
\floatplacement{figure}{H}

\newcommand\invisiblesubsection[1]{%
\refstepcounter{subsection}%
\addcontentsline{toc}{subsection}{\protect\numberline{\thesubsection}#1}%
\subsectionmark{#1}%
}

% Fix chemfig's collision with babel where -- is interpreted before chemfig
% fix chemfig's collision with babel where "--" is interpreted before chemfig
\pretocmd\schemestart{\shorthandoff{-}}{}{}
\apptocmd\schemestop{\shorthandon{-}}{}{}

Expand Down Expand Up @@ -50,10 +47,7 @@
}
}

\usepackage{tikz,stackengine}
\usepackage{graphicx}
\usepackage{chemfig}
\usepackage{mhchem}
\usepackage{stackengine}
\setstackEOL{\\}

\NewDocumentCommand{\JigsawSide}{m}{
Expand Down

0 comments on commit f70f9fd

Please sign in to comment.