Commit f1803d3b authored by Alexander Povel's avatar Alexander Povel
Browse files

Add new bib entries for built-in math macros

Also adjust these macros to the new bib entries
parent 13ddfa44
% Math operators
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Math Operators:
% REQUIRED for the built-in macros
% to work (\deriv, \vect etc.)!
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@entry{derivative,
name={\derivativefmt{\symbolplaceholder}},
description={infinitesimal change in \symbolplaceholder},
......@@ -17,6 +22,26 @@
}
@entry{flow,
name={\flowfmt{\symbolplaceholder}},
description={\symbolplaceholder{} as a flowing quantity},
description={\symbolplaceholder{} as a flow quantity},
unit={\si{\symbolplaceholder\per\second}},
}
@entry{nabla,
name={\nablaoperatorfmt{\symbolplaceholder}},
description={Vector of partial derivatives (Nabla operator) of \symbolplaceholder},
unit={--},
}
@entry{mean,
name={\meanfmt{\symbolplaceholder}},
description={Arithmetic mean of \symbolplaceholder{}},
unit={\symbolplaceholder},
}
@entry{logmean,
name={\logmeanfmt{\symbolplaceholder}},
description={Logarithmic mean of \symbolplaceholder{}},
unit={\symbolplaceholder},
}
@entry{vector,
name={\ensuremath{\vectfmt{x}}},
description={Vector},
unit={--},
}
......@@ -79,6 +79,7 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Coordinates etc.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% REQUIRED for built-in \posderiv to work:
@symbol{first_cart_coord,
name={\ensuremath{x}},
description={First Cartesian coordinate (length)},
......@@ -104,6 +105,12 @@
description={Area},
unit={\si{\meter\squared}},
}
% REQUIRED for built-in \timederiv to work:
@symbol{time,
name={\ensuremath{t}},
description={Time},
unit={\si{\second}},
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Electrical
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
......
......@@ -2315,20 +2315,20 @@
% Time derivative
\newcommand*{\timederiv}[2][]{%
\fracderiv[#1]{#2}{\gls{sym.zeit}}%
\fracderiv[#1]{#2}{\gls{sym.time}}%
}%
% Partial Time derivative
\WithSuffix\newcommand\timederiv*[2][]{%
\fracderiv*[#1]{#2}{\gls{sym.zeit}}%
\fracderiv*[#1]{#2}{\gls{sym.time}}%
}
% Positional derivative
\newcommand*{\posderiv}[2][]{%
\fracderiv[#1]{#2}{\gls{sym.x}}%
\fracderiv[#1]{#2}{\gls{sym.first_cart_coord}}%
}
% Partial Positional derivative
\WithSuffix\newcommand\posderiv*[2][]{%
\fracderiv*[#1]{#2}{\gls{sym.x}}%
\fracderiv*[#1]{#2}{\gls{sym.first_cart_coord}}%
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
......
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