Skip to content
This repository has been archived by the owner on Jan 16, 2025. It is now read-only.

Latest commit

 

History

History
63 lines (40 loc) · 1.41 KB

README.md

File metadata and controls

63 lines (40 loc) · 1.41 KB

Landscape Extension For Quarto

Important

This extension has been merged into quarto version 1.6.6. (see. quarto-dev/quarto-cli#10581) and should work out of the box.

The 'quarto-landscape' filter enables a landscape div, that switches the pages within the selection to landscape. It implements the same div for docx, latex, and Typst, making it easier to switch between formats.

Installing

quarto add edvinsyk/quarto-landscape

This will install the extension under the _extensions subdirectory. If you're using version control, you will want to check in this directory.

Using

Simply enclose what you want to have in landscape format using the landscape div.

Portrait format

::: {.landscape}

Landscape format

:::

Portrait format

This is commonly needed for displaying graphs or tables with dimensions when writing papers or content. PDFs require the following in the YAML.

Required in YAML

The following is required in YAML for the extension to work:

# Required for all:
filters:
 - landscape

# Required for PDF:

```{yaml}
format:
 pdf:
  include-in-header:
     text: |
       \usepackage{pdflscape}

Example

Here is the source code for a minimal example: example.qmd.

Acknowledgements

Thanks to tarleb for the word implementation