[OS X TeX] Tables Question
Michael Sharpe
msharpe at ucsd.edu
Sun Jul 10 01:51:03 CEST 2011
On Jul 9, 2011, at 4:31 PM, Alan Munn wrote:
> Here's two versions of your table. One uses the booktabs package and gets rid of all the vertical lines and most of the horizontal ones. This may not be completely appropriate in this case, but it is generally the preferred way to make tables.
>
This may be one of the rare cases where vertical separators may be useful as they lead the eye to the Measure number, which was I think where the alignment was wanted. I did this in a fairly ad hoc way. There's another way you can do this without tables, making use of the pst-layout package, but there is a bit of a learning curve and would not be worthwhile unless you were making many such documents.
Michael
\documentclass[11pt]{article}
\usepackage[margin=1in]{geometry}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage[T1]{fontenc}
\usepackage{multirow}
\def\HB#1{\hbox to .8in{#1}}
\begin{document}
\begin{tabular}{|c|c|c|c|c|c|c|} \hline
Section&refrain&couplet&refrain&couplet&refrain&coda\\ \hline
\multirow{3}{*}{Musique} & A & B&A&C&A’& \\
& \HB{$\|$: a :$\|$: b a :$\|$} & &\HB{a\hfil b\hfil a}&\HB{\hfil}&\HB{a\hfil}&\HB{Adagio\hfil a'} \\
&&&&&& \\ \hline
Tonalité& Mi $\flat$& \HB{La $\flat$\hfil Fa}&\multicolumn{4}{|c|}{Mi $\flat$}\\ \hline
Mesures&\HB{1\hfil9\hfil28}&\HB{36\hfil49}&\multicolumn{4}{|l|}{72\hspace{.2in}80\hspace{.2in}100\hspace{.28in}107\hspace{.45in}141\hspace{.78in}148\hspace{.35in}153}\\ \hline
\end{tabular}
\end{document}
More information about the macostex-archives
mailing list