Skip to content

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

Open

Description

@cderv

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.

Activity

  1. added
    enhancement
    on Jun 28, 2023
  2. added this to the Future milestone on Jun 28, 2023
  3. modified the milestones: Future, v1.5 on Jun 28, 2023
  4. self-assigned this
    on Jun 28, 2023
  5. jr-leary7 commented on Sep 21, 2023

    @jr-leary7

    i would appreciate having this change as well !

  6. modified the milestones: v1.5, Future on Feb 12, 2024
  7. skwde commented on Jul 4, 2024

    @skwde

    This would certainly be nice.

    For other coming here:

    See the related discussion with a temporary "workaround" via specify format:latex (#10224 (reply in thread)) together with format:latex:output-file.

  8. ajinkya-k commented on Apr 2, 2025

    @ajinkya-k

    This would be a really useful feature. I am working in a project where I need an arxiv version of both the tex and pdf files as well as a journal specific version. While using different format blocks and using --to arxiv-pdf and --to journal.pdf I can produce two differently named pdf files, I still have to rename the tex file manually for one of them.

  9. added
    latex
    files
    on Jul 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementfileslatex

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions