emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Jarmo Hurri <jarmo.hurri@iki.fi>
To: emacs-orgmode@gnu.org
Subject: Re: Missing line breaks in Beamer with alltt
Date: Thu, 03 Dec 2020 18:07:09 +0200	[thread overview]
Message-ID: <87360meuvm.fsf@iki.fi> (raw)
In-Reply-To: 87im9nyyty.fsf@ucl.ac.uk

[-- Attachment #1: Type: text/plain, Size: 772 bytes --]


Hi there.

Eric S Fraga <e.fraga@ucl.ac.uk> writes:

> Happy to try to help.

I will take you up on that offer! Are you able to replicate the
difference between these two slides?

# ----------------------------------------------------------------------------------
#+startup: beamer

#+latex_header: \usepackage{alltt}

* A slide with some code
  - =yes= verbatim on this line, line breaks preserved
    #+begin_alltt 
    N=5
    if S\neq I
    #+end_alltt

* Another slide
  - no verbatim on this line, line breaks not preserved
    #+begin_alltt 
    N=5
    if S\neq I
    #+end_alltt

# ----------------------------------------------------------------------------------

If you are not, then please find attached generated tex.

All the best, and stay safe.

Jarmo


[-- Attachment #2: latex --]
[-- Type: application/x-tex, Size: 1147 bytes --]

% Created 2020-12-03 Thu 18:04
% Intended LaTeX compiler: pdflatex
\documentclass[presentation]{beamer}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage{grffile}
\usepackage{longtable}
\usepackage{wrapfig}
\usepackage{rotating}
\usepackage[normalem]{ulem}
\usepackage{amsmath}
\usepackage{textcomp}
\usepackage{amssymb}
\usepackage{capt-of}
\usepackage{hyperref}
\usepackage{color}
\usepackage{listings}
\usepackage{alltt}
\usetheme{default}
\date{\today}
\title{}
\hypersetup{
 pdfauthor={},
 pdftitle={},
 pdfkeywords={},
 pdfsubject={},
 pdfcreator={Emacs 27.1 (Org mode 9.4)}, 
 pdflang={English}}
\begin{document}

\begin{frame}{Outline}
\tableofcontents
\end{frame}


\begin{frame}[label={sec:orga545000},fragile]{A slide with some code}
 \begin{itemize}
\item \texttt{yes} verbatim on this line, line breaks preserved
\begin{alltt}
N=5
if S\(\neq\) I
\end{alltt}
\end{itemize}
\end{frame}

\begin{frame}[label={sec:org7a9adda}]{Another slide}
\begin{itemize}
\item no verbatim on this line, line breaks not preserved
\begin{alltt}
N=5
if S\(\neq\) I
\end{alltt}
\end{itemize}
\end{frame}
\end{document}

  reply	other threads:[~2020-12-03 16:10 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-29  9:22 Missing line breaks in Beamer with alltt Jarmo Hurri
2020-11-29 12:33 ` Eric S Fraga
2020-11-30  5:03   ` Jarmo Hurri
2020-11-30  9:32     ` Eric S Fraga
2020-12-03 16:07       ` Jarmo Hurri [this message]
2020-12-03 16:38         ` Eric S Fraga
2020-12-04 14:03           ` Jarmo Hurri
2020-12-04 15:17             ` Eric S Fraga

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87360meuvm.fsf@iki.fi \
    --to=jarmo.hurri@iki.fi \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).