[OS X TeX] Tables Question
Jada Watson
jada.watson at gmail.com
Sun Jul 10 09:06:30 EDT 2011
Sorry to bother everyone again, I hope this is the last question with regard
to these pesky tables.
1) Is there a way to make one column slightly narrower than the rest (I have
been playing around with the \hspace code, and it doesn't seem to do the
trick.
2) The table I was asking about yesterday has items spaced out in a specific
way over four columns, so the example send to me uses the \multicolumn code,
but I am having problems in a table that does not require multicolumns and
spacing information within just a regular cell. I copied the table I
attempted to make below (with the Word doc attached, it's the last table). I
keep getting alignment errors. I'm sure the problem is easy, but I am not
100% sure that I'm doing this right.
\noindent
\begin{tabular}{|r|c|c|c|} \hline
Section&Introduction&Exposition&Développement\\ \hline
\multirow{2}{*}{Musique} &&{||:
1T\hspace{.5in}Tr\hspace{.5in}2T\hspace{.5in}TC:||}&&
&& {a b c\hspace{.5in}a,
b\hspace{.3in}a'\hspace{.3in}d\hspace{.2in}e\hspace{.1in}} &e,a,b,d& \hline
Tonalité& Sol majeur& {Sol M\hspace{.6in}mod.\hspace{.4in}Ré
M\hspace{.3in}}&mod.\\ \hline
Mesures&1&{21\hfil25\hfil33\hfil41\hfil57\hfil61\hfil72}&83\\ \hline
\end{tabular}
I am so sorry to keep asking with what are likely easy questions, but I
can't seem to wrap my brain around these tables.
Thanks,
Jada
On Sat, Jul 9, 2011 at 7:51 PM, Michael Sharpe <msharpe at ucsd.edu> wrote:
>
> 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}
> ----------- Please Consult the Following Before Posting -----------
> TeX FAQ: http://www.tex.ac.uk/faq
> List Reminders and Etiquette: http://email.esm.psu.edu/mac-tex/
> List Archive: http://tug.org/pipermail/macostex-archives/
> TeX on Mac OS X Website: http://mactex-wiki.tug.org/
> List Info: http://email.esm.psu.edu/mailman/listinfo/macosx-tex
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://email.esm.psu.edu/pipermail/macosx-tex/attachments/20110710/69f6234c/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: NAWM 112- Haydn - Oxford.doc
Type: application/msword
Size: 46592 bytes
Desc: not available
URL: <http://email.esm.psu.edu/pipermail/macosx-tex/attachments/20110710/69f6234c/attachment.doc>
More information about the MacOSX-TeX
mailing list