[texhax] alignment of parbox and fbox

bill lam cbill.lam at gmail.com
Tue Sep 8 15:39:39 CEST 2009


Hi,

I got some troubles in aligning bill-to and delivery-to box in a
invoice heading. I attach a sample source and the pdf output. My
problems are 

1. I guess the letter 'p' in "Ship" has a descender that make the
   frame lower than that of the left because "To" got no descenders.

2. When the content is empty such as the last fbox, its height is
   smaller than that of the first two box.  I also tried specified a
   height for fbox but no avail.

I want to known how to make all these 3 fbox to be exact the same
height and aligns to each other.  Thanks in advance.


% papersize, size of letters
\documentclass[a4paper]{article}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage{geometry}
\geometry{left=1cm,top=1.5cm}
% do not set pagenumbers
\usepackage{nopageno}

\begin{document}
\begin{minipage}[t]{\textwidth}
  \parbox[t]{.31\textwidth}{%
   \bf To:\\
   \fbox{\parbox{.3\textwidth}{%
   Mr. No Name \\
   Door No. \\
   Street \\
   City}}}
  \parbox[t]{.31\textwidth}{%
   \bf Ship To:\\
   \fbox{\parbox{.3\textwidth}{%
   Mr. No Name \\
   Door No. \\
   Street \\
   City}}}
  \parbox[t]{.31\textwidth}{%
   \bf ~ \\
   \fbox{\parbox{.3\textwidth}{%
   ~ \\
   ~ \\
   ~ \\
   ~ }}}
\end{minipage}

\end{document}


-- 
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t6.pdf
Type: application/pdf
Size: 7337 bytes
Desc: not available
URL: <http://tug.org/pipermail/texhax/attachments/20090908/e80798d9/attachment.pdf>


More information about the texhax mailing list