Skip to content

Commit

Permalink
Fix 'abs' macro indexing
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpovel committed Nov 11, 2020
1 parent c7a33f5 commit bb11b72
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bib/glossaries/symbols/other.bib
Expand Up @@ -46,7 +46,7 @@ @entry{vector
unit={--},
}
@entry{abs,
name={\ensuremath{\abs*{\symbolplaceholder}}},
name={\ensuremath{\absfmt*{\symbolplaceholder}}},
description={Absolute of \symbolplaceholder},
unit={\symbolplaceholder},
}
2 changes: 1 addition & 1 deletion chapters/mainmatter/base-features.tex
Expand Up @@ -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 &
Expand Down
6 changes: 5 additions & 1 deletion cookbook.cls
Expand Up @@ -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
Expand Down Expand Up @@ -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}}}
Expand Down

0 comments on commit bb11b72

Please sign in to comment.