
A veces quiero hacer un dibujo con coordenadas absolutas en formato beamer
. pero el siguiente ejemplo parece tener cierto desplazamiento cuando se dibuja un círculo. ¿Cómo puedo hacer un dibujo en una coordenada absoluta?
Código actual:
\documentclass[t]{beamer}
\usepackage{tikz}
\setbeamertemplate{background canvas}{%
\begin{tikzpicture}
\fill[color=orange!10] (0,0) rectangle (\paperwidth,\paperheight);
\draw[step=1.0,black,thin] (0,0) grid (\paperwidth,\paperheight);
\end{tikzpicture}}
\begin{document}
\begin{frame}[t]{Title here}
\begin{tikzpicture}[very thick]
\def\r{2}
\def\x0{5}
\def\y0{5}
\draw[fill=black] (\x0,\y0) circle (5pt);
\draw (\x0,\y0) circle (\r);
\draw [->] (\x0,\y0) -- (\x0+\r,\y0);
\end{tikzpicture}
\end{frame}
\end{document}
Deseo dibujar un círculo en (5,5) pero la salida actual es:
Respuesta1
Luego debe cambiar al overlay,remember picture
modo y cambiar la imagen en relación con la página. Luego compila suficientes veces
\documentclass[t]{beamer}
\usepackage{tikz}
\setbeamertemplate{background canvas}{%
\begin{tikzpicture}
\fill[color=orange!10] (0,0) rectangle (\paperwidth,\paperheight);
\draw[step=1.0,black,thin] (0,0) grid (\paperwidth,\paperheight);
\end{tikzpicture}}
\begin{document}
\begin{frame}[t]{Title here}
\begin{tikzpicture}[very thick,overlay,remember picture]
\def\r{2cm}\def\x0{5cm}\def\y0{5cm}
\begin{scope}[shift={(current page.south west)}]
\draw[fill=black] (\x0,\y0) circle (5pt);
\draw (\x0,\y0) circle (\r);
\draw [->] (\x0,\y0) -- (\x0+\r,\y0);
\end{scope}
\end{tikzpicture}
\end{frame}
\end{document}