quarto-dev / quarto-cli

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

Rename `tex` output to `output-file` when `keep-tex: true` #6045

Open cderv opened 1 year ago

cderv commented 1 year ago

Takes this qmd test.qmd

---
title: "Test"
format:
  pdf:
    output-file: pdf.pdf
keep-tex: true
---

# Test

This will produce a test.tex and a pdf.pdf output.

I think it could be better to have the intermediate be renamed to the output-file option when provided. 🤔

Opening this issue to track the idea and look into what we can do.

jr-leary7 commented 9 months ago

i would appreciate having this change as well !

skwde commented 3 days ago

This would certainly be nice.

For other coming here:

See the related discussion with a temporary "workaround" via specify format:latex (https://github.com/quarto-dev/quarto-cli/discussions/10224#discussioncomment-9957228) together with format:latex:output-file.