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

Martin Heller mr_heller at yahoo.dk
Sun Apr 10 12:09:58 CEST 2011


On 2011-04-09 16:56, Peter Davis wrote:
> Actually, it turns out tabbing works ok if I just set \topsep and
> \partopsep to 0 before the tabbing environment.  Here's the latest
> sample, with a gray background to show where the right hand text should go:

Why do you need to wrap the lines in an environment? Can you not just do 
something like:

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

\newcommand\phone[2]{%
   \makebox[0pt][l]{\makebox[47bp][l]{#1}~#2}%
}

\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}

\begin{textblock}{67.5}(144,76)
{\color[cmyk]{0,0,0,0.15}\rule{67.5bp}{48bp}}
\end{textblock}

\begin{textblock}{67.5}(144,76)
   \obeylines
   \phone{248.358.4420}{office}
   \phone{123.456.7891}{direct}
   \phone{123.456.7892}{cell}
   \phone{248.358.1969}{fax}
\end{textblock}

\end{document}



More information about the texhax mailing list