## What table styles are supported in LaTeX? document.SUBSCRIPTION_OPTIONS = { "thing": "thread", "subscribed": false, "url": "subscribe", "icon": { "css": "fa fa-envelope-o" } };

Deplate
2008-01-21
2013-04-17
• Hunter Kelly - 2008-01-21

Which table styles are supported in LaTeX?  I've got a table that's a bit wide and was hoping to use small or scriptsize or something but I get errors if I use them...

Are there any styles for tables defined in LaTeX?

Thanks,

H

Actually, support for latex should be much better. Table styles don't work properly with, e.g., IExplorer.

Could you please list the single steps that lead to these errors? Which errors?

You have to use the latex-styles module and make sure deplate.sty is copied to the right location and can be read by latex.

• Hunter Kelly - 2008-01-22

I wasn't using the latex-styles, which was the problem.

Now, I'm trying to use the scriptsize module, but as-is (deplate version 0.8.1), it doesn't actually seem to change the fontsize.
I found the commented out block of code in latex-styles.rb:

# class Deplate::Formatter::LaTeX::Styles::TableScriptsize < Deplate::Formatter::LaTeX::Styles
#     def table_cell(rv, invoker, *args)
#         %{\\scriptsize{#{rv}}}
#     end
# end

And uncommented that out, and got the results I was looking for.  Is that required, or does it depend on the version of LaTeX, or what?

For the record:

\$ latex -v
pdfTeX 3.141592-1.40.3-2.2 (Web2C 7.5.6)
kpathsea version 3.5.6
Copyright 2007 Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
Kpathsea is copyright 2007 Karl Berry and Olaf Weber.
There is NO warranty.  Redistribution of this software is
covered by the terms of both the pdfTeX copyright and
the Lesser GNU General Public License.
named COPYING and the pdfTeX source.
Primary author of pdfTeX: Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
Kpathsea written by Karl Berry, Olaf Weber, and others.

Compiled with libpng 1.2.15; using libpng 1.2.15
Compiled with zlib 1.1.4; using zlib 1.2.3

IIRC the lines were commented out because they interfere with the more
general handling of the style property, which should wrap the table in a
custom environment defined in deplate.sty that sets the font size.

What does the tex file look like?

• Hunter Kelly - 2008-01-22

Here's the relevant potion.  small was the same as scriptsize.

I tried putting the \small{} line in lots of different places, and I tried \small as well, but nothing helped.

-----

\label{file000}\label{file001}
\begin{formalBlock}
\begin{dense08Block}
\begin{smallBlock}
\renewcommand{\arraystretch}{0.8}
\setlength{\tabcolsep}{0.8\tabcolsep}
\small{}
\begin{table}
\centering{}
\begin{tabular}{llllll}
\hline
\hline
& Wood & Fire & Earth & Metal & Water \\ \hline
Direction & East & South & Center & West & North \\         Season & Spring & Summer & Long Summer & Autumn & Winter \\         Climate & Wind & Summer Heat & Dampness & Dryness & Cold \\         \hline
\hline
\end{tabular}
\label{tab000001}
\caption{\normalsize{Wu3 Xing2 Correspondances}}
\end{table}
\normalsize{}
\setlength{\tabcolsep}{1.25\tabcolsep}
\renewcommand{\arraystretch}{1.0}
\end{smallBlock}
\end{dense08Block}
\end{formalBlock}