Graphics, Figures & TablesPortrait caption (notes) for landscape figure and table

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
slnjas001
Posts: 1
Joined: Sun Feb 13, 2011 11:29 am

Portrait caption (notes) for landscape figure and table

Post by slnjas001 »

Greetings.
A newbie here.
2 weeks in and loving LaTex but under serious deadline pressure so I've been taking the brute force rather than elegance approach. I apologize for all ignorance, messy code, poorly organised post etc.

I have made a landscape figure and table side by side using subfig. These pretty much fill the page but I would like to include notes in a caption explaining the figure and table. I can't include it at the bottom of the table because it is too big. I'd like to put the caption at the bottom of the page in portrait (ie along the left hand margin of the figure and table...) or in a "floating caption" (terminology?) that could appear on the next page.

I've searched a number of blogs without any luck but I think the problem is I'm not familiar with the terminology enough to know what to use as my search term.

Any suggestions?

Current code:

%%%Packages

\usepackage{graphicx}
\usepackage{lscape}
\usepackage{keyval}
\usepackage{caption}
\usepackage{subfig}
\usepackage{everysel}
\usepackage{ragged2e}

%%%Code

\newsavebox{\tempbox}

\begin{landscape}
\begin{figure}%
%\centering
\sbox{\tempbox}{
\includegraphics[width=60mm]{figurecode}}%
\subfloat{\usebox{\tempbox}}%
%\qquad
\subfloat{%
\vbox to \ht\tempbox{%
\vfil
\input{Tablecode}
\vfil}}%
\end{figure}
\end{landscape}

%%%
If anyone can tell me why \centering messes up all my alignment (throughout the document!) I'd be much appreciative too.

Thanks!
And extra thanks for all the super handy posts you guys have put together!
Jasper

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
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Portrait caption (notes) for landscape figure and table

Post by localghost »

slnjas001 wrote:[…] I apologize for all ignorance, messy code, poorly organised post etc. […]
Time pressure does not dispense you from providing a proper minimal example and an adequate formatted post. It saves you as well as people who try to help a lot of time. And the »Code« environment is just one click away.

Regarding the problem, you could use the sideways environment from the rotating package. It allows to rotate its content to the side without affecting stuff outside. See code below for an example.

Code: Select all

\documentclass[11pt,a4paper,english]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage[demo]{graphicx}
\usepackage[font=small,labelfont=bf,tableposition=top]{caption}
\usepackage[font=footnotesize]{subfig}
\usepackage{rotating}
\usepackage{blindtext}

\begin{document}
  \begin{figure}[!p]
    \centering
    \begin{sideways}
      \subfloat{%
        \includegraphics[width=60mm]{figurecode}
      }%
      \subfloat{%
        \rule{6cm}{4cm}   % replacement for missing table
      }%
    \end{sideways}
    \caption*{\blindtext}
  \end{figure}
\end{document}
If you want to have different alignment of the sub-floats, you may take a look at the »subcaption« package that comes with caption.

The blindtext package is only for creating dummy text thus not part of the solution. The demo option for the graphicx was necessary because the external image file was not present.


Best regards and welcome to the board
Thorsten
Post Reply