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

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

Open
kyleGrealis opened this issue Dec 5, 2024 · 1 comment
Open

Comments

@kyleGrealis
Copy link

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

@raffaem
Copy link

raffaem commented Jan 9, 2025

The standard way to do this in modern Quarto is with the landscape codeblock

See https://stackoverflow.com/a/79319228/1719931

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