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.

[Fri Jun 21 01:03:25 2013] update: dvipdfmx.i386-linux (30205 -> 30845)<br />

[Fri Jun 21 01:03:28 2013] update: dvipng.i386-linux (30088 -> 30845)<br />

[Fri Jun 21 01:03:50 2013] update: luatex.i386-linux (30739 -> 30845)<br />

.....<br />

[Tue Jan 7 17:39:02 2014] update: collection-latexextra (31599 -> 32457)<br />

[Tue Jan 7 17:39:03 2014] update: collection-metapost (30387 -> 32455)<br />

[Tue Jan 7 17:39:04 2014] update: collection-music (31524 -> 32405)<br />

[Tue Jan 7 17:39:04 2014] update: collection-pictures (31517 -> 32320)<br />

[Tue Jan 7 17:39:05 2014] update: collection-plainextra (30395 -> 31683)<br />

[Tue Jan 7 17:39:06 2014] update: collection-pstricks (31016 -> 32514)<br />

[Tue Jan 7 17:39:06 2014] update: collection-publishers (31532 -> 32440)<br />

[Tue Jan 7 17:39:07 2014] update: collection-science (30307 -> 32182)<br />

[Tue Jan 7 17:39:08 2014] update: scheme-context (29997 -> 32062)<br />

To start the tlmgr GUI, must be root, <strong>and</strong> the comm<strong>and</strong> is<br />

sudo `which tlmgr` gui<br />

got TEX Live DVD today. Here is the front <strong>and</strong> the back<br />

2.24 on using multicols<br />

1. to force a figure in a column, let includegraphics resize it using \includegraphics[width=\columnwidth]{image}<br />

2.25 How to place figures<br />

Using \begin{figure} makes images float <strong>and</strong> so hard to control the location. Instead, can use just \includegraphics{nam<br />

but to get use caption, use this method by Gonzalo Medina<br />

When this viewed in HTML, tex4ht puts one image below the other. It seems tex4ht does not support<br />

minipages.<br />

To do the same for tex4ht try the following, using multicols new support added to tex4ht<br />

\documentclass{article}<br />

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

\usepackage{capt-of}<br />

\usepackage{lipsum}%<br />

\begin{document}<br />

\lipsum[1]<br />

\begin{center}<br />

\includegraphics{foo}<br />

\captionof{figure}{A non floating figure}<br />

\label{fig:test}<br />

\end{center}<br />

\lipsum[2]<br />

\end{document}<br />

Figure 2.1: result of the above<br />

These are different examples of placing figures<br />

30

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

Saved successfully!

Ooh no, something went wrong!