Tag Info

Hot answers tagged

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 ...


6

You just make the definition inside a local group so it is undefined by the end of frame, you are also missing a % \documentclass[xcolor=dvipsnames,professionalfont,french]{beamer} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{fourier,tikz,ifthen} \usetikzlibrary{calc} \usepackage[french]{babel} \usetheme{Madrid} % thème ...


5

\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} ...


4

I would recommend using the commands from etoolbox. In particular, there is \ifcsdef and \csxdef usable here as. Note you need xdef as you want the definition expanded at the time the command is defined. The gdef version will just set the command to \arabic{slideinframe} which changes with each frame. \usepackage{etoolbox} \newcommand{\MyLabel}[1]{% ...


4

The best way to proceed here is to locally redefine \abovecaptionskip and \belowcaptionskip (default value=7pt). The following example shows this redefinition (it's local since it's done inside an environment): \documentclass{beamer} \mode<presentation> {\usetheme{Madrid}} \usepackage{graphicx} % Allows including images \usepackage{booktabs} % Allows ...


3

Compile at least twice. \documentclass{beamer} \usepackage{etaremune} \newcommand{\labelenumi}{\textcolor{structure}{\theenumi.}} \begin{document} \begin{frame}{Foo} \begin{enumerate} \item A \item B \end{enumerate} \begin{etaremune} \item A \item B \end{etaremune} \begin{etaremune} \item A \item B \end{etaremune} \end{frame} ...


3

The main problem is that the \label is created on the first slide of the frame, so even if one were to create a new counter or use something like \makeatletter \newcommand{\mylabel}[2]% #1 = label name, #2 = text for \ref {\protected@write\@auxout{}{\string\newlabel{#1}{{#2}{\thepage}}}} \makeatother it would always refer to the first slide of the frame. ...


3

This code is originally adapted from various answers by other people. It is what I'm currently using for this kind of thing. Hopefully it will help you too. \documentclass{beamer} \usepackage{forest} \tikzset{% set up for transitions using tikz with beamer overlays invisible/.style={opacity=0,text opacity=0}, visible on/.style={alt=#1{}{invisible}}, ...


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 ...


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} ...


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} ...


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}; ...


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

It's reading the data verbatim so it sees the line ends, so you need [fragile] on the frame \documentclass{beamer} \usepackage{tikz} \usetikzlibrary{datavisualization} \begin{document} \begin{frame}[fragile] \begin{tikzpicture} \datavisualization [school book axes, visualize as smooth line] data { x, y -1.5, ...


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 ...


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

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 ...


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 ...


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

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 ...


1

Here a solution from this answer \documentclass{beamer} \usetheme{Madrid} \usecolortheme{whale} \usepackage{listings} \setbeamertemplate{navigationsymbols}{} \newsavebox{\mysavebox} \begin{document} \begin{lrbox}{\mysavebox} \begin{lstlisting}[language=SQL,mathescape, showstringspaces=false] SELECT ENAME FROM PROJ, ASG, EMP \end{lstlisting} ...


1

Regarding the issue mentioned in 2), the problem with your code is that you are issuing \section inside a frame environment. \section (and all other sectional unit commands) must be outside frame; a section is composed by several frames, but it has no sense to put a section inside a frame (besides, this has unwanted results like the one you describe): ...


1

This is only a semi solution, because it will only write those frames into an external file, which have a frametitle. If all the slides (except for the title slide) have a title, you can simply add 1 to the slide number to have a PDF page to frametitle mapping. If some slides do not have a title there will however be gaps. In the preamble I use this: ...



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