Showing posts with label graphicx. Show all posts
Showing posts with label graphicx. Show all posts

Wednesday, October 10, 2012

How to put two figures next to each other

Use the minipage command, and the epsfig package e.g.

\begin{figure}[h]
  \hfill
  \begin{minipage}[t]{.45\textwidth}
    \begin{center}  
      \epsfig{file=figure1.eps, scale=0.5}
      \caption{figure 1}
      \label{fig-tc}
    \end{center}
  \end{minipage}
  \hfill
  \begin{minipage}[t]{.45\textwidth}
    \begin{center}  
      \epsfig{file=figure2.eps, scale=0.5}
      \caption{figure 2}
      \label{fig-tc}
    \end{center}
  \end{minipage}
  \hfill
\end{figure}

This, and other possible ways to put figures next to each other can be found here:
http://www.cse.iitd.ernet.in/~bagchi/latex-tips.html

Tuesday, July 3, 2012

Include figures from a separate directory

It is often a good idea to have the figures separated into a folder. This can be done using the \graphicspath command as


\graphicspath{{./mypics/}}
after the includes.
This will tell the compiler to look up the figures from the mypics directory in the document root. Don't forget to include the graphicx (or similar) package.

Thursday, April 12, 2012

How to place figures / images inside a table

Figures and images can be placed within tables, but even into other environments, or without environment. A good description is available here:

http://texblog.org/2008/02/04/placing-graphicsimages-inside-a-table/

Thank you J. !