# Tag Info

46


36

I used to do this according to Andrew's solution until I read his note #2, and it reminded me that PGF's keys can do pretty much anything. The key (excuse the pun) is to create a key that processes other keys conditional on the slide number: \tikzset{onslide/.code args={<#1>#2}{% \only<#1>{\pgfkeysalso{#2}} }} Using \pgfkeysalso doesn't ...

29

The simplest way is to use the onimage package from the From Answers to Packages project, which implements the answer given in Drawing on an image with TikZ. To use the package: Download the file onimage.dtx from bazaar.launchpad.net/~tex-sx/tex-sx/development/files, run pdflatex on it, and move the resulting .sty file to your working directory. Then you ...

20

You can include the picture into a TikZ node and then draw some rectangles over it. For example, \documentclass{beamer} \usepackage[T1]{fontenc} \usepackage{tikz} \begin{document} \begin{frame} \frametitle{ESR1} \begin{center} Functional analysis \end{center} \begin{center} \begin{tikzpicture} ...

19

You can overlay the symbols the following way: Box the wider one and let the other one lap over it (using \rlap or \llap). The correct centering is achieved by placing the second character into a box with the equal width but using \hss to center it. The correct size for the different math modes can be adjusted using \mathchoice. \documentclass{article} ...

16

Use \layout form the layout package. This produces: and the details on the bottom: \documentclass{article} \usepackage{layout} \begin{document}\layout \end{document}

15

In short, \only<>{} does not render the braced material at all except on the named slides, while \onslide<> renders the material until the next \onslide, sort of like an \item, but, on the off slides, covers it (according to the preference given in \setbeamercovered; i.e. transparent or invisible). There are other alternatives, for example, ...

15

This issue is addressed in the beamer manual in section 9.5 Dynamically Changing Text or Images, p.85 for v.3.10. You need to use either the overlayarea environment which is "more flexible but less user friendly" or the overprint environment. \begin{overlayarea}{⟨area width⟩}{⟨area height⟩} ⟨environment contents⟩ \end{overlayarea} ...

14

It is possible to use a {tikzpicture} and overlay it: \documentclass[10pt]{beamer} \usetheme{Szeged} \usecolortheme{dolphin} \usepackage{fontspec} \usepackage{pgf} \usepackage{tikz} \setbeamercovered{transparent=25} %Uncover text transparently \begin{document} \begin{frame} \begin{itemize} \item<1> first item ...

13

can also be done with a simple tabular \documentclass{article} \usepackage{xcolor,calc} \newcommand\strikeout[2][]{% \begin{tabular}[b]{@{}c@{}} \makebox(0,0)[cb]{\textcolor{blue}{#1}} \\[-0.2\normalbaselineskip] \rlap{\color{red}\rule[0.5ex]{\widthof{#2}}{0.5pt}}#2 \end{tabular}} \begin{document} Now is the the time for all good ...

12

I can provide you a very basic solution: it is not perfect, but actually does what you wonder. Initially I defined two tikzstyles to characterize whether the block is alerted or not: \tikzset{visib/.style={rectangle,color=blue,fill=blue!10,text=black,draw,text opacity=0.4, text width=#1,align=flush center}} ...

11

It's logic, captain, but not as we know it. The crucial fact to remember is that every time beamer sees a + then beamerpauses is incremented. Here's what I see, with the value of beamerpauses (in italics) evaluated at lots of occasions. First, the actual code I ran (beamerpauses coloured to make it stand out). {\color{green}\thebeamerpauses} ...

11

Following up the discussion of diabonas answer, here my suggestion. The idea to use phantom boxes seems the way to go. Here the two alternatives are boxed so that they can be measured. The code could be improved to detect the mode (text, math, display math, etc.) by itself and avoid the re-boxing which happens in the phantom commands. \documentclass{beamer} ...

11

You can add a new plot with a different plot type by using \addplot [<plot type>] ...;. If you want to add a line plot to a column plot, you would use \addplot [sharp plot] ...;. If you want to keep the current color cycle uninterrupted, add a + in front of the options: \addplot +[sharp plot] ...; To calculate the cumulated sums automatically, you ...

11

A simple combination of Highlight text in code listing while also keeping syntax highlighting and Mindmap tikzpicture in beamer (reveal step by step) with one counter makes miracles (I should really thank Daniel :)). The code: \documentclass{beamer} \usepackage{lmodern} \usepackage{tikz} \usetikzlibrary{calc} \usepackage{listings} \usetheme{CambridgeUS} ...

10

I think I'll need to do some more analysis to figure out what is really going on here, but I have what appears to be a solution for the time being so I'll post this for now. If this doesn't work, I'll have to think a bit more. The issue is that the \tikzmark is getting called too often. I think it is both the overprint environment and the align* that are ...

10

You might be interested in the cancel package. Or something similar can be implemented in TikZ. \documentclass{article} \usepackage{tikz} \newcommand{\strikeout}[2][]{% % usage: \strikeout[bar]{foo} strikes out foo and superimposes bar % \strikeout{foo} strikes out foo. \begin{tikzpicture}[baseline=0] \node[anchor=base,inner ...

10

Try conditionally defining a column type and using that: \documentclass{beamer} \usepackage{colortbl} \begin{document} \begin{frame} \newcolumntype{C}{c} \only<2->{\newcolumntype{C}{>{\columncolor{red!30}}c}} \begin{tabular}[]{rC} 1 & 2 \\ 3 & 4 \\ \end{tabular} \end{frame} \end{document} You get a package warning for redefining the ...

10

Damn you Caramdir, four minutes too late! Anyway, here's what I came up with. Caramdir's is at least as good, but mine is a bit closer to your syntax, maybe... \documentclass[english,ignorenonframetext,table]{beamer} \usepackage[T1]{fontenc} \usepackage[latin9]{inputenc} \setcounter{secnumdepth}{3} \setcounter{tocdepth}{3} \usepackage{graphicx} ...

10

You may be looking for the internal counter \beamer@slideinframe as defined in beamerbasedecode.sty: It is the value beamer consults when encountering something like \only<1,3-5>{...} to check whether to display or to hide the content. A small demonstration on how to access this value: \documentclass{beamer} \makeatletter ...

9

Using soul package: Looks like the problem is that beamer redefines things. Using the patch from Why is it that coloring in soul in beamer is not visible seems to work: Using tikz package: As Andrew Stacey mentioned int he comments, there is a tikzmark solution as well. Using the code from How to "highlight" text/formals with tikz?, we get: ...

9

Edit 5 Following the OP's suggestion an alternative solution is to interrupt the covering and restart it (in contrast to locally uncovering the text). This could be done with the following macro: \newcommand<>{\myinterruptcover}[1]{% \expandafter\ifx% \csname beamer@doafter\the\beamer@coveringdepth\endcsname\relax #1% \else ...

9

This answer, as already mentioned by Martin in his comment, demonstrates the general ways to approach absolute positioning by using textpos or tikz in beamer. Warning: texpos interacts badly on the shipout level with pgfpages (the pgfpages transformations are not applied to the content that has been inserted via textpos). If you also need pgfpages for ...

9

This is built into beamer: \documentclass{beamer} \begin{document} \begin{frame} \begin{itemize}[<only@+-+(4)>] \item one \item two \item three \item four \item five \item six \item seven \item eight \item nine \item ten \end{itemize} \end{frame} \end{document} ...

9

There are a few ways to do this, exactly which is best will depend on what you want the highlighting effect to be. One way is to have separate nodes with the two styles and then show one on one slide and one on the other. Another way is to define a style that is wrapped in an \only. Actually, using beamer's reimplementation of \newcommand, one can make ...

9

Using atbegshi guarantees that the text block will not be modified in any way, as it acts by "overlaying", so to speak. \documentclass[a4paper]{article} \usepackage{atbegshi,picture} \usepackage{lipsum} \AtBeginShipout{\AtBeginShipoutUpperLeft{% \put(\dimexpr\paperwidth-1cm\relax,-1.5cm){\makebox[0pt][r]{\framebox{Copyright DTV}}}% }} \begin{document} ...

9

As you already mentioned, enumitem "disturbs" beamer. This is because the document class (beamer in this case) defines (or redefines) all the necessary commands/macros and environments to it's liking. Then, each loaded package does the same sequentially. As such, since enumitem follows the document class, it redefines the itemize (and other) environments, ...

9

9

It works as expected if you use \only instead of \visible: \documentclass{beamer} \usepackage[overlay,absolute]{textpos} \setlength{\TPHorizModule}{1cm} \setlength{\TPVertModule}{1cm} \begin{document} \begin{frame} Some text \only<2->{ \begin{textblock}{5}(6,6) Some more text \end{textblock} } \end{frame} ...

9

Two problems with your first attempt: overlay keyword. Probably you wrote it because you wanted to overlay two figures, but that's not the purpose of this keyword. Inside a single tikzpicture all what you draw is indeed overlayed, by the order in which you draw things. The keyword is used when you want a tikzpicture to be overlayed on the surrounding text ...

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