New answers tagged

4

I'd just use loops and the overlay-beamer-styles library to get \documentclass{beamer} \beamerdefaultoverlayspecification{<+->} %stepwise uncovering \usepackage{tikz} \usetikzlibrary{overlay-beamer-styles} \begin{document} \begin{frame} \frametitle{An animation} \begin{tikzpicture}[rdot/.style={circle,inner sep=0pt,minimum size=4pt,fill=red}] \draw[...


0

This is a nice answer but it doesn't work inside multi-line math formulas. here is my trick that is a bit awkward: \documentclass[12pt,a4paper]{article} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{parskip} \usepackage[left=1.30cm, right=1.30cm, top=1.30cm, bottom=1.30cm]{geometry} \begin{document} \large \textbf{Example: ...


1

The amsmath environments like align do not work with \pause. But you do not need them here either, a simple array does the job. So all you need to do then is to add \pause wherever appropriate. (I also added fleqn because this looks IMHO cleaner.) \documentclass[12pt,fleqn]{beamer} \usepackage{xcolor} \usetheme{AnnArbor} \usecolortheme{beaver} \usepackage{...


3

This is a primitive example of an animation, which shows what happens if you increase the viscosity. The various parameters are stored in pgf keys (except for the number of layers because the parse=true option of foreach doesn't work well with integers). The bounding box gets recorded in the aux file. \documentclass[tikz,border=3mm]{standalone} \...


1

To ensure a constant width of a specific content, wrap a \parbox around it \parbox[<pos>]{<width>}{<text>} See https://en.wikibooks.org/wiki/LaTeX/Boxes for more information on boxes and their options. In this case a width of about 1.5em seems to be sufficient. If you want to fit exactly to the largest content, you could use \widthof or \...


2

With a parametric curve in TikZ (rather than pgfplots) and without using controls \documentclass[]{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture}% \fill [red, thick, domain=-200:200, samples=50] plot ({ .67*sin(\x) * sin(\x) * sin(\x) + .5 }, { .65 * cos(\x) - .2 * cos(2*\x) - .1 * cos(3*\x) - .05 * cos(4*\x) - ....


0

Here is a (probably not final) solution based on egreg's answer here EDIT After your correction of the definition of \typesetCaseStudy I believe everything works as expected using \newcommand{\typesetCaseStudy}[2]{% \begin{multicols}{5} \casestudyFile{#1}% \only<1>{\casestudyFile{#2}}% \only&...


1

Add a text object containing \pause in each layer in Inkscape and simply use \includesvg in the tex file. It is like a hack but it works. This method can also create more complex effects by adding something like \onslide<2-3>\transfade<2>\transduration<2>{0.75} in the text objects.


Top 50 recent answers are included