[OS X TeX] Table in SF family with longtable package
BenBehr
ben at benbehr.eu
Fri Jun 6 13:58:48 EDT 2008
Hi,
I don't know if it works, and i don't have the time to try it myself
at the moment, but if you write ">{\sffamily}c" in the column
declaration of a normal table it has the same effect as to write it in
each cell of that column. Just try if it works in your case. Let me
know what it dose.
Ben
Am 06.06.2008 um 19:42 schrieb Nathan Paxton:
> I have the following table in my document. Currently, it sets in
> the default roman family, but I want my tables (as a way of setting
> them apart) to set in the default sans-serif family. I can't figure
> out how to do this in this longtable in any (somewhat) simple way. I
> don't want to have to use \textsf{} for every cell in the table, if
> I can help it. Is there another way to do this?
>
> -Nathan
>
> \begin{center}
> \begin{landscape}
> \footnotesize{ \singlespacing{
> \begin{longtable}{lp{2in}p{2in}lll}
>
> \toprule \\
> \textbf{Variable} & \textbf{Description} & \textbf{Source} &
> \textbf{Range} & {\textbf{Mean}} & {\textbf{N}}\\
> \midrule \\
> \endfirsthead\\
> \toprule \\
> \textbf{Variable} & \textbf{Description} & \textbf{Source} &
> \textbf{Range} & {\textbf{Mean}} & {\textbf{N}}\\
> \midrule \\
> \endhead
>
> \bottomrule\\
> \caption{Summary of original data. } \label{tab:summarytable}\\
> \endfoot \bottomrule\\
> \caption{Summary of original data, cont'd.}\\
> \endlastfoot \textbf{Dependent} & & & &
> %\multicolumn{1}{l|}{} &% \multicolumn{1}{l|}{}
> \\
> Policy Output & API Treatment, Prevention, Prog. Res. scales & API &
> 25.95, 100 & 59.42 & 139 \\
> Overall HIV Program & Mean of API indices, save organizational
> structure index & API & 36.19, 98.65 & 60.35 & 139 \\
> & & & & & \\
> \textbf{Independent} & & & & & \\
> \textit{Organizational} & & & & & \\
> %... [SNIP TABLE CONTENTS HERE]
> Regional dummies & Sub-Saharan Africa, E. Asia, S. Asia, L. America,
> E. Europe & s & & & \\
>
> \end{longtable}
> }}
> \end{landscape}
> \end{center}
>
> ----------
> Nathan A. Paxton
> Ph.D. Candidate
> Dept. of Government, Harvard University
>
> Resident Tutor
> John Winthrop House, Harvard University
>
> napaxton AT fas DOT harvard DOT edu
> http://www.fas.harvard.edu/~napaxton
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> ======================================================================
> When you have to stay eight years away from California, you live in
> a perpetual state of homesickness.
> - Ronald Reagan
>
> The most courageous act is still to think for yourself. Aloud.
> -Coco Chanel
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> =
> ======================================================================
>
>
>
>
>
>
>
>
> -------------------------- Helpful Info --------------------------
> TeX FAQ: http://www.tex.ac.uk/faq
> List Reminders and Etiquette: http://www.esm.psu.edu/mac-tex/list/
> List Info: http://email.esm.psu.edu/mailman/listinfo/macosx-tex
> List Archive: http://tug.org/pipermail/macostex-archives/
> Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
>
More information about the MacOSX-TeX
mailing list