Graphics, Figures & Tablesgetting pictures of tables labeled as tables not figures

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
sleepyhead
Posts: 2
Joined: Tue Nov 03, 2009 12:36 am

getting pictures of tables labeled as tables not figures

Post by sleepyhead »

Hello all, sorry if this has been asked before but cant find any tips online how to do this.

Im writing my thesis in latex and of course have lots of figures and tables in it. Ive made most of my tables in excel, screen capped them into gimp, saved them as png or eps then embedded them into latex. (I know this isn't the most elegant approach but was lots quicker than typing all the numbers into latex table environment)

Tables look fine in compiled document but my problem is that latex labels them as figures and really should have them labeled as tables and numbered separately. Is there an easy(ish) way I can sort this out? I imagine there must be some way of defining a (custom?)environment that you can stick an image in and have it labeled as Table ... in the text?

Ill kick my wife off the dedication page in favour of whoever helps me! :mrgreen:

Recommended reading 2024:

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

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

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

getting pictures of tables labeled as tables not figures

Post by gmedina »

Hi,

how exactly are you including your tables in your .tex file?

A wild guess: try using a table environment instead of a figure environment for the inclusion.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
sleepyhead
Posts: 2
Joined: Tue Nov 03, 2009 12:36 am

Re: getting pictures of tables labeled as tables not figures

Post by sleepyhead »

D'oh I feel excessively dumb now.

Yes i had been putting them in fig environment, in my defense I thought that you could only use '\includegraphics ...' inside a figure environment (and all you could put in a table environment was a latex table written in the editor). Clearly that's wrong, Ive changed them to table environment and it works now.

Thanks for your help, sorry for the thickness of my problem!
Post Reply