[LyX/master] Avoid \@ifundefined after user preamble

Richard Kimberly Heck rikiheck at lyx.org
Sun Jan 10 16:58:42 UTC 2021


On 1/10/21 3:57 AM, Juergen Spitzmueller wrote:
> commit c77ab339c121ba95cb25b6853545eba2780c025c
> Author: Juergen Spitzmueller <spitz at lyx.org>
> Date:   Sun Jan 10 09:55:45 2021 +0100
>
>     Avoid \@ifundefined after user preamble
>     
>     Users might have used \makeatother (#11163).
>     
>     \ifdefined (of e-tex) can be considered available nowadays.

There are other uses of \@ifundefined in lib/layouts/. I'm happy to fix
them, but just to be clear: This construct accepts an \else clause? So
\@ifundefined{#1}{#2} should become:

\ifdefined
#2
\else
#1
\fi

yes?

Riki





More information about the lyx-devel mailing list