commit 087a43ee1fd63838a65e43204cd690fcc3985e76
Author: Juergen Spitzmueller <[email protected]>
Date: Sun Jun 24 10:23:30 2018 +0200
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 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/tex2lyx/text.cpp b/src/tex2lyx/text.cpp
index 55d2d9f..c334de5 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