# Tag Info

## New answers tagged beamer

3

\usefonttheme{professionalfonts} prevents beamer from overwriting your fonts and is therefore needed to use specified font packages - cfr % arara: pdflatex \documentclass{beamer} \usepackage[T1]{fontenc} \usefonttheme{professionalfonts} \begin{document} \begin{frame} $\operatorname{\delta}d=1$ $\operatorname{\Delta}d=1$ \end{frame} ...

2

I needed this today as well, and I expanded a bit on Steven's answer, defining two commands which allow you to save and use immediately multiple frames and then reuse them later: % \saveuseframe{id}{...} saves a frame to \saveid and uses it immediately, to be reused with \reuseframe{id} \newcommand{\saveuseframe}[2]{% \expandafter\newsavebox\csname ...

1

As has been suggested in comments, the best thing to do is to define a \makethanks command, and this can be done fairly easily. For example, using the texts and formatting you already have in your example.tex file, you could do something like % the Thank you'' page \def\makethanks{% \begin{frame} \frametitle{\@thankstitle} \@thanksmessage ...

0


1

If you want a different style for continued floats setup them with their own format: \documentclass{article} \usepackage{caption} \DeclareCaptionLabelFormat{rlnumber}{#1 \bf{#2}} \DeclareCaptionLabelFormat{continued}{#1 #2-\arabic{ContinuedFloat}} \captionsetup{labelformat=rlnumber} \captionsetup[ContinuedFloat]{labelformat=continued} ...

1

Right now, you are changing the caption format for all captions in your document. In your case, \captionsetup[subfigure]{} or \captionsetup[sub]{} do not work as they are meant for real subfigures and not continued floats (56 seconds later, I fount out its [ContinuedFloat] from Ulrike's answer above :-)). Therefore, I would just add the caption redefinition ...

0

by adding the following : \usepackage{sansmathaccent} \pdfmapfile{+sansmathaccent.map} It works fine

2

Here's a way: \documentclass{beamer} \usepackage[persian]{babel} \usepackage[compatibility=false]{caption} \setbeamertemplate{caption}[numbered] \DeclareCaptionLabelFormat{rlnumber}{#1 \LR{#2}} \captionsetup{labelformat=rlnumber} \setmainfont[Script=Arabic]{XB Zar} \setsansfont[Script=Arabic,Numbers=Arabic]{XB Zar} \begin{document} \begin{frame} ...

3

If you just use \insertdate and \inserttitle, you don't need \expandafter, because \MakeUppercase does full (protected) expansion on its argument. However, \inserttitle is quite different from the other two macros. Indeed, \insertdate expands to \today (in general to the argument given to \date) and, similarly, \inserttitle expands to the argument given to ...

1

Simply enclose the whole itemize in another \only so it sees the first \item: \documentclass[t,10pt]{beamer} \begin{document} \begin{frame}{Title} \only<1-> { Definition } \only<2->{\begin{itemize} \only<2> { \vfill \item Test 1 } \only<3> { \vfill ...

1

Here is a first attempt that seems to provide section cloning and moving to the appendix (although I changed the macro names to be a little more self-documenting). But I'm very unfamiliar with TeX macro hacking, and I'd like some suggestions to make it more idiomatic, safe, and functionality-complete. Update: this seems to create all sorts of rendering ...

0

Include the "Description" as part of the itemize, with some horizontal adjustment: \documentclass[t,10pt]{beamer} \begin{document} \begin{frame}{Title 1} \only<1-> { Definition } \begin{itemize} \item Useless \only<2> { \vfill \item Test 1 } \only<3> { \vfill \item Test 2 } ...

2

Two options: Use t as optional argument for both frames; in this way, the frames' content will be top aligned: \documentclass{beamer} \usepackage{tikz} \usetikzlibrary{positioning} \begin{document} \begin{frame}[t] \frametitle{FRAME 1} \centering \begin{tikzpicture} \node[draw=black] (a) {A}; \node[draw=black, right=of a] (b) {B}; ...

1

You can use a redefinition of the internal \beamer@@ssection* (original definition in beamerbasesection.sty) so \section* removes the titles from both the table of contents and the navigation elements in the headline: \documentclass{beamer} \usetheme{Singapore} \makeatletter \long\def\beamer@@ssection*#1{\beamer@section[]{}} \makeatother ...

2

You can dispense with the minipages; it's enough to use a tabular with b (botoom) alignment in which the central column is of paragraph type p{<length>} (thus allowing text wrapping) and not to leave blank lines between the tabular and the legend: The code: \documentclass{beamer} \usepackage[english]{babel} \usepackage[utf8x]{inputenc} ...

0

The problem is that the each frame is vertically centered. One way to fix it is to use \pause: \documentclass{beamer} \usepackage{tikz} \usetikzlibrary{positioning} \begin{document} \begin{frame} \frametitle{FRAME 1} \centering \begin{tikzpicture} \node[draw=black] (a) {A}; \node[draw=black, right=of a] (b) {B}; \draw (a) -- (b); ...

10

The commas in maths match commas from the default serif font but are taken from the OML encoding. You can see this if you force the text to use the serif font by changing the frame to \begin{frame} $f(x,y,z) > 0$ if {\rmfamily $x$, $y$,} and $z$ are positive. \end{frame} However, now the commas are being taken from the serif font while the rest of ...

0

To add to the suggestions above, to disable the frame in both handout and beamer modes, one must add <handout:0|beamer:0>

6

The problem is that \pgfmathsetmacro\ppq{\q-2}; set \ppq to 2.0 and (q2.0) is not the same as (q2). To avoid this you can use \pgfmathsetmacro\ppq{int(\q-2)}; or even better \pgfmathtruncatemacro\ppq{\q-2}; (as suggested by @percusse in the comment). Here is an example of code (not exactly the same as yours): \documentclass[tikz,border=7mm]{standalone} ...

0

I finally found an easy solution to embed a video in a beamer presentation. Previously, it is needed to decompose the movie into its frames. I did it by using ffmpeg. For the new distributions of Ubuntu (I use the 14.04 release) one should download and build the source code as ffmpeg was removed from the official repository. The command to extract the ...

0

The following code snipped uses remember picture for positioning. \usetikzlibrary{calc} \begin{frame} \tikz[overlay,remember picture] \node[anchor=north east] at ($(current page.north east)+(0,-1)$) { Top-right float content. }; Regular content. \end{frame} It also uses the calc tikz library to specify an offset from the top left corner for ...

2

Run texdoc media9 which opens the documentation of the package media9. It has examples for videos and 3d images.

7

It's very easy with comment package \documentclass{beamer} \usepackage{comment} % for english \includecomment{english} \excludecomment{french} % for french %\includecomment{french} %\excludecomment{english} \begin{french} \usepackage[french]{babel} \end{french} \usepackage{blindtext} \begin{french} \title{Titre} \author{Moi} \end{french} ...

5

This can for example be done by overlaying the picture a semi-transparent gray shape. \documentclass{beamer} \usepackage{tikz} \begin{document} \begin{frame} \begin{tikzpicture} \only<1->{ \node[anchor=south west,inner sep=0] (A) at (0,0) {\includegraphics[width=.3\textwidth]{example-grid-100x100bp}}; } \only<2->{ ...

5

Like this? The code (change the opacity from 0.2 to the desired value): \documentclass{beamer} \usepackage{tikz} \usetikzlibrary{positioning} \tikzset{ opinvisible/.style={opacity=0.2}, visible on/.style={alt={#1{}{opinvisible}}}, alt/.code args={<#1>#2#3}{% \alt<#1>{\pgfkeysalso{#2}}{\pgfkeysalso{#3}} % \pgfkeysalso ...

2

Below I present two options: More a hack than a real solution, but can be useful for a one-time situation: use a negative space in the title, as in \begin{block}{\vspace{-1.5ex}} body without title \end{block} You can define a block that handles the case of no title appropriately. Below I did this by defining a template similar to block begin but with ...

2

You can use a counter: \newcounter{mynumber} \setcounter{mynumber}{\inserttotalframenumber} \addtocounter{mynumber}{-1} %% Now use: \insertframenumber/\themynumber

1

The easiest way to deal with this would probably be to put the code in an external file (or a temp file, as in the example below) and then input the different segments at the appropriate points. \documentclass{beamer} \usepackage{minted} \begin{document} \begin{VerbatimOut}{minted.tmp} { "this": "is valid JSON", "but": "this is not!" } ...

1

Don't consider this an answer, but I wanted to give you something to play with in case you need to do this right now. I unfortunately don't have time to look into it this week, but I might be able to get you started, since I have created custom Beamer themes for my alma mater as well as the corporation I currently work for. I spoke to someone else at ...

6

You could do this: \documentclass{beamer} \usetheme{Warsaw} % thème \usecolortheme{wolverine} % variante de couleur % Enlève les icônes de navigation \beamertemplatenavigationsymbolsempty \setbeamersize{text margin left=0cm} \setbeamersize{text margin right=0cm} \begin{document} \begin{frame}{Title} ...

2

If you wish to set any content in beamer, you need to put it inside a frame: \documentclass{beamer} \usepackage[english]{babel} \usepackage[latin1]{inputenc} \usepackage[orientation=portrait,size=a0]{beamerposter} \usepackage{tabularx} \usepackage{multicol} \usepackage{lipsum} \title[SHORT TITLE] {MY COOL POSTER} \author{First Last \inst{1}} \institute{ ...

1

You could add the following instructions to the preamble: \usepackage{chngcntr} \counterwithin{subsection}{section}

2


0

Just add handout as an option for the beamer document class. \documentclass[handout]{beamer}

0

You want \insertframenumber instead of \insertpagenumber: % presentation mode %\documentclass[hyperref={pdfpagemode=FullScreen},xcolor=dvipsnames]{beamer} % just-for-me mode \documentclass[notes, hyperref={pdfpagemode=FullScreen},xcolor=dvipsnames]{beamer} \begin{document} % some adaptations \setbeamertemplate{navigation symbols}{} ...

2

The triangle is hard-coded in its size. Therefore its definition needs to be adapted. The original definition can be found in beamerinnerthemedefault.sty: \defbeamertemplate*{itemize item}{default}{% \scriptsize\raise1.25pt\hbox{\donotcoloroutermaths$\blacktriangleright$}} Example, which makes the triangle smaller and sets the font to \footnotesize: ...

1

Here's a solution using Beamer's overlayarea. The only real disadvantage is that you have to specify the height of the area. \documentclass{beamer} \usepackage{tikz} \usetikzlibrary{positioning,fit} \begin{document} \begin{frame} \frametitle{TEST} \begin{overlayarea}{\linewidth}{.3\textheight} \centering \begin{tikzpicture} \only<1-2>{ ...

4

There is also a TikZ library for this problem (overlay-beamer-styles). The solution with this library: \documentclass{beamer} \usepackage{tikz} \usetikzlibrary{positioning,fit} \usetikzlibrary{overlay-beamer-styles} \begin{document} \begin{frame} \frametitle{TEST} \centering \begin{tikzpicture} \node[draw=black, rectangle] (a) {A}; ...

1

beamer already defines an example environment, so it's necessary to use another name, say myexample. \documentclass{beamer} \usepackage[most]{tcolorbox} \definecolor{myblue}{rgb}{0,0,1.0} \tcbset{mystyle/.style={ breakable, enhanced, outer arc=0pt, arc=0pt, colframe=myblue, colback=myblue!20, attach boxed title to top left, boxed title ...

4

A solution, which avoids printing a white frame or using transparency: The node is placed in the first slide, but not drawn. Because of the missing draw operators, the bounding box is updated manually using the node. \documentclass{beamer} \usepackage{tikz} \usetikzlibrary{positioning,fit} \begin{document} \begin{frame} \frametitle{TEST} \centering ...

1

Use \maketitle in a separate frame. The following is true for the standard classes, I did not check for beamer, but I believe, the procedure is similar \title only stores the title into a variable \@title \author stores the name(s) into \@author \date saves the specified date. Storage doesn't mean typesetting. This is the job of \maketitle ...

3

Using \left( and \right) seems to be the problem. Try using \big( and \big). It does not create a blank page. Or you may want to add \addtobeamertemplate{footnote}{}{\vspace{24pt}} %%change number of pt as required in the preamble and use \left( and \right) \documentclass[a4paper]{beamer} \setbeamertemplate{footline}{} ...

1

Your key needs to include only allowed characters such as regular letters, numbers etc. For example: \documentclass{beamer} \usetheme{default} \begin{document} \begin{frame} Einstein-Maxwell field equation\dots \cite{tolman1939} \end{frame} \begin{frame}[allowframebreaks] \frametitle<presentation>{Bibliography} ...

4

You have a spurious \begin{itemize}. Removing that allows the code to compile and the box appears with the third point, as desired. \documentclass[10pt,xcolor={usenames,dvipsnames},graphics]{beamer} \usetheme{Frankfurt} \usecolortheme{seahorse} \setbeamercovered{transparent} \usepackage{tcolorbox} \usepackage{xcolor} \begin{document} \begin{frame}{A ...

0

I have some immediate suggestions: Don't use both \makebox[\textwidth]{...} and the font-size changing command to try to make the table fit inside the text block. Providing the instructions \tiny and \setlength\tabcolsep{4.5pt} should suffice to make the table fit. All of the \hhline{...} instructions can be replaced with \hline. I'd change the column ...

0

You can also use the verbatimbox package to save the verbatim content into a named LaTeX box prior to the \only and then apply \only to the box. \documentclass{beamer} \usepackage{verbatimbox} \begin{document} \begin{frame}[fragile] \begin{myverbbox}{\onlyA} V1 V2 V3 V4 [1,] 0 1 1 0 [2,] 1 0 1 0 [3,] 1 1 0 0 [4,] 0 0 0 0 \end{myverbbox} ...

0

\documentclass{beamer} \usepackage{graphicx} \usepackage{subfig} \begin{document} \begin{frame} \begin{figure} \centering \subfloat[Fig1 \label{fig:1}]{ \includegraphics[width=0.45\textwidth]{example-image-a}} \subfloat[Fig2 \label{fig:2}]{ \includegraphics[width=0.45\textwidth]{example-image-b}} \caption{Caption.} ...

3

If you set it up as a class, dept-beamer, say, then you can simply pass the options you need to beamer along with any the user declares: % dept-beamer.cls % \NeedsTeXFormat{LaTeX2e} \ProvidesClass{dept-beamer}% if class is dept-beamer.cls ... \DeclareOption*{\PassOptionsToClass{\CurrentOption}{beamer}}% pass options we don't know about off to beamer for ...

4

Adding \beamer@centeredfalse to your .sty file might do the trick \documentclass{beamer} \makeatletter \beamer@centeredfalse \makeatother \begin{document} \begin{frame} we \end{frame} \end{document}

2

As you suggested, you can succeed with some counter manipulation. I added a new section 'traffic jam', so that you can see that everything is working as expected. Here is your modified code, leading to the results shown above: \documentclass{beamer} %using my default theme \usepackage{beamerthemesplit} \usetheme{Dresden} ...

Top 50 recent answers are included