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

Arnaud Schmittbuhl aschmittbuhl at libertysurf.fr
Sat Apr 9 16:45:36 CEST 2011


Le Sat, 9 Apr 2011 10:17:34 -0400,
Peter Davis <pfd at pfdstudio.com> a écrit :

> This seems to solve the vertical alignment problem, but it introduces
> a horizontal indentation at the beginning of each line.  I'm still
> looking into that.

So, remove the \tabskip command and put spaces by hand.
Some spaces are coming from your absolute positionning.
Here is an example with no space.
You can add some by playing with positionning or with the \hskip
commands in the \halign

\documentclass[letterpaper]{article}
\usepackage[absolute]{textpos}
\setlength{\TPHorizModule}{1bp}
\setlength{\TPVertModule}{\TPHorizModule}
\setlength{\parindent}{0pt}
\setlength{\unitlength}{1bp}
\pagestyle{empty}
\usepackage[paperwidth=252.000000bp,paperheight=144.000000bp]{geometry}

\begin{document}
\raggedright
\fontsize{7.000000}{9.000000}\selectfont{}
\begin{textblock}{96}(36,76)
This is several lines of text on the left side of the card.  The lines
should align with the tabbed environment on the right.
\end{textblock}

%% Below 132 = 96+36 (144 before)
\begin{textblock}{67.5}(132,76)%% <- here
\halign{\hskip0mm{#}&\hskip0mm\hbox to 47bp{#}\cr
248.358.4420& office\cr
123.456.7891& direct\cr
123.456.7892& cell\cr
248.358.1969& fax\cr
}
\end{textblock}
\end{document}

-- 
Arnaud Schmittbuhl


More information about the texhax mailing list