Graphics, Figures & TablesLandscaping a Figure & Figure Footnotes

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
latexhelp1
Posts: 141
Joined: Sun Jun 12, 2011 6:30 am

Landscaping a Figure & Figure Footnotes

Post by latexhelp1 »

How do you make a page with a figure come out as landscaped? Is there a figure analogue to \begin{sidewaystable}?

Code: Select all

\documentclass[12pt]{article}
\usepackage{rotating}
\usepackage{lscape}
\usepackage[flushleft]{threeparttable}
\usepackage[margin=1in]{geometry}
\usepackage[T1]{fontenc}
\usepackage[font=large, labelfont=bf,tableposition=top]{caption}

\begin{document}

    \begin{figure}[!ht]
    \centering
    \caption{\large\textbf{{Caption for Figure}}}
    Figure Goes Here
    \end{figure}

    \noindent \footnotesize{Notes: } 
    \clearpage
\end{document}
Last edited by latexhelp1 on Wed Oct 26, 2011 7:41 pm, edited 2 times in total.

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

Landscaping a Figure & Figure Footnotes

Post by localghost »

What about just reading the rotating manual? Yet the introduction tells you that with the »sidewaysfigure« environment there is a corresponding counterpart.


Thorsten
latexhelp1
Posts: 141
Joined: Sun Jun 12, 2011 6:30 am

Landscaping a Figure & Figure Footnotes

Post by latexhelp1 »

Hi, I'm sorry but I don't understand how to apply the sidewaysfigure. I changed the code in the first message to add the sidewaysfigure. However, now I do not know how to make footnotes as I had done in the code in the first posting. And by footnotes, I just mean general notes about the table. For example, the sources of the data.

I would really appreciate your help and any suggestions to the code. I cannot find clear examples of how to do what I am looking for in the manual. I have tried googling around for solutions and cannot find anything. I would very much appreciate your help.

I would like the page to appear as:

Caption: Title Name
[Figure goes here]
Notes.

Code: Select all

\documentclass[12pt]{article}
\usepackage{rotating}
\usepackage{lscape}
\usepackage[flushleft]{threeparttable}
\usepackage[margin=1in]{geometry}
\usepackage[T1]{fontenc}
\usepackage[font=large, labelfont=bf,tableposition=top]{caption}

\begin{document}


\begin{sidewaysfigure}
\centering
\begin{threeparttable}
\caption{\large\textbf{{Caption for Figure}}}
Figure Goes Here
\end{threeparttable}
\end{sidewaysfigure}
\noindent \footnotesize{Notes: } 

\end{document}
localghost wrote:What about just reading the rotating manual? Yet the introduction tells you that with the »sidewaysfigure« environment there is a corresponding counterpart.


Thorsten
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Landscaping a Figure & Figure Footnotes

Post by localghost »

You can try a slightly different approach by the varwidth package.

Code: Select all

\documentclass[12pt]{article}
\usepackage[T1]{fontenc}
\usepackage[margin=1in]{geometry}
\usepackage[font=large,labelfont=bf,tableposition=top]{caption}
\usepackage{rotating}
\usepackage{varwidth}

\begin{document}
  \begin{sidewaysfigure}
    \centering
    \begin{varwidth}{6in}
      \rule{\linewidth}{0.75\linewidth}
    
      \smallskip
      \footnotesize
      Notes: The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.
    \end{varwidth}
    \caption{Figure Caption}\label{fig:dummy}
  \end{sidewaysfigure}
\end{document}
latexhelp1
Posts: 141
Joined: Sun Jun 12, 2011 6:30 am

Landscaping a Figure & Figure Footnotes

Post by latexhelp1 »

I'm sorry, but I cannot figure out how to insert an .eps figure here instead of just the black box. I used to use includegraphics, but I cannot figure out how to make that compatible with the code you have written in place of the black box.

I suspect that \rule{\linewidth}{0.75\linewidth} is making the black box in the code below.

Here is sample code for what I used to do to show you the includegraphics. I like what you wrote better with varwidth because it aligns the footnotes with the graphic and caption. So I don't want to keep using my code, and want to figure out how to use the includegraphics or something like it with yours.

Code: Select all

\begin{figure}[!ht]
\centering
\caption{\large\textbf{{Caption for Figure 1 Here}}}\label{figure1}
\includegraphics[height = 3.75in, width = 5.75in]{Figure1.eps}
\end{figure}

\noindent \footnotesize{Notes: 

\noindent Sources: }  
localghost wrote:You can try a slightly different approach by the varwidth package.

Code: Select all

\documentclass[12pt]{article}
\usepackage[T1]{fontenc}
\usepackage[margin=1in]{geometry}
\usepackage[font=large,labelfont=bf,tableposition=top]{caption}
\usepackage{rotating}
\usepackage{varwidth}

\begin{document}
  \begin{sidewaysfigure}
    \centering
    \begin{varwidth}{6in}
      \rule{\linewidth}{0.75\linewidth}
    
      \smallskip
      \footnotesize
      Notes: The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.
    \end{varwidth}
    \caption{Figure Caption}\label{fig:dummy}
  \end{sidewaysfigure}
\end{document}
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Landscaping a Figure & Figure Footnotes

Post by localghost »

latexhelp1 wrote:I'm sorry, but I cannot figure out how to insert an .eps figure here instead of just the black box. I used to use includegraphics, but I cannot figure out how to make that compatible with the code you have written in place of the black box.

I suspect that \rule{\linewidth}{0.75\linewidth} is making the black box in the code below. […]
I wish you would be a little bit more proactive and just think one simple step further. You could have tested it by yourself by just commenting the \rule command or replacing it with the \includegraphics command. The below code works as you want. No modifications needed.

Code: Select all

\documentclass[12pt]{article}
\usepackage[T1]{fontenc}
\usepackage[margin=1in]{geometry}
\usepackage[font=large,labelfont=bf,tableposition=top]{caption}
\usepackage{graphicx}
\usepackage{rotating}
\usepackage{varwidth}

\begin{document}
  \begin{sidewaysfigure}
    \centering
    \begin{varwidth}{5.75in}
      \includegraphics[width=5.75in,height=3.75in]{Figure1}
   
      \smallskip
      \footnotesize
      Notes: The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.

      \medskip
      Source: The quick brown fox jumps over the lazy dog.
    \end{varwidth}
    \caption{Figure Caption}\label{fig:dummy}
  \end{sidewaysfigure}
\end{document}
And stop with your weird manual formatting of the caption. It's all done by the caption package which you are already loading with appropriate options. If the formatting as above is not what you want, read the package manual to learn more about its capabilities.

I only wonder why you want this figure to be rotated. You've got a text width of 6.5" and a figure width of 5.75". So I see no need to turn it. It would fit nicely.
latexhelp1
Posts: 141
Joined: Sun Jun 12, 2011 6:30 am

Landscaping a Figure & Figure Footnotes

Post by latexhelp1 »

Thank you thank you thank you for your help. I cannot express my appreciation for your generosity. Bless you.

My apologies for the question. I did experiment with the code, and I promise you that I did comment out the rule line. However, I just could not figure out what was making the black box appear. It was still appearing with your code in the last posting as well, but I was proactive and figured it out. :)
localghost wrote: I wish you would be a little bit more proactive and just think one simple step further. You could have tested it by yourself by just commenting the \rule command or replacing it with the \includegraphics command.
I will work on my weird coding. I am sorry that it is so weird.
localghost wrote: And stop with your weird manual formatting of the caption. It's all done by the caption package which you are already loading with appropriate options. If the formatting as above is not what you want, read the package manual to learn more about its capabilities.
Post Reply