CTAN Comprehensive TeX Archive Network

Directory macros/latex/contrib/clefval



Authors: Yvon Henel, aka Le nicien de surface (contact) and Josselin Noirel.


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

See https://www.latex-project.org/lppl.txt for the details of that license.

© 2020 Yvon Henel (Le nicien de surface)

Description of the Package

clefval.sty provides two macros \TheKey and \TheValue to define then use pairs of key/value and gives a semblance of hash.

Examples provided

  • example.pdf from example.tex , English version of the following.
    • exemple.pdf from exemple.tex (French): 8bit encoded legacy file using package engpron together with clefval.
    • example-utf8.pdf from example-utf8.tex with pdflatex . The source can also be processed with lualatex and xelatex . The then created pdf-s will contain an additionnal text for pdflatex cannot by default process a key written in cyrillic alphabet.


Version 0.1 — 2020-07-27 — adapted to utf-8 encoded source

Version 0 — 2004-05-22 — first public version

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

clefval – Key/value support with a hash

This package provides only two macros viz. \TheKey and \TheValue to define then use pairs of key/value and gives a semblance of a hash. Syntax: \TheKey{key}{value} to define the value associated to the key, does not produce text; \TheValue{key} to return the value linked to the key. Both arguments of \TheKey are ‘moving’ as defines the term and we have sometimes to protect them.

LicensesThe Project Public License 1.3c
MaintainerYvon Henel
Contained inTeX Live as clefval
MiKTeX as clefval
Guest Book Sitemap Contact Contact Author