
En el siguiente código, en el lugar de *step 2*
, me gustaría mostrar exactamente . Alguien sabe como hacerlo?
\begin{block}{title}
\begin{enumerate}
\item ... %Step 1
\item ... %Step 2
\item ... Go back to *Step 2*
\end{enumerate}
\end{block}
Respuesta1
La idea es utilizar el \label
mecanismo \ref
de , pero definiendo un comando para encerrar la cuerda producida por \ref
dentro de una bola sombreada como las que usa beamer
:
\documentclass{beamer}
\usetheme{Warsaw}
\usepackage{tikz}
\newcommand\ballref[1]{%
\tikz \node[circle, shade,ball color=structure.fg,inner sep=0pt,%
text width=8pt,font=\tiny,align=center] {\color{white}\ref{#1}};
}
\begin{document}
\begin{frame}
\begin{enumerate}
\item ... %Step 1
\item\label{ite:second} ... %Step 2
\item ... Go back to Step~\ballref{ite:second}
\end{enumerate}
\end{frame}
\end{document}
Dado que la french
opción babel
crea ;
un carácter activo, se deberán tomar precauciones adicionales:
\documentclass{beamer}
\usetheme{Warsaw}
\usepackage[french]{babel}
\usepackage{tikz}
\newcommand\ballref[1]{%
\shorthandoff{;}\tikz \node[circle, shade,ball color=structure.fg,inner sep=0pt,%
text width=8pt,font=\tiny,align=center] {\color{white}\ref{#1}};
\shorthandon{;}
}
\begin{document}
\begin{frame}
\begin{block}{title}
\begin{enumerate}
\item ... %Step 1
\item\label{ite:second} ... %Step 2
\item ... Go back to Step~\ballref{ite:second}
\end{enumerate}
\end{block}
\end{frame}
\end{document}