]> git.lyx.org Git - lyx.git/blobdiff - src/tex2lyx/preamble.cpp
fix translation of \nobreakdash in tex2lyx
[lyx.git] / src / tex2lyx / preamble.cpp
index 3840e1d908ce2f24380c5dade80c82ddddfde97c..42f9d33cb21024e20c9c9013f4dc95f573b9e372 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";
@@ -166,8 +167,7 @@ string h_pdf_bookmarksopenlevel  = "1";
 string h_pdf_breaklinks          = "0";
 string h_pdf_pdfborder           = "0";
 string h_pdf_colorlinks          = "0";
-string h_pdf_backref             = "0";
-string h_pdf_pagebackref         = "0";
+string h_pdf_backref             = "section";
 string h_pdf_pdfusetitle         = "1";
 string h_pdf_pagemode;
 string h_pdf_quoted_options;
@@ -557,7 +557,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"
@@ -590,7 +591,6 @@ void end_preamble(ostream & os, TextClass const & /*textclass*/)
                      "\\pdf_pdfborder " << h_pdf_pdfborder << "\n"
                      "\\pdf_colorlinks " << h_pdf_colorlinks << "\n"
                      "\\pdf_backref " << h_pdf_backref << "\n"
-                     "\\pdf_pagebackref " << h_pdf_pagebackref << "\n"
                      "\\pdf_pdfusetitle " << h_pdf_pdfusetitle << '\n';
                if (!h_pdf_pagemode.empty())
                        os << "\\pdf_pagemode " << h_pdf_pagemode << '\n';