From: Juergen Spitzmueller Date: Sun, 24 Jun 2018 08:23:30 +0000 (+0200) Subject: tex2lyx: check for \maketitle also if other titlename is specified X-Git-Tag: lyx-2.4.0dev-acb2ca7b~3355 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=087a43ee1fd63838a65e43204cd690fcc3985e76;p=features.git tex2lyx: check for \maketitle also if other titlename is specified Beamer for instance supports \maketitle, although we use \makebeamertitle --- diff --git a/src/tex2lyx/text.cpp b/src/tex2lyx/text.cpp index 55d2d9fe7c..c334de5c5c 100644 --- a/src/tex2lyx/text.cpp +++ b/src/tex2lyx/text.cpp @@ -3652,7 +3652,7 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer, } else if (t.cs() == "makeindex" - || (t.cs() == context.textclass.titlename() + || ((t.cs() == "maketitle" || t.cs() == context.textclass.titlename()) && context.textclass.titletype() == TITLE_COMMAND_AFTER)) { if (preamble.titleLayoutFound()) { // swallow this