I am using \usepackage{acronym} in my nomenclature. However, as I have to include a lot of chemistry in my report, it seems like the preamble setup result in the TOC showing the full acronym, even though the acronym is used in the text before it is used in the headline. So it seems as if the TOC is working separate from the text, which it should not.
\documentclass[a4paper,11pt,fleqn,twoside,openright]{memoir}
\usepackage[english]{babel}
\usepackage{graphicx}
\usepackage{pdfpages}
\usepackage{multirow}
\usepackage{float}
\usepackage{subcaption}
\usepackage{acronym}
\usepackage{amsmath,amssymb,stmaryrd}
\usepackage{xfrac}
\usepackage[version=4]{mhchem}
\usepackage{eurosym}
\usepackage[round]{natbib}
\bibliographystyle{0.Litteraturliste/harvard}
\usepackage{listings}
\usepackage[shortlabels]{enumitem}
\usepackage[colorlinks]{hyperref}
\hypersetup{colorlinks = true,
linkcolor = black,
citecolor = black,
urlcolor = black}
\setsecnumdepth{subsubsection}
\settocdepth{section}
\setlrmarginsandblock{3.5cm}{2.5cm}{*}
\setulmarginsandblock{2.5cm}{3.0cm}{*}
\checkandfixthelayout
\setlength{\parindent}{0mm}
\setlength{\parskip}{2mm}
\linespread{1,1}
\captionstyle{\centering}
\captionwidth{\linewidth}
\usepackage{transparent}
\newif\ifchapternonum
\makechapterstyle{jenor}{
\renewcommand\beforechapskip{0pt}
\renewcommand\printchaptername{}
\renewcommand\printchapternum{}
\renewcommand\printchapternonum{\chapternonumtrue} \renewcommand\chaptitlefont{\fontfamily{pbk}\fontseries{db}\fontshape{n}\fontsize{20}{30}\selectfont\raggedright} \renewcommand\chapnumfont{\fontfamily{pbk}\fontseries{m}\fontshape{n}\fontsize{0.7in}{0in}\selectfont\color{black}\transparent{0.6}}
\renewcommand\printchaptertitle[1]{%
\noindent
\ifchapternonum
\begin{tabularx}{\textwidth}{X}
{\let\\\newline\chaptitlefont ##1\par}
\end{tabularx}
\par\vskip-2.5mm\hrule
\else
\begin{tabularx}{\textwidth}{Xl}
{\parbox[b]{\linewidth}{\chaptitlefont ##1}} & \raisebox{-15pt}{\chapnumfont \thechapter}
\end{tabularx}
\par\vskip2mm\hrule
\fi
}
}
\chapterstyle{jenor}
\makepagestyle{Uni}
\makepsmarks{Uni}{%
\createmark{chapter}{left}{shownumber}{}{. \ }
\createmark{subsubsection}{right}{shownumber}{}{. \ }
\createplainmark{toc}{both}{\contentsname}
\createplainmark{lof}{both}{\listfigurename}
\createplainmark{lot}{both}{\listtablename}
\createplainmark{bib}{both}{\bibname}
\createplainmark{index}{both}{\indexname}
\createplainmark{glossary}{both}{\glossaryname}
}
\makeevenhead{Uni}{}{}{\leftmark}
\makeoddhead{Uni}{\rightmark}{}{}
\makeevenfoot{Uni}{\thepage}{}{}
\makeoddfoot{Uni}{}{}{\thepage}
\makeheadrule{Uni}{\textwidth}{0.5pt}
\makefootrule{Uni}{\textwidth}{0.5pt}{1mm}
\copypagestyle{Unichap}{Uni}
\makeoddhead{Unichap}{}{}{}
\makeevenhead{Unichap}{}{}{}
\makeheadrule{Unichap}{\textwidth}{0pt}
\aliaspagestyle{chapter}{Unichap}
\pagestyle{Uni}
\begin{document}
\input{1.Formalia/Titelblad}
\cleardoublepage
\phantomsection
\pdfbookmark[0]{Indholdsfortegnelse}{indhold}
\tableofcontents*
\addtocontents{toc}{\vskip -0.8cm}
\addtocontents{lof}{\vskip -0.3cm}
\raggedbottom
\cleardoublepage
\frontmatter
\input{1.Formalia/acro_list}
\mainmatter
\input{2.TEXT/TEXT}
\end{document}
1.Formalia/Titelblad
\phantomsection \thispagestyle{empty} \begin{center} \begin{tabular}{c} {\HUGE\textbf{A nature-based solution to remove}} \ {\HUGE\textbf{hydrogen sulphide}} \end{tabular}
\end{center} \hrulefill \begin{center} \begin{tabular}{lcl} & Master thesis & \
& Department of the Built Environment & \ & Aalborg University & \end{tabular}
\end{center} \textbf{Number of pages} & & XX \ \end{tabular} \begin{center}{\footnotesize\itshape The present report with source references and appendix is not allowed published without prior written approval from either the thesis author, supervisors or external partners. Moreover, the thesis content is not allowed to be employed for commercial purposes without written approval.} \end{center}
1.Formalia/acro_list
\chapter{Nomenclature} \begin{acronym}[MPC] \acro{H_{2}S}[\ce{H_{2}S}]{Hydrogen sulphide} \acro{HS^{-}}[\ce{HS^{-}}]{Bi-sulphide} \acro{S^{2-}}[\ce{S^{2-}}]{Sulphide ion} \acro{SO_{4}^{-2}}[\ce{SO_{4}^{-2}}]{Sulphate} \end{acronym}
2.TEXT/TEXT
\chapter{Towards a sustainable future} Sewers have been found to release greenhouse gases, and some attention has been on the release of \ac{CH_{4}} due to anaerobic processes, however, it seems likely that \ac{N_{2}O} can also be released when \ac{H_{2}S} is managed by addition of \ac{NO_{3}^{-}}. Hence a holistic approach is required where the treatment plant is not seen isolated but as integrated with the treatment plant. This also holds true when addressing why \ac{N_{2}O} emissions vary in a treatment plant, as loadings from the network vary in time, for example in terms of \ac{CH_{4}}, \ac{COD} and flow. \chapter{\ac{H_{2}S} in the sewer system} \ac{H_{2}S} is a pervasive malodorous compound that causes concrete and metal corrosion (Figure \ref{fig:INTROCorrosion}) \citep{Svovlbrintehandbogen, Shypanski2018, JesAsbjornBog, Kiilerich-Kinetics, Zdeb2008, Kiilerich-Precipitation}. A survey from 2016 showed that 39 of the 41 participating Danish water utilities had experienced \ac{H_{2}S}-related issues \citep{DANVAGRUNDFOS}. The presence of \ac{H_{2}S} can be a significant nuisance to the surroundings and cause public dissatisfaction. \cite{DANVAGRUNDFOS} estimated, that the utilities spent an average of six hours per month handling odour complaints with just over half of the utilities having it as a service goal \citep{DANVAGRUNDFOS}. Although the generation of \ac{H_{2}S} can occur in any section of the wastewater conveyance networks, the application of force mains, and the possible anaerobic conditions that follow, are considered to be the main source \citep{Shypanski2018, JesAsbjornBog}. Under anaerobic conditions, \ac{SO_{4}^{-2}} present in the wastewater is reduced to \ac{S^{2-}}, by the \ac{SR} microorganisms residing in the biofilms found on the sewer structure and the sediment, and \ac{H_{2}S} is produced. The build-up of \ac{H_{2}S} in the system is partly released to the surroundings when the wastewater depressurises at the end of the force main (Figure \ref{fig:H2S-Skitse}) \citep{Despot2021, JesAsbjornBog, Kiilerich-Kinetics}. \section{The \ac{S^{2-}} production in the anaerobic biofilm} In sewers, biofilms are an extracellular matrix, consisting of polymeric substances excreted by the microorganisms living within it, adhering to the submerged inner surface of the sewer wall and the bottom sediment \citep{OxyChem, Shiba, JesAsbjornBog, Despot2021, Victoria2021}. Biofilm can also be found on moist surface areas, such as areas that are exposed to the water phase, resulting either from capillary forces or condensation of the high humidity in the sewer air \citep{JesAsbjornBog}. The gelatinous biofilm can be compartmentalised into different zones depending on the presence and concentration of electron acceptors \citep{JesAsbjornBog, ZHANG20081, Svovlbrintehandbogen}.
Hope you can help me fix this :-)
When using \ac*{} in all the headline instead of \ac{}, the following happen:
When adding the following changes in the preamble:
\usepackage[version=4]{mhchem}
\mhchemoptions{font=sf}
The \Ac{} and \ac{} string does not produce the expanded acronym with the acronym in brackets, when the acronym is first utilised, as shown on the picture.
I do not know If this is because I have a list of tables and a list of figures before the actual text, which makes the caption the first acronym appearance or if the chapter headline function as the first appearance.
Draft document with the necessary information about the document setup.
\documentclass
and end with\end{document}
, a Minimal Working Example (MWE) please. It makes copy and pasting easier when the code can be compiled and also we do not need to guess what commands or packages you are using. Your code cannot compile as it is, help people help you as I am sure this is easily solvedtoc
, so are the entries for chapter 2 and section 2.1 the same as the titles you entered?ion
to thesulfide
in the title of section 2.1. There aresulfide ions
produced in the biofilm. Sulfide is not a substance on its own, but part of one.