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.

This zip file contains the tree shown above with all the files needed to rebuild it.<br />

2.9.2 combining using automatic sectioning<br />

One problem with the above approach, is that we had to be explicit with add \section <strong>and</strong> \subsection in<br />

the correct order in different documents in different folders.<br />

It would be better if this can be automated. Using a method shown here http://tex.stackexchange.com/<br />

questions/9024/is-there-a-program-that-allows-to-move-sections-<strong>and</strong>-automatically-adjusts-the-le<br />

<strong>and</strong> I modified it slightly, here are the files needed. First assume we have a tree like this:<br />

home/main.tex<br />

home/A/a.tex<br />

home/A/B/b.tex<br />

<strong>and</strong> we want to build main.tex, which includes a.tex, <strong>and</strong> where a.tex also includes b.tex, <strong>and</strong> where we can<br />

build each document as st<strong>and</strong>alone. These are the 3 files<br />

main.tex<br />

14

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

Saved successfully!

Ooh no, something went wrong!