1

The following MWE confirms what textpos documentation says:

The {textblock} environment will most often be used in vertical mode. If it is called in horizontal (ie, paragraph) mode, however, it will silently create a paragraph break by inserting a \par command before the environment; it remains in vertical mode after the environment is finished.

Anyway, is there a way to prevent textblock environment to insert \par?

\documentclass{article}
\usepackage{textpos}
%
\setlength{\TPHorizModule}{\textwidth}
\setlength{\TPVertModule}{\textheight}
%
\begin{document}
Foo
\begin{textblock}{1}(0,-0.2)
  Bar
\end{textblock}
Foo
\end{document}
3

well this doesn't stop it issuing \par but it stops that \par ending the current paragraph.

\documentclass{article}
\usepackage{textpos}
%
\setlength{\TPHorizModule}{\textwidth}
\setlength{\TPVertModule}{\textheight}
%
\begin{document}
Foo
\vadjust{\begin{textblock}{1}(0,-0.2)
  Bar
\end{textblock}}
Foo
\end{document}
|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.