Graphics, Figures & Tablesplacing two figures in a page!!

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
dmuthu_cse
Posts: 97
Joined: Fri Sep 04, 2009 4:56 pm

placing two figures in a page!!

Post by dmuthu_cse »

Hello friends,

i am trying to insert two figures, next to other immediately in a page.. which almost covers the full page..

Since Latex, is build up with rules, it is not allowing me to place two figures in a single page.

So please help me how to place to 2 figures in a page.

So, help me in this issue.

Regards,
Muthu

Recommended reading 2024:

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

NEW: TikZ book now 40% off at Amazon.com for a short time.

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

placing two figures in a page!!

Post by gmedina »

Hi,

you could use the subfig package or the subcaption package (in the latter case, make sure that your system uses a recent version of the caption package).
1,1,2,3,5,8,13,21,34,55,89,144,233,...
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

placing two figures in a page!!

Post by localghost »

dmuthu_cse wrote:[...] Since Latex, is build up with rules, it is not allowing me to place two figures in a single page. [...]
Certainly it is allowed to place two (or more) figures on one page.

Code: Select all

\documentclass[11pt,a4paper,english]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{blindtext}

\begin{document}
  \blinddocument

  \begin{figure}[!p]
    \centering
    \rule{0.75\linewidth}{0.5\linewidth}
    \caption{Dummy figure}\label{fig:dummy-1}
  \end{figure}

  \begin{figure}[!p]
    \centering
    \rule{0.75\linewidth}{0.5\linewidth}
    \caption{Dummy figure}\label{fig:dummy-1}
  \end{figure}

  \blinddocument
\end{document}

Best regards
Thorsten
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

placing two figures in a page!!

Post by gmedina »

In my previous response I was considering the problem of two subfigures; if the figures are independent, then localghost has shown how to proceed; and here's another option:

Code: Select all

\documentclass{book}
\usepackage{caption}
\usepackage{lipsum}

\begin{document}

\lipsum[1-2]
\begin{figure}[!ht]
  \begin{minipage}{.9\linewidth}
    \centering
    \rule{7cm}{.4\textheight}
    \caption{figure one}
    \label{fig:fig1}
  \end{minipage}\\
  \begin{minipage}{.9\linewidth}
    \centering
    \rule{7cm}{.4\textheight}
    \captionof{figure}{figure two}
    \label{fig:fig2}
  \end{minipage}
\end{figure}
\lipsum[1-6]

\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
dmuthu_cse
Posts: 97
Joined: Fri Sep 04, 2009 4:56 pm

Re: placing two figures in a page!!

Post by dmuthu_cse »

Hello friends,

Thank you for the reply...

It is working fine...

With regards,
Muthu
Post Reply