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

Not available to render example qmd file without installing additional components #2

Closed
jhk0530 opened this issue Dec 8, 2023 · 2 comments

Comments

@jhk0530
Copy link

jhk0530 commented Dec 8, 2023

Hi, thanks for nice work.

Problem

Recently I tried to use this template for practice my self.

Here's what I did.

  1. install and load template using command quarto use tempalte dfolio/quarto-ieee
  2. Just render ieee.qmd with Rstudio

However, this will return error message:

LaTeX Error: File orcidlink.sty not found.

Solution

and I found solution to solve this problem.

  1. install tinytex via Console: tinytex::install_tinytex(), then check whether result of tinytex::is_tinytex() is TRUE
  2. install orcidlink.sty via Console using tinytex
tinytex::parse_packages(
    text = "! LaTeX Error: File `orcidlink.sty' not found."
)

and it will return 'orcidlink' like below image

  1. and then render qmd file again and it will work.

I think this process added into readme, this template will look much better. (If you don't mind i'll modify this and make PR)

Thanks.

Kim

@dfolio
Copy link
Owner

dfolio commented Dec 13, 2023

Thank you for reporting this issue

As reported on quarto issue 877

Are you using TeX Live ? Automatic installation would be disabled if not using TeX Live as LaTeX distribution, or explicitly opt-out.
Quarto uses by default a Quarto engine that does try to install missing dependencies (https://quarto.org/docs/output-formats/pdf-engine.html#quarto-pdf-engine)

Initially, I didn't use TeX Live, but the packages that came with my Linux distribution. After switching to TeX Live, I don't have this problem anymore.
Second, to limit this problem, I explicitly set latex-auto-install: true in the _extension.yml. So it is surprising that such an issue still occurs.
So I guess this issue might be related to that.

@jhk0530
Copy link
Author

jhk0530 commented Dec 13, 2023

My understanding is that
If I use quarto's default pdf engine (not TexLive or TinyTex), I won't have any problems.
Is that correct?

and As an additional dumb question 😅
Is it possible to just uninstall tinytex with a command

quarto uninstall tinytex

to use the default engine?

Thanks for kind response.

Kim.

@jhk0530 jhk0530 closed this as completed Dec 13, 2023
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

2 participants