Incomplete Installation of LaTeX Packages for Language "de-CH"
関連するプルリクエストがすでにマージされています。
- #516 @cderv による — マージ済み
評価
調査の方向性
まず TinyTeX のパッケージインストール検出ロジックから始め、クリーンなインストールでドキュメントに記載された de-CH の例を再現します。nswissgerman.ldf に対して babel-german がどのように選択されるかを追跡し、言語 de のマッピングと比較してから、対象を絞ったリグレッションテストを追加します。完了の基準は、必要な場所で自動インストールに hyphen-german が含まれ、手動でのパッケージインストールなしで例がレンダリングされることです。
索引モデルが issue の本文から書いたものです。
説明
Problem Description
When I render this document with language de-CH in a fresh TinyTeX installation:
---
title: "Untitled"
lang: de-CH
format: pdf
---
```{r}
library(kableExtra)
kbl(mtcars, booktabs = TRUE)
```
the package babel-german is installed automatically as it should be:
finding package for nswissgerman.ldf
> 1 package to install
> installing babel-german (1 of 1)
Still, rendering aborts with the following error:
ERROR:
compilation failed- error
Package babel Error: You haven't defined the language 'ngerman' yet.
(babel) Perhaps you misspelled it or your installation
(babel) is not complete.
Workaround
After installing the package hyphen-german manually with
tinytex::tlmgr_install("hyphen-german")
rendering works.
Expected Behaviour
My understanding is that TinyTeX should automatically install all the required packages for successful rendering. If this is indeed the idea, then I think that for the language de-CH, the package hyphen-german should also be automatically installed such that rendering works without any need for manual installation of LaTeX packages.
Additional Remark
Surprisingly, at least for me, when using the language de, rendering works even when hypen-german is not installed. I have not checked, however, whether hyphenation is correct. Maybe, hypen-german should also be automatically installed in this case?
Session info
I'm rendering the document by pressing "Preview" in Positron, so this is not the session info from the exact session where the rendering took place. I ran this in a fresh R session:
xfun::session_info('tinytex')
## R version 4.6.1 (2026-06-24)
## Platform: x86_64-pc-linux-gnu
## Running under: Ubuntu 26.04.1 LTS, Positron 2026.09.1
##
## Locale:
## LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
## LC_TIME=de_CH.UTF-8 LC_COLLATE=en_US.UTF-8
## LC_MONETARY=de_CH.UTF-8 LC_MESSAGES=en_US.UTF-8
## LC_PAPER=de_CH.UTF-8 LC_NAME=C
## LC_ADDRESS=C LC_TELEPHONE=C
## LC_MEASUREMENT=de_CH.UTF-8 LC_IDENTIFICATION=C
##
## Package version:
## graphics_4.6.1 grDevices_4.6.1 stats_4.6.1 tinytex_0.61.1
## tools_4.6.1 utils_4.6.1 xfun_0.61
##
## LaTeX version used:
## TeX Live 2026 (TinyTeX) with tlmgr 2026-10-02
Checklist
When filing a bug report, please check the boxes below to confirm that you have provided us with the information we need. Have you:
-
formatted your issue so it is easier for us to read?
-
included a minimal, self-contained, and reproducible example?
-
pasted the output from
xfun::session_info('tinytex')in your issue? -
upgraded all your packages to their latest versions (including your versions of R, the RStudio IDE, and relevant R packages)?
-
installed and tested your bug with the development version of the tinytex package using
remotes::install_github("rstudio/tinytex")?
- 主要言語
- R
- スター
- 1.2k
- フォーク
- 128
- 平均マージ
- 1時間 44分
- マージ済み PR(30日)
- 3
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
rstudio/tinytex のほかの issue
-
Missing hyphenation patterns are not detected when babel loads the language from its .ini file (\babelprovide, provide=*)対応中かも @cderv が 5 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
-
question
難易度 4/5 3〜5日 初心者へのやさしさ 38/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
-
[FR] Add `cancel` package to TinyTeX bundle再び着手できるかも @cderv が 288 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
rstudio/tinytex の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
Huber-group-EMBL/Rarr#261 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
cran-task-views/Survival#76 ·
-
難易度 1/5 1〜3時間 初心者へのやさしさ 82/100
cran-task-views/Agriculture#146 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 82/100