[LyX/2.3.x] Fix quotation marks in PDF TOC

Juergen Spitzmueller spitz at lyx.org
Mon Apr 6 14:20:56 UTC 2020


commit 97516cf2f456df1aa0a6526d68251fdd252ad7ea
Author: Juergen Spitzmueller <spitz at lyx.org>
Date:   Mon Apr 6 08:53:29 2020 +0200

    Fix quotation marks in PDF TOC
    
    (cherry picked from commit c0adb03a7ae15cf6409ee3cb64f4cc91c24c052e)
---
 src/insets/InsetQuotes.cpp |    4 ++++
 status.23x                 |    2 ++
 2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/insets/InsetQuotes.cpp b/src/insets/InsetQuotes.cpp
index 8b16459..568232a 100644
--- a/src/insets/InsetQuotes.cpp
+++ b/src/insets/InsetQuotes.cpp
@@ -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
diff --git a/status.23x b/status.23x
index 3b68819..22a4f6d 100644
--- a/status.23x
+++ b/status.23x
@@ -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
 


More information about the lyx-cvs mailing list