my Latex and Tex4ht cheat sheet
my Latex cheat sheet - 12000.org
my Latex cheat sheet - 12000.org
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
\setcounter{secnumdepth}{4}<br />
\usepackage{lipsum}<br />
\usepackage{titletoc}<br />
\begin{document}<br />
\title{<strong>my</strong> course A}<br />
\author{me}<br />
\date{\small\today}<br />
\maketitle<br />
\ifdefined\HCode<br />
\Configure{tableofcontents*}{chapter}<br />
\fi<br />
\tableofcontents<br />
\ifdefined\HCode<br />
\TocAt{chapter} %turn off TOC<br />
\fi<br />
%---------------------<br />
\chapter{chapter 1 <strong>my</strong> HWs}<br />
\begin{tabular}{|l|l|}<br />
\hline<br />
HW & grade \\\hline<br />
HW1 \ref{sec:HW1} & 100\% \\\hline<br />
HW2 \ref{sec:HW2} & 100\% \\\hline<br />
\end{tabular}<br />
\ifdefined\HCode<br />
\TocAt{section,subsection} %turn on TOC<br />
\fi<br />
\section{HW 1}<br />
\ifdefined\HCode<br />
\else<br />
{ %turn on local TOC<br />
\startcontents[section]<br />
\printcontents[section]{}{1}{\setcounter{tocdepth}{1}}<br />
}<br />
\fi<br />
\label{sec:HW1}<br />
\subsection{problem 1}<br />
\lipsum[10]<br />
\subsection{problem 2}<br />
\lipsum[10]<br />
\subsection{problem 3}<br />
\lipsum[10]<br />
\section{HW 2}<br />
\label{sec:HW2}<br />
\subsection{problem 1}<br />
\lipsum[10]<br />
\subsection{problem 2}<br />
\lipsum[10]<br />
54