diff --git a/bib/glossaries/symbols/other.bib b/bib/glossaries/symbols/other.bib index dad9eaf..941b0a8 100644 --- a/bib/glossaries/symbols/other.bib +++ b/bib/glossaries/symbols/other.bib @@ -46,7 +46,7 @@ @entry{vector unit={--}, } @entry{abs, - name={\ensuremath{\abs*{\symbolplaceholder}}}, + name={\ensuremath{\absfmt*{\symbolplaceholder}}}, description={Absolute of \symbolplaceholder}, unit={\symbolplaceholder}, } diff --git a/chapters/mainmatter/base-features.tex b/chapters/mainmatter/base-features.tex index 40695ec..09470bc 100644 --- a/chapters/mainmatter/base-features.tex +++ b/chapters/mainmatter/base-features.tex @@ -260,7 +260,7 @@ \subsubsection{Predefined Macros} Mean & \(\mean{\sym{density}}\), \(\mean{\sym{area}}\) \\ Logarithmic Mean & \(\logmean{\sym{density}}\), \(\logmean{\sym{area}}\) \\ % The starred variant scales automatically: - Absolute\mpfootnotemark[1] & \(\abs*{\sym{density}}\), \(\abs*{\sym{area}}\), \(\abs*{\frac{\sym{area}^{2}}{\sym{area}^{3}}}\) \\ + Absolute\mpfootnotemark[1] & \(\abs{\sym{density}}\), \(\abs{\sym{area}}\), \(\abs{\frac{\sym{area}^{2}}{\sym{area}^{3}}}\) \\ Flow & \(\flow{\sym{mass}}\), \(\flow{\sym{enthalpy}}\) \\ Delta & \(\difference{\sym{volume}}\), \(\difference{\symspec{enthalpy}}\) \\ Nabla Operator & diff --git a/cookbook.cls b/cookbook.cls index 22be2ea..22efe54 100644 --- a/cookbook.cls +++ b/cookbook.cls @@ -106,7 +106,6 @@ \DeclarePairedDelimiter{\parens}{(}{)} \DeclarePairedDelimiter{\brackets}{[}{]} \DeclarePairedDelimiter{\braces}{\{}{\}} - \DeclarePairedDelimiter{\abs}{\lvert}{\rvert}% Absolute value % For a 'cases' environment that also supports equation numbering, % https://tex.stackexchange.com/a/180910/120853 @@ -2223,6 +2222,11 @@ \newcommand*{\logmeanfmt}[1]{\ensuremath{\tilde{#1}}} \newcommand*{\logmean}[1]{\glsdisp{sym.logmean}{\logmeanfmt{#1}}} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% Absolute value +\DeclarePairedDelimiter{\absfmt}{\lvert}{\rvert}% Absolute value +\newcommand*{\abs}[1]{\glsdisp{sym.abs}{\ensuremath{\absfmt*{#1}}}} + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Dotted symbol for flows \newcommand*{\flowfmt}[1]{\ensuremath{\dot{#1}}}