Graphics, Figures & TablesTable Formatting/Style Question

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
jggalbra
Posts: 3
Joined: Thu Jul 21, 2011 3:44 am

Table Formatting/Style Question

Post by jggalbra »

Hello,

I am trying to write my thesis and the format for tables requires the tables be listed in a list of tables, which I have. I am not sure however how to change the format of the tables.

The format required by the school is that the table number is on a different line than the caption and then the table. I have tried things like \newline in the caption which creates a break in the caption, and there is still the : in the table number.

I am afraid I dont know much about LaTeX, I am using a template. I dont know if there is a package that I can use that would change the table/tabular style or what. Any help would be appreciated.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Frits
Posts: 169
Joined: Wed Feb 02, 2011 6:02 pm

Table Formatting/Style Question

Post by Frits »

Take a look at the caption package. I think you want to add the following to your preamble:

Code: Select all

\usepackage{caption}
\DeclareCaptionLabelSeparator*{newline}{\\}
Haven't tested it though.
howtoTeX.com - Your LaTeX resource site (Tips, Tricks, Templates and more!)
Follow howtoTeX on twitter
User avatar
sommerfee
Posts: 503
Joined: Mon Apr 09, 2007 4:20 pm

Table Formatting/Style Question

Post by sommerfee »

Code: Select all

\usepackage[labelsep=newline,singlelinecheck=false]{caption}
should do the trick, but the result depends on the document class you use. Some are incompatible with the caption package, and some offer their own caption formatting stuff which should be used instead.
jggalbra
Posts: 3
Joined: Thu Jul 21, 2011 3:44 am

Re: Table Formatting/Style Question

Post by jggalbra »

Thank you. That was what I was looking for.

Is it possible to use two different caption styles in a document. My document type is a report. Tables are suppose to have centered captions which I figured out how to do, but Figures are suppose to have justified captions and the style changes them both.
User avatar
sommerfee
Posts: 503
Joined: Mon Apr 09, 2007 4:20 pm

Table Formatting/Style Question

Post by sommerfee »

jggalbra wrote:Is it possible to use two different caption styles in a document.
Yes, this is possible, one can specify options which take effect inside a specific floating environment only (for example "figure" or "table"), e.g.:

Code: Select all

\captionsetup[figure]{...}
Just take a closer look at the caption package documentation.
Post Reply