Hot answers tagged

7

Just for fun. \documentclass[11pt]{beamer} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{txfonts} \usetheme{default} \usepackage{tikz} \usepackage{tikzlings} \setbeamertemplate{navigation symbols}{} \usepackage[absolute,overlay]{textpos} \TPGrid{3}{4} \def\marmotXPos{0.5} \begin{document} \begin{frame}[label=question] \frametitle{The ...


5

The following code compiles in 10 seconds. \documentclass[aspectratio=169,10pt,notheorems]{beamer} \setbeamertemplate{navigation symbols}{} \setbeamercolor{background canvas}{bg=black} \setbeamercolor{normal text}{fg=white} \usepackage{pgfplots} \pgfplotsset{compat=1.17} \begin{document} \begin{tikzpicture} \foreach\n in{1,...,10}{ \path[save ...


4

Initialize \beamer@cramped in the preamble using \makeatletter \def\beamer@cramped{} \makeatother For your example, use it as \documentclass{beamer} \setbeameroption{show notes} \newenvironment{myframe}% {\begin{frame}[environment=myframe]\frametitle{SomeTitle} SomeContent} {\end{frame}} \makeatletter \def\beamer@cramped{} \makeatother \begin{document} %\...


4

For the sake of beauty, the flow chart itself should be drawn with TikZ as well. This comes with the bonus that all node coordinates are readily available for positioning a dot on the connecting lines. What follows is an animate(-package)-based solution. The flow chart with its static objects is saved in a box first and then re-used in the animation. (Using ...


3

Here are two different possibilities: \documentclass{beamer} \usetheme[progressbar=frametitle]{metropolis} \usefonttheme{serif} \setbeamertemplate{frame numbering}[fraction] \usepackage{tcolorbox} \usepackage{array} \usepackage{xcolor} \begin{document} \begin{frame} \frametitle{empty line between "line 1" and "line 2" and without hbox} \...


3

You need to brace the arguments to keep things together (your \ta macro works unchanged with braced arguments, although I add a \typeout here for debugging. Or you need to inspect the first byte, and then collect as many bytes as are in that character's UTF-8 encoding (\tb here) This produces a log 1,ä macro:->1,macro:->\UTFviii@two@octets ä 2,𝐀 ...


3

In the Modern Toolchain In LuaLaTeX or XeLaTeX, You can load a sans-serif math font with unicode-math. You can even load a font of your choice for Greek, with \setmathfont[range=.... One sans-serif math font is Fira Math, and the version of Helvetica that comes with TeX is TeX Gyre Heros. \usepackage{unicode-math} \defaultfontfeatures{ Scale=MatchLowercase, ...


2

This wasn't created by me, I just adapted it to fit this use case. If you think this deserves an upvote, you should really upvote the original answer by @samcarter. The following reuses ideas from @samcarter (but patches the environment, like proposed there). We patch beamer's internals to add a noframetitle template that gets evoked when there is no \...


2

Here are two ways to emphasise the different functions. In the first, I use the evaluate key to calculate a tint factor that can be used in a colour declaration, thus making it possible to use an expression in such a colour declaration. In the second, I use the TikZ library overlay-beamer-styles to modify a style depending on which slide it is on. So in ...


2

Below, there are three basic examples to get you started. They compile out of the box. Animations can be made from inline code, using the animateinline environment, and from external graphics files, using the \animategraphics command. \documentclass[margin=1pt]{standalone} \usepackage{animate} \begin{document} \begin{animateinline}[controls=play,loop,...


2

My option for speeding up compilation is using \includeonlyframes(*). So, I have in my preamble, just before the \begin{document}: \includeonlyframes{title,working,also1,also2}% no spaces between labels! and the frame I am working with has \begin{frame}[label=working] ... \end{frame} Now, just this frame is compiled. When finished, I change the label to a ...


2

One way is use preaction and postaction options: \documentclass{beamer} \usepackage{tikz} \usetikzlibrary{overlay-beamer-styles} \begin{document} \begin{frame}{Frame \thepage} \[ \begin{tikzpicture}[ultra thick] \draw[preaction={fill=blue, visible on=<{3,5}>}, visible on=<2->, postaction={fill=red, visible on=<{4,6}>}...


2

As an addition to Gonzalo Medina's answer, I use this: \documentclass{beamer} \usepackage{xpatch} \makeatletter \newcommand{\my@beamer@setsep}{% \ifnum\@itemdepth=1\relax \setlength\itemsep{\my@beamer@itemsepi}% separation for first level \else \ifnum\@itemdepth=2\relax \setlength\itemsep{\my@beamer@itemsepii}% separation for second ...


1

I would recommend that you use unicode-math if you can, and legacy 8-bit fonts if you have to. If you can use unicode-math, add the command \setmathfont{TeX Gyre Termes Math}[Scale=MatchLowercase] If you are using PDFTeX, load the package \usepackage{newtxmath} You might need to give beamer the professionalfonts option to turn off sans-serif math.


1

The Boadilla theme internally loads the rose color theme, in which the colors of the block title and block body are defined as follows: \setbeamercolor{block title}{use=structure,fg=structure.fg,bg=structure.fg!20!bg} \setbeamercolor{block body}{parent=normal text,use=block title,bg=block title.bg!50!bg} Since the block body background color is defined as ...


1

The number of errors is quite irrelevant, normally only the first matters and the rest are follow up errors. Store the arrow in a box: \documentclass{beamer} \usetheme{Frankfurt} \usepackage{listings} \newsavebox\mypostbreak \savebox\mypostbreak{\raisebox{0ex}[0ex][0ex]{\ensuremath{\color{red}\hookrightarrow\space}}} \lstset{ basicstyle = \linespread{1}\...


1

Since the beamer manual explicitly warns: Do not use the option allowframebreaks except for long bibliographies. and The use of this option is evil. In a (good) presentation you prepare each slide carefully and think twice before putting something on a certain slide rather than on some different slide. Using the allowframebreaks option invites the ...


1

Get started with this code and see if it runs on your system. It should do various compilations due to 'biber'. If it does not work, update your installation. Then, after deleting ALL auxiliary files, use your sample.bib to check if it is properly written. Review the .log file end to end to see biber warnings, if any. (It must end with " Process ...


1

You can use <only@1> to show a particular item on the first slide of a frame only. Instead of \vspace*{\textheight}. use [t] in order to top align the contents of a frame: \documentclass{beamer} \begin{document} \begin{frame}[t] \begin{enumerate} \item<only@1> First point \item<only@2> Second point \end{enumerate} \end{frame} \end{...


1

First, it seems chronology fits the timeline to \textwidth, so you need to put it inside a minipage. Second, it doesn't create a bounding box, so standalone crops off part of the right side. So I used an \hrule to change the width without changing the height (\rule would add an extra blank line). \documentclass{standalone} \usepackage{chronosys} \...


1

Probably not the most elegant solution, but you can manually change the text color of the third line: normal text.fg is the default text color of normal text, bg is the background color. I mixed these two colors according to the definition of transparent from the beamer manual: \documentclass{beamer} \setbeamercovered{transparent} \begin{document} \begin{...


1

The obvious solution: tell the truth \begin{frame}{Slide without Only} This should be page 2. \end{frame} \begin{frame}{Slide without Only} This should be page 3. \end{frame} Full mwe: \documentclass{beamer} \usepackage{ulem} \setbeamertemplate{navigation symbols}{} \setbeamertemplate{footline}[frame number] \begin{document} \begin{frame}{Slide with Pause} ...


1

It should be enough set the language of the document using babel for most common languages. The title should change automatically to "Solución" in Spanish, to "Lösung" in German, to "Rešenje" in Serbian, etc. Example: \documentclass[spanish]{beamer} \usepackage{babel} \usetheme{Madrid} \begin{document} \begin{frame}{Foo} \begin{...


1

You need to add to frame option fragile: \documentclass{beamer} %\usepackage[utf8]{inputenc} \usepackage{tikz} \usetikzlibrary{matrix} \tikzset{ every matrix/.style={ inner sep=-\pgflinewidth, matrix of math nodes, column sep=-\pgflinewidth, nodes={draw, minimum size=.75cm, anchor=center} ...


1

Never use \resizebox with tables – it leads to inconsistent font sizes, and sometimes unreadable tables. Use an environment that lets you specify the overall table width, such as tabular* or tabularx. You also can play with the standard font sizes (\small, &c.) and the value of \tabcolsep. In this case, I propose the following code, using `tabular*: \...


Only top voted, non community-wiki answers of a minimum length are eligible