Increase tex2lyx output format to 356.

352: New syntax for InsetIndex and printindex command inset
353: Nothing to do (empty lyx2lyx conversion)
354: Nothing to do (empty lyx2lyx conversion)
355: Nothing to do (empty lyx2lyx conversion)
356: Nothing to do (empty lyx2lyx conversion)



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39897 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Georg Baum 2011-10-20 20:52:19 +00:00
parent ac166e196d
commit 024bd206af
3 changed files with 7 additions and 2 deletions

View File

@ -56,4 +56,8 @@ Format LaTeX feature LyX feature
349 XeTeX \use_xetex
350 ? \default_output_format
351 ? \backgroundcolor
353 \printsubindex InsetIndex
354 \printindex*, \printsubindex* InsetIndex
355 \sout InsetIndex
356 \uuline, \uwave InsetIndex

View File

@ -165,7 +165,7 @@ extern bool noweb_mode;
/// Did we recognize any pdflatex-only construct?
extern bool pdflatex;
/// LyX format that is created by tex2lyx
int const LYX_FORMAT = 351;
int const LYX_FORMAT = 356;
/// path of the master .tex file
extern std::string getMasterFilePath();

View File

@ -2583,7 +2583,7 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer,
else if (t.cs() == "index") {
context.check_layout(os);
begin_inset(os, "Index\n");
begin_inset(os, "Index idx\n");
os << "status collapsed\n";
parse_text_in_inset(p, os, FLAG_ITEM, false, context, "Index");
end_inset(os);
@ -2615,6 +2615,7 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer,
else if (t.cs() == "printindex") {
context.check_layout(os);
begin_command_inset(os, "index_print", "printindex");
os << "type \"idx\"\n";
end_inset(os);
skip_spaces_braces(p);
}