[OS X TeX] OT: peculiar table formatting

Bruno Voisin bvoisin at mac.com
Thu May 4 00:52:38 CEST 2006


Le 3 mai 06 à 17:32, Herbert Schulz a écrit :

> Sigh... and the booktabs package too. Pushed send too quickly.

Thanks, I wasn't aware of this package. (Note to self: must really  
get the 2nd edition of the LaTeX Companion as soon as possible!) I  
had tried array.sty, which doesn't seem to solve these particular  
problems, but booktabs seems exactly designed for the kind of tables  
-- which it calls formal tables -- that I had in mind (journal  
requirement: no vertical lines ever, and horizontal lines only when  
indicating an item spanning several columns).


Le 3 mai 06 à 23:47, Peter Dyballa a écrit :

> Well, I'd call this a simple approach (which is good enough for me):
>
> \begin{tabular}{cllllll}%cccccc}%
>   & \multicolumn{2}{c}{$\fno \gg 1$} & \multicolumn{4}{c}{$\fno \ll  
> 1$} \\
>   & \multicolumn{2}{c}{\rule[1mm]{25mm}{0.5mm}}
>    & \multicolumn{4}{c}{\rule[0.5mm]{80mm}{0.5mm}} \\
>   Region & \multicolumn{1}{c}{Inner} & \multicolumn{1}{c}{Outer} &
>    \multicolumn{1}{c}{Middle} & \multicolumn{1}{c}{Top \& Bottom} &
>     \multicolumn{1}{c}{Shear} & \multicolumn{1}{c}{Upper \& Lower} \\
>   Vertical distance     & $O(1)$ & $O(\fno)$     & $O(1)$
>    & \rule{6.25mm}{0mm}$O(\fno)$      & $O(\fno)$   & \rule{7.5mm} 
> {0mm}$O(1)$ \\
>   Horizontal distance   & $O(1)$ & $O(\fno)$     & $O(1)$
>    & \rule{6.25mm}{0mm}$O(\fno^{1/2})$ & $O(1)$      &\rule{7.5mm} 
> {0mm}$O(1)$ \\
>   Perturbation velocity & $O(1)$ & $O(1/\fno^2)$ & $O(1)$
>    & \rule{6.25mm}{0mm}$O(1)$         & $O(\fno)$   & \rule{7.5mm} 
> {0mm}$O(\fno)$ \\
>   Vertical displacement & $O(1)$ & $O(1/\fno)$   & $O(\fno^2)$
>    & \rule{6.25mm}{0mm}$O(\fno)$      & $O(\fno^2)$ & \rule{7.5mm} 
> {0mm}$O(\fno^2)$
> \end{tabular}

Thanks for this suggestion. It's not exactly what I was looking for  
(for one thing, it's using fixed lengths in millimeters whereas I was  
looking for lengths adjusted automatically based on fonts, text size,  
etc.), but I'll keep it in mind.


Bruno


------------------------- Info --------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
          & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/




More information about the macostex-archives mailing list