scripting LaTeX and hoisted sections
Raymond Brock
brock at pa.msu.edu
Wed May 21 06:26:03 PDT 2003
hi
I have followed a bit of the discussion about LaTeX scripts. I have an
applescript that does the dumbest possible thing: it just takes the
sections and turns them into the appropriate LaTeX headings, and also
exports the text. I modified something that was done a while ago by
someone else (who I wish I could remember the name of - somehow I lost
the text in the Description block) and am myself a real applescript
dummy.
What I do is run the applescript on an OO file and it converts the
entire thing, headings and notes, into a large latex content chunk on
the clipboard. I then paste it into my waiting LaTeX shell in TeXShop.
What I'm really seeing the need for is the ability to maintain a whole
book-worth of latex headings, text etc in OO, spitting out only what I
need to the TeX engine to accommodate updates, new ideas, changes in
organization ,etc.
More specifically: suppose I want to make a book. In a normal LaTeX
project, chapters would be separate files with a driver file that does
the \include{chapterwhatever_n.tex} for organizational purposes. So, in
that environment you work on separate chapters, in separate files. The
database-like aspects of OO greatly enhance this, it seems to me: it
would be very nice to have the OO file be the entire book and still be
able to export just pieces to the tex engine. See where I'm going with
this? Currently, when I run my little script on a selected or hoisted
section it does the entire OO file. Inside of that, however, might be
only one chapter out of many that I really want to work on and replace
in my latex file collection.
The question ==> There must be a way to cause the applescript to run
_only_ over a hoisted section in OO... Or, less slick, _only_ over a
selected section in OO?
thanks,
Ray Brock
---------------------------------------------------------------
Raymond Brock * Professor of Physics
Department of Physics and Astronomy
3210 BPS Building
Michigan State University * East Lansing, MI 48824
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 2098 bytes
Desc: not available
Url : /mailman/archive/omnioutliner-users/attachments/20030521/26be0a1c/attachment.bin
More information about the OmniOutliner-Users
mailing list