[OS X TeX] Re: full table width multicolumn
Denis Chabot
chabotd at globetrotter.net
Sat Dec 22 18:12:12 CET 2007
Dear Alan and Ross,
Thanks for 2 solutions that worked. I'm sorry to say that I used LaTeX
pretty much as an amator so far and had never used \parbox!
Both your solutions worked, although I only managed to get the \parbox
solution to work in a tabular instead of tabular* environment.
Thanks again and sorry for the late reply, I get this list in digest
form.
Denis
> At 5:30 PM -0500 12/20/07, Denis Chabot wrote:
>> Hi,
>>
>> This question is more (well, entirely) about
>> LaTeX and not about the Mac. I am trying to
>> produce a table where all the columns are of
>> type "p" (i.e. multilines). I would like to have
>> one line to be fullwidth, but the multicolumn
>> command requires the resulting cell to be one of
>> l, r or c. Not p. As a result, my full-width
>> multi-column cell shows only the first line of
>> the cell content. Is there a way out of this
>> beside cutting the text manually and making many
>> such full-width single-line cells?
>>
>> Here is how my table starts:
>>
>> \begin{tabular*}{6in} { @{\extracolsep\fill}*{5}{|p{1in}}|}
>> \hline
>> {\bf Lundi} & {\bf Mardi} & {\bf Mercredi} & {\bf Jeudi} & {\bf
>> Vendredi} \\
>> \hline
>> \multicolumn{ 5}{l}{Vérification des niveaux
>> d¹oxygène sur l'écran de l'ordinateur de
>> contrôle (à toutes les fois qu¹on passe près du
>> montage, au moins une fois par jour)} \\
>> \hline
>> & 5. Décongeler du capelan &
>> & Décongeler du capelan & Décongeler du capelan
>> \\
>> \hline
>> \end{tabular*}
>
> Put the text inside a parbox?
>
> \begin{tabular*}{6in} { @{\extracolsep\fill}*{5}{|p{1in}}|}
> \hline
> {\bf Lundi} & {\bf Mardi} & {\bf Mercredi} & {\bf Jeudi} & {\bf
> Vendredi} \\
> \hline
> \multicolumn{5}{c}{\parbox{5.4in}{\centering
> Vérification des niveaux d¹oxygène sur l'écran de
> l'ordinateur de contrôle (à toutes les fois qu¹on
> passe près du montage, au moins une fois par
> jour)}} \\
> \hline
> & 5. Décongeler du capelan &
> & Décongeler du capelan & Décongeler du capelan \\
> \hline
> \end{tabular*}
>
> Alan
>
>
> --
> Alan Munn
> amunn at msu.edu
> Department of Linguistics
> and Germanic, Slavic, Asian and African Languages Fax.
> +1-517-432-2736
> Michigan State University, East Lansing MI 48824 Tel.
> +1-517-355-7491
>
>
> ------------------------------
> On 21/12/2007, at 9:30 AM, Denis Chabot wrote:
>
>> Hi,
>>
>> This question is more (well, entirely) about LaTeX and not about the
>> Mac. I am trying to produce a table where all the columns are of type
>> "p" (i.e. multilines). I would like to have one line to be fullwidth,
>> but the multicolumn command requires the resulting cell to be one of
>> l, r or c. Not p.
>
> p works for me --- you have to specify a width though.
>
>> As a result, my full-width multi-column cell shows only the first
>> line
>> of the cell content. Is there a way out of this beside cutting the
>> text manually and making many such full-width single-line cells?
>>
>> Here is how my table starts:
>>
>> \begin{tabular*}{6in} { @{\extracolsep\fill}*{5}{|p{1in}}|}
>> \hline
>> {\bf Lundi} & {\bf Mardi} & {\bf Mercredi} & {\bf Jeudi} & {\bf
>> Vendredi} \\
>> \hline
>> \multicolumn{ 5}{l}{Vérification des niveaux d’oxygène sur l'écran de
>> l'ordinateur de contrôle (à toutes les fois qu’on passe près du
>> montage, au moins une fois par jour)} \\
>
> \multicolumn{5}{p{.9\textwidth}}{Vérification des niveaux d’oxygène
> sur
> l'écran de l'ordinateur de contrôle (à toutes les fois qu’on passe
> près
> du montage, au moins une fois par jour)} \\
>
>
> Even if this didn't work, you could use:
>
> \multicolumn{5}{l}{\parbox{.9\textwidth}{Vérification des .... }}
>
>
>> \hline
>> & 5. Décongeler du capelan & & Décongeler du
>> capelan & Décongeler du capelan \\
>> \hline
>> \end{tabular*}
>>
>> Thanks in advance,
>
> Hope this helps,
>
> Ross
More information about the macostex-archives
mailing list