From ac85b252cb56df6eb4a8a5cd4ace3f54e0df817c Mon Sep 17 00:00:00 2001 From: Georg Baum Date: Sun, 19 Dec 2010 15:08:35 +0000 Subject: [PATCH] Increase tex2lyx output format to 296. 296: new syntax of include inset git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36944 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/tex2lyx/tex2lyx.h | 2 +- src/tex2lyx/text.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/tex2lyx/tex2lyx.h b/src/tex2lyx/tex2lyx.h index 1f748de58d..174e5c79b5 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 = 295; +int const LYX_FORMAT = 296; /// path of the master .tex file extern std::string getMasterFilePath(); diff --git a/src/tex2lyx/text.cpp b/src/tex2lyx/text.cpp index b5e02d5a79..09b87be225 100644 --- a/src/tex2lyx/text.cpp +++ b/src/tex2lyx/text.cpp @@ -2492,7 +2492,7 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer, else if (t.cs() == "input" || t.cs() == "include" || t.cs() == "verbatiminput") { - string name = '\\' + t.cs(); + string name = t.cs(); if (t.cs() == "verbatiminput" && p.next_token().asInput() == "*") name += p.get_token().asInput(); @@ -2554,9 +2554,9 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer, os << "\ttemplate XFig\n" << "\tfilename " << outname << '\n'; } else { - begin_inset(os, "Include "); - os << name << '{' << outname - << "}\npreview false\n"; + begin_command_inset(os, "include", name); + os << "preview false\n" + "filename \"" << outname << "\"\n"; } end_inset(os); } -- 2.39.2