The branch, master, has been updated.

- Log -----------------------------------------------------------------

commit d27dac3efc6ca81a7b42836be47fa96ec34bdaf9
Author: Uwe Stöhr <[email protected]>
Date:   Mon Feb 11 01:56:47 2013 +0100

    tex2lyx: support for libertine-type1

diff --git a/src/tex2lyx/Preamble.cpp b/src/tex2lyx/Preamble.cpp
index d02c1fb..d3f985e 100644
--- a/src/tex2lyx/Preamble.cpp
+++ b/src/tex2lyx/Preamble.cpp
@@ -124,8 +124,8 @@ const char * const known_old_language_packages[] = 
{"french", "frenchle",
 char const * const known_fontsizes[] = { "10pt", "11pt", "12pt", 0 };
 
 const char * const known_roman_fonts[] = { "ae", "beraserif", "bookman",
-"ccfonts", "chancery", "charter", "cmr", "fourier", "garamondx", "lmodern",
-"mathdesign", "mathpazo", "mathptmx", "newcent", "utopia", 0};
+"ccfonts", "chancery", "charter", "cmr", "fourier", "garamondx", 
"libertine-type1",
+"lmodern", "mathdesign", "mathpazo", "mathptmx", "newcent", "utopia", 0};
 
 const char * const known_sans_fonts[] = { "avant", "berasans", "cmbr", "cmss",
 "helvet", "kurier", "kurierl", "lmss", 0};
@@ -675,6 +675,14 @@ void Preamble::handle_package(Parser &p, string const & 
name,
                        h_font_osf = "true";
        }
 
+       if (name == "libertine-type1") {
+               h_font_roman = "libertine";
+               if (opts == "lining")
+                       h_font_osf = "false";
+               else
+                       h_font_osf = "true";
+       }
+       
        if (name == "mathdesign") {
                if (opts.find("charter") != string::npos)
                        h_font_roman = "md-charter";
diff --git a/src/tex2lyx/TODO.txt b/src/tex2lyx/TODO.txt
index a57f6ff..53d676c 100644
--- a/src/tex2lyx/TODO.txt
+++ b/src/tex2lyx/TODO.txt
@@ -61,7 +61,7 @@ Format LaTeX feature                        LyX feature
 411    support for polyglossia              \language_package  (the cases of 
no package, of babel and of custom package is supported)
 415    undertilde.sty                       fonts
 427    tipa.sty \begin{IPA}, \textipa       InsetTIPA
-434    libertine-type1, libertine.sty,      \font_osf, \font_roman
+434    libertine.sty,                       \font_osf, \font_roman
        libertine-legacy.sty
 435    txtt LaTeX font                      \font_typewriter
 437    TeX Gyre LaTeX fonts                 \font_*

-----------------------------------------------------------------------

Summary of changes:
 src/tex2lyx/Preamble.cpp |   12 ++++++++++--
 src/tex2lyx/TODO.txt     |    2 +-
 2 files changed, 11 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
The LyX Source Repository

Reply via email to