Debian Codegraph @

texmf-dist/doc/generic/eoldef/README.md

raw
1 # eoldef
2
3 eoldef: define commands which absorb the whole source line as arguments.
4
5 Usage: `\eoldef <control sequence> <parameter text> { <replacement text> }`
6 defines a control sequence that is delimited by the end-of-line in addition to
7 the specified parameter text. This enables less verbose markdown-like syntax.
8
9 For instance, `\eoldef\test#1:#2{}` and
10
11 \test abc:def
12
13 will give `#1` = `abc`, `#2` = `def`.
14
15 `\eolgdef` is the `\global` variant to `\eoldef`.
16
17 Like `\verb|...|`, `\eoldef`'d commands may generally not be used as part of
18 another command's argument as it changes catcodes.
19 However, if you must use it in environments where catcodes are frozen, you
20 may follow the command with a braced argument, eg. `\test{#1:#2}` using the
21 previous example.
22
23 This package may be used in LaTeX by `\usepackage{eoldef}`, or in plain TeX
24 and other formats by `\input{eoldef}`.
25
26 Copyright (C) 2025 plante
27 Version 1.1
28
29 This package is released under the LaTeX Project Public License (LPPL) 1.3c.