I'm trying to write a wrapper for command placement in a beamer document. I'm using tikz for this, and I created a new command:
\newcommand{\figz}[3]{
\begin{tikzpicture}[remember picture, overlay]
\node [anchor=west] at (#2,#3) {#1};
\end{tikzpicture}
}
Which I call to, using:
\begin{frame}
\frametitle{Sun Hours Mismatch}
\figz{text 1}{0}{0}
\figz{text 2}{0}{0}
\end{frame}
The result is
While I expect something like this
What am I doing wrong?
Edit
Compileable example. The frame title represent to actual result, rather than the desired one.
\documentclass[xetex,mathserif,serif]{beamer}
\usepackage{tikz}
\newcommand{\figz}[3]{
\begin{tikzpicture}[remember picture, overlay]
\node [anchor=west] at (#2,#3) {#1};
\end{tikzpicture}
}
\begin{document}
\begin{frame}
\frametitle{Overlap}
\figz{text 1}{0}{0}
\figz{text 2}{-0.39}{0}
\end{frame}
\begin{frame}
\frametitle{shifted}
\figz{text 1}{0}{0}
\figz{text 2}{0}{0}
\end{frame}
\end{document}


%after[3]{, after\end{tikzpicture}, and also after the first use of\figzin the frame. – Torbjørn T. Sep 04 '16 at 14:42%at the places he indicated. – samcarter_is_at_topanswers.xyz Sep 04 '16 at 20:23mathserif. Please read the warning messages, they tell you how to replace them. – samcarter_is_at_topanswers.xyz Sep 04 '16 at 20:25