I'm trying to create a new command that will ease on reference placement under beamer. This is an example file:
\documentclass[bigger]{beamer}
\usepackage[absolute,overlay]{textpos}
\tolerance=1000
\newcommand{\myref}[3]{
\begin{textblock*}{100mm}(0.07\textwidth,.93\textheight)
{\footnotesize #1, {\emph #2}, #3}
\end{textblock*}}
\begin{document}
\begin{frame}
\myref{must, write, something}
\end{frame}
\end{document}
When I try to run it through pdflatex
I get:
tionary/translator-theorem-dictionary-English.dict) (./error.nav)
! Argument of \end has an extra }.
<inserted text>
\par
l.14 \end{frame}
Runaway argument?
! Paragraph ended before \end was complete.
<to be read again>
\par
l.14 \end{frame}
! LaTeX Error: \begin{beamer@framepauses} on input line 14 ended by \end{docume
nt}.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.17 \end{document}
(./error.aux)
! You can't use `\end' in internal vertical mode.
\enddocument ... \endgroup \deadcycles \z@ \@@end
l.17 \end{document}
! LaTeX Error: \begin{beamer@framepauses} on input line 14 ended by \end{docume
nt}.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.17 \end{document}
)
! Emergency stop.
<*> \nonstopmode\input error.tex
! ==> Fatal error occurred, no output PDF file produced!
Transcript written on error.log.
[yotam@myhost Res.Prop.Exam]$
I couldn't find my missing }
can you?
*note that my tex file is named Error.tex
\myref
to have three arguments, but have only given one. So TeX grabs\end
as#2
anddocument
as#3
, and then all sorts of issues arise.frame
as #3, leaving\end{document}
as the closure of\begin{frame}
which is why the error is\begin{beamer@framepauses} ... ended by \end{document}
)\myref{must}{write}{something}
?