What table styles are supported in LaTeX?

  • Hunter Kelly

    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?



    • Tom Link

      Tom Link - 2008-01-21

      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

      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.
      For more information about these matters, see the file
      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
      Compiled with xpdf version 3.01

      • Tom Link

        Tom Link - 2008-01-22

        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

          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.


                   & 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
          \caption{\normalsize{Wu3 Xing2 Correspondances}}


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks