From 7cafab29ccfebb7ca6d98b1d2a89bce7347c06e1 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Tue, 16 Jul 2019 10:58:27 +0200 Subject: [PATCH] tex2lyx: minor post-cleanup --- src/tex2lyx/Preamble.cpp | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/tex2lyx/Preamble.cpp b/src/tex2lyx/Preamble.cpp index d49dd58716..1525112a46 100644 --- a/src/tex2lyx/Preamble.cpp +++ b/src/tex2lyx/Preamble.cpp @@ -744,10 +744,10 @@ void Preamble::handle_package(Parser &p, string const & name, p.setEncoding("UTF-8"); } - // vector of all options for easier pasing and + // vector of all options for easier parsing and // skipping vector allopts = getVectorFromString(opts); - // this stored the potential extra options + // this stores the potential extra options string xopts; // @@ -1304,13 +1304,8 @@ void Preamble::handle_package(Parser &p, string const & name, options.clear(); } - if (name == "PTMono") { + if (name == "PTMono") h_font_typewriter[0] = "PTMono-TLF"; - if (options.size() >= 1) { - if (scale_as_percentage(opts, h_font_tt_scale[0])) - options.clear(); - } - } if (name == "plex-mono") { h_font_typewriter[0] = "IBMPlexMono"; @@ -2155,7 +2150,6 @@ void Preamble::parse(Parser & p, string const & forceclass, } continue; } else if (lang.empty() && (family == "sf" || family == "tt")) { - // LyX currently only supports the scale option string scale; if (!fontopts.empty()) { vector opts = getVectorFromString(fontopts); -- 2.39.5