LaTeX forum ⇒ 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.
TB2
Posts: 3
Joined: Mon Dec 10, 2007 4:43 pm

Place table caption in the upper left corner

Postby TB2 » Mon Dec 10, 2007 4:49 pm

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!

Link:
BBcode:
HTML:
Hide post links
Show post links

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

Postby sommerfee » Fri Dec 14, 2007 4:02 pm

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
  1. \usepackage[singlelinecheck=off]{caption}
a try.

HTH,
Axel

Link:
BBcode:
HTML:
Hide post links
Show post links

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

Postby TB2 » Fri Dec 14, 2007 8:10 pm

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.

Link:
BBcode:
HTML:
Hide post links
Show post links

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

Postby sommerfee » Fri Dec 14, 2007 10:15 pm

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

Link:
BBcode:
HTML:
Hide post links
Show post links

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

Postby TB2 » Sat Dec 15, 2007 3:14 am

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... Wink

Thanks for that tip!

Link:
BBcode:
HTML:
Hide post links
Show post links


Return to “LyX”

Who is online

Users browsing this forum: No registered users and 1 guest