From 087a43ee1fd63838a65e43204cd690fcc3985e76 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Sun, 24 Jun 2018 10:23:30 +0200 Subject: [PATCH] tex2lyx: check for \maketitle also if other titlename is specified Beamer for instance supports \maketitle, although we use \makebeamertitle --- src/tex2lyx/text.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.2