From 3fa9187e7cd8f8620e0424934e84736b40e83cc1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Uwe=20St=C3=B6hr?= Date: Thu, 6 Dec 2007 18:58:32 +0000 Subject: [PATCH] preamble.cpp: addition to r21970: ad support for the two possible font options git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21993 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/tex2lyx/preamble.cpp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/tex2lyx/preamble.cpp b/src/tex2lyx/preamble.cpp index 803d637e21..b2ad48c856 100644 --- a/src/tex2lyx/preamble.cpp +++ b/src/tex2lyx/preamble.cpp @@ -203,8 +203,12 @@ void handle_package(string const & name, string const & opts) // roman fonts if (is_known(name, known_roman_fonts)) h_font_roman = name; - if (name == "fourier") + if (name == "fourier") { h_font_roman = "utopia"; + // when font uses real small capitals + if (opts == "expert") + h_font_sc = "true"; + } if (name == "mathpazo") h_font_roman = "palatino"; if (name == "mathptmx") @@ -214,7 +218,7 @@ void handle_package(string const & name, string const & opts) h_font_sans = name; if (!opts.empty()) { scale = opts; - pos = scale.find(".", 0); + pos = scale.find("."); h_font_sf_scale = scale.erase(0, pos + 1); } } @@ -223,10 +227,13 @@ void handle_package(string const & name, string const & opts) h_font_typewriter = name; if (!opts.empty()) { scale = opts; - pos = scale.find(".", 0); + pos = scale.find("."); h_font_tt_scale = scale.erase(0, pos + 1); } } + // font uses old-style figure + if (name == "eco") + h_font_osf = "true"; else if (name == "amsmath" || name == "amssymb") h_use_amsmath = "1"; -- 2.39.2