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
This commit is contained in:
Georg Baum 2010-12-19 15:08:35 +00:00
parent 93232c3ad6
commit ac85b252cb
2 changed files with 5 additions and 5 deletions

View File

@ -114,7 +114,7 @@ extern CommandMap known_math_environments;
/// ///
extern bool noweb_mode; extern bool noweb_mode;
/// LyX format that is created by tex2lyx /// LyX format that is created by tex2lyx
int const LYX_FORMAT = 295; int const LYX_FORMAT = 296;
/// path of the master .tex file /// path of the master .tex file
extern std::string getMasterFilePath(); extern std::string getMasterFilePath();

View File

@ -2492,7 +2492,7 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer,
else if (t.cs() == "input" || t.cs() == "include" else if (t.cs() == "input" || t.cs() == "include"
|| t.cs() == "verbatiminput") { || t.cs() == "verbatiminput") {
string name = '\\' + t.cs(); string name = t.cs();
if (t.cs() == "verbatiminput" if (t.cs() == "verbatiminput"
&& p.next_token().asInput() == "*") && p.next_token().asInput() == "*")
name += p.get_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" os << "\ttemplate XFig\n"
<< "\tfilename " << outname << '\n'; << "\tfilename " << outname << '\n';
} else { } else {
begin_inset(os, "Include "); begin_command_inset(os, "include", name);
os << name << '{' << outname os << "preview false\n"
<< "}\npreview false\n"; "filename \"" << outname << "\"\n";
} }
end_inset(os); end_inset(os);
} }