Skip to content

Commit

Permalink
Add new bib entries for built-in math macros
Browse files Browse the repository at this point in the history
Also adjust these macros to the new bib entries
  • Loading branch information
alexpovel committed Jun 9, 2020
1 parent 13ddfa4 commit f1803d3
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 7 deletions.
31 changes: 28 additions & 3 deletions bib/glossaries/symbols/other.bib
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
% 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},
Expand All @@ -17,6 +22,26 @@ @entry{difference
}
@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={--},
}
7 changes: 7 additions & 0 deletions bib/glossaries/symbols/roman.bib
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ @symbol{heat_capacity
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Coordinates etc.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% REQUIRED for built-in \posderiv to work:
@symbol{first_cart_coord,
name={\ensuremath{x}},
description={First Cartesian coordinate (length)},
Expand All @@ -104,6 +105,12 @@ @symbol{area
description={Area},
unit={\si{\meter\squared}},
}
% REQUIRED for built-in \timederiv to work:
@symbol{time,
name={\ensuremath{t}},
description={Time},
unit={\si{\second}},
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Electrical
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Expand Down
8 changes: 4 additions & 4 deletions cookbook.cls
Original file line number Diff line number Diff line change
Expand Up @@ -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}}%
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Expand Down

0 comments on commit f1803d3

Please sign in to comment.