# [XeTeX] tabular in footnote

Daniel Greenhoe dgreenhoe at gmail.com
Sun Dec 4 13:26:29 CET 2011

Hi Zdenek,

As usual, thank you for all your hard work on my behalf. The
conclusion appears to be that there is no easy solution to the problem
(and it seems I am about the only person who has this problem).

If you do happen to come upon a solution some day, please feel free to
drop me a line. In the mean time I can maybe just tolerate the 2mm or
so overflow, or put a newline after the table.

Thank you again,
Dan

2011/12/4 Zdenek Wagner <zdenek.wagner at gmail.com>:
> Hi Dan,
> first, as Keith wrote, as a reader I would not expect a table in a
> footnote. If the table is important, why not to put it to the main
> text? And if it is not important, why it is there at all? If it is of
> less importance, it should rather appear in an apendix, not in a
> footnote.
>
> I am not such an expert. I tried to figure out how the page is
> completed but I do not fully understand it. What is important to know
> is that each box has 3 dimensions: height, depth and width. If tabular
> is set, the resulting box has zero height. You can see it in my
> example. You can also se a trick how I forced it to have nonzero
> height but preserving the sum of the height + depth. The boxes are
> treated differently depending whether they are inserted to the
> vertical or horizontal list.
>
> I am afraid that proper treatment of tables within footnotes will
> require delving into the TeX page breaking algorithm and detailed
> knowledge of LaTeX \output routine may also be needed. The LaTeX
> \output is about 40 pages of code and I have never studied these
> macros.
>
> 2011/12/4 Keith J. Schultz <keithjschultz at web.de>:
>> Hi Dan,
>>
>> Though, you problem is interesting, but I can believe you have this
>> problem.
>>
>> You do realize that a footnote in general is not intend to contain this kind of
>> information. Even though it may be possible in TeX, et al.
>>
>> Most writers show poor style by stuffing all kinds of information in the footnote
>> because they do not take the time to properly integrate what the have to say into the main
>> text.
>>
>> But, you can do whatever you want.
>>
>> regards
>>        Keith.
>>
>> Am 04.12.2011 um 00:31 schrieb Daniel Greenhoe:
>>
>>> When I put a tabular in a footnote, the tabular often is extended
>>> outside the text area. Besides placing a newline directive after the
>>> tabular environment, is there anything I can do to prevent this
>>> behavior? That is, how can I best ensure that tabulars in a footnote
>>> get typeset completely within the text area? Here is an example:
>>>
>>> \documentclass[12pt]{book}
>>> \begin{document}%
>>>  xyz\footnote{%
>>>    %\raisebox{2.5mm}{
>>>      \begin{tabular}[t]{|l|}
>>>       \hline
>>>        abc\\
>>>        def\\
>>>        ghj\\
>>>        klm\\
>>>        \hline
>>>      \end{tabular}%\\
>>>      %}%
>>>    }
>>>  xyz\footnote{%
>>>    %\raisebox{2.5mm}{
>>>      \begin{tabular}[t]{|l|}
>>>       \hline
>>>        abc\\
>>>        def\\
>>>        ghj\\
>>>        klm\\
>>>        \hline
>>>      \end{tabular}%\\
>>>      %}%
>>>    }
>>> \end{document}%
>>>
>>> Dan
>>> <foottbl.tex><foottbl.pdf>
>>>
>>> --------------------------------------------------
>>> Subscriptions, Archive, and List information, etc.:
>>>  http://tug.org/mailman/listinfo/xetex
>>
>>
>>
>>
>> --------------------------------------------------
>> Subscriptions, Archive, and List information, etc.:
>>  http://tug.org/mailman/listinfo/xetex
>
>
>
> --
> Zdeněk Wagner
> http://hroch486.icpf.cas.cz/wagner/
> http://icebearsoft.euweb.cz
>
>
>
> --------------------------------------------------
> Subscriptions, Archive, and List information, etc.:
>  http://tug.org/mailman/listinfo/xetex
>