From b62f2505b3370a2a878057389c91416b2eb8a45d Mon Sep 17 00:00:00 2001 From: TuongNM Date: Sun, 28 Sep 2025 15:52:33 +0200 Subject: LaTeX writer: Fix strikeouts in beamer title (#11169) beamer uses pdfstring for the pdfinfo which can't handle soul strikeouts. Therefore, the title, subtitle and author contents need to be put inside texorpdfstring to deal with both the pdfinfo as well as the formatting. Fixes #11168. --- src/Text/Pandoc/Writers/LaTeX.hs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/Text/Pandoc/Writers/LaTeX.hs b/src/Text/Pandoc/Writers/LaTeX.hs index 73dbca459..3fb93545e 100644 --- a/src/Text/Pandoc/Writers/LaTeX.hs +++ b/src/Text/Pandoc/Writers/LaTeX.hs @@ -183,6 +183,7 @@ pandocToLaTeX options (Pandoc meta blocks) = do st <- get titleMeta <- escapeCommas <$> -- see #10501 stringToLaTeX TextString (stringify $ docTitle meta) + subtitleMeta <- stringToLaTeX TextString (stringify $ lookupMetaInlines "subtitle" meta) authorsMeta <- mapM (stringToLaTeX TextString . stringify) $ docAuthors meta -- The trailer ID is as hash used to identify the PDF. Taking control of its -- value is important when aiming for reproducible PDF generation. Setting @@ -233,6 +234,7 @@ pandocToLaTeX options (Pandoc meta blocks) = do else 0)) $ defField "body" main $ defField "title-meta" titleMeta $ + defField "subtitle-meta" subtitleMeta $ defField "author-meta" (T.intercalate "; " authorsMeta) $ defField "documentclass" documentClass $ -- cgit v1.2.3