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.

%======================================<br />

\makeatletter<br />

\newcounter{level@depth}<br />

\setcounter{level@depth}{-1}<br />

\newenvironment{deeplevel} %<br />

{ %<br />

\addtocounter{level@depth}{1}%<br />

\ifcase\c@level@depth<br />

\exp<strong>and</strong>after \part<br />

\or \exp<strong>and</strong>after \chapter<br />

\or \exp<strong>and</strong>after \section<br />

\or \exp<strong>and</strong>after \subsection<br />

\or \exp<strong>and</strong>after \subsubsection<br />

\or \exp<strong>and</strong>after \paragraph<br />

\or \exp<strong>and</strong>after \subparagraph<br />

\or \exp<strong>and</strong>after \subsubparagraph<br />

\else<br />

\PackageError{deeplevel}<br />

{ %<br />

Sections are too deeply nested.%<br />

} %<br />

{ %<br />

Trying to recover with \string\subsubparagraph%<br />

} %<br />

\exp<strong>and</strong>after \subsubparagraph<br />

\fi<br />

} %<br />

{%<br />

\addtocounter{level@depth}{-1}%<br />

}<br />

\makeatother<br />

Now one is able to build main.tex or a.tex or b.tex each on its own, <strong>and</strong> still get a complete document for<br />

each.<br />

2.10 how to install lyx on Linux<br />

see http://wiki.lyx.org/LyX/LyXOnUbuntu<br />

if not in the package manager PPA, then do<br />

sudo add-apt-repository ppa:lyx-devel/daily (add the PPA)<br />

sudo apt-get update (update so that apt is aware of the new PPA)<br />

sudo apt-get install lyx2.0 (install from the PPA)<br />

lyx2.0 &<br />

2.11 using hyperlinks<br />

http://biosun1.harvard.edu/~paciorek<br />

More info on pdf hyper-references is at http://www.tug.org/applications/hyperref/manual.html.<br />

17

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

Saved successfully!

Ooh no, something went wrong!