]> git.lyx.org Git - features.git/commitdiff
tex2lyx: check for \maketitle also if other titlename is specified
authorJuergen Spitzmueller <spitz@lyx.org>
Sun, 24 Jun 2018 08:23:30 +0000 (10:23 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Sun, 24 Jun 2018 08:23:30 +0000 (10:23 +0200)
Beamer for instance supports \maketitle, although we use \makebeamertitle

src/tex2lyx/text.cpp

index 55d2d9fe7c775d86f4ffbb3fccd64ff6e39a2f08..c334de5c5ca8781033d5fc7570167197bfdd3b4b 100644 (file)
@@ -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