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.

2.15 What levels are there? TOC configuration<br />

from http://www.emerson.emory.edu/services/latex/latex_132.html<br />

Sectioning comm<strong>and</strong>s provide the means to structure your text into units.<br />

\part<br />

\chapter (report style only)<br />

\section<br />

\subsection<br />

\subsubsection<br />

\paragraph<br />

\subparagraph<br />

\subsubparagraph (milstd <strong>and</strong> book-form styles only)<br />

\subsubsubparagraph (milstd <strong>and</strong> book-form styles only)<br />

\part -1 -----> school<br />

\chapter 0 ------> semester<br />

\section 1 ------> course<br />

\subsection 2 -------> HWs<br />

\subsubsection 3 ----> HW1,2,3....<br />

\paragraph 4 --------> part(a),(b),.....<br />

\subparagraph 5<br />

2.16 TOC related<br />

\setcounter{tocdepth}{n} where n is an integer, tells latex how deep to make TOC. n depends on the class<br />

type, see above.<br />

\setcounter{secnumdepth}{m} tells latex which entries in the TOC (which depends on the first comm<strong>and</strong><br />

above) to give it a number to the left side. default is 3 I think. But better to have numbers for all sections <strong>and</strong><br />

subsection in TOC.<br />

Do the above in preamble of document.<br />

some links on TOC in latex<br />

1. http://www.<strong>and</strong>y-roberts.net/writing/latex/contents<br />

2. http://help-csli.stanford.edu/tex/latex-sections.shtml<br />

3. http://facweb.knowlton.ohio-state.edu/pviton/support/swphtpa4.html<br />

4. To make paragraph make new entry in TOC below subsubsection, see this<br />

3.<br />

can change depth of toc using<br />

\setcounter{tocdepth}{depth} in preamble. it looks like default depth is<br />

2.17 on fonts<br />

using Fourier fonts<br />

\usepackage{fourier}<br />

\usepackage[T1]{fontenc}<br />

may be need to install. I got error<br />

20

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

Saved successfully!

Ooh no, something went wrong!