mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-27 06:19:36 +00:00
Increase tex2lyx output format to 343.
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
This commit is contained in:
parent
4a54c581a2
commit
32d435e150
@ -139,6 +139,7 @@ const char * const known_coded_paper_margins[] = { "leftmargin", "topmargin",
|
|||||||
// default settings
|
// default settings
|
||||||
ostringstream h_preamble;
|
ostringstream h_preamble;
|
||||||
string h_textclass = "article";
|
string h_textclass = "article";
|
||||||
|
string h_use_default_options = "false";
|
||||||
string h_options = string();
|
string h_options = string();
|
||||||
string h_language = "english";
|
string h_language = "english";
|
||||||
string h_inputencoding = "auto";
|
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";
|
os << "\\begin_preamble\n" << h_preamble.str() << "\n\\end_preamble\n";
|
||||||
if (!h_options.empty())
|
if (!h_options.empty())
|
||||||
os << "\\options " << h_options << "\n";
|
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"
|
<< "\\inputencoding " << h_inputencoding << "\n"
|
||||||
<< "\\font_roman " << h_font_roman << "\n"
|
<< "\\font_roman " << h_font_roman << "\n"
|
||||||
<< "\\font_sans " << h_font_sans << "\n"
|
<< "\\font_sans " << h_font_sans << "\n"
|
||||||
|
@ -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 = 342;
|
int const LYX_FORMAT = 343;
|
||||||
|
|
||||||
/// path of the master .tex file
|
/// path of the master .tex file
|
||||||
extern std::string getMasterFilePath();
|
extern std::string getMasterFilePath();
|
||||||
|
Loading…
Reference in New Issue
Block a user