[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Missing line breaks in Beamer with alltt
From: |
Jarmo Hurri |
Subject: |
Missing line breaks in Beamer with alltt |
Date: |
Sun, 29 Nov 2020 11:22:30 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) |
Greetings.
Any ideas?
#
----------------------------------------------------------------------------------
#+startup: beamer
#+latex_header: \usepackage{alltt}
* A slide with some code
- export to beamer pdf with =C-e l O=
- line breaks disappear from this:
#+begin_alltt
x \in {0, 1, ..., n}
z \leftarrow x + 1
#+end_alltt
* An effort to fix this
- tip from
https://tex.stackexchange.com/questions/68064/beamer-alltt-environment-and-only
- the effort is here, but the end result is an error
#+begin_src latex
\defverbatim\SomeCode{
\begin{alltt}
x \in {0, 1, ..., n}
z \leftarrow x + 1
\end{alltt}
}
#+end_src
\SomeCode
#
----------------------------------------------------------------------------------
All the best, and stay safe.
Jarmo
- Missing line breaks in Beamer with alltt,
Jarmo Hurri <=