# Making a textpos command being transparent

I am defining my own margin notes command and I have a question about making a command "transparent".

To be more clear, I have the following code :

\documentclass{article}
\usepackage[absolute]{textpos}

\newcommand{\notes}[2]{#2 \begin{textblock*}{2.5cm}[0.5,0.5](1.5cm,2cm)#1\end{textblock*}}

\begin{document}

This text is a \notes{a note}{test} in order to try something.

\end{document}


I want it to be executed as if it was this code

\documentclass{article}
\usepackage[absolute]{textpos}

\newcommand{\notes}[2]{#2 \begin{textblock*}{2.5cm}[0.5,0.5](1.5cm,2cm)#1\end{textblock*}}

\begin{document}

This text is a test in order to try something.

\notes{a note}{}

\end{document}


I want to make the textblock environment "transparent" in the text (for example compiled at the end).

• As @cfr said, it's not completely clear what you're aiming to do. The textpos package doesn't have a notion of 'transparency' as such, though in absolute mode the textblock contents are put on the page first, so are overlaid with other text, so will be 'transparent' (see also the package's overlay option). Or do you mean 'transparent' as in 'taking up no space on the page'? – Norman Gray Jul 21 '14 at 10:45