New answers tagged

0

Not really automatic, but this behaviour can be simulated with \visible<.(1)->{} \documentclass{beamer} \usetheme{Warsaw} \setbeamercovered{transparent} \setbeamertemplate{navigation symbols}{} \usepackage{beamerthemeshadow} \begin{document} \begin{frame} \begin{block}{Theorem} Theorem Text Here \end{block} ...


2

I've found the way to fix it. Just added \nointerlineskip before \begin{beamercolorbox}.


3

There is also filll, stronger than fill from \hfill: \documentclass[10pt]{beamer} \usepackage[utf8]{inputenc} \usepackage[T2A]{fontenc} \begin{document} \begin{frame} %\frametitle{Title \hfill\hfill\insertframenumber} \frametitle{Title \hspace{0pt plus 1filll}\insertframenumber} \end{frame} \end{document}


0

You can just \hskip to where you want it to go: \documentclass[10pt]{beamer} \usepackage[utf8]{inputenc} \usepackage{fontenc} \usepackage{geometry} \begin{document} \begin{frame} \frametitle{Title\hskip4.3in\insertframenumber} \end{frame} \end{document} And another solution: \documentclass[10pt]{beamer} \usepackage{showframe} ...


2

I suggest you use a custom array environment to stack the word/arrow/explanation triplets. Observe the use of the \color macro to set colors. \documentclass{beamer} \usepackage{mathtools} % for "\mathclap" macro \newcommand\stacktab[2]{% $\begin{array}[t]{@{}c@{}} \text{#1} \\ \uparrow \\ \mathclap{#2} \end{array}$} ...


2

You can redefine the elements to use the same colour gradient as the frametitle. Please compare the following redefinition of the footline with the original one from beamerouterthemeinfolines.sty to see the changes. You can use the same approach to modify the headline. One trick: The background of the colours has to be set to empty. ...


1

I am still not sure what exactly you mean by "\pause to mention that", so I just guess, that you want the circles to appear stepwise. Based on Highlighting table cells \documentclass{beamer} \usepackage{tikz} \usetikzlibrary{fit,shapes.geometric} \newcounter{nodemarkers} \newcommand<>\circletext[1]{% \tikz[overlay,remember picture] \node ...


2

I think that you just need to add the landscape option to \pgfpagesuselayout. Even better is to surround this command with \mode<handout>{ ... } so that you only get four slides to a page in handout mode. Here is a MWE: \documentclass[handout]{beamer} \usetheme{Madrid} \usepackage{pgfpages} \mode<handout>{ \pgfpagesuselayout{4 on ...


1

A bit ugly, but with three conditionals in the frametitle definition, it gives the desired numbers. \documentclass{beamer} \usepackage{etoolbox} \usepackage{xpatch} \usetheme{Warsaw} \usecolortheme{seahorse} \setbeamertemplate{section in head/foot}{\hfill\insertsectionheadnumber.~\insertsectionhead} \setbeamertemplate{section in head/foot ...


2

Here's a much shorter example that illustrates the problem: \documentclass{beamer} \usepackage{glossaries} \makeglossaries \newglossaryentry{sample}{name=sample,first={\textit{sample}}, description={an example}} \begin{document} \begin{frame} \gls{sample} \end{frame} \begin{frame} \printglossary \end{frame} \end{document} The problem is that ...


3

I think what I would do is abandon the grammar environment. Aside from requiring fragile and consuming the <> syntax, it also redefines \alt. This is essentially death to overlays in Beamer. Everything uses \alt so the fact that this is redefined to output a vertical bar and a bit of space is fatal. The grammar environment also looks rather odd in a ...


0

By default, Beamer does not allow frame breaks. Hence, you do not need to do anything to prevent frames from being broken automatically. It will not happen unless you explicitly make it happen. Beamer considers frame breaks to be Evil; automatic frame breaks doubly so. Hence, it shuns them utterly unless you forcefully insist otherwise.


2

You posted a “solution“ in the comments. I cannot recommend changing beamercolortheme.sty though, because it might be overwritten once you update your system. Also the document is no longer portable. If you edit it on another PC or send it to a friend you'd have to include instructions on which files to edit. Such changes usually go in the preamble of ...


1

\documentclass{beamer} \usetheme{Warsaw} \usecolortheme{dolphin}% from Boadilla \useoutertheme{infolines}% from Boadilla \begin{document} \frame{foo} \end{document}


0

As in Annotate the table column highlighted by Tikzmark in Beamer, but with a new marker for the row. In this case it's better not to draw borders. \documentclass{beamer} \usetheme{CambridgeUS} \usecolortheme{beaver} % The usual suspects \usepackage{booktabs} % Tables % The table highlighting for hypothesis discussion. ...


2

The coordinates you're giving are not relative to the beamer-frame, but to the pdf-picture coordinate. That means if you set 〈lower left x〉 = 1cm and 〈lower left y〉 = 2cm, then the point in the bottm left corner of your picture will the the point that has the coordinates {1cm, 2cm} in the referential of you picture. But this picture will be inserter as ...


4

This avoids nesting tikzpictures and uses \setbeamertemplate correctly. It also provides the basis for the desired design. Tweaks and enhancements are left as an exercise for the reader. Note, in particular, that variable width lines are really not TikZ's cup of tea. If these are considered essential, consider an alternative approach. (There are a couple of ...


4

You can not have blank lines in equation delete the three blank lines and the error will go.


2

You can use the package fancybox: \documentclass{beamer} \usepackage{fancybox} \setbeamertemplate{itemize item}{$\bullet$} \setbeamertemplate{frametitle}[default][center] \begin{document} \begin{frame}\frametitle{\shadowbox{Motivation}} \begin{itemize} \item bla \item bla \end{itemize} \end{frame} \end{document}


1

Export the slides as .pdf, than you can include them in your presentation. \documentclass{beamer} \usetheme{Warsaw} \usecolortheme{wolverine} \usepackage{pdfpages} \begin{document} \begin{frame} abc \end{frame} { \setbeamercolor{background canvas}{bg=} \includepdf[pages=1-2]{document.pdf} } ...


2

I am not sure if I understood your question, but if you want frametitles like on the titlepage: \documentclass{beamer} \usetheme{Warsaw} \title{Beamer Presentation} \author{\LaTeX Enthusiast} \date{today} \makeatletter \setbeamertemplate{frametitle} { \ifbeamercolorempty[bg]{frametitle}{}{\nointerlineskip}% \@tempdima=\textwidth% ...


1

Try this - MWE would have helped \documentclass{beamer} \usetheme{Warsaw} \useoutertheme{infolines} \title{Beamer Presentation} \author{\LaTeX Enthusiast} \date{today} \begin{document} \maketitle \section{First Section} \begin{frame}{Title of the frame \ldots a little longer} Hello World and your text. \end{frame} % ...


2

You can use \only. For example: 1 & \only<1>{?}\only<2>{somethingelse} & 3 The parameter in <> specify when it will be displayed. You can also use ranges: \only<1-3>{abc}: Display abc for the first 3 steps \only<2->{abc}: Display nothing on the first step, then display abc for each following step


3

like this? \documentclass{beamer} \usepackage{booktabs} \usepackage{colortbl} \begin{document} \begin{frame} \frametitle{Example} \begin{table} \centering \begin{tabular}{c c c} \toprule H1 & H2 & H3\\ \midrule 1 & \only<2>{\cellcolor{blue!50}}? & 3 \\ 2 & 4 & ?\\ \bottomrule \end{tabular} \end{table} \end{frame} ...


1

\documentclass{beamer} \usefonttheme{professionalfonts} \usepackage[sfmath]{kpfonts} \begin{document} $g$ in math mode g in text mode \end{document}


3

As Stefan Braun already pointed out in his answer: your problem is, that you are mixing \only{} and \onslide{}. Some of your commands reserve room, some do not which leads to pages of of different length. This leads to jumping text as the default alignment is centred. But instead of fixing this, you can simply top align the frame with \begin{frame}[t], like ...


2

This functionality should appear in textpos v1.8. That's not yet released, because I haven't yet had the time to tidy up the docs, but until it is released and included in distributions, you can have a try with v1.8b1. Any problems, do shout.


3

\only and \onslide are two different commands: \onslide hides the content until the condition is satisfied, \only does not render it. The "jumps" are caused by the \only commands in the last align* environment. However, you should not use \onslide in equations - this leads to horrible results. I would suggest to split the frame at this point, or to bear ...


2

The solution is to replace \vfill with \vfil \defbeamertemplate*{frametitle}{}[1][] { \vskip0.1cm% \begin{beamercolorbox}[wd=12cm, leftskip = 0.005cm, sep=8pt, #1] {this color} \usebeamerfont{frametitle}\insertframetitle\par% \end{beamercolorbox}% \vfil% % \vfill replaced } For more details ...


2

Instead of textpos, the TikZ-way of absolute positioning could be used via the convenience command \placetextbox as defined in the example below. It is straightforward to be used; the z-level of the typeset material is determined by the order of its usage. \documentclass{beamer} \usepackage{mwe} % example images \usepackage{lipsum} % example text ...


0

sansmath It is easy to achieve sans serif math with the sansmath package. For sansmath to be able to pick up the correct font it has to be loaded after the sans serif font (here package helvet). \documentclass{article} \usepackage{helvet} \usepackage{sansmath} % load sansmath after the font \begin{document} \sffamily\sansmath $g$ in math mode g in text ...


1

to remove the red highlighting from the handout, you can use \alert<.(1)|handout:0>{alert} or \action<alert@.(1)>{alert} In case you want to remove content completely from the handout, you can use \only<beamer>{} \documentclass[handout]{beamer} \begin{document} \begin{frame} \frametitle{Sample side} \framesubtitle{with a subtitle} ...


6

You can do this using TikZ to control the opacity. For example, \documentclass{beamer} \usepackage{tikz} \begin{document} \newcount\opaqueness \begin{frame} \animate<2-100> \animatevalue<1-100>{\opaqueness}{0}{100} \begin{colormixin}{\the\opaqueness!averagebackgroundcolor} \begin{center} \begin{tikzpicture} \node ...


5

You can use font={\usebeamercolor[fg]{block title}}. The reason for using font here is that \usebeamercolor as I understand it essentially inserts a \color{<color name>}, so you cannot use it as a colour name directly. \documentclass{beamer} \usepackage{tikz} \begin{document} \frame{ \begin{tikzpicture} \draw (0, 5) node (n1) ...


2

Apparently, the problem arises because of the glossary entry \gls{DPPM} on the second arrow: During the first (invisible) invocation on the arrow, \gls{DPPM} gets rendered as the long Bis"-(di"-phenyl"-phos"-phino)"-methan (DPPM) as defined in the glossary file. This causes a line break and a larger height of the (invisible) bounding box in the first frame, ...


2

There are a few problems here: You have a opening { after \mode<presentation> but no closing brace, so I deleted that. beamer doesn't define a starred table environment. And it doesn't really make sense for it to do so either, columns in beamer are more like two minipages next to each other, text doesn't flow from one column to the other, as in e.g. ...


5

You can't use an enumitem-like interface. You need to set the beamer theme for itemizeed items: \documentclass{beamer} \usetheme{warsaw} \usepackage{pifont} \setbeamertemplate{itemize item}{\ding{118}} \begin{document} \begin{frame}{Frame title} \begin{itemize} \item first item. \item second item. \end{itemize} \end{frame} ...


0

Instead of creating a new environment, another possibility is to redefine the columns-environment \documentclass{beamer} \makeatletter \long\def\beamer@newenvnoopt#1#2#3#4{% \expandafter\renewcommand\expandafter<\expandafter>\csname#1\endcsname[#2]{#3}%<- here \expandafter\long\expandafter\def\csname end#1\endcsname{#4}% } ...


1

The reason for this is that & is redefined inside the TikZ matrix. Consider these quotes from the manuals of beamer and TikZ, respectively: You must also use the [fragile] option for frames that include any “fragile” text, which is any text that is not “interpreted the way text is usually interpreted by TEX.” For example, if you use a package that ...


7

If you want to add text to just one slide, try \only<>{} \documentclass{beamer} \begin{document} \begin{frame} Complete SM lagrangian can be written as- \[\mathcal{L}_{SM}=\textcolor{blue}{i\overline{\psi}\gamma^{\mu}\mathcal{D}_{\mu}\psi}\only<1>{~\fbox{explain something}}\pause \textcolor{red}{ ...


1

Workaround: \documentclass{beamer} \usepackage{mathtools} \newtheorem{question}{Question} \newtheorem{answer}{Answer} \usepackage{etoolbox} \newcommand{\zerodisplayskips}{% \setlength{\abovedisplayskip}{0pt} \setlength{\belowdisplayskip}{0pt} \setlength{\abovedisplayshortskip}{0pt} \setlength{\belowdisplayshortskip}{0pt}} ...


1

There you go: \documentclass[xcolor={dvipsnames,svgnames,table},10pt]{beamer} \usepackage[T1]{fontenc} \colorlet{titleleft}{Red} \colorlet{titleright}{Green} \setbeamercolor*{frametitle}{fg=white} \makeatletter \pgfdeclarehorizontalshading[titleleft,titleright]{beamer@frametitleshade}{0.7\paperheight}{% color(50pt)=(titleleft); ...


3

A simple panorama viewer for panoramic images with a fixed z-axis can be built using the animate package. (AR required.) The example uses a 360° image downloaded here. Clicking the buttons changes the view by 10°, [shift]+click by 1°. \documentclass{standalone} \usepackage{animate} \usepackage{media9} \usepackage{MnSymbol} \usepackage{graphicx} ...


0

I guess it's enough to use the hideothersubsections option of \usetheme command: \documentclass{beamer} \usepackage{multido} \usetheme[hideothersubsections]{PaloAlto} \begin{document} \multido{\i=1+1}{2}{% \section{Section} \multido{\i=1+1}{5}{% \subsection{Subsection} \multido{\i=1+1}{3}{% \subsubsection{Subsubsection} ...


2

\documentclass{beamer} \useoutertheme{miniframes} \begin{document} \frame{test} \section{Intro} \subsection{} \frame{a} \frame{b} \end{document}


3

As @DavidCarlisle and @John Kormylo commented, if the text does not contain math, a \parbox solves the problem nicely. \begin{align*} \mathcal{F} \colon \{ \mathbf{AFDs} \quad \text{sin estados inalcanzables} \} \quad &\longrightarrow \quad \parbox{80pt}{\{relaciones Myhill-Nerode\}} \\ M \quad &\longmapsto \quad \equiv_{M} \end{align*}


3

Here is a scrolling window with some Octave code (which is similar to Matlab) picked at random from my Octave installation. The scrolling widget is based on the animate package. (And thus requires AR for viewing.) LaTeX package minted + Pygments are used as code prettyfier which require Python. Scroll buttons are put on top and below the code window to ...


0

Navigation bars are a tricky thing to play with. But beamer has some build-in abilities which might be close enough to what you would like to accomplish. Option 1: You can change the headline to display all subsections of the current section instead of the sections: \documentclass{beamer} \usetheme{Frankfurt} \makeatletter \setbeamertemplate{headline} ...


0

The {} will ensure, that the change is only done for the slides within the {}. \documentclass{beamer} \begin{document} \begin{frame} \frametitle{normal title} abc \end{frame} { \setbeamerfont{frametitle}{size=\small} \begin{frame} \frametitle{extra extra extraextra extra extraextra extra extra extra extra extra ...


1

You can "fake" the alignment on a new page with \phantom{}. But as the align environment is centred in the middle of the slide, this has to be done for both sides of the equation. I think the easiest is to take the longest expressions for both sides and add phantoms of them to all slides, see the last lines in the frames. \documentclass{beamer} ...



Top 50 recent answers are included