I tried to generate a macro for fixed content, but it's not working and I was wondering why. This is my code:
\documentclass{article}
\begin{document}
% this is working and puts A at the bottom of the page
\makeatletter
\def\@oddhead{%
\setlength\unitlength{1mm}%
\begin{picture}(0,0)%
\put(120,-250){\fbox{A}}%
\end{picture}\hfill}
\makeatother
% needed that page is not empty
test
% define a macro
\newcommand{\generateFixBox}{
\makeatletter
\def\@oddhead{%
\setlength\unitlength{1mm}%
\begin{picture}(0,0)%
\put(120,-250){\fbox{B}}%
\end{picture}\hfill}
\makeatother
}
% apply macro, but not working?
\generateFixBox
\end{document}
The Latex error logs are confusing. I found the instructions for generating a fixed element here.
\put(120,-250){\fbox{B}%, so it should be\put(120,-250){\fbox{B}}%. Is that your desired output? – Alenanno May 24 '16 at 17:30