-
Hi. Looking to have a pdf or docx that is mostly portrait, but that then shifts to landscape for a wide table and back to portrait afterward. I see that it is possible to establish document-wide portrait or landscape via _quarto.yml code such as
But even in a book it doesn't look like I can override classoption from portrait to landscape for a given qmd file because, as I read the documentation, yaml in individual chapter qmd files is ignored (and when I tried anyway, it was ignored). I can see that various people appear to have done this in Rmarkdown, for example discussed here, and if I read it properly there are ways to do it by keeping tex output and manually editing the tex file afterward, but (a) I don't know a thing about tex, and (b) I prefer to avoid post-processing manual editing if possible. With that as background, is there a relatively simple but perhaps as-yet undocumented way to mix portrait and landscape in pdf and docx output formats in quarto? Also, as I read the documentation, it may be possible to divide a project into separate folders, with a separate _metadata.yml file in each folder, and perhaps that is a way to do it, but then I wonder, (a) can I set it up so that the separate documents are automatically combined (I haven't seen anything in the documentation on that yet), and (b) if so, will page numbers run consecutively and will other integrating actions such as a cohesive index be straightforward? Many thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 3 replies
-
Right now we don't have a simple way (built in) to do this, though that would be a pretty sweet feature, especially if we could support it will cross format (though that will be very challenging of course). The solutions that you linked to (using the
I'm not sure on the Word side, but I think this is a good general direction for PDF output. |
Beta Was this translation helpful? Give feedback.
-
Many thanks for these additional tips. I will investigate further and post
once I have something in a nice crisp (and fully working) form.
And thanks for the amazing quarto software. I always prefer to automate
everything, to minimize risks from manual work and to maximize
reproducibility. It seems perfect for that. Trying to learn the basics of
it (and tex, or latex I guess) as quickly as possible. Will try to post in
a day or two or three.
…On Mon, Apr 18, 2022 at 6:18 PM Charles Teague ***@***.***> wrote:
I noticed that page number issue and wasn't sure whether that was 'good
behavior' or not, though it seemed bad to me! This thread has a couple of
other suggestions of approaches you could try (that basically look like
what you've done but with different packages):
https://tex.stackexchange.com/questions/337/how-to-change-certain-pages-into-landscape-portrait-mode
FWIW If you'd like you should be able to also take anything in your
preamble.tex file and just place it as a block in _quarto.yml under
header-includes like:
format:
pdf:
header-includes: | <contents of preamble.tex> documentclass: scrreprt
classoption: portrait
If you wouldn't mind sharing what you end up with, I think that would be
great and the community would really benefit from your learning and work.
Thank you!
—
Reply to this email directly, view it on GitHub
<#680 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABR4JGGUMKRUC36DJPGVYNDVFXNRNANCNFSM5TWPDJYQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
This is just an information update for now. Not ready to post a full solution to my specific problem as it will take a while to figure that out. Goal pdf - status and issues
docx - status and issues
Will post solution if I find one. |
Beta Was this translation helpful? Give feedback.
-
Related: |
Beta Was this translation helpful? Give feedback.
-
I just installed the quarto pre-release 1.6.23 and landscape come out-of-the-box, see: #10581, |
Beta Was this translation helpful? Give feedback.
This is just an information update for now. Not ready to post a full solution to my specific problem as it will take a while to figure that out.
Goal
Generate pdf AND docx output with mixed portrait and landscape pages, and with option to have page numbering for landscape on bottom of long edge of page rather than on left side of short edge.
pdf - status and issues
The solution above (see "Mixing portrait and landscape WITHOUT a header.tex file") works fine for pdf with page number on left short edge of landscape page. A few notes:
\newcommand{\blandscape}{\begin{landscape}}
) is crucial. The reason fo…