Verified Commit bb11b72b authored by Alexander Povel's avatar Alexander Povel
Browse files

Fix 'abs' macro indexing

parent c7a33f50
Pipeline #92049 passed with stages
in 8 minutes and 4 seconds
......@@ -46,7 +46,7 @@
unit={--},
}
@entry{abs,
name={\ensuremath{\abs*{\symbolplaceholder}}},
name={\ensuremath{\absfmt*{\symbolplaceholder}}},
description={Absolute of \symbolplaceholder},
unit={\symbolplaceholder},
}
......@@ -260,7 +260,7 @@ and as such, this document relies on a couple custom macros in place of it, see
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 &
......
......@@ -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}}}
......
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