Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File `mathdesign.sty' not found #138

Open
yafengwen opened this issue Dec 19, 2022 · 0 comments
Open

File `mathdesign.sty' not found #138

yafengwen opened this issue Dec 19, 2022 · 0 comments

Comments

@yafengwen
Copy link

Hi Kyle @kylebaron,

I'm trying to use yspec on my working computer (Windows system). When rendering the a spec file to a pdf file, it failed due to mathdesign.sty is not found. I tried several ways to install mathdesign.sty without success. I believe mathdesign can be downloaded via: https://ctan.org/tex-archive/fonts/mathdesign/?lang=en, but I'm not able to direct tinytex to use mathdesign.

This is more a LaTex issue rather than a yspec issue, but I'd appreciate if you can provide some directions.

An example provided below.

Thank you for your time!

Best,
Ya-Feng (Jay)

library(yspec)

specfile <- ys_help$file()
spec <- ys_load(specfile)
ys_document(
  spec, 
  type = "regulatory",
  stem = "fda_document", 
  build_dir = definetemplate(),
)
#> Writing project file to:
#>  C:/Users/jwen3/AppData/Local/Temp/1/RtmpagnotG/file412863822a69.yml
#> processing file: fda_document.Rmd
#> output file: fda_document.knit.md
#> "C:/Program Files/RStudio/resources/app/bin/quarto/bin/tools/pandoc" +RTS -K512m -RTS fda_document.knit.md --to latex --from markdown+autolink_bare_uris+tex_math_single_backslash --output fda_document.tex --lua-filter "C:\M_S\Trodelvy_Neutropenia\renv\library\R-4.2\x86_64-w64-mingw32\rmarkdown\rmarkdown\lua\pagebreak.lua" --lua-filter "C:\M_S\Trodelvy_Neutropenia\renv\library\R-4.2\x86_64-w64-mingw32\rmarkdown\rmarkdown\lua\latex-div.lua" --embed-resources --standalone --number-sections --highlight-style tango --pdf-engine pdflatex --include-in-header header.tex --variable graphics --include-in-header "C:\Users\jwen3\AppData\Local\Temp\1\RtmpagnotG\rmarkdown-str412813272bb6.html"
#> ! LaTeX Error: File `mathdesign.sty' not found.
#> 
#> ! Emergency stop.
#> <read *>
#> Error: LaTeX failed to compile fda_document.tex. See https://yihui.org/tinytex/r/#debugging for debugging tips. See fda_document.log for more info.

# available package on the system
tinytex::tlmgr(c('info', '--list', '--only-installed', '--data', 'name'))
#> tlmgr info --list --only-installed --data name
amscls
amsfonts
amsmath
atbegshi
atveryend
auxhook
babel
bibtex
bibtex.win32
bigintcalc
bitset
booktabs
cm
ctablestack
dehyph
dvipdfmx
dvipdfmx.win32
dvips
dvips.win32
ec
epstopdf-pkg
etex
etexcmds
etoolbox
euenc
everyshi
fancyvrb
filehook
firstaid
float
fontspec
framed
geometry
gettitlestring
glyphlist
graphics
graphics-cfg
graphics-def
helvetic
hycolor
hyperref
hyph-utf8
hyphen-base
iftex
inconsolata
infwarerr
intcalc
knuth-lib
kpathsea
kpathsea.win32
kvdefinekeys
kvoptions
kvsetkeys
l3backend
l3kernel
l3packages
latex
latex-amsmath-dev
latex-bin
latex-bin.win32
latex-fonts
latex-tools-dev
latexconfig
latexmk
latexmk.win32
letltxmacro
lm
lm-math
ltxcmds
lua-alt-getopt
lua-uni-algos
luahbtex
luahbtex.win32
lualatex-math
lualibs
luaotfload
luaotfload.win32
luatex
luatex.win32
luatexbase
mdwtools
metafont
metafont.win32
mfware
mfware.win32
modes
natbib
pdfescape
pdftex
pdftex.win32
pdftexcmds
plain
psnfss
refcount
rerunfilecheck
scheme-infraonly
selnolig
stringenc
symbol
tex
tex-ini-files
tex.win32
texlive-scripts
texlive-scripts.win32
texlive.infra
texlive.infra.win32
times
tipa
tlgs.win32
tlperl.win32
tools
unicode-data
unicode-math
uniquecounter
url
xcolor
xetex
xetex.win32
xetexconfig
xkeyval
xunicode
zapfding

# not able to install `mathdesign`
tinytex::tlmgr_install("mathdesign")
#> tlmgr install mathdesign
#> tlmgr update --self
#> tlmgr install mathdesign
tlmgr install mathdesign

C:\Users\jwen3\AppData\Roaming\TinyTeX\texmf-dist\scripts\texlive\tlmgr.pl: TLPDB::from_file could not initialize from: https://mirror.ctan.org/systems/texlive/tlnet/tlpkg/texlive.tlpdb
C:\Users\jwen3\AppData\Roaming\TinyTeX\texmf-dist\scripts\texlive\tlmgr.pl: Maybe the repository setting should be changed.
C:\Users\jwen3\AppData\Roaming\TinyTeX\texmf-dist\scripts\texlive\tlmgr.pl: More info: https://tug.org/texlive/acquire.html
tlmgr update --self
tlmgr install mathdesign

C:\Users\jwen3\AppData\Roaming\TinyTeX\texmf-dist\scripts\texlive\tlmgr.pl: TLPDB::from_file could not initialize from: https://mirror.ctan.org/systems/texlive/tlnet/tlpkg/texlive.tlpdb
C:\Users\jwen3\AppData\Roaming\TinyTeX\texmf-dist\scripts\texlive\tlmgr.pl: Maybe the repository setting should be changed.
C:\Users\jwen3\AppData\Roaming\TinyTeX\texmf-dist\scripts\texlive\tlmgr.pl: More info: https://tug.org/texlive/acquire.html

sessionInfo()
#> R version 4.2.0 (2022-04-22 ucrt)
#> Platform: x86_64-w64-mingw32/x64 (64-bit)
#> Running under: Windows 10 x64 (build 19042)
#> 
#> Matrix products: default
#> 
#> locale:
#> [1] LC_COLLATE=English_United States.utf8 
#> [2] LC_CTYPE=English_United States.utf8   
#> [3] LC_MONETARY=English_United States.utf8
#> [4] LC_NUMERIC=C                          
#> [5] LC_TIME=English_United States.utf8    
#> 
#> attached base packages:
#> [1] stats     graphics  grDevices utils     datasets  methods   base     
#> 
#> other attached packages:
#> [1] yspec_0.5.3.9000
#> 
#> loaded via a namespace (and not attached):
#>  [1] rstudioapi_0.14  knitr_1.41       magrittr_2.0.3   tidyselect_1.2.0
#>  [5] xtable_1.8-4     R6_2.5.1         rlang_1.0.6      fastmap_1.1.0   
#>  [9] fansi_1.0.3      stringr_1.5.0    highr_0.9        dplyr_1.0.10    
#> [13] tools_4.2.0      xfun_0.35        tinytex_0.43     utf8_1.2.2      
#> [17] DBI_1.1.2        cli_3.4.1        withr_2.5.0      htmltools_0.5.4 
#> [21] yaml_2.3.6       digest_0.6.31    assertthat_0.2.1 tibble_3.1.8    
#> [25] lifecycle_1.0.3  crayon_1.5.2     purrr_0.3.5      vctrs_0.5.1     
#> [29] fs_1.5.2         glue_1.6.2       evaluate_0.19    rmarkdown_2.19  
#> [33] reprex_2.0.1     stringi_1.7.8    compiler_4.2.0   pillar_1.8.1    
#> [37] generics_0.1.3   pkgconfig_2.0.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant