quarto-dev / quarto-cli

Open-source scientific and technical publishing system built on Pandoc.
https://quarto.org
Other
3.95k stars 326 forks source link

Rendering pdf - File `scrartcl.cls' not found #1281

Closed ca-signorelli closed 2 years ago

ca-signorelli commented 2 years ago

When rendering pdf from Quarto I get an error, and the following output in the pdf-log.

This is XeTeX, Version 3.141592653-2.6-0.999994 (TeX Live 2022) (preloaded format=xelatex 2022.7.3) 3 JUL 2022 21:31 entering extended mode restricted \write18 enabled. %&-line parsing enabled. **write_pdf.tex (./write_pdf.tex LaTeX2e <2022-06-01> patch level 3 L3 programming layer <2022-06-16>

! LaTeX Error: File `scrartcl.cls' not found.

Type X to quit or to proceed, or enter new name. (Default extension: cls)

Enter file name: ! Emergency stop. <read *>

l.10 \usepackage {amsmath,amssymb}^^M

cderv commented 2 years ago

Can you share your Quarto version ? quarto check ?

Also, can you share quarto tools list ?

scrartcl.cls is part of koma-script CTAN package so you could install it, but it should be installed automatically if missing when you are using Quarto with TeX Live (https://quarto.org/docs/output-formats/pdf-engine.html#quarto-pdf-engine).

Sharing your OS environment info and also TeX Live installation info could help.

ca-signorelli commented 2 years ago

Hello, Thank you for your swift reply. I reinstalled Quarto, and now the messages changed. When I render a qmd file from RStudio I get the following message:

@.***

But the tinytex is already installed.

G:>quarto install tool tinytex tinytex is already installed and up to date.

G:>quarto check

[>] Checking Quarto installation......OK Version: 0.9.640 Path: C:\Program Files\Quarto\bin\ CodePage: 1252

[>] Checking basic markdown render....OK

[>] Checking Python 3 installation....(None)

  Unable to locate an installed version of Python 3.
  Install Python 3 from https://www.python.org/downloads/

[>] Checking R installation...........OK Version: 4.1.3 Path: C:/PROGRA~1/R/R-41~1.3 LibPaths:

[>] Checking Knitr engine render......OK

G:>quarto tools list (|) Inspecting toolsDownload @./directories.ts (|) Inspecting toolsDownload @./deps.ts [>] Inspecting tools

Tool Status Installed Latest chromium Not installed --- 869685 tinytex Up to date v2022.05 v2022.05 WARNING: TeX Live not on path.

From: Christophe Dervieux @.> Sent: mandag 4. juli 2022 12:28 To: quarto-dev/quarto-cli @.> Cc: Andersen, Christian @.>; Author @.> Subject: Re: [quarto-dev/quarto-cli] Rendering pdf - File `scrartcl.cls' not found (Issue #1281)

Can you share your Quarto version ? quarto check ?

Also, can you share quarto tools list ?

scrartcl.cls is part of koma-script CTAN packagehttps://ctan.org/pkg/koma-script so you could install it, but it should be installed automatically if missing when you are using Quarto with TeX Live (https://quarto.org/docs/output-formats/pdf-engine.html#quarto-pdf-engine).

Sharing your OS environment info and also TeX Live installation info could help.

— Reply to this email directly, view it on GitHubhttps://github.com/quarto-dev/quarto-cli/issues/1281#issuecomment-1173646681, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQESPXLMF5UDG2ILDQVR5FLVSK4DRANCNFSM52RFVSIA. You are receiving this because you authored the thread.Message ID: @.***>

cderv commented 2 years ago
***@***.***

This above is the error message ?

Can you format correctly the code / log part in the github issue so that it is readable ?

WARNING: TeX Live not on path.

You may need to restart your terminal session after installing TinyTeX so that tlmgr and tools is correctly on PATH.

ca-signorelli commented 2 years ago

Hei, I tried to send a picture of the screen. I have attached it below, it should be visible in Preview.

image

cderv commented 2 years ago

No TeX installation detected means that your installation of TinyTeX is somehow not found.

quarto tools list give you TinyTeX correctly installed right ?

After you install (quarto install tool tinytex), have you restarted your terminal window ? Your editor or other program like RStudio IDE ? Or even your computer ?

The installation of TinyTeX needs to be put in PATH and, especially on Windows, the PATH env var update may require a restart.

ca-signorelli commented 2 years ago

Hello again, I tried to shut everything down before restart, and now it works. Thank you so much for your follow up and support. Going through all the steps you recommended helped me out.

Best regards Christian

From: Christophe Dervieux @.> Sent: mandag 4. juli 2022 16:31 To: quarto-dev/quarto-cli @.> Cc: Andersen, Christian @.>; Author @.> Subject: Re: [quarto-dev/quarto-cli] Rendering pdf - File `scrartcl.cls' not found (Issue #1281)

No TeX installation detected means that your installation of TinyTeX is somehow not found.

quarto tools list give you TinyTeX correctly installed right ?

After you install (quarto install tool tinytex), have you restarted your terminal window ? Your editor or other program like RStudio IDE ? Or even your computer ?

The installation of TinyTeX needs to be put in PATH and, especially on Windows, the PATH env var update may require a restart.

— Reply to this email directly, view it on GitHubhttps://github.com/quarto-dev/quarto-cli/issues/1281#issuecomment-1173887374, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQESPXJUXIIKVQR2TCGXK73VSLYSFANCNFSM52RFVSIA. You are receiving this because you authored the thread.Message ID: @.**@.>>

cderv commented 2 years ago

Glad it is working now!

alireza5969 commented 5 months ago

Hi, I have the same problem in the first issue.

` ==> quarto preview test.qmd --to pdf --no-watch-inputs --no-browse

pandoc to: latex output-file: test.tex standalone: true pdf-engine: xelatex variables: graphics: true tables: true default-image-extension: pdf

metadata documentclass: scrartcl classoption:

Rendering PDF running xelatex - 1 This is XeTeX, Version 3.141592653-2.6-0.999995 (TeX Live 2023) (preloaded format=xelatex) restricted \write18 enabled. entering extended mode

updating tlmgr

updating existing packages finding package for scrartcl.cls ERROR: compilation failed- no matching packages LaTeX Error: File `scrartcl.cls' not found.

Type X to quit or to proceed, or enter new name. (Default extension: cls)

Enter file name: ! Emergency stop. <read *>

l.10 ^^M

see test.log for more information. `

Would you please help me?

cderv commented 5 months ago

@alireza5969 same things apply: See my question https://github.com/quarto-dev/quarto-cli/issues/1281#issuecomment-1173646681

When comment with a problem you need to help us help you.

Also, this issue is from 2 years ago. Please open new ones instead of commenting on old one. A lot can have changed in 2 years. If you need help and not opening an issue with quarto, you can also consider opening a discussion : https://github.com/quarto-dev/quarto-cli/discussions

thanks