Skip to content

Issue with landscape mode to PDF adding ::: around code block #35

@kyleGrealis

Description

@kyleGrealis

I would like to have one page of a multi-page PDF in landscape mode. It is rendering:

::: .cell
“‘.r .cell-code 1 + 1 “‘
::: .cell-output .cell-output-stdout
“‘ [1] 2 “‘
::: :::

I'm a LaTeX novice. If another LaTeX solution is better please tell me. My code is below.

---
title: "Houston, we have a problem"
format:
  elsevier-pdf:
    include-in-header: 
      text: |
        \usepackage{lscape}
        \usepackage{pdflscape}
        \usepackage{rotating}
---

```{r}
1 + 1
```

\begin{landscape}

```{r}
1 + 1
```

\end{landscape}

```{r}
1 + 1
```

The results look like this:
image

I would be grateful for any help you can provide.

@kyleGrealis
@RaymondBalise

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions