Commit 81835394 by Christian Hoffmann

fixes for new version of acro

parent d2fb1e49
......@@ -71,7 +71,7 @@
\usepackage[
makeroom % extend equation appropriately
]{cancel} % for elimating arrows in equations
\usepackage{chemfig} % package for drawing molecules
%\usepackage{chemfig} % package for drawing molecules
\usepackage{chemmacros} % package for chemistry
\usepackage{courier} % courier font for lstlistings
\usepackage[
......@@ -170,10 +170,6 @@
% LISTS OF SYMBOLS AND ABBREVIATIONS AND INDEX
%------------------------------
\usepackage[
hyperref=true, % link abbreviations
index=true, % add abbreviations to the index register
only-used=false, % print only those used in the text
sort=true, % sort the abbreviations
]{acro} % package for list of abbreviations
\usepackage{imakeidx} % package for keyword index
\usepackage[
......
......@@ -59,17 +59,24 @@
}{\iflanguage{ngerman}{
\newcommand{\abbrevname}{Abkürzungsverzeichnis}}{}
}
\DeclareAcroListStyle{longtabu}{table}{
table=longtabu,
table-spec=>{\sffamily\bfseries}p{\myabbrevlength}X@{},
before={%
\setlength{\tabulinesep}{0.8\parskip}%
\setlength{\topsep}{0pt}%
\setlength{\LTpre}{0pt}%
\setlength{\LTpost}{0pt}%
}
\NewAcroTemplate[list]{dbtalongtabu}{
\AcroNeedPackage{array}%
\setlength{\tabulinesep}{0.8\parskip}%
\acronymsmapF{%
\AcroAddRow{%
\acrowrite{short} & \acrowrite{list} \acropagefill \tabularnewline
}
}
{\AcroRerun}%
\acroheading
\acropreamble
\begin{tabu}{>{\bfseries\sffamily}p{\myabbrevlength}X@{}}
\AcronymTable
\end{tabu}
}
\acsetup{list-style=longtabu}
\acsetup{
index/use=true, % add abbrevs to index
make-links=true} % make links for abbrevs
%------------------------------
% TODOS
%------------------------------
......
%------------------------------
% NUMERICS
%------------------------------
\DeclareAcronym{ab}{
\DeclareAcronym{ab}{%
short={ab},
long={\textbf{a}ctive \textbf{b}ound},
short-plural={s},
short-plural-form={abs},
long-plural={s},
long-plural-form={\textbf{a}ctive \textbf{b}ounds},
class={Numerics},
}
\DeclareAcronym{dae}{
tag={Numerics},
}%
\DeclareAcronym{dae}{%
short={DAE},
long={\textbf{D}ifferential-\textbf{a}lgebraic \textbf{e}quation (system)},
short-plural={s},
short-plural-form={DAEs},
long-plural={s},
long-plural-form={\textbf{D}ifferential-\textbf{a}lgebraic \textbf{e}quation (systems)},
class={Numerics},
}
tag={Numerics},
}%
%------------------------------
% SOFTWARE
%------------------------------
\DeclareAcronym{sundials}{
short={SUNDIALS},
long={\textbf{Su}ite of \textbf{n}onlinear and \textbf{di}fferential-\textbf{al}gebraic equation \textbf{s}olvers},
class={Software},
tag={Software},
}
\ No newline at end of file
......@@ -2,12 +2,12 @@
\chapter*{\abbrevname}
\addcontentsline{toc}{chapter}{\abbrevname} % add to the toc
If the horizontal space is too small or too large for you abbreviations, change the allocated space by entering the longest abbreviation in the \verb+\settowidth{}+\index{Commands!settowidth@\verb+\settowidth{}+} command in \path{f_Abbreviations.tex}.
%------------------------------
% COLUMN WIDTH
%------------------------------
\settowidth{\myabbrevlength}{SUNDIALS}
\printacronyms[
include-classes=Numerics, % include this class
name=Numerics, % name
]
\printacronyms[
include-classes=Software, % include this class
name=Software, % name
]
%------------------------------
% LIST(S) OF ABBREVIATIONS
%------------------------------
\printacronyms[template=dbtalongtabu, sort=true, include={Numerics}, heading=section*, name=Numerics]
\printacronyms[template=dbtalongtabu, sort=true, include={Software}, heading=section*, name=Software]
\ No newline at end of file
......@@ -476,7 +476,8 @@ For important equations, you might want to use a box:
\boxed{E = mc^2} \label{eqn:Gleichung}
\end{equation}
\subsection{Acronyms and Abbreviations}
Abbreviations are defined in \path{e_AbbreviationDefinitions.tex}\index{Files!e\_AbbreviationDefinitions.tex} using the \verb+acro+\index{Packages!acro@\verb+acro+} package. New abbreviations must typically be explained at their first appearance in the text. The \verb+\ac+\index{Commands!ac@\verb+\ac{}+} command uses the defined acronyms (see List of Abbreviations) for doing that. For example, the \ac{sundials} is explained here, but not afterwards because \ac{sundials} was already defined. It seems to be more to write, but thus you make sure that an abbreviations is explained only at its first appearance \dots\ even if you change your text completely. In addition, you link your abbreviations to the List of Abbreviations. The \verb+acro+\index{Packages!acro@\verb+acro+} package also contains specific commands for the plural of the long and the short form of the abbreviations; check the documentation for more information. Moreover, the abbreviations are automatically added to the Index. Note that expressions, such as e.g.~or i.e., \emph{should not} be added to the List of Abbreviations.
Abbreviations are defined in \path{e_AbbreviationDefinitions.tex}\index{Files!e\_AbbreviationDefinitions.tex} using the \verb+acro+\index{Packages!acro@\verb+acro+} package. New abbreviations must typically be explained at their first appearance in the text. The \verb+\ac+\index{Commands!ac@\verb+\ac{}+} command uses the defined acronyms (see List of Abbreviations) for doing that. For example, the \ac{sundials} is explained here, but not afterwards because \ac{sundials} was already defined. It seems to be more to write, but thus you make sure that an abbreviations is explained only at its first appearance \dots\ even if you change your text completely. In addition, you link your abbreviations to the List of Abbreviations. The \verb+acro+\index{Packages!acro@\verb+acro+} package also contains specific commands for the plural of the long and the short form of the abbreviations; check the documentation for more information. Moreover, the abbreviations are automatically added to the Index. Note that expressions, such as e.g.~or i.e., \emph{should not} be added to the List of Abbreviations.\\
You can define several tags with the \verb+acro+\index{Packages!acro@\verb+acro+} package as has here been done for \ac{dae} or \ac{ab}.
\subsection{References}\label{subsec:references}
\LaTeX\ -- or more precisely \verb+biber+\index{Scripts!biber@\verb+biber+} -- includes literature if it is stored as \path{.bib} file. It is however not recommended to manually write in \path{.bib} files, but one should use a program for administrating literature. Examples of such programs are Mendeley or Jabref (\autoref{fig:jabref}). In Jabref, one can add literature via the DOI or the ISBN. Furhermore, it offers templates for all standard document classes, such as articles, books, online references, and more.\\
In the following, a few examples of the authoryear short reference are stated. For more information, the reader is referred to the documentation of the \verb+biblatex+\index{Packages!biblatex@\verb+biblatex+} package. \verb+Biblatex+ and \verb+biber+\index{Scripts!biber@\verb+biber+} are used because they are compatible with UTF8. Hence, Umlaute, such as ä, do not have to be rewritten as was the case in bibtex. In addition, \verb+biblatex+ supports editing of the citation style via \TeX\ and \LaTeX\ commands. Hence, the tedious editing of bibliography styles (\path{.bst} files), which were used with bibtex, is not necessary anymore.
......@@ -499,14 +500,14 @@ These commands are used as
\end{itemize}
\myfigure[tbh][1.0]{Example_jabref}[Jabref]{Jabref}[fig:jabref]
\begin{figure}[tbh]
\setchemfig{atom sep=20pt}
\centering
\chemnameinit{\chemfig{R-[:30]=[:-30]}}
\schemestart
\chemname[2ex]{\chemfig{R-[:30]=[:-30]}}{olefin}\+ \chemname{\ch{CO}/\ch{H_2}}{synthesis gas}\arrow(.base east--.base west){->[\footnotesize catalyst][]}
\chemname{\chemfig{R-[:30]-[:-30]-[:30](-[:-30]H)=[:90]O}}{linear aldehyde} \quad or \quad \chemname{\chemfig{R-[:30](-[:-30])-[:90](-[:30]H)=[:150]O}}{branched aldehyde}
\schemestop
\chemnameinit{}
% \setchemfig{atom sep=20pt}
% \centering
% \chemnameinit{\chemfig{R-[:30]=[:-30]}}
% \schemestart
% \chemname[2ex]{\chemfig{R-[:30]=[:-30]}}{olefin}\+ \chemname{\ch{CO}/\ch{H_2}}{synthesis gas}\arrow(.base east--.base west){->[\footnotesize catalyst][]}
% \chemname{\chemfig{R-[:30]-[:-30]-[:30](-[:-30]H)=[:90]O}}{linear aldehyde} \quad or \quad \chemname{\chemfig{R-[:30](-[:-30])-[:90](-[:30]H)=[:150]O}}{branched aldehyde}
% \schemestop
% \chemnameinit{}
\caption[Hydroformylation reaction scheme]{Hydroformylation reaction scheme to demonstrate the two chemistry packages}\label{fig:template_chemical_reaction}
\end{figure}
\subsection{Chemistry and Chemical Reactions}
......
\ACRO{total-barriers}{1}
\ACRO{usage}{ab=={1}||dae=={1}||sundials=={2}}
\ACRO{pages}{sundials=={51@1@24}||dae=={51@1@24}||ab=={51@1@24}}
\ACRO{barriers}{}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment