]> git.lyx.org Git - features.git/commitdiff
Fix quotation marks in PDF TOC
authorJuergen Spitzmueller <spitz@lyx.org>
Mon, 6 Apr 2020 06:53:29 +0000 (08:53 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Mon, 6 Apr 2020 14:41:21 +0000 (16:41 +0200)
(cherry picked from commit c0adb03a7ae15cf6409ee3cb64f4cc91c24c052e)

src/insets/InsetQuotes.cpp
status.23x

index 8b1645945d84be8db01fd5699448214c74810763..568232af2336750f4418af2f74c9a5e5cf4c31c5 100644 (file)
@@ -880,6 +880,10 @@ void InsetQuotes::latex(otexstream & os, OutputParams const & runparams) const
                        qstr = from_ascii("\\og");
                else
                        qstr = from_ascii("\\fg");
+       } else if (runparams.use_hyperref && runparams.moving_arg) {
+               // Use internal commands in headings with hyperref
+               // (ligatures not featured in PDF strings)
+               qstr = quoteparams.getLaTeXQuote(quotechar, "int", rtl_);
        } else if (fontenc_ == "T1"
                   && !runparams.local_font->language()->internalFontEncoding()) {
                // Quotation marks for T1 font encoding
index 3b688195a3867882e9f8593e0f1e7dd81848b2bc..22a4f6d72fe91c5655db7834de830a3322a253e8 100644 (file)
@@ -63,6 +63,8 @@ What's new
 
 - Prevent polyglossia options from being output to PDF TOC (bug 11813).
 
+- Use real typographic quotation marks in PDF TOC (with pdflatex).
+
 
 * USER INTERFACE