- LyX has new preamble tags. Although that they are not relevant for LaTeX they must be created by tex2lyx nevertheless
- also fix an issue that the formula indentation was always output
- update the tex2lyx tests accordingly
Preamble::Preamble() : one_language(true), explicit_babel(false),
title_layout_found(false), index_number(0), h_font_cjk_set(false),
- h_use_microtype(false)
+ h_use_microtype("false")
{
//h_backgroundcolor;
//h_boxbgcolor;
h_cite_engine_type = "default";
h_color = "#008000";
h_defskip = "medskip";
+ h_dynamic_quotes = false;
//h_float_placement;
//h_fontcolor;
h_fontencoding = "default";
h_tocdepth = "3";
h_tracking_changes = "false";
h_use_bibtopic = "false";
+ h_use_dash_ligatures = "true";
h_use_indices = "false";
h_use_geometry = "false";
h_use_default_options = "false";
h_use_hyperref = "false";
- h_use_microtype = false;
+ h_use_microtype = "false";
h_use_refstyle = false;
h_use_packages["amsmath"] = "1";
h_use_packages["amssymb"] = "0";
else if (name == "microtype") {
//we internally support only microtype without params
if (options.empty())
- h_use_microtype = true;
+ h_use_microtype = "true";
else
h_preamble << "\\usepackage[" << opts << "]{microtype}";
}
if (!h_font_cjk.empty())
os << "\\font_cjk " << h_font_cjk << '\n';
os << "\\use_microtype " << h_use_microtype << '\n'
+ << "\\use_dash_ligatures " << h_use_dash_ligatures << '\n'
<< "\\graphics " << h_graphics << '\n'
<< "\\default_output_format " << h_default_output_format << "\n"
<< "\\output_sync " << h_output_sync << "\n";
os << "\\defskip " << h_defskip << "\n";
else
os << "\\paragraph_indentation " << h_paragraph_indentation << "\n";
- os << "\\is_formula_indent " << h_is_formulaindent << "\n"
- << "\\formula_indentation " << h_formulaindentation << "\n"
- << "\\quotes_style " << h_quotes_style << "\n"
+ os << "\\is_formula_indent " << h_is_formulaindent << "\n";
+ if (!h_formulaindentation.empty())
+ os << "\\formula_indentation " << h_formulaindentation << "\n";
+ os << "\\quotes_style " << h_quotes_style << "\n"
+ << "\\dynamic_quotes " << h_dynamic_quotes << "\n"
<< "\\papercolumns " << h_papercolumns << "\n"
<< "\\papersides " << h_papersides << "\n"
<< "\\paperpagestyle " << h_paperpagestyle << "\n";
std::string h_cite_engine_type;
std::string h_color;
std::string h_defskip;
+ bool h_dynamic_quotes;
std::string h_float_placement;
std::string h_fontcolor;
std::string h_fontencoding;
std::string h_font_tt_scale[2];
bool h_font_cjk_set;
std::string h_font_cjk;
- bool h_use_microtype;
+ std::string h_use_microtype;
std::string h_is_formulaindent;
std::string h_formulaindentation;
std::string h_graphics;
std::string h_tocdepth;
std::string h_tracking_changes;
std::string h_use_bibtopic;
+ std::string h_use_dash_ligatures;
std::string h_use_indices;
std::string h_use_geometry;
std::map<std::string, std::string> h_use_packages;
\font_osf false
\font_sf_scale 100 100
\font_tt_scale 100 100
-\use_microtype 0
+\use_microtype false
+\use_dash_ligatures true
\graphics default
\default_output_format default
\output_sync 0
\paragraph_separation indent
\paragraph_indentation default
\is_formula_indent 0
-\formula_indentation
\quotes_style english
+\dynamic_quotes 0
\papercolumns 1
\papersides 1
\paperpagestyle default
\font_osf false
\font_sf_scale 100 100
\font_tt_scale 100 100
-\use_microtype 0
+\use_microtype false
+\use_dash_ligatures true
\graphics default
\default_output_format default
\output_sync 0
\paragraph_separation indent
\paragraph_indentation default
\is_formula_indent 0
-\formula_indentation
\quotes_style english
+\dynamic_quotes 0
\papercolumns 1
\papersides 1
\paperpagestyle default
\font_osf false
\font_sf_scale 100 100
\font_tt_scale 100 100
-\use_microtype 0
+\use_microtype false
+\use_dash_ligatures true
\graphics default
\default_output_format default
\output_sync 0
\paragraph_separation indent
\paragraph_indentation 3mm
\is_formula_indent 0
-\formula_indentation
\quotes_style english
+\dynamic_quotes 0
\papercolumns 1
\papersides 1
\paperpagestyle default
\font_osf false
\font_sf_scale 100 100
\font_tt_scale 100 100
-\use_microtype 0
+\use_microtype false
+\use_dash_ligatures true
\graphics default
\default_output_format default
\output_sync 0
\paragraph_separation indent
\paragraph_indentation 3mm
\is_formula_indent 0
-\formula_indentation
\quotes_style english
+\dynamic_quotes 0
\papercolumns 1
\papersides 1
\paperpagestyle default
\font_osf false
\font_sf_scale 100 75
\font_tt_scale 100 100
-\use_microtype 0
+\use_microtype false
+\use_dash_ligatures true
\graphics default
\default_output_format pdf4
\output_sync 0
\paragraph_separation indent
\paragraph_indentation default
\is_formula_indent 0
-\formula_indentation
\quotes_style english
+\dynamic_quotes 0
\papercolumns 1
\papersides 1
\paperpagestyle default
\font_osf false
\font_sf_scale 100 100
\font_tt_scale 100 100
-\use_microtype 0
+\use_microtype false
+\use_dash_ligatures true
\graphics default
\default_output_format default
\output_sync 0
\paragraph_separation indent
\paragraph_indentation default
\is_formula_indent 0
-\formula_indentation
\quotes_style english
+\dynamic_quotes 0
\papercolumns 1
\papersides 1
\paperpagestyle default
\font_osf false
\font_sf_scale 100 100
\font_tt_scale 100 100
-\use_microtype 0
+\use_microtype false
+\use_dash_ligatures true
\graphics default
\default_output_format default
\output_sync 0
\paragraph_separation skip
\defskip 3mm
\is_formula_indent 0
-\formula_indentation
\quotes_style english
+\dynamic_quotes 0
\papercolumns 2
\papersides 2
\paperpagestyle default
\font_osf false
\font_sf_scale 100 100
\font_tt_scale 100 100
-\use_microtype 0
+\use_microtype false
+\use_dash_ligatures true
\graphics default
\default_output_format default
\output_sync 0
\paragraph_separation indent
\paragraph_indentation 3mm
\is_formula_indent 0
-\formula_indentation
\quotes_style english
+\dynamic_quotes 0
\papercolumns 1
\papersides 1
\paperpagestyle default
\font_osf false
\font_sf_scale 100 100
\font_tt_scale 100 100
-\use_microtype 0
+\use_microtype false
+\use_dash_ligatures true
\graphics default
\default_output_format default
\output_sync 0
\paragraph_separation indent
\paragraph_indentation 3mm
\is_formula_indent 0
-\formula_indentation
\quotes_style english
+\dynamic_quotes 0
\papercolumns 1
\papersides 1
\paperpagestyle default
\font_osf false
\font_sf_scale 100 100
\font_tt_scale 100 100
-\use_microtype 0
+\use_microtype false
+\use_dash_ligatures true
\graphics default
\default_output_format default
\output_sync 0
\paragraph_separation indent
\paragraph_indentation default
\is_formula_indent 0
-\formula_indentation
\quotes_style english
+\dynamic_quotes 0
\papercolumns 1
\papersides 1
\paperpagestyle default
\font_osf false
\font_sf_scale 100 100
\font_tt_scale 100 100
-\use_microtype 0
+\use_microtype false
+\use_dash_ligatures true
\graphics default
\default_output_format default
\output_sync 0
\paragraph_separation indent
\paragraph_indentation default
\is_formula_indent 0
-\formula_indentation
\quotes_style english
+\dynamic_quotes 0
\papercolumns 1
\papersides 1
\paperpagestyle default
\font_osf false
\font_sf_scale 100 100
\font_tt_scale 100 100
-\use_microtype 0
+\use_microtype false
+\use_dash_ligatures true
\graphics default
\default_output_format default
\output_sync 0
\paragraph_separation indent
\paragraph_indentation default
\is_formula_indent 0
-\formula_indentation
\quotes_style english
+\dynamic_quotes 0
\papercolumns 1
\papersides 2
\paperpagestyle default
\font_osf false
\font_sf_scale 100 100
\font_tt_scale 100 100
-\use_microtype 0
+\use_microtype false
+\use_dash_ligatures true
\graphics default
\default_output_format default
\output_sync 0
\paragraph_separation indent
\paragraph_indentation default
\is_formula_indent 0
-\formula_indentation
\quotes_style english
+\dynamic_quotes 0
\papercolumns 1
\papersides 2
\paperpagestyle default
\font_osf false
\font_sf_scale 100 100
\font_tt_scale 100 100
-\use_microtype 0
+\use_microtype false
+\use_dash_ligatures true
\graphics default
\default_output_format default
\output_sync 1
\paragraph_separation indent
\paragraph_indentation default
\is_formula_indent 0
-\formula_indentation
\quotes_style english
+\dynamic_quotes 0
\papercolumns 1
\papersides 1
\paperpagestyle default
\font_osf false
\font_sf_scale 100 100
\font_tt_scale 100 100
-\use_microtype 0
+\use_microtype false
+\use_dash_ligatures true
\graphics default
\default_output_format default
\output_sync 0
\paragraph_separation indent
\paragraph_indentation default
\is_formula_indent 0
-\formula_indentation
\quotes_style english
+\dynamic_quotes 0
\papercolumns 1
\papersides 1
\paperpagestyle default
\font_osf false
\font_sf_scale 100 100
\font_tt_scale 100 100
-\use_microtype 0
+\use_microtype false
+\use_dash_ligatures true
\graphics default
\default_output_format default
\output_sync 0
\paragraph_separation indent
\paragraph_indentation default
\is_formula_indent 0
-\formula_indentation
\quotes_style english
+\dynamic_quotes 0
\papercolumns 1
\papersides 1
\paperpagestyle default