7

How can I insert a figure (i.e. graphic) that extends 100% of the viewport but with a given height?

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
gletscher
  • 1,132
  • 2
  • 11
  • 18

2 Answers2

11

You can use:

\includegraphics[width=\textwidth,height=5in]{imagefile}

but construction

\begin{minipage}{8cm} \includegraphics[width=\textwidth]{imagefile} \end{minipage}

will produce image with width of 8cm.

Crowley
  • 2,279
  • 6
  • 22
  • 36
10

You can use the usual [width=X,height=Y] parameters, but instead of giving a literal X use \columnwidth...

If you want the figure to span multiple columns, use \begin{figure*} instead of \begin{Figure}

Uri
  • 88,451
  • 51
  • 221
  • 321