LyXPlace table caption in the upper left corner

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
TB2
Posts: 3
Joined: Mon Dec 10, 2007 4:43 pm

Place table caption in the upper left corner

Post by TB2 »

Hi,

I'm new to latex and I'm using lyx right now. Apparently it's not possible to create captions for longtables the "normal way" because it's not a "float" or something like that, so I have to use this dirty workaround and make a new line in each table and place an ERT line in there. Now I actually get a caption, but it's centered.

See this Screenshot

How can I get the caption to the left?

Same goes for picture captions, I need them in the lower left corner...

Thanks a lot!

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
sommerfee
Posts: 503
Joined: Mon Apr 09, 2007 4:20 pm

Place table caption in the upper left corner

Post by sommerfee »

This depends on the document class you use. Many document classes have build-in possibilities to change the look & feel of the captions.

You could also give

Code: Select all

\usepackage[singlelinecheck=off]{caption}
a try.

HTH,
Axel
TB2
Posts: 3
Joined: Mon Dec 10, 2007 4:43 pm

Place table caption in the upper left corner

Post by TB2 »

o.ô

it actually worked quite well! It's not perfect as the caption now sticks to the left side of the page instead of the table, which means that if the table isn't as wide as the text area the caption will be too much to the left (as the table is centered and has some space on both sides).

But it's pretty much ok now!

Thanks!

I use the article document style btw.
User avatar
sommerfee
Posts: 503
Joined: Mon Apr 09, 2007 4:20 pm

Place table caption in the upper left corner

Post by sommerfee »

TB2 wrote: It's not perfect as the caption now sticks to the left side of the page instead of the table, which means that if the table isn't as wide as the text area the caption will be too much to the left (as the table is centered and has some space on both sides).


You could combine this option with the floatrow package, which offers commands to typeset the caption as wide as the table itself.

Axel
TB2
Posts: 3
Joined: Mon Dec 10, 2007 4:43 pm

Re: Place table caption in the upper left corner

Post by TB2 »

Huh... Latex sure goes deep. I took a quick look at the manual for floatrow (72 pages) and it seems like it will do the job as you say, I'll try to figure out how to use it tomorrow... ;)

Thanks for that tip!
Post Reply