Is there anyway to put text in a page horizontally at a specific position with LaTeX using the prosper class?

After googling, I found that the textpos package can be used to put text in a specific position, but the text is shown vertically. Is there any way to show the text horizontally?

Here is my code:



\email{[email protected]}
\institution{XX University}

\begin{slide}{Test Slide}


How do I show the text "Question" at a specific position horizontally?

Any help is greatly appreciated.

  • Welcome to TeX.sx! Your question was migrated here from Stack Overflow. Please register on this site, too, and make sure that both accounts are associated with each other, otherwise you won't be able to comment on or accept answers or edit your question.
    – Werner
    Nov 21, 2011 at 19:09

3 Answers 3


you can use this solution:

\begin{textblock*}{5cm}(10cm,6cm) % {block width} (coords) 
   Your text here
  • 5
    Nice answer! +1. Just one thing: remove the ..... and complete the code with everything necessary from \documentclass up to \end{document} to make it compilable. Feb 27, 2018 at 22:33
  • 1
    Is it possible to add textblock but not influence other thing on the page, sort of putting it in the background wherever the coordinates states (float if possible won't be a solution probably)? And also turn it vertically? Thanks.
    – Josh E.
    Mar 16, 2020 at 9:11

If all you want to do is to position the text horizontally at the current location in the page you can use


This is used to produce the first section of the image below.

Alternatively, if you want more flexibility in being able to specify the position as being the center of the text, or the right of the text you can use the \PositionText macro as defined below. It accepts three parameters:

  • An optional alignment specification of either l, c, or r for left, center and right alignment. Defaults to l if not specified.
  • The horizontal position
  • The text

For example, the centered line in the second section of the image below is produced by:

\PositionText[c]{1.0in}{Centered at 1.0in}

enter image description here


  • I set the textwidth=3.0in and enabled showframe with the geometry package to make it clear that the text is located at the specified horizontal distance.


\usepackage{xstring}% for string comparrison
\usepackage{calc}%    for \widthof
\usepackage{pgf}%     for math calclations

            {\MessageBreak Unrecognized alignment: #1.\MessageBreak 
            Valid alignments are are `l`, `c`, `r'}{}]%

\noindent\hspace{0.0in}Left point at 0.0in\par
\noindent\hspace{1.0in}Left point at 1.0in\par
\noindent\hspace{2.0in}Left point at 2.0in\par
\noindent\hspace{3.0in}Left point at 3.0in\par

\PositionText{1.0in}{Left point at 1.0in}\par
\PositionText[c]{1.0in}{Centered at 1.0in}\par
\PositionText[r]{3.0in}{Right at 3.0in}\par
  • \hspace{-1in} also accepts negative values.
    – Derzu
    Jul 13, 2023 at 13:08

The class prosper is really outdated, use powerdot instead:


%\email{[email protected]}
%\institution{XX University}

\begin{slide}{Test Slide}


You must log in to answer this question.