-
Notifications
You must be signed in to change notification settings - Fork 391
Add title-short to LaTeX partial
#5627
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
Conversation
|
Thanks for the PR! If we're going to change this, we also need to change the schemas so that YAML validation and auto-completion in IDEs work. I also wonder if we should be doing something a bit different with the supported yaml syntax. Instead of title: Full titleand title:
long: Full title
short: Short titleThis schema is consistent with the pandoc syntax for long and short captions. @dragonstyle @jjallaire what do you think? |
|
That does look neater IMO. Although relevant here is that this option breaks some (most?) PDF formats, like the default ---
title:
long: Full title
format:
pdf:
output-file: article.pdf
beamer:
title:
short: Short title
---So if you were rendering multiple pdf formats (or switching frequently between them), I think ---
title: Full title
format:
pdf:
output-file: article.pdf
beamer:
title-short: Short title
---Also, would this show up in any other formats like html? |
|
We would normalize the |
|
So what we have decided? |
|
This was implemented upstream (#5620 (comment)). I think we can close this. |
|
This is a very stale PR, but the issue has only been solved in |
|
Hello! We're looking to clean up some of Quarto's open PRs. If we're going to support this, we need to add support to other formats as well: our typical "minimal format set" is Typst, HTML (websites and books), PDF and (ideally) docx. As our new PR template requests, we would also need
We appreciate the proposal in this PR, and I'm happy to have a discussion if there's interest in making those additions. I will wait a bit of time for a response, but I will otherwise start closing these. Thanks again for your interest in Quarto. |
|
Happy for this to be closed. The core team would need to make some design decisions about how to extend this to other formats, where it's not as clear cut as with |
Description
Adds
title-shortoption for PDF documents. This option is supported by some LaTeX classes, such as beamer or amsart, by adding square brackets after title:\title[Short Title]{Long Title}As per #5620, this syntax is consistent with what's already in the
acsquarto journal template. There is a question whether this should be upstream in pandoc.Smoke tests might be overkill so feel free to delete.
Checklist
I have (if applicable):