5
votes
1answer
55 views

Why does `! Missing $ inserted.` occur when using \verb in beamer?

When I use \verb+...+ within beamer I get ! Missing $ inserted. <inserted text> $ l.6 \end{frame} ? What is going wrong and how do I fix this problem? A minimal example is ...
3
votes
1answer
34 views

whitespaces in alltt environment get merged

\begin{frame}{Beispiel Mergesort} \begin{alltt} mergesort :: (Ord a, Trans a) => [a] -> [a] mergesort [] = [] mergesort [x] = [x] ...
2
votes
1answer
56 views

How to combine simultaneously the fragile- and the label-command for a frame?

I am currently facing the following problem in the beamer-class for LaTeX: I would like to label a frame and simultaneously use a verbatim-environment. Most likely the solution is very easy but I do ...
10
votes
2answers
182 views

Overlay red rectangles on top of verbatim text

I am using Beamer to prepare a presentation. In some slide I need to print a great deal of verbatim text and, also, I need to draw some red rectangles on top of it. What would be the most ...
1
vote
1answer
392 views

verbatim environment does not work with beamer

I want my Java code to be typeset in a monospaced font, so I am using the verbatim environment. LaTeX commands are highlighted in Eclipse, but as soon as I use the verbatim environment everything ...
11
votes
3answers
507 views

How to make this verbatim code look nice?

I am doing some slides using Beamer. One of this slides is pure code \begin{frame}[fragile] \begin{verbatim} > dim(X) #dimension of our matrix X [1] 2194 12276 > length(Y) # length of ...
1
vote
0answers
182 views

How can I insert verbatim text to beamer notes?

I would like to inset Verbatim text to beamer notes. When using Verbatim in beamer notes, I got errors. For your information, below is what I would like to do. \begin{frame}[containsverbatim] ...
2
votes
1answer
182 views

Can I use Beamer's \alert<x>{…} inside fancyvrb Verbatim with overlay?

I would like to use Beamer's \alert<x>{...} command inside of a Verbatim environment (from the fancyvrb package) to highlight the text. I've found that when the \alert command is inside the ...
8
votes
2answers
6k views

Verbatim in beamer showing error: “File ended while scanning use of \@xverbatim.”

I am using Texmaker and MiKTeX on Windows 7. I have the following beamer code, \documentclass{beamer} \theme{AnnArbor} \begin{document} \begin{frame} \begin{verbatim} ...
3
votes
3answers
2k views

How to set font size for all verbatims in Beamer presentation?

I'm trying to read through the Beamer manual, but I don't even really know what I'm looking for, so please help. How do I change globally (but even if it is a per-frame, it will be still good) size ...
3
votes
1answer
221 views

Indentation with beamer fontspec and alltt

The following document mangles the indentation of the second line of the alltt (the pipe/bar character does not occur under the equals of the previous line). \documentclass[14pt]{beamer} ...
7
votes
1answer
216 views

How to write “a” in semiverbatim environment with ngerman without writing “{}a”?

\documentclass{beamer} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage[utf8]{inputenc} \usepackage[ngerman]{babel} \begin{document} \begin{frame}[fragile]{Umlauts} \begin{semiverbatim} ...
8
votes
2answers
286 views

How to prevent angle brackets beautification in semiverbatim environment?

\documentclass{beamer} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage[utf8]{inputenc} \begin{document} \begin{frame}[fragile]{Angle Brackets} ...
4
votes
1answer
220 views

Beamercolortheme: How to set default color for all verbatim?

I want to change the color of all verbatim text in an existing beamer presentation. How do I do this easily? I know how to use colored verbatim text in general, and I found a lot of suggestions here ...
4
votes
1answer
4k views

LaTeX getting “Missing } inserted” error

I'm getting "Missing } inserted" error, when compiling with pdflatex and I really don't understand why. This is occurring in a beamer frame. Maybe someone comes up with something useful. ...
3
votes
1answer
407 views

lrbox with border in beamer

Can I have border around a \lrbox in beamer? I have a minipage inside the lrbox. I know I can use \fbox. Update Sorry for the confusion. I need a border around the block of data, it is inside a ...
2
votes
0answers
158 views

Animate swaps of elements in beamer [closed]

I need a nice way to show sequential swaps of two elements in verbatim. By swaps I mean two elements changing their positions with each other. Is there any specific command in beamer to animate this? ...
5
votes
2answers
512 views

Is there a non-verbatim form of lstinline from the listings package?

I'm using the listings package with beamer and I'd like to try to avoid making frames fragile where possible. I know that many of my frames will need to be fragile but there are some where the ...
2
votes
2answers
1k views

Can a beamer frame have both [containsverbatim] and hidden/shown block options? [duplicate]

Possible Duplicate: \pause won't generate extra slides in a containsverbatim frame I use lstlisting environments in my beamer frames, but I would also like to have blocks with ...
7
votes
2answers
8k views

How to put code in beamer two column

I was trying to put code and a figure side by side in a beamer presentation. I tried two methods - one said in beamer documentation and other in standard LaTeX. But couldn't get the output. The two ...
7
votes
1answer
1k views

Customize \verb!…! output in beamer

I would like to change my verbatim throughout a beamer presentation in the preamble. Actually I would like to have it more or less like on slide no. 9 here. I am using verbatim usually with ...
2
votes
1answer
824 views

\pause won't generate extra slides in a containsverbatim frame

It seems that the [containsverbatim] option when applied to a frame prevents beamer from generating intermediate slides if text animation is wanted in it. Only the first step of the animation is ...
5
votes
1answer
1k views

Problem with TikZ, beamer and verbatim

I'm trying to put verbatim text inside a node (in a beamer frame): \begin{frame}[fragile]{P} \tikzstyle{cell} = [rectangle, draw, thin , fill=black!10 , minimum size=5mm] \begin{tikzpicture}[node ...
10
votes
1answer
570 views

Point to a Verbatim Line using TikZ

I'm trying to use TikZ in beamer to point to a line of code. Here's what I have so far: \documentclass{beamer} \usepackage{tikz} \usepackage{fancyvrb} \begin{document} \begin{frame}[fragile,t] ...
7
votes
2answers
2k views

verbatim and overlays

I am trying to display a verbatim environment in an overlay. I have the following code but it is giving errors: \only<2->{ \begin{verbatim} Select T3.Subject From T as T1, T as T2, T as T3 ...
1
vote
1answer
955 views

Beamer and indentation with alltt

The following beamer code \begin{frame}[fragile] \frametitle{PROC TEMPLATE for a fancy graph (part 2)} \begin{alltt} rowaxes; rowaxis /label = 'Infant Mortality (\%)' ...
2
votes
1answer
1k views

Code indentation gets lost in Beamer

For any unknown reason I have to use verbatim instead of listings. Note: This issue also appear when using listings but Herbert's answer can fix it. Unfortunately, the trick Herbert used there ...
2
votes
1answer
2k views

Change font of Verbatim slide in Beamer

I have several slides in a beamer presentation where i'm presenting some programming code. However, the font ends up being too large and isn't fully featured on the slide. How can I change the font on ...
10
votes
2answers
970 views

Beamer and verbatim sync

I'm preparing a beamer presentation to show some basic TikZ stuff. I would like to have a two columns slide, where on the left I have the TikZ figure, and on the right the generating code. BUT, I also ...
0
votes
1answer
294 views

SAS output through verbatim in beamer

I've tough time to manage SAS output through verbatim in beamer. Could someone help in this regard. Thanks in advance.
5
votes
1answer
2k views

FancyVerb error for Sweave output in Beamer

I'm having trouble including Sweave output in my Beamer file. Specifically, the Soutput environment is causing problems (it runs if I comment those lines out, but, of course, the table is not ...
15
votes
1answer
1k views

beamer's fragile frame as default

Is there a way to specify fragile mode as default for all frames? Now I know how to define a fragile frame: \begin{frame}[fragile].
2
votes
2answers
2k views

Making Verbatim and Beamer play nice

I'm writing a beamer presentation on basic math type-setting in latex and I've been trying to use verbatim to display how math equations are typed. Using fragile this works, but I still get several ...