From 1d03cfa8c0920fdf7cc67dbc0ed3fa1bfe6239a7 Mon Sep 17 00:00:00 2001 From: Georg Baum Date: Fri, 17 Dec 2010 21:41:15 +0000 Subject: [PATCH] Increase tex2lyx output format to 293. 289: Use new syntax for index inset 290-291: Nothing to do (empty lyx2lyx conversion) 292: Nothing to do, tex2lyx does not know japanese yet 293: Nothing to do (empty lyx2lyx conversion) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36929 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/tex2lyx/tex2lyx.h | 2 +- src/tex2lyx/text.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/tex2lyx/tex2lyx.h b/src/tex2lyx/tex2lyx.h index af99b51023..5b1e85f2bc 100644 --- a/src/tex2lyx/tex2lyx.h +++ b/src/tex2lyx/tex2lyx.h @@ -114,7 +114,7 @@ extern CommandMap known_math_environments; /// extern bool noweb_mode; /// LyX format that is created by tex2lyx -int const LYX_FORMAT = 288; +int const LYX_FORMAT = 293; /// path of the master .tex file extern std::string getMasterFilePath(); diff --git a/src/tex2lyx/text.cpp b/src/tex2lyx/text.cpp index 6401561729..4833b0ddc9 100644 --- a/src/tex2lyx/text.cpp +++ b/src/tex2lyx/text.cpp @@ -2123,9 +2123,9 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer, else if (t.cs() == "index") { context.check_layout(os); - begin_command_inset(os, "index", "index"); - // LyX cannot handle newlines in a latex command - os << "name " << '"' << subst(p.verbatim_item(), "\n", " ") << '"' << "\n"; + begin_inset(os, "Index\n"); + os << "status collapsed\n"; + parse_text_in_inset(p, os, FLAG_ITEM, false, context); end_inset(os); } -- 2.39.2