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

Error: ! kpathsea: Running mktexfmt pdflatex.fmt (or xelatex.fmt)... I can't find the format file pdflatex.fmt (or xelatex.fmt) #210

Closed
datacubeR opened this issue May 13, 2020 · 41 comments

Comments

@datacubeR
Copy link

Hi Yihui,
I'm in panic. I have to submit my thesis in 3 weeks. I've been using bookdown the last 5 months because I have zero experience using latex. I struggle the first 2 months getting to the right format of my Uni using thesisdown and other packages, but I could only make it work using bookdown. The thing is I had an issue with a floating table (I never used tables in the rest of my thesis until this final chapter) and tried to solve it as per this yihui answer: https://stackoverflow.com/questions/44850011/how-to-stop-bookdown-tables-from-floating-to-bottom-of-the-page-in-pdf

When tried to apply kableExtra I got the "Remote repository newer than local". I followed yuhui advices and I used tinytex::reinstall_tinytex() and now tinytex is not correctly installed and not compiling the book.

When installing I got the messages in the following file:

tinytex_install_messages.txt
When trying to compile the book using build book I get this in the .log file:

! Running the command C:\Users\Ponchov\AppData\Roaming\TinyTeX\bin\win32\fmtutil-user.exe
! kpathsea: Running mktexfmt xelatex.fmt
! The command name is C:\Users\Ponchov\AppData\Roaming\TinyTeX\bin\win32\mktexfmt

changing to verbose output I get this, but don't know what they mean:

Running the command C:\Users\Ponchov\AppData\Roaming\TinyTeX\bin\win32\fmtutil-user.exe
I can't find the format file `xelatex.fmt'!

kpathsea: Running mktexfmt xelatex.fmt

The command name is C:\Users\Ponchov\AppData\Roaming\TinyTeX\bin\win32\mktexfmt
I was unable to find any missing LaTeX packages from the error log Tesis.log.
! Running the command C:\Users\Ponchov\AppData\Roaming\TinyTeX\bin\win32\fmtutil-user.exe

! kpathsea: Running mktexfmt xelatex.fmt

! The command name is C:\Users\Ponchov\AppData\Roaming\TinyTeX\bin\win32\mktexfmt

Aditionally I'm getting this message oftenly. This message is normal when installing tinytex, but now it shows up every time I hit build book:

image

Please help, I´m so closed to finish my thesis and I don´t think I´m able to rewrite it at this point.

Thanks,

Alfonso


By filing an issue to this repo, I promise that

  • [x ] I have fully read the issue guide at https://yihui.org/issue/.
  • [ x] I have provided the necessary information about my issue.
    • If I'm asking a question, I have already asked it on Stack Overflow or RStudio Community, waited for at least 24 hours, and included a link to my question there.
    • If I'm filing a bug report, I have included a minimal, self-contained, and reproducible example, and have also included xfun::session_info('tinytex'). I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version: remotes::install_github('yihui/tinytex').
    • If I have posted the same issue elsewhere, I have also mentioned it in this issue.
  • [x ] I have learned the Github Markdown syntax, and formatted my issue correctly.

I understand that my issue may be closed if I don't fulfill my promises.

@yihui

This comment has been minimized.

@datacubeR

This comment has been minimized.

@datacubeR

This comment has been minimized.

@Jarred6068

This comment has been minimized.

@mps9506

This comment has been minimized.

@datacubeR

This comment has been minimized.

@wht10

This comment has been minimized.

@mps9506

This comment has been minimized.

@Jarred6068

This comment has been minimized.

@yihui

This comment has been minimized.

@yihui yihui changed the title bookdown not building book when solving “Remote repository newer than local” Error: ! kpathsea: Running mktexfmt pdflatex.fmt (or xelatex.fmt)... I can't find the format file pdflatex.fmt (or xelatex.fmt) May 14, 2020
@norbusan

This comment has been minimized.

@datacubeR

This comment has been minimized.

@ObiDadKenobi

This comment has been minimized.

@cderv cderv mentioned this issue May 15, 2020
3 tasks
@mps9506

This comment has been minimized.

@datacubeR

This comment has been minimized.

@kokbent

This comment has been minimized.

@AngelClaudio

This comment has been minimized.

@datacubeR

This comment has been minimized.

@yihui

This comment has been minimized.

@AngelClaudio

This comment has been minimized.

@datacubeR

This comment has been minimized.

@yihui
Copy link
Member

yihui commented May 15, 2020

To anyone who is still having problems with tinytex::install_tinytex(), please restart your R session, and try:

remotes::install_github('yihui/tinytex')
tinytex:::install_prebuilt()

This should work for Windows, macOS, and Ubuntu users.

@wht10

This comment has been minimized.

@yihui

This comment has been minimized.

@AngelClaudio

This comment has been minimized.

@wht10

This comment has been minimized.

@AngelClaudio

This comment has been minimized.

@yihui

This comment has been minimized.

@AngelClaudio

This comment has been minimized.

@wht10

This comment has been minimized.

@yihui

This comment has been minimized.

@norbusan

This comment has been minimized.

@maitry-shah67

This comment has been minimized.

@itsdebartha

This comment has been minimized.

@sol-libesman

This comment has been minimized.

@wht10

This comment has been minimized.

@yihui

This comment has been minimized.

@yihui
Copy link
Member

yihui commented May 17, 2020

I have tested tinytex::install_tinytex() on my local macOS, Windows, and Ubuntu, as well as on Travis and AppVeyor. Both the "missing pdflatex.fmt/xelatex.fmt or luatex.dll" and "gpg bad signature" issues are gone. If they are not on your machine, you probably need to wait for one more day or two till your CTAN mirror becomes up-to-date.

@aleruete
Copy link

It seems a large update ;)

Untitled

Haven't fully tested yet though, but thanks

@Robert-Estiven
Copy link

Hola, tengo problemas al compilar un Rmarkdown, lo siguiente es lo que aparece al compilar un documento.
¿Me podrían ayudar a arreglar este error?, gracias.

Screenshot_11

@cderv
Copy link
Contributor

cderv commented Aug 24, 2020

Hi @Robert-Estiven ,

It is best if you ask your question on RStudio Community There is a broad community to help there, and isolate a potential issue.

If you think you found an issue, you can open a ticket in the correct GH repo.

From the error message you have, it seems you are using octave binary in a chunk and that the binary is not correctly found. It does not seem related with this ticket.

Happy to continue the discussion in the question you'll open in the RStudio community. Thank you !

@rstudio rstudio locked as resolved and limited conversation to collaborators Aug 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests