Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Axel Dürkop
A Cookbook for LaTeX with git
Commits
f1803d3b
Commit
f1803d3b
authored
Jun 09, 2020
by
Alexander Povel
Browse files
Add new bib entries for built-in math macros
Also adjust these macros to the new bib entries
parent
13ddfa44
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
7 deletions
+39
-7
bib/glossaries/symbols/other.bib
bib/glossaries/symbols/other.bib
+28
-3
bib/glossaries/symbols/roman.bib
bib/glossaries/symbols/roman.bib
+7
-0
cookbook.cls
cookbook.cls
+4
-4
No files found.
bib/glossaries/symbols/other.bib
View file @
f1803d3b
% 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 flow
ing
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=
{
--
}
,
}
bib/glossaries/symbols/roman.bib
View file @
f1803d3b
...
...
@@ -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
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
...
...
cookbook.cls
View file @
f1803d3b
...
...
@@ -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
}}
%
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment