Latex

Define a variable

Needed when we have to use a similar variable for many places, for instance the same size for figures in one table. Not sure if the use of \def is the best approach, but in the following example it is a very easy way.


% define the common widthsize (ws)

\def \ws {0.4\linewidth}


\begin{figure}[h!]

\begin{center}

\begin{tabular}{cc}

iter. 8 & iter. 15

\\

\includegraphics[width=\ws]{optres_iternet8}

&

\includegraphics[width=\ws]{optres_iternet15}

\\

\includegraphics[width=\ws]{optres_iterpara8}

&

\includegraphics[width=\ws]{optres_iterpara15}

\\

iter. 27 & iter. 44

\\

\includegraphics[width=\ws]{optres_iternet27}

&

\includegraphics[width=\ws]{optres_iternet44}

\\

\includegraphics[width=\ws]{optres_iterpara27}

&

\includegraphics[width=\ws]{optres_iterpara44}

\\

iter. 143 (final) &

\multirow{2}{*}{%

\includegraphics[width=0.56\linewidth,trim=10 0 0 0]

{optres_history}}

\\

\includegraphics[width=\ws]{optres_iternet143}

&

\\

\includegraphics[width=\ws]{optres_iterpara143}

&

\end{tabular}

\caption{explanation}

\label{fig:iterations}

\end{center}

\end{figure}


Animation

To be updated




Using the picture environment in an effective way

To be updated






This page was updated on 12 Nov 2009