Skip to content

A LaTeX package that provides commands for frequently used symbols in mathematics

License

Notifications You must be signed in to change notification settings

KlausHerrmann/khermiscLaTeX

Repository files navigation

khermiscLaTeX

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:

  1. It provides an accessible interface for commonly used symbols, and most importantly
  2. 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:

  1. ℙ (probability),
  2. ℙ(A) (probability of event A),
  3. X (law of random varialbe X), and
  4. 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:

  1. \Prob: ℙ,
  2. \Prob[A]: ℙ(A),
  3. \Prob[][X]: ℙX, and
  4. \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).

Package options

The available symbols are grouped by different subjects.

  1. laws: Probability laws of distribution functions (normal, exponential, Bernoulli, ...)
  2. sets: Notation for sets (ℕ, ℤ, ℚ, ℝ, ℂ, ...)
  3. measure: Measure theory (Borel sigma field, Lebesgue measure, ...)
  4. prob: Probability (expectation, independence, convergence in probability, ...)
  5. real: Real analysis (Euler's number, argmin, norm, indicator function, ...)
  6. complex: Complex analysis (imaginary number, real and imaginary part, ...)
  7. bold: Bold symbols Latin and Greek
  8. cal: Calligraphic symbols Latin

Installation

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.

Includes

The package loads the following packages via \RequirePackage:

  1. amsmath
  2. amsfonts
  3. bm
  4. calligra
  5. mathrsfs
  6. dsfont
  7. xparse

Contribute

To add a new symbol one needs to

  1. define the symbol in the sty file, and then
  2. add an entry to the khermisc_symbolList.xml file.
  3. Then one needs to run createDefinitionTables.sh to produce the LaTeX LatexDefinitionTable.tex file.
  4. Finally, this needs to be compiled and the resulting LatexDefinitionTable.pdf needs to be added to the repository.

About

A LaTeX package that provides commands for frequently used symbols in mathematics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published