[OS X TeX] Outlining ersatz

Alain Schremmer Schremmer.Alain at verizon.net
Wed Dec 29 05:05:31 CET 2004


Well, thanks again. "But":

As it turned out, I couldn't resist going at it right away. And then, 
for some reason that I have now forgotten, I had to look up Companion 
2ed which, on page 19, suggests using the package askinclude. So, I tried.

Here is what it does.

I cut each chapter, replaced it in the man file by \include n, n = 01, 
02, etc and pasted it in a new file that I saved as n.tex

Then, when I typeset, the console asks me to give it a list of chapters, 
say 01, 03, and then, upon return, typesets all that I left in the main 
file plus 01 and 02. If I respond with *, everything is included while 
with - it includes nothing. Later, "[i]f the user presses return, the 
files from the previous run are included automatically (except on the 
first run, in which case all files are
included)" The only trouble, infinitesimal, is that the console remains 
behind the pdf.

To change the order of two chapters, I just "just re-order things in the 
main file", say

    \include{02}
    \include{01}

instead of

    \include{01}
    \include{02}

That's it!

Plus, when I control click somewhere on the pdf of, say, 02, then 
TeXshop opens the file 02.tex and finds the source. Incredible.

So, thank you because if it hadn't been for you I would have spent 
another six months renumbering my comments.

Plus thank you for explaining the difference berween \include and 
\input. Right now, though, contrary to what I said, I will not move 
sections. But, next week perhaps, I will find out if askinclude will do it.

Regards
--schremmer



William F. Adams wrote:

> On Dec 28, 2004, at 5:26 PM, Alain Schremmer wrote:
>
>> 4. Just to make sure, I understand from what you said that 
>> "automating" my current way of "outlining" is hopeless but that, 
>> should I split the book, it would be feasible. However, if I can 
>> readily see that working on a particular chapter is easy,
>
>
> It's not hopeless. You just need to find a Mac OS X editor which groks 
> TeX and makes use of that for code folding --- does VIM do this?
>
> Failing that, doesn't OmniGraffle have a LaTeX export option?
>
> Worst case: Write the text in OmniGraffle, use one of the equation 
> services to typeset small portions to see the equations &c. and then 
> dump to text and massage for final formatting in TeXshop.
>
>> I do not see how to change the order of the chapters—which is what my 
>> "ersatz outliner" and my query were about—unless it means that I 
>> would just have to rename the files?
>
>
> No, just re-order things in the main file (and in the folder of 
> aliases if you're bothering with that). TeX the compleat text three 
> times after doing so to re-build all of the references.
>
>> Also, I will indeed need to be able to move sections around and I 
>> notice that you are using
>> \input{sectionfoo}
>> as opposed to
>> \include{chapterfoo}
>
>
> \include always makes a new page --- I believe it should also only be 
> used at the top level to make LaTeX's management of the references 
> feasible. \input is a TeX primitive and should probably only be used 
> within a chapter file if using \include.
>
> William
>
--------------------- Info ---------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
           & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>





More information about the macostex-archives mailing list