-
Notifications
You must be signed in to change notification settings - Fork 337
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
output-file naming is not used for docx-book #12063
Comments
I don't think book project support this at all or ever supported it contrary to the option being listed in the reference page for book.
I suggest to use |
Post-render is what I am using, but it is ugly to rename
To Gastric_emptying_20_01_2025.docx Ok, I can use QUARTO_PROJECT_OUTPUT_DIR etc. But please, put this into the docs, I tried hours until I gave up. |
I think this is a valid use case to support as docx, epub and pdf will be one file output for book. So using The logic would be to use I need to think if this could have unexpected side effect to do such thing - if we can scope to book context, I think that should be fine. post-render is currently the way to deal with that. We'll see where to put that in the doc. |
I missread this sorry.
This is a book:
title: "Title of the book"
output-file: "custom-book-name" It works ok with latest Quarto, and we'll be use instead of It can't be specified per format. If you need to have different name for different format, then you need to leverage Project profile to be able to change the I'll see if I can improve the doc to make this option findable. |
You are right. For the user, it's often difficult to find out on which level some key should be given. When you given a key in a wrong first level, Intellisense will work fine to reject it. Not in this case. |
I read again what I wrote and it's actually not very clear. I meant: "this" and "it" refer to "
I (wrongly?) assumed the per format was a requirement, thus did not mention explicitly: book:
output-file: "custom-book-name" |
@dmenne Using It is in "Customizing Book Output" part so it seems pretty clear.
@mcanouil So when you said "contrary to the option being listed in the reference page for book." you meant In that case, this is all good. I completely missed that from your comment. Sorry
All the more because using Profiles probably works well enough. One profile per book title desired, with the desired format for the book title in each profile. |
Yes, but I was not very clear😅 |
Considering our Book part of the doc already mention the option at quarto.org/docs/books/book-output.html#output-path and this is already in the reference, I just added Regarding the use case and the documentation of how to change title to a book, this is a good topic for a blog post a simple recipe. I'll make a note of this. |
Bug description
File name in Word/Book output is always derived from title.
Steps to reproduce
Expected behavior
Output file name should be
IWantThisName.docx
Actual behavior
Output file name is
mybook.docx
Your environment
No response
Quarto check output
Also tested with 1.7.13
The text was updated successfully, but these errors were encountered: