Remove the maketitle command

Jürgen Spitzmüller jspitzm at gmail.com
Sun May 21 10:21:02 UTC 2023


Am Sonntag, dem 21.05.2023 um 09:49 +0000 schrieb Ehud Behar:
> In a lyx document, after inserting either title, author or date
> insets, lyx automatically puts a maketitle command after
> begin{document}.
> I want to have in my document a \title{} and an `\author{}` but I
> don't want the `\maketitle`.
> Is there any way to tell LyX not put it at all?

No. 

Alternatively to redefining \maketitle, you could use the
TitleLaTeXName layout tag and set it to a dummy command. E.g., in
Document > Local Layout:

TitleLatexName relax

would output \relax instead of \maketitle, which is equivalent of
outputting nothing.

-- 
Jürgen


More information about the lyx-users mailing list