]> git.lyx.org Git - lyx.git/commitdiff
Increase tex2lyx output format to 343.
authorGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Mon, 27 Dec 2010 18:16:22 +0000 (18:16 +0000)
committerGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Mon, 27 Dec 2010 18:16:22 +0000 (18:16 +0000)
343: Write the use_default_options header flag

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37014 a592a061-630c-0410-9148-cb99ea01b6c8

src/tex2lyx/preamble.cpp
src/tex2lyx/tex2lyx.h

index 3840e1d908ce2f24380c5dade80c82ddddfde97c..ef0de6574b373e89c687c29ecc4cd0035e773beb 100644 (file)
@@ -139,6 +139,7 @@ const char * const known_coded_paper_margins[] = { "leftmargin", "topmargin",
 // default settings
 ostringstream h_preamble;
 string h_textclass               = "article";
+string h_use_default_options     = "false";
 string h_options                 = string();
 string h_language                = "english";
 string h_inputencoding           = "auto";
@@ -557,7 +558,8 @@ void end_preamble(ostream & os, TextClass const & /*textclass*/)
                os << "\\begin_preamble\n" << h_preamble.str() << "\n\\end_preamble\n";
        if (!h_options.empty())
                os << "\\options " << h_options << "\n";
-       os << "\\language " << h_language << "\n"
+       os << "\\use_default_options " << h_use_default_options << "\n"
+          << "\\language " << h_language << "\n"
           << "\\inputencoding " << h_inputencoding << "\n"
           << "\\font_roman " << h_font_roman << "\n"
           << "\\font_sans " << h_font_sans << "\n"
index 9b323b30c049211da5313b50a14faadc7c41a20a..4bd24155f1460eb8ebe4c617f9d6340a12c89c5f 100644 (file)
@@ -114,7 +114,7 @@ extern CommandMap known_math_environments;
 ///
 extern bool noweb_mode;
 /// LyX format that is created by tex2lyx
-int const LYX_FORMAT = 342;
+int const LYX_FORMAT = 343;
 
 /// path of the master .tex file
 extern std::string getMasterFilePath();