Tag Info

Hot answers tagged

43

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


36

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


28

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


28

Wrap your code fragment inside the overlayarea environment.


26

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


25

Before looking at how . works, I think it's worth a brief look at how + works as in an overlay specification, and to link that to a 'plain' specification containing only explicit numbers. I'll take the offsets last, as they are more complex. For the simple case of just numbers \begin{itemize} \item<1-> From the first slide \item<2-> From ...


24

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


23

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


22

You could also use the Plain macro \ooalign: $\mathrel{\ooalign{\hss?\hss\cr=}}$\bye


18

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


18

As Andrew Stacey pointed out beamer provides an own \newcommand<> that deals a little better with overlay specification. It is now possible to use \tikzMe{BCD}<+>. As the overlay-specification argument has the delimiters built-in, so changes need to be made to the beameralert style. I opted for two versions; these styles are equivalent: ...


17

Simply write \pause before the itemize environment. This will achieve the effect you want.


16

2nd attempt (Warning: TikZ 3.0 is required!) Additional filled requirements (see 1st attempt below for all other filled requirements): Allow for "decay" via special prev styles. Each named keyword (such as kw) must provide three styles: kw, special kw and special prev kw. The names of "program counter" (\pc) and its previous value (\pcprev) can be chosen ...


16

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


15

Since you have an untagged environment, you can use \documentclass{beamer} \begin{document} \begin{frame} \begin{align*} \onslide<1->{a &= b \\} \onslide<2->{b &= c \\} \onslide<3>{\Rightarrow \quad a &= c} \end{align*} \end{frame} \end{document} For a tagged environment additional work has to be done, as ...


15

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


14

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


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


14

The \caption command is not "overlay specification aware". Instead of \caption<1>{Hallo} \caption<2>{Welt} do \caption{\only<1>{Hallo}\only<2>{Welt}}


14

Here's a possible way to reference overlays by name: \makeatletter \DeclareRobustCommand*{\savepause}[1]{\only<1>{\immediate\write\@auxout{\string\pauseentry{\the\c@framenumber}{#1}{\the\c@beamerpauses}}}} \newcommand*{\usepause}[1]{\@ifundefined{pauses@\the\c@framenumber @#1}{1}{\@nameuse{pauses@\the\c@framenumber @#1}}} ...


13

You can use the \only notation and the ulem package for strike through. The code would look like this: \documentclass{beamer} \usepackage{ulem} \begin{document} \begin{frame} \begin{itemize} \item\only<1>{World peace}\only<2->{\sout{World peace}} \item<2-> Peace in our neighbourhood \end{itemize} \end{frame} ...


13

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


13

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


13

The <handout:O> syntax tells beamer to remove something from a slide in the handout version. It can also be used to tell beamer to put things on different slides in the handout version. Thus saying <handout:2> says "make sure that there is a second slide in the handout version and put this on it.". Thus: \documentclass[handout]{beamer} ...


13

You can use postaction and draw the patterns after filling. \documentclass[tikz,12pt]{standalone} \usetikzlibrary{patterns} \begin{document} \begin{tikzpicture}[line width=1.5pt] \coordinate (A) at (2,2); \coordinate (B) at (2,1.2); \coordinate (C) at (3,2); \coordinate (D) at (3,1.2); \draw[fill=white] (A) circle (0.5); \draw[fill=white, ...


12

\rlap and \llap can be used to print a symbol without a width. Similar, the mathtools package provides commands \mathrlap, \mathclap, \mathllap. These commands offer a quick way for overlapping symbols. Example, overlapping \vee, \wedge and Q like desired in your question: \documentclass{article} \usepackage{mathtools} \begin{document} ...


12

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


12

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


12

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


12

beamer provides \pause that provides this functionality. You can add that anywhere in the slide and it will "pause" the output there, produce an additional slide for post-pause display. Additionally, many commands typical to LaTeX have been modified in beamer to provide a so-called overlay specification. As an example, the following list show each item only ...



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