Hello Ross, On Wed, Dec 7, 2011 at 5:58 AM, Ross Moore <[email protected]> wrote: > Heiko explains why the table doesn't align as you want.
Looking at Heiko's email again, I think maybe I misunderstood it. Sorry Heiko! :( > Try this variant of your example. Yes! That seems to work. Actually the only case where it doesn't seem to work as a general solution is the case when there is only one line in the tabular environment (see attachments). In this case, the value of 2ex seems to be too much. That is, the value of 2ex seems to work for all cases(?) except the case of the number of lines being 1. But I could define a separate environment for that special case (in fact that case doesn't even need a tabular, but having a tabular might be nice for consistency with the other cases). Thank you very much for your help, Dan On Wed, Dec 7, 2011 at 5:58 AM, Ross Moore <[email protected]> wrote: > Hello Daniel, > > On 07/12/2011, at 8:16 AM, Daniel Greenhoe wrote: > >> Thank you everyone for your help with this problem. I will regard it >> as a bug. I hope that someday it can be fully resolved. > > Heiko explains why the table doesn't align as you want. > > Try this variant of your example. > > > \documentclass[12pt]{book} > \usepackage[a4paper,noheadfoot,nomarginpar,margin=20mm,showframe] > {geometry} > > > % adjust this value to suit > \def\foottableraise{2ex} > > % define a new environment > \newenvironment{foottable}{% > \raise\foottableraise\hbox\bgroup\space > \begin{tabular}[t]% > }{% > \end{tabular}\egroup\vskip\foottableraise > } > > \begin{document}% > xyz\footnote{% > \raisebox{\foottableraise}{ % inserts a space > \begin{tabular}[t]{|l|} > \hline > abc\\ > def\\ > ghj\\ > klm\\ > \hline > \end{tabular}%\\ > }% > \vskip \foottableraise > } > xyz\footnote{% > \begin{foottable}{|l|} > \hline > abc\\ > def\\ > ghj\\ > klm\\ > \hline > \end{foottable}%\\ > } > \end{document}% > > Note that you need to use TeX's \raise and \bgroup ... \egroup > in the environment definition. > This is because \raisebox reads its argument too soon, so the > start and end of the box cannot then be split between the > \begin and \end of the \newenvironment . > >> >> Dan > > > Hope this helps, > > Ross > > ------------------------------------------------------------------------ > Ross Moore [email protected] > Mathematics Department office: E7A-419 > Macquarie University tel: +61 (0)2 9850 8955 > Sydney, Australia 2109 fax: +61 (0)2 9850 8114 > ------------------------------------------------------------------------ > > > > > > -------------------------------------------------- > Subscriptions, Archive, and List information, etc.: > http://tug.org/mailman/listinfo/xetex
Ross.tex
Description: TeX document
Ross.pdf
Description: Adobe PDF document
-------------------------------------------------- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
