CTAN Comprehensive TeX Archive Network

New on CTAN: expkv-cs

Date: April 6, 2020 6:52:59 PM CEST
Jonathan P. Spratte submitted the expkv-cs package. Version: 0.2 2020-04-05 License: lppl1.3c Summary description: Define expandable key=val macros using expkv Announcement text:
Version: 0.1 2020-04-04 : expkv-cs provides methods for expandable key=value macros. Two different approaches are provided, one based on splitting the key values into separate arguments, the other by forwarding a single argument which serves as a look up table in which the values can be accessed with the keys' names. Version: 0.2 2020-04-05 Added new hash variant value fetching macros `ekvcValueSplit` and `ekvcValueSplitFast`. With them one can split off a specific key's value as a separate argument if it's needed multiple times.
The package’s Catalogue entry can be viewed at https://ctan.org/pkg/expkv-cs The package’s files themselves can be inspected at http://mirror.ctan.org/macros/generic/expkv-cs/
Thanks for the upload. For the CTAN Team Petra Rübe-Pugliese
CTAN is run entirely by volunteers and supported by TeX user groups. Please join a user group or donate to one, see https://ctan.org/lugs

expkv-cs – Define expandable key=val macros using expkv

This package is a frontend to define expandable macros with key=val arguments. It provides four syntaxes, each of which will define <cs> to take a single key=val argument:

  • ekvcSplit<cs>{<key>=<initial>, ...}{<definition>}
  • ekvcSplitAndForward<cs><cs2>{<key>=<initial>, ...}
  • ekvcHash<cs>{<key>=<initial>, ...}{<definition>}
  • ekvcHashAndForward<cs><cs2>{<key>=<initial>, ...}

Additional keys for each <cs> might be defined using

  • ekvcSecondaryKeys<cs>{<prefix> <key>=<definition>, ...}

expkv-cs is generic code and only requires expkv for its parsing.

A package expkv-cs.sty is included to play nicely on ’s package loading system, but that package is not needed and does not provide more functionality than the generic code in expkv-cs.tex.

Note: In this context, “cs” stands for “control sequence” (i.e.: macro).

Packageexpkv-cs
Version0.6 2020-10-18
Copyright2020 Jonathan P. Spratte
MaintainerJonathan P. Spratte

Announcements

more

Guest Book Sitemap Contact Contact Author