A LaTeX package that provides commands for frequently used symbols in mathematics, mostly with a focus on mathematical statistics. The package has two main features:
- It provides an accessible interface for commonly used symbols, and most importantly
- it uses the
xparse
package to provide overloaded versions of commonly used functions.
Using overloaded functions leads to a simplified and intuitive syntax. For example, considering the probability of an event there are a number of frequently used notations:
- ℙ (probability),
- ℙ(A) (probability of event A),
- ℙX (law of random varialbe X), and
- ℙX(B) (probability of event B under the law of X).
Using the package we can typeset those options with optional/empty arguments as follows:
\Prob
: ℙ,\Prob[A]
: ℙ(A),\Prob[][X]
: ℙX, and\Prob[B][X]
: ℙX(B).
In the same manner the package implements a number of frequently used functions/operators such as norms, expectation, variance, covariance, standard deviation, etc. See LatexDefinitionTable.pdf for a full list of symbols and their respective LaTeX commands by categories (see Package options).
The available symbols are grouped by different subjects.
laws
: Probability laws of distribution functions (normal, exponential, Bernoulli, ...)sets
: Notation for sets (ℕ, ℤ, ℚ, ℝ, ℂ, ...)measure
: Measure theory (Borel sigma field, Lebesgue measure, ...)prob
: Probability (expectation, independence, convergence in probability, ...)real
: Real analysis (Euler's number, argmin, norm, indicator function, ...)complex
: Complex analysis (imaginary number, real and imaginary part, ...)bold
: Bold symbols Latin and Greekcal
: Calligraphic symbols Latin
Just like any other LaTeX package, the file can be included using \usepackage{khermisc}
in the preamble with the relevant options in square brackets, for example, \usepackage[complex]{khermisc}
.
To use the package the file has to be either in the same directory as the LaTeX file, or in a central location where the sty
files are stored.
On Ubuntu-Linux with a standard TeX Live installation the location could, for example, be /usr/share/texlive/texmf-dist/tex/latex/khermisc/khermisc.sty
.
The package loads the following packages via \RequirePackage
:
amsmath
amsfonts
bm
calligra
mathrsfs
dsfont
xparse
To add a new symbol one needs to
- define the symbol in the
sty
file, and then - add an entry to the
khermisc_symbolList.xml
file. - Then one needs to run
createDefinitionTables.sh
to produce the LaTeXLatexDefinitionTable.tex
file. - Finally, this needs to be compiled and the resulting
LatexDefinitionTable.pdf
needs to be added to the repository.