Problem
封面(titlepage)文字帶有 LaTeX 的 {} 分組括號:
{賽斯書輕導讀} → 應為 賽斯書輕導讀
{《個人實相的本質》} → 應為 《個人實相的本質》
{ 馬老師讀書會} → 應為 馬老師讀書會
Root Cause
TeXPreambleParser.extractText() 移除了 \fontsize、\color 等命令,但沒有清掉外層的 {} 分組符號。
Fix
在 extractText() 最後加上移除殘餘 {}:
.replacingOccurrences(of: "{", with: "")
.replacingOccurrences(of: "}", with: "")
Problem
封面(titlepage)文字帶有 LaTeX 的
{}分組括號:{賽斯書輕導讀}→ 應為賽斯書輕導讀{《個人實相的本質》}→ 應為《個人實相的本質》{ 馬老師讀書會}→ 應為馬老師讀書會Root Cause
TeXPreambleParser.extractText()移除了\fontsize、\color等命令,但沒有清掉外層的{}分組符號。Fix
在
extractText()最後加上移除殘餘{}: