Extend a figure 100% horizontally with a fixed height in LaTeX?
Asked Answered
K

2

7

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

Kentigerma answered 28/9, 2009 at 19:19 Comment(1)
i would suggest that this is a question for tex.stackexchange.comHezekiah
T
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}

Trilateration answered 28/9, 2009 at 19:22 Comment(0)
H
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.

Histiocyte answered 29/9, 2009 at 17:56 Comment(0)
T
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}

Trilateration answered 28/9, 2009 at 19:22 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.