CTAN Comprehensive TeX Archive Network

Directory macros/latex/contrib/cooking-units




While writing a cookery book, units and their format can be quite troublesome. This contains not only the question of how to print those units, but also the question of the conversion of units. A cookery book doesn't contain only SI units, it contains a much more colorful range of units (kg, dag, g, oz, ... for example) and it may cause some confusion if too many different units are used, but if you just write a cookery book for fun you don't think about this ... until someone (my mother in my case) tells you that it's too confusing.

This package solves both problems: It formats your input and you have the option to convert the units globally or locally using an easy to use key-value system.

Please note that this package is not intended to be used to print units (and numbers) physically correct. It should be used for more light-hearted stuff (like a cookery book for example).


  • expl3 & xparse
  • translations
  • xfrac
  • l3keys2e
  • fmtcount (optional)

This file contains

  • cooking-units.pdf
  • cooking-units.dtx
  • cooking-units.ins


See section 'Change History' in the documentation.

Supported Languages

  • German
  • English
  • French


This material is subject to the Project Public License 1.3c or later. See


for the details of that license.

Download the contents of this package in one zip archive (790.4k).

cooking-units – Typeset and convert units for cookery books and recipes

The package provides commands to typeset amounts and units consistently and offers an easy-to-use key-value syntax to convert one unit into another (for example ‘dag’ to ‘g’; see the documentation for more examples).

This packages requires expl3 and xparse, translations, xfrac, l3keys2e, and, optionally, fmtcount.

Version3.00 2022-12-10
LicensesThe Project Public License 1.3c
Copyright2016–2022 Ben Vitecek
MaintainerBen Vitecek
Contained inTeX Live as cooking-units
MiKTeX as cooking-units
Experimental 3
Guest Book Sitemap Contact Contact Author