1

i use vspace, hspace in textpos (texblock) but don't work.

Please help

Thank in advance

My minimal coding:

\documentclass[12pt]{article}
\usepackage[a4paper]{geometry}
\usepackage[poster]{tcolorbox}
\usepackage[absolute]{textpos}

\pagestyle{empty}
\begin{document}

\begin{textblock*}{5cm}(4.0cm,2.0cm) % 
\begin{center}
\small X
\vspace*{0.55cm}
\Huge Y
\vspace*{0.25cm} \hspace*{0.45cm}
\small Z
\end{center}
\end{textblock*}

\end{document}

enter image description here

2

The problem is that you essentially have one paragraph with all of your spaces in it (which is why you're getting the result that you're seeing.

If you include paragraph breaks along with your \vspace commands that should give you something closer to what you're expecting.

| 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.