# [texhax] Is the package textpos broken?

Yuri Robbers yuri.robbers at gmail.com
Thu Aug 24 15:32:12 CEST 2006

Hello Chris and others,

Perhaps an easier solution to the problem you stated is starting each box
with a \strut. The following short example demonstrates the effect quite
clearly:

\documentclass{amsart}
\begin{document}
\fbox{a} \hspace{1em} \fbox{\strut a}
\end{document}

It is even possible to automatically include the \strut by defining your own
box command like this:

\newcommand\mybox[1]{%
\mbox{\strut #1}}

Then you can just use a \mybox{} wherever you need to put text in your form,
and rest assured that your ascenders and descenders will be fine.

Good luck,
Yuri.

>
> On Aug 23, 2006, at 7:49 PM, Chris Bergstresser wrote:
>
> >    I could work around this -- taking into account the descenders when
> > I place the item on the page myself -- except that although the
> > documentation claims to work with the calc package it doesn't actually
> > seem to.  That's in the part labelled C and D.  It doesn't accept
> > either the lengths or the calculations.
> >    Am I doing something wrong?
>
> The problem is that boxes constructed so don't have a concept of
> baseline'' --- not sure where this limitation is being introduced
> though.
>
> My suggestion for a work-around would by to use a \vphantom in every
> text string containing the tallest and deepest characters (e.g.,
> \vphantom{Ay}) which will ensure that all one line strings have the
> same physical size and the same relation of depth to baseline.
>
> William
>
> --
> senior graphic designer
> Fry Communications
>
>
>
> This email message and any files transmitted with it contain information
> which is confidential and intended only for the addressee(s). If you are
> not the intended recipient(s), any usage,  dissemination, disclosure, or
> action taken in  reliance on it is prohibited.  The reliability of  this
> method of communication cannot be guaranteed.  Email can be intercepted,
> corrupted, delayed, incompletely transmitted, virus-laden,  or otherwise
> affected during transmission. Reasonable steps have been taken to reduce
> the risk of viruses, but we cannot accept liability for damage sustained
> as a result of this message. If you have received this message in error,
> please immediately delete it and all copies of it and notify the sender.
> _______________________________________________
> TeX FAQ: http://www.tex.ac.uk/faq
> Mailing list archives: http://tug.org/pipermail/texhax/