Re: Gestione margini, immagine grande

#79332
Up
0
Down
::


Ciao Fran!

Ho provato a mettere questo codice nel preambolo:
`\usepackage[demo]{graphicx}
\usepackage{ifthen}
\makeatletter
\newcounter{largefigure}
\newenvironment{largefigure}[1][htp]
{\begin{figure}[#1]
\refstepcounter{largefigure}\label{lf@\thelargefigure}
\ifthenelse{\isodd{\pageref{lf@\thelargefigure}}}
{\def\largefigureside{l}}{\def\largefigureside{r}}}
{\end{figure}}
\newcommand{\largeincludegraphics}[2][]{%
\makebox[\columnwidth][\largefigureside]{\includegraphics[#1]{#2}}}
\makeatother`

E poi questo nel documento capitolo:
`\begin{largefigure}[t]
\largeincludegraphics[width=1.5\textwidth]{map_identification}
\caption{La mia didascalia}\label{fig:map_identification}
\end{largefigure}`

Ma il risultato è questo (dopo aver compilato due vote):

[attachment=474]Capturedecran2012-09-29a13.49.41.jpg[/attachment]

Ho poi provato con un codice che mi è stato suggerito da Claudio, questo:

`\begin{figure}[p]\centering
\makebox[0pt}{\includegraphics[width=170mm]{mappa}}\hspace*{\dimexpr(\paperwidth-\textwidth)/2}
\caption{map_identification}
\label{map_identification}
\end{figure}`

Ma anche con questo codice l’immagine non è centrata nella pagina.

L’altezza però è buona.

Idee?

Cristina

Attachments:
You must be logged in to view attached files.

Go to top