Undefined control sequence. <argument> \bbl@ensure@chinese #6882
-
Bug description
Steps to reproduceStep 1: create book project
Step 2: modify
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 10 replies
-
When you add an arbitrary package to a LaTeX file, then it becomes your responsibility to ensure that the resulting file compiles. Unfortunately, we can't do much about that. |
Beta Was this translation helpful? Give feedback.
-
@cscheid Finally, I find out the root cause that Quarto will inject some latex code to LaTeX document, but it seems to forget to appendix. If I consider appendix, then the issue will be solved. quarto-cli/src/resources/filters/crossref/meta.lua Lines 12 to 20 in 591bae8 quarto-cli/src/resources/filters/crossref/meta.lua Lines 53 to 56 in 591bae8 \AtBeginDocument{%
% Quarto injects some latex code
\ifdefined\contentsname
\renewcommand*\contentsname{目录}
\else
\newcommand\contentsname{目录}
\fi
\ifdefined\listfigurename
\renewcommand*\listfigurename{插图目录}
\else
\newcommand\listfigurename{插图目录}
\fi
\ifdefined\listtablename
\renewcommand*\listtablename{列表目录}
\else
\newcommand\listtablename{列表目录}
\fi
\ifdefined\figurename
\renewcommand*\figurename{图}
\else
\newcommand\figurename{图}
\fi
\ifdefined\tablename
\renewcommand*\tablename{表格}
\else
\newcommand\tablename{表格}
\fi
% consider appendix
\ifdefined\appendixname
\renewcommand*\appendixname{附录}
\else
\newcommand\appendixname{附录}
\fi
} |
Beta Was this translation helpful? Give feedback.
Make sure \appendixname is defined firstly, then the problem is solved.
It's very strange that \contentsname \listfigurename \figurename \tablename are already defined except \appendixname