]> git.lyx.org Git - lyx.git/commitdiff
Increase tex2lyx output format to 356.
authorGeorg Baum <georg.baum@post.rwth-aachen.de>
Thu, 20 Oct 2011 20:52:19 +0000 (20:52 +0000)
committerGeorg Baum <georg.baum@post.rwth-aachen.de>
Thu, 20 Oct 2011 20:52:19 +0000 (20:52 +0000)
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

src/tex2lyx/TODO.txt
src/tex2lyx/tex2lyx.h
src/tex2lyx/text.cpp

index 632b36303d0f671f9b497b8e2982d90ad5ddde16..c97cae55e880b14355a860a08caa6f300f1c1db6 100644 (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
 
index ade1fe03d43c80ce7533d41464ab60988ab4e7da..144dd106077f7b948ec18dee0ce847122ff6635b 100644 (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();
index 2c4aac4059884bb2667510f823b60beb7f2c4158..086bbbef8b975a2212f4dc3d7dd4effe5b059364 100644 (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);
                }