lcreteig/amsterdown

Package babel error

Closed this issue · 3 comments

Hi,

First of all thank you very much for sharing the amsterdown template. I would love to use it.

However, I got the following error:

**! Package babel Error: Unknown option 'dutch'.** Either you misspelled it
(babel)                or the language definition file dutch.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.

Error: LaTeX failed to compile thesis.tex. See https://yihui.org/tinytex/r/#debugging for debugging tips. See thesis.log for more info.

Since it mentions "babel error", I tried "sudo apt-get install texlive-lang-european" from this post.

For context:
> sessionInfo()
R version 4.1.2 (2021-11-01)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 22.04.3 LTS

Matrix products: default
BLAS:   /usr/lib/x86_64-linux-gnu/openblas-pthread/libblas.so.3
LAPACK: /usr/lib/x86_64-linux-gnu/openblas-pthread/libopenblasp-r0.3.20.so

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C               LC_TIME=es_ES.UTF-8        LC_COLLATE=en_US.UTF-8    
 [5] LC_MONETARY=es_ES.UTF-8    LC_MESSAGES=en_US.UTF-8    LC_PAPER=es_ES.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C             LC_MEASUREMENT=es_ES.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

loaded via a namespace (and not attached):
 [1] compiler_4.1.2    bookdown_0.37.1   fastmap_1.1.1     cli_3.6.2         htmltools_0.5.7   tools_4.1.2       rstudioapi_0.15.0
 [8] yaml_2.3.8        rmarkdown_2.25    knitr_1.45        xfun_0.42         digest_0.6.34     rlang_1.1.3       evaluate_0.23 

Any idea about what I am doing wrong?

Thank you very much!

Hi,

Thanks for reporting the issue. You're not doing anything wrong; I'm getting the same error.

Seems like something changed in the way pandoc is interacting with the babel LaTeX package. I'll have a look sometime in the next few days; I should be able to fix it by updating the template.

Hi,

It works again on my end; could you please try out the updated version to see if the problem is resolved for you as well?

remotes::install_github("lcreteig/amsterdown", ref = remotes::github_pull("25"))

Hi,

Happy to say that it works from my end too.

Thanks you very much!