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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

There are also things known as comm<strong>and</strong> lengths, which are not<br />

fixed values as they depend on the configuration of the current<br />

document class <strong>and</strong>/or preamble. Useful ones include:<br />

* \parindent - the size of the paragraph indent<br />

* \baselineskip - vertical distance between lines.<br />

* \parskip - the extra space between paragraphs.<br />

* \textwidth - the width of a line of text in the local<br />

environment (e.g., the<br />

lines are commonly narrower in the abstract<br />

than in the normal text).<br />

* \textheight - the height of the text on the page.<br />

try this sometime<br />

%<br />

% this makes list spacing much better.<br />

%<br />

\newenvironment{<strong>my</strong>_enumerate}{<br />

\begin{enumerate}<br />

\setlength{\itemsep}{1pt}<br />

\setlength{\parskip}{0pt}<br />

\setlength{\parsep}{0pt}}{\end{enumerate}<br />

}<br />

What I do is insert this code somewhere at the top of <strong>my</strong> LaTeX document, before I need to create any<br />

enumerations. Then, later in the document, when I do want to create an enumeration, instead of using the<br />

enumerate tag, I use the <strong>my</strong>_enumerate<br />

2.31 How to reduce size of math in one place only?<br />

\text{\scriptsize $\sin(x)$}<br />

Use different size as needed, footnotesize or tiny <strong>and</strong> others.<br />

2.32 How to h<strong>and</strong> written fonts <strong>and</strong> other fonts using xelatex?<br />

This file can only be compiled by xelatex of lualatex<br />

34

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

Saved successfully!

Ooh no, something went wrong!