help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pdf page layout


From: pathematica
Subject: Re: pdf page layout
Date: Sat, 2 Mar 2013 10:40:27 -0800 (PST)

Hello there.

I know this is slightly off-topic (from Octave) but, as an alternative
strategy, you might consider using the "trim" command when embedding pdf
images in LaTeX. I used the following: 

\begin{figure}[h]
\begin{center}
\includegraphics[trim = 75mm 108mm 77mm 130mm, clip, scale=0.88]{Fig.pdf} 
\end{center}
\end{figure}

For convenience, I have called the figure Fig.pdf, and I had placed the
following command in the preamble:
\graphicspath{{./figures/}}

The values passed to trim refer, in order, to: left; bottom; right; top. Do
not forget to include the "clip" command otherwise the trim will not happen.
Also note that I have used a scale parameter, which was appropriate for my
particular needs. 

To defend posting LaTeX code here, I found this a very useful way to include
graphics generated by Octave in LaTeX documents. 

You will need to experiment to see what works for you but, if you produce
standard pictures, for which the same parameters will be appropriate in each
case, then you could define new commands in your LaTeX preamble eg (note
different values for parameters than above, which was for a special case for
the frontispieces)

\newcommand{\FigScale}{0.55}
\newcommand{\Lcol}{35}
\newcommand{\Rcol}{35}
\newcommand{\Tcol}{93}
\newcommand{\Bcol}{65}

Then a figure might be embedded with eg

\begin{figure}
\begin{center}
\includegraphics[trim = \Lcol mm \Bcol mm \Rcol mm \Tcol mm, clip,
scale=\ColScale]{AnotherFig.pdf} 
\end{center}
\caption{\textit{My legend for this
figure}}\label{fig:MyLabelForThisFigureSoICanReferToItInTheText}
\end{figure}

I have included a caption and a label to this one, in case it migth be
helpful. I would then refer to the figure in the text as, for example, see
figure \ref{fig:MyLabelForThisFigureSoICanReferToItInTheText}. 

Best wishes

David




-----
However good you think Octave is, it's much, much better.
--
View this message in context: 
http://octave.1599824.n4.nabble.com/pdf-page-layout-tp4650462p4650470.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]