[OS X TeX] Table in SF family with longtable package
George LGhio
gghi at bordernet.com.au
Sat Jun 7 01:53:04 CEST 2008
Hi Nathan
This works for me in Tabular
\textsf{\begin{tabular}{llll}
G & U/21& Breastroke & R. Murrell\\
G & U/21 & Freestyle & J. Hudgson\\
G & U/21 & Butterfly & J. Hudgson\\
G & U/21 & Backstroke & R. Murrell
\end{tabular}}
Might work in table as well
George
On 7 Jun 2008, at 9:36 AM, Nathan Paxton wrote:
> Hmm. It didn't seem to effect the desired change. Putting
> ">{\sffamily}c}" (I didn't put in the quotes, just what was inside of
> them.) caused an error in typesetting.
>
> -Nathan
> ----------
> 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
> =======================================================================
> ================================
>
>
>
>
>
>
>
> On 6 Jun 2008, at 1:58 PM, BenBehr wrote:
>
>> 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.
>>>
>>> The most courageous act is still to think for yourself. Aloud.
>>>
>>> =====================================================================
>>> ==================================
>>> -------------------------- 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/
>>
>>
>> -------------------------- 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/
>>
>
> -------------------------- 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 macostex-archives
mailing list