]> git.lyx.org Git - features.git/commitdiff
Increase tex2lyx output format to 399.
authorGeorg Baum <georg.baum@post.rwth-aachen.de>
Sat, 22 Oct 2011 11:17:57 +0000 (11:17 +0000)
committerGeorg Baum <georg.baum@post.rwth-aachen.de>
Sat, 22 Oct 2011 11:17:57 +0000 (11:17 +0000)
399: Added \use_mathdots preamble parameter

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

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

index 19ceca7dece003920fe4856d8f47844e70099359..eac7c41b59375e7de4bb9f68602073fc9810ff03 100644 (file)
@@ -92,4 +92,5 @@ Format LaTeX feature                        LyX feature
 394    \makebox                             InsetBox use_makebox
 395    page sizes C0-6                      \papersize
 396    nameref.sty                          InsetRef
+399    automatic mathdots loading           \use_mathdots
 
index c9c0ec48c67df9631e1251dffd40c59438f07845..6af9b64c9ec1232789d319e197d2f8cba784dbc3 100644 (file)
@@ -200,6 +200,7 @@ string h_use_geometry            = "false";
 string h_use_amsmath             = "1";
 string h_use_esint               = "1";
 string h_use_mhchem              = "0";
+string h_use_mathdots            = "0";
 string h_cite_engine             = "basic";
 string h_use_bibtopic            = "false";
 string h_paperorientation        = "portrait";
@@ -507,6 +508,9 @@ void handle_package(Parser &p, string const & name, string const & opts,
        else if (name == "mhchem")
                h_use_mhchem = "2";
 
+       else if (name == "mathdots")
+               h_use_mathdots = "2";
+
        else if (name == "babel" && !opts.empty()) {
                // check if more than one option was used - used later for inputenc
                // in case inputenc is parsed before babel, set the encoding to auto
@@ -727,6 +731,7 @@ void end_preamble(ostream & os, TextClass const & /*textclass*/)
           << "\\use_amsmath " << h_use_amsmath << "\n"
           << "\\use_esint " << h_use_esint << "\n"
           << "\\use_mhchem " << h_use_mhchem << "\n"
+          << "\\use_mathdots " << h_use_mathdots << "\n"
           << "\\cite_engine " << h_cite_engine << "\n"
           << "\\use_bibtopic " << h_use_bibtopic << "\n"
           << "\\paperorientation " << h_paperorientation << '\n';
index 8db4dcf653717967341a258126177a3558ef9ff6..d2b84cb14b01dfc62dd1b10072e5999aa8967718 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 = 398;
+int const LYX_FORMAT = 399;
 
 /// path of the master .tex file
 extern std::string getMasterFilePath();