From 112c2a5ace794434ae80305f516bd74e30f2fcaa Mon Sep 17 00:00:00 2001 From: Snowball_233 Date: Fri, 23 Jan 2026 01:20:32 +0800 Subject: [PATCH] Switch to lualatex for font fallback support (emoji and special chars) --- book.toml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/book.toml b/book.toml index 8f65b430..602da4c5 100644 --- a/book.toml +++ b/book.toml @@ -28,10 +28,9 @@ disabled = false [output.pandoc.profile.pdf] output-file = "rust-course.pdf" -pdf-engine = "tectonic" -pdf-engine-opt = ["-Z", "continue-on-errors"] +pdf-engine = "lualatex" to = "pdf" -variables = { mainfont = "Noto Sans CJK SC", sansfont = "Noto Sans CJK SC", CJKmainfont = "Noto Sans CJK SC", monofont = "DejaVu Sans Mono", monofontfallback = ["DejaVu Sans Mono:", "Noto Color Emoji:"], mainfontfallback = ["Noto Sans CJK SC:", "Noto Color Emoji:"] } +variables = { mainfont = "Noto Sans CJK SC", sansfont = "Noto Sans CJK SC", CJKmainfont = "Noto Sans CJK SC", monofont = "DejaVu Sans Mono", monofontfallback = ["DejaVu Sans Mono:", "Noto Color Emoji:mode=harf"], mainfontfallback = ["Noto Sans CJK SC:", "Noto Color Emoji:mode=harf"] } [output.pandoc.profile.epub] output-file = "rust-course.epub"