CTAN Comprehensive TeX Archive Network

New on CTAN: eoldef

Datum: 16. Juni 2025 12:51:24 MESZ
plante submitted the eoldef package. Version number: 1.0 License type: lppl1.3c Summary description: Define commands which absorb the whole source line as arguments Announcement text:
eoldef is a new package that implements a simple way for commands to absorb a whole line in the source code as its arguments, enabling less verbose markdown-like syntax. It may be used in most tex formats by \input{eoldef}.
This package is located at https://mirrors.ctan.org/macros/plain/eoldef More information is at https://www.ctan.org/pkg/eoldef
Thanks for the upload. For the CTAN Team Erik Braun
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

eoldef – Define commands which absorb the whole source line as arguments

This macro allows you to define commands that take the entire source line as arguments.

Version 1.0
Copyright (C) 2025 plante
This file is relased under the Project Public License (LPPL) 1.3c.

Usage: \eoldef <control sequence> <parameter text> { <replacement text>} defines a control sequence that is delimited by the end-of-line in addition to the specified parameter text.

For instance, \eoldef\test#1:#2{} and

    \test abc:def

will give #1 = abc, #2 = def.

\eoldef is the \global variant to \eoldef.

Like \verb|...|, \eoldef'd commands may generally not be used as part of
another command's argument as it changes catcodes.
However, if you must use it in environments where catcodes are frozen, you
may follow the command with a braced argument, eg. \test{#1:#2} using the previous example.

This package may be used in plain or by \input{eoldef}.

Paketeoldef
Version1.0
Betreuerplante

Ankündigungen

mehr

Gästebuch Seiten-Struktur Impressum Autor kontaktieren