Skip to content

change margin for individual pages #439

Description

@besendorf

Hi,

I have a markdown file that I convert to pdf with this template. One page is in landscape mode. I did it like in the example with this in the header

header-includes:
- |
  {=latex}
  \usepackage{pdflscape}
  pandoc-latex-environment:
  landscape: [landscape]

and this where I want landscape layout

::: landscape
\thispagestyle{empty}

:::

I also removed footer and header with \thispagestype{empty} to make even more room widthwise. However the margin is still pretty big. How can I change it for only this section or this individual page? I tried a few option like setting landscape: [landscape, margin=2cm] and others but they either didnt work or they rendered the landscape page vertically.

MVP

remove \. I did not know how to escape those in github markdown

---
title: "The Document Title"
author: [Example Author, Another Author]
date: "2017-02-20"
keywords: [Markdown, Example]
header-includes:
- |
  \`\`\`{=latex}
  \usepackage{pdflscape}
  \`\`\`
pandoc-latex-environment:
  landscape: [landscape]
...

Here is the actual document text...

\newpage
::: landscape
This is lanscape text
:::

build with
pandoc "mvp.md" -o "mvp.pdf" --from markdown --template "eisvogel.latex" --filter pandoc-latex-environment --listings

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions