etoolbox icon indicating copy to clipboard operation
etoolbox copied to clipboard

\do will get undefined in koma script

Open mowgli opened this issue 4 years ago • 2 comments

When using koma script, the \do macro is used internally for example in \chapter code and can end in \relax. That means that \renewcommand*\do…, as described in various list commands, will end in subtle errors.

Using \def\do#1… will help. So please update at least the documentation. Maybe there is another way to make it more robust.

mowgli avatar Apr 23 '21 23:04 mowgli

I had a chat to a few other people and it seems there is agreement that this is confusing.

josephwright avatar Apr 26 '21 14:04 josephwright

Hi,

Am Mo den 26. Apr 2021 um 15:14 schrieb Joseph Wright:

I had a chat to a few other people and it seems there is agreement that this is confusing.

Tell me what I can do to clearify.

For example scrbook does use \do for its own purpose and after a \chapter{...} it gets undefined so \renewcommand\do[1]{...} does error out.

I currently fixed that by using \def\do##1{...} instead, which doesn't care about defined or not. But using the TeX \def is not optimal in LaTeX packages.

Regards Klaus

Klaus Ethgen http://www.ethgen.ch/ pub 4096R/4E20AF1C 2011-05-16 Klaus Ethgen [email protected] Fingerprint: 85D4 CA42 952C 949B 1753 62B3 79D0 B06F 4E20 AF1C

mowgli avatar Apr 26 '21 14:04 mowgli