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.
\documentclass[12pt,notitlepage]{article}<br />
\usepackage{st<strong>and</strong>alone}%<br />
\usepackage{listings}<br />
\usepackage{import}<br />
\usepackage{lipsum}<br />
\usepackage{graphicx}<br />
\usepackage{hyperref}<br />
\makeatletter<br />
\providecomm<strong>and</strong>{\currentimportpath}{\import@path}<br />
\makeatother<br />
\begin{document}<br />
\title{This is <strong>my</strong> document home/main.tex title}<br />
\author{me}<br />
\maketitle<br />
\tableofcontents<br />
\section{this is first section in main.tex}<br />
once upon a time, <strong>and</strong> now include the other document<br />
\subimport*{folderA/}{a}<br />
\end{document}<br />
Setup a.tex as follows. This is important: remember to add \st<strong>and</strong>alonetrue after \usepackage{st<strong>and</strong>alone}<br />
in each child package. We need this to be able to compile each child package on its own <strong>and</strong> get a table of<br />
contents <strong>and</strong> title. We will us an \ifst<strong>and</strong>alone logic in each child to check if we are building it st<strong>and</strong>alone or<br />
not. When the main is build, this flag will automatically be false, hence we will not get table of content shown<br />
in each child. Little complicated, but just do it as shown:<br />
9