Graphics, Figures & Tablesvertical alignment of a side caption

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
lesnik
Posts: 2
Joined: Sun Mar 20, 2011 7:15 pm

vertical alignment of a side caption

Post by lesnik »

Hello,
I've been searching the documentation, googling and searching this forum, but found nothing. I'm using the sidecap package and the SCfigure tag. The side caption always appears at the bottom. Is it possible to center it vertically alongside the figure, or maybe place it at the top?

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

vertical alignment of a side caption

Post by sommerfee »

lesnik wrote:Is it possible to center it vertically alongside the figure
Use

Code: Select all

\sidecaptionvpos{figure}{c}
inside the preamble of your document, after loading the sidecap package.
or maybe place it at the top?

Code: Select all

\sidecaptionvpos{figure}{t}
It's an undocumented feature of the sidecap package. I was so keen to document it anyway in my caption package documentation, section 6.13 "sidecap", paragraph "Undocumented features".
lesnik
Posts: 2
Joined: Sun Mar 20, 2011 7:15 pm

Re: vertical alignment of a side caption

Post by lesnik »

Thank you very much, sommerfee.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

vertical alignment of a side caption

Post by localghost »

lesnik wrote:Thank you very much […]
If that solves the problem, then please mark the topic (not the last post) accordingly as written in the Board Rules (to be read before posting).


Best regards and welcome to the board
Thorsten
Post Reply