Skip to content
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

Update eisvogel.tex to support optional twosided #403

Closed
AaronNGray opened this issue Nov 16, 2024 · 2 comments
Closed

Update eisvogel.tex to support optional twosided #403

AaronNGray opened this issue Nov 16, 2024 · 2 comments

Comments

@AaronNGray
Copy link

Hi, I have an issue. I am trying to get pandoc-latex-template to support odd and even pages.

Here's the mods I have done so far :-

I have added a optional generation of '\documentclass[twoside]' from a twosided flag.

https://github.com/AaronNGray/pandoc-latex-template/commits/master/

I am wanting odd and even page footers to have the page number on the outside edge of the page footers.

@Wandmalfarbe
Copy link
Owner

Two-sided documents are already supported out of the box. You just have to pass the option twoside as a classoption e.g., in the YAML metadata block:

classoption: [twoside]

I have added the example twoside to show how a two-sided document can be produced. You can have a look at the example header-and-footer to create custom headers and footers that are automatically mirrored on even/odd pages.

Keep in mind that books are already twosided per default, so when using book: true you don't have to pass additional options. The book example in this repository uses the classoption oneside because I wanted a book, but the PDF should be for online consumption and not for printing.

@AaronNGray
Copy link
Author

@Wandmalfarbe Many thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants