13.11.2015 Views

my Latex and Tex4ht cheat sheet

my Latex cheat sheet - 12000.org

my Latex cheat sheet - 12000.org

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

\documentclass{article}<br />

\usepackage{subfigure}<br />

\usepackage{lipsum}<br />

\usepackage[demo]{graphicx}<br />

\usepackage[utf8]{inputenc}<br />

\begin{document}<br />

\lipsum[1]<br />

\begin{figure}[ht!]<br />

\begin{center}<br />

%<br />

\subfigure[Caption of First Figure]{%<br />

\label{fig:first}<br />

\includegraphics[width=0.4\textwidth]{FirstFigure}<br />

}%<br />

\subfigure[Caption of Second Figure]{%<br />

\label{fig:second}<br />

\includegraphics[width=0.4\textwidth]{SecondFigure}<br />

}\\ % ------- End of the first row ----------------------%<br />

\subfigure[Caption of Third Figure]{%<br />

\label{fig:third}<br />

\includegraphics[width=0.4\textwidth]{ThirdFigure}<br />

}%<br />

\subfigure[Caption of Fourth Figure]{%<br />

\label{fig:fourth}<br />

\includegraphics[width=0.4\textwidth]{FourthFigure}<br />

}%<br />

%<br />

\end{center}<br />

\caption{%<br />

The l-o-n-g caption for all the subfigures<br />

(FirstFigure through FourthFigure) goes here.<br />

}%<br />

\label{fig:subfigures}<br />

\end{figure}<br />

\lipsum[2-5]<br />

\end{document}<br />

references:<br />

1. http://tex.stackexchange.com/questions/107363/putting-multiple-images-in-a-page<br />

2.26 Finding definitions of LaTEX control sequences?<br />

use texdef -t latex <br />

For example<br />

31

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!