4
votes
1answer
60 views

How can I loop back to a slide after showing conditional slides in Beamer?

I am working on a presentation that has conditional slides, using the formatting suggested here: Conditionally hidden slides in beamer I would like to be able to continue with my presentation after ...
15
votes
2answers
194 views

\ifnum command with multiple conditions (lower and upper bound)

First time posting here, very much a novice. I'm creating some background templates in beamer and I can't figure out why this \ifnum command isn't working properly. This is the code: ...
1
vote
0answers
52 views

macro: repeat a command if new page else do nothing

QUESTION: How does one write a pair of macros that work in 1) beamer class and 2) article class, respectively, such that if it, \macroname{...}, is executed at a point in the code, that point ...
2
votes
1answer
37 views

Customizable inclusion of frames-slides from a huge Beamer presentation [duplicate]

I have one master-huge beamer presentation having lots of frames. Depending on the audience I wish to customize, say, for lay audience I will just include basic slides, for experts I wish to include ...
7
votes
1answer
72 views

\apptocmd into a conditional—why it does not work?

Why the following MWE does not work while if I comment the conditional it works? \documentclass{beamer} \makeatletter \@ifclassloaded{beamer}{ \usepackage{bookmark} \usepackage{etoolbox} ...
6
votes
0answers
103 views

Display beamer headline in frames conditional on section and subsection environments

I'm trying to create a beamer presentation (in LyX) where frames conditionally display a headline containing section and subsection navigation depending on (a) whether a frame is in a section ...
5
votes
1answer
181 views

Numerical conditional within tikz keys?

I would like to set up a presentation in which different parts of the same tikz picture appear, depending on the value of one, perhaps more, integer variables. I tried at first using a fixed picture, ...
10
votes
1answer
109 views

Pass conditional options to documentclass

I'd like to pass options to \documentclass basing on the compiler it runs, something in the lines \documentclass[if latex then use dvipdfm else nothing]{beamer} My motivation is that there're ...
3
votes
1answer
138 views

Numbering in Beamer handout

Consider the following MWE. \documentclass[handout]{beamer} \newcounter{slidenumber} \defbeamertemplate*{footline}{infolines theme frame plus slide}{ \setcounter{slidenumber}{\insertpagenumber}% ...
13
votes
1answer
331 views

Create Two PDF versions of Classroom slides from Single LaTeX file: Teacher and Student

Is there a way to create a single document that will process a LaTeX file in two different ways (different preambles) and produce two different outputs. Specifically, I want to produce a set of ...
8
votes
2answers
199 views

Problem of having \begin…\end inside \ifdefined…\fi clause

I am using beamer, and have a LaTeX code as below. \ifdefined\VAR \begin{itemize} \item blahblab \end{itemize} \fi this does not compile, throwing an error: ! Incomplete \ifx; all text was ...
8
votes
3answers
484 views

Detect aspect ratio in beamer

I'm doing my slides with beamer. At the moment I am not sure about the aspect ratio that will be used at the presentation. I know I can change the ratio with class options of beamer. The problem is ...
4
votes
1answer
507 views

variable for color in latex

I am using beamer for writing my presentation. I was initially using latex+dvipdf, then with the help of other tex.exchange users I recognized that I cannot use transparency in this way. So now I am ...
3
votes
2answers
316 views

Beamer conditional pdf file generation

I would like to know if there is a method to generate beamer pdf presentation based on conditions. For example: -Main Beamer presentation: Slide 1 Slide 2 Slide 3 Slide 4 Slide 5 -For the first ...
4
votes
2answers
222 views

How to check if a macro expands to something greater than a constant?

Suppose I have a loop: \begin{tikzpicture} \foreach \frm \in {1,...,6}{ \only<\frm>{ % if \frm > 4: set \x to 1, 0 otherwise \node (foo) at (10+5*\x,7) {hello}; }} ...
23
votes
2answers
11k views

Conditionally hidden slides in beamer

When creating a presentation, I sometimes create extra slides that contain additional information, a more thorough explanation, or an extra plot pertaining to certain parts of my talk. These extra ...
2
votes
1answer
736 views

Multilingual beamer presentations from a single souce?

I have a beamer presentation of which I have two language versions (german and english), more languages are upcoming. I keep both versions in one source and select the one to typeset with the comment ...
7
votes
1answer
1k views

How to tell if the current section is defined in Beamer?

I am customising the footer of my Beamer slides. The footer displays the title of the slides, followed by a ":", and then the current section title. This works fine if the current section is defined. ...
7
votes
1answer
707 views

Conditional compilation of beamer slides

I'm preparing a beamer slideshow, and I will have to print slides. I would rather use landscape mode slides, but it is possible that I need to use portrait mode ones. Sadly, I won't know until a few ...
6
votes
3answers
910 views

How to use the exact same file for handout and presentation modes in beamer

I want to use the exact same file for my beamer presentation and handout. I do not like the need to comment out lines in order to create the handout or presentation (my current solution), nor do I ...