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[12pt,notitlepage]{book}<br />

\usepackage{st<strong>and</strong>alone}%<br />

\input{commonlatex}<br />

\begin{document}<br />

\title{This is <strong>my</strong> document home/main.tex title}<br />

\author{me}<br />

\maketitle<br />

\tableofcontents<br />

\begin{deeplevel}{this is first section in main.tex}<br />

once upone a time, <strong>and</strong> now include the other document<br />

\subimport*{folderA/}{a}<br />

\end{deeplevel}<br />

\end{document}<br />

the file a.tex is<br />

\documentclass[12pt,notitlepage]{article}<br />

\usepackage{st<strong>and</strong>alone}<br />

\st<strong>and</strong>alonetrue<br />

\input{commonlatex}<br />

\begin{document}<br />

\ifst<strong>and</strong>alone<br />

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

\title{This is <strong>my</strong> document home/folderA/a.tex title}<br />

\author{me}<br />

\maketitle<br />

\tableofcontents<br />

\fi<br />

\begin{deeplevel}{first section in file a.tex}<br />

\includegraphics{a.png}<br />

\subimport*{folderAB/}{b}<br />

\begin{deeplevel}{this should show up below the above}<br />

\lipsum[75]<br />

\end{deeplevel}<br />

\end{deeplevel}<br />

\begin{deeplevel}{second section in file a.tex}<br />

\lstinputlisting{a.txt}<br />

\end{deeplevel}<br />

\begin{deeplevel}{third section in file a.tex}<br />

you can find <strong>my</strong> report \href{\currentimportpath a.txt}{here}<br />

\end{deeplevel}<br />

\lipsum[1]<br />

\end{document}<br />

<strong>and</strong> the file b.tex is<br />

15

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

Saved successfully!

Ooh no, something went wrong!