Advertisement
Guest User

Untitled

a guest
Oct 17th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Latex 0.92 KB | None | 0 0
  1. \documentclass{beamer}
  2. \usepackage{calc}
  3. \usepackage{adjustbox}
  4. \newcommand{\negphantom}[1]{\settowidth{\dimen0}{#1}\hspace*‌​{-\dimen0}}
  5. \usepackage{tikz}
  6.  
  7. \begin{document}
  8. \begin{frame}
  9.  \frametitle{Coalescing crossover}
  10.  \begin{overprint}
  11.   We perform this on two randomly-selected permutations $P, Q$ in the
  12.   population:
  13.  
  14.   % I need these two to not 'bounce' and stay in the same place
  15.   % The idea being that, as the slides transition, the second replaces the first
  16.   % What should I use instead of 'only' here?
  17.   \setlength{\dimen0}{1pt}
  18.  \uncover<2->{\[
  19.    \begin{array}{cccccc}
  20.      P & = & \begin{tikzpicture}[anchor=base, baseline]
  21.        \node<2> at (0,0) {{\uncover<2>{a}}};
  22.        \uncover<3>{\node at (0,0) {\boxed{a}};}
  23.      \end{tikzpicture} & b & c & d\\
  24.      Q & = & d & a & c & b\\
  25.      R & = &   &   &   &  \\
  26.    \end{array}
  27.  \]}
  28.  \end{overprint}
  29. \end{frame}
  30.  
  31. \end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement