You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

升级TinyTeX后渲染Quarto项目遇ngerman.babel错误求助

升级TinyTeX后PDF渲染出现ngerman语言包错误问题

问题背景

  • 发现与同事的PDF渲染结果存在差异,同事使用TinyTeX 2024.2版本,本人未更新,因此执行quarto install tool tinytex命令升级TinyTeX。
  • 升级后渲染同一文档立即报错,重启RStudio后问题未解决。

渲染报错信息

updating existing packages
finding package for ngerman.ldf
(babel)
ERROR:
compilation failed- no matching packages
Package babel Error: Unknown option 'ngerman'. Either you misspelled it
(babel) or the language definition file ngerman.ldf
(babel) was not found.
(babel) There is a locale ini file for this language.
(babel) If it’s the main language, try adding `provide=*'
(babel) to the babel package options.

quarto check检测结果

[✓] Checking tools....................OK
TinyTeX: v2024.02
Chromium: 869685

[✓] Checking LaTeX....................OK
Using: TinyTex
Path: /Users/dh/Library/TinyTeX/bin/universal-darwin
Version: 2023

可见RStudio仍在调用TinyTeX 2023版本。

尝试的解决操作及结果

1. 重新安装德语语言包

执行以下命令:

(base) sudo tlmgr install texlive-lang-german
tlmgr: package repository https://ftp.agdsn.de/pub/mirrors/latex/dante/systems/texlive/tlnet (not verified: gpg unavailable)
tlmgr install: package texlive-lang-german not present in repository.
tlmgr: action install returned an error; continuing.
tlmgr: An error has occurred. See above messages. Exiting.

(base) d-mbp:texlive dh$ sudo tlmgr install babel-german
tlmgr: package repository https://ctan.mc1.root.project-creative.net/systems/texlive/tlnet (not verified: gpg unavailable)
tlmgr install: package already present: babel-german

操作未解决问题,texlive-lang-german包不存在于仓库,babel-german已安装。

2. 查看已安装的德语相关包

执行命令:

tlmgr list --only-installed | grep german

输出结果:

i apalike-german: A copy of apalike.bst with German localization
i babel-german: Babel support for documents written in German
i biblatex-german-legal: Comprehensive citation style for German legal texts
i bibleref-german: German adaptation of bibleref
i collection-langgerman: German
i datetime2-german: German language module for the datetime2 package
i german: Support for German typography
i glossaries-german: German language module for glossaries package
i hyphen-german: German hyphenation patterns.
i lshort-german: German version of A Short Introduction to LaTeX2e: LaTeX2e-Kurzbeschreibung
i mfnfss: Packages to typeset oldgerman and pandora fonts in LaTeX
  • 已安装german和babel-german包,但在YAML配置中设置后仍无法正常渲染德语,英文渲染正常。
  • 列表中未找到ngerman包,但升级TinyTeX前使用相同配置可正常渲染。

系统环境

  • ARM架构MacBook
  • RStudio版本:2023.12.1+402
  • R版本:4.3.2

内容的提问来源于stack exchange,提问作者nift.d

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.30 13:39:52