[texhax] XeLaTeX: Extra vertical space in tabbing environment with \kill?

Peter Davis pfd at pfdstudio.com
Fri Apr 8 22:59:15 CEST 2011


On Fri, Apr 8, 2011 at 4:31 PM, William Adams <will.adams at frycomm.com>wrote:

> On Apr 8, 2011, at 3:50 PM, Peter Davis wrote:
>
> > I'm trying to set up some business cards, and running into a tabbing
> environment behavior I don't understand.
> >
> > I use a line made up of \hspace and \= to define the tab position, ending
> the line with \kill (Kopka & Daly, Guide to LaTeX, 4th ed., pp. 102), but
> when I generate output, the top line of the tabbed text is about a line and
> a half lower than the top line of an adjacent paragraph.  I'm using textpos
> to position blocks of text.
> >
> > The example below has a block on the left with a simple paragraph, and a
> block containing a tabbed environment on the right.  I don't understand why
> the lines don't ... uh, line up.
>
> The tabbing environment adds some space before it which for some reason
> isn't being discarded.
>


Thanks, William.  Do you know if there's a way to override this?



> > Any help greatly appreciated!!
>
> Instead, I'd just place things in \hboxes of pre-defined width:
>
> \mbox{\hbox to 47bp {248.358.4420\hfill}~office}\\
> \mbox{\hbox to 47bp {123.456.7891\hfill}~direct}\\
> \mbox{\hbox to 47bp {123.456.7892\hfill}~cell}\\
> \mbox{\hbox to 47bp {248.358.1969\hfill}~fax}%\end{tabbing}
>
> (and wrap those into an mbox so as to prevent a line break)
>

Not really an option.  I'm generating LaTeX from XML, so all I know is where
the tab stop is, and when to insert a tab.


>
> Or find some more elegant environment which doesn't add the vertical space,
>


Know any?


> or find out how much tabbing is adding and add that much in advance.
>

Any ideas?

Thanks!

-pd


-- 
----
The Tech Curmudgeon
http://www.techcurmudgeon.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/texhax/attachments/20110408/9b5f1f2f/attachment-0001.html>


More information about the texhax mailing list