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

! LaTeX Error: This NFSS system isn't set up properly. #4

Closed
kanazawahere opened this issue Jun 1, 2019 · 11 comments
Closed

! LaTeX Error: This NFSS system isn't set up properly. #4

kanazawahere opened this issue Jun 1, 2019 · 11 comments

Comments

@kanazawahere
Copy link

! LaTeX Error: This NFSS system isn't set up properly.

Error: Failed to compile _main.tex. See https://yihui.name/tinytex/r/#debugging for debugging tips. See _main.log for more info.
In addition: Warning messages:
1: In parse_packages(logfile, quiet = c(TRUE, FALSE, FALSE)) :
Failed to find a package that contains authoryear.dbx
2: In parse_packages(logfile, quiet = c(TRUE, FALSE, FALSE)) :
Failed to find a package that contains biblatex-dm.cfg
3: In parse_packages(logfile, quiet = c(TRUE, FALSE, FALSE)) :
Failed to find a package that contains latin.lbx
Execution halted
make: *** [pdf] Error 1

R version 3.6.0 (2019-04-26)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS Mojave 10.14.5

Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/3.6/Resources/lib/libRlapack.dylib

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

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

other attached packages:
[1] tinytex_0.13

loaded via a namespace (and not attached):
[1] compiler_3.6.0 tools_3.6.0 xfun_0.7 packrat_0.5.0

@ulyngs
Copy link
Owner

ulyngs commented Mar 16, 2020

What latex installation are you using? Try getting a full installation of latex (https://www.latex-project.org/get/) rather than tinytex and see if that fixes it!

@ulyngs ulyngs closed this as completed Apr 2, 2020
@ilsePit
Copy link

ilsePit commented Jun 17, 2020

I had the same issue. I am using tinytex in Rstudio on Ubuntu 18.04. I solved the issue by installing the package 'cbfonts-fd', which includes the file 'LGRcmr.fd' that was missing according to _main.log.

tinytex::tlmgr_install('cbfonts-fd')

Hopefully that resolves the issue of not being able to use tinytex!

@ulyngs
Copy link
Owner

ulyngs commented Jun 23, 2020

That's brilliant, thanks for figuring this out Ilse! I will make a note of this in the readme!

@ilsePit
Copy link

ilsePit commented Jun 23, 2020

I'm wondering if adding \usepackage{cbfonts-fd} to the latex file will also do the trick.. Have not tried this out yet (and not that literate in latex) but was planning to try that soon.

@bttomio
Copy link

bttomio commented Mar 10, 2021

I had the same issue. I am using tinytex in Rstudio on Ubuntu 18.04. I solved the issue by installing the package 'cbfonts-fd', which includes the file 'LGRcmr.fd' that was missing according to _main.log.

tinytex::tlmgr_install('cbfonts-fd')

Hopefully that resolves the issue of not being able to use tinytex!

Thank you very much! It solved the same issue on Ubuntu 20.04.2 LTS.

@shirdekel
Copy link
Contributor

Had the same error with Mac 10.14.6 (18G6032) using tinytex.

tinytex::tlmgr_install('cbfonts-fd') fixed it.

@flashshare
Copy link

I had the same issue. I am using tinytex in Rstudio on Ubuntu 18.04. I solved the issue by installing the package 'cbfonts-fd', which includes the file 'LGRcmr.fd' that was missing according to _main.log.

tinytex::tlmgr_install('cbfonts-fd')

Hopefully that resolves the issue of not being able to use tinytex!

Thanks. It works for me also.

yihui added a commit to rstudio/tinytex that referenced this issue Apr 22, 2021
…ke LGRcmr.fd and install the missing packages accordingly
@yihui
Copy link

yihui commented Apr 22, 2021

I'll truly appreciate it if someone could report this type of issue to the tinytex repo in the future. I had no idea that many people were suffering from this issue until I saw @bttomio's tweet today. It is actually fairly simple to fix in tinytex, and I just did it. You can install the development version via

remotes::install_github('yihui/tinytex')

You all may be too kind to bother me, which I also appreciate very much. I am often busy indeed, but that's exactly why I love investing 10 minutes on my side to fix a small issue to save hours of other people's time! :)

clrpackages pushed a commit to clearlinux-pkgs/R-tinytex that referenced this issue Jun 2, 2021
…0.32

Charles Teague (1):
      Add AwesomeBox and FontAwesome (#306)

Dirk Elmendorf (1):
      bug: If you set  TINYTEX_VERSION the downloaded version is not named (#302)

Yihui Xie (42):
      if cache = FALSE, remove the downloaded installer on exit (#294)
      cosmetic
      pin the CTAN mirror at https://ctan.math.illinois.edu/systems/texlive/tlnet (#293)
      update supported texlive platforms
      make the `repository` argument also work when install_tinytex() installs the prebuilt binary
      also respect the env var CTAN_REPO in the Windows installer
      unless running on CI servers, reset the CTAN mirror in binary installations since we have fixed it in ff565043d11ef042349d42bcbf178ce0b2a63167; should we fix the CTAN mirror no matter what? I don't know; if only there were a mirror that is based on CDN (then I wouldn't need to worry about which mirror to use)
      Dash doesn't support <<<
      when the env var CI is empty, don't check its value because the LHS of the != comparison would be empty, which would lead to an error
      fix #295: use the env var $OSTYPE in bash to make sure we install the prebuilt TinyTeX binary only for linux but not for other linux distributions such as linux-musl
      missed a space
      support install_tinytex(version = 'latest')
      set the default ctan mirror only when installing TinyTeX on non-CI servers
      store the regular expressions in a list so that I don't have to rely on the indices of items specifically later, e.g. put the first 5 items in r$font so I can test `if (p %in% r$font)` instead of `if (p %in% r[1:5])`
      fix #299: handle the error "! Package pdfx Error: No color profile sRGB_IEC61966-2-1_black_scaled.icc found" and install colorprofiles
      close #301: provide a global option `tinytex.source.install` to make it possible to install TinyTeX via the source installer if need_source_install() fails to make the decision (e.g. on old macOS), in which case users can specify options(tinytex.source.install = TRUE)
      install the dev version of knitr to fix the kableExtra problem https://github.com/yihui/tinytex/runs/2406634462?check_suite_focus=true
      fix ulyngs/oxforddown#4: also detect missing font definition files like LGRcmr.fd and install the missing packages accordingly
      fix #303: include psnfss in the default TinyTeX distribution
      use xfun::format_bytes()
      make sure tinytex is installed before it is used
      try to build tinytex-latexmk
      how come utils is not loaded?
      copy the tinytex binary to the bin/ directory
      copy the tinytex binary to the root dir
      match the binary names first
      mark the file as executable
      fix #311: install the glossary language moduel when a warning is detected:
      also install the language module for datetime2 just like we did for #311
      specify more metadata for the tinytex command
      the executable was also renamed
      add a helper function for myself to open tlmgr.pl without going to the TinyTeX folder every time
      rename the `tinytex` binary to `tinitex` to avoid confusion: tinytex is the R package name, and tinitex will be the command name
      zip is not available on Windows
      don't include the directory structure in the tarball
      compress tinitex.exe inside R via powershell, otherwise appveyor will also try to run powershell on *nix, in which case tinitex.exe won't be found
      not sure why the tarball is empty on Linux
      shouldn't have specified the compression twice
      create the tarball under the directory of tinitex and return the absolute path of the tarball
      still don't know why tar() creates an empty tarball on Linux; try the system command instead
      suppress the messages from `tlmgr option repository`: rstudio/tinytex#24 (comment)
      CRAN release v0.32

christophe dervieux (1):
      update action following changes in r-lib/actions
@Pawanbhatt500
Copy link

I am having the same problem. Please help me !!
I am using texlive and texstudio on Ububtu 21.03

The error is
image

@alita-moore
Copy link

alita-moore commented Jan 17, 2024

I had the same problem, possibly the problem is the order in which you're importing packages or conflicting packages. For example:

\usepackage{fontspec}
\usepackage{boisik}
\usepackage[OT1]{fontenc}

gives the following errror

No file LBMlmr.fd.

/tmp/tmpqxhbk5l7.tex:63: LaTeX Error: This NFSS system isn't set up properly.

But

\usepackage{fontspec}
\usepackage[OT1]{fontenc}
\usepackage{boisik}

compiles without errors. Also, fonts with math support may be conflicting with the unicode-math package so you should try removing the unicode-math package.

@sht
Copy link

sht commented Nov 30, 2024

I had the same issue. I am using tinytex in Rstudio on Ubuntu 18.04. I solved the issue by installing the package 'cbfonts-fd', which includes the file 'LGRcmr.fd' that was missing according to _main.log.

tinytex::tlmgr_install('cbfonts-fd')

Hopefully that resolves the issue of not being able to use tinytex!

Awesome, thanks for the solution. It saved me a lot of time of debugging!

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

10 participants