Debian Codegraph @

texmf-dist/tex/generic/eoldef/eoldef.sty

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