OK - I definitely have made progress since yesterday.
However, to expedite my getting this project done, I've taken 
to hacking the latexhtml file to get some fast and dirty
results (I'm converting a book, and people are banging on my
door wanting the companion CD ROM - which has this material - sent
off to press).   So instead of going with the elegance of coaxing
the title to show up where I want it, I'm using more "terrorist"
tactics in the Perl code.    My apologies to everyone who is
quaking at the thought of this ... :-)

        (So I solved question 4) by just inserting "bgcolor=FFFFFF"
into the appropriate line that prints "<BODY "... very inelegant.)

        5) I have two simple environments that look like this:

\begin{question}{A. Great Thinker}
        This is the text of my question.
\end{question}

\begin{answer}{Sir Windy Blowhard}
        This is the eloquent answer from a great expert for the edification
of the other great experts in the room.
\end{answer}

So really, all I want to do is make the names italic, and pump 
the text (which might have nasties in it like equations) through.
Thus for do_env_question (and do_env_answer need only call 
do_env_question of course) is it just the case that I yank
the name out with next_argument() as offered to the list 
yesterday, and then send the rest to translate_environments()
or does translate_environments() result in my getting back a
GIF image of the text (which is the current behavior now)?

        5 1/2) Now if I wanted to put all of the question/answer
stuff in their own node (they always appear in the same place
in the file and are always together, although sometimes there are
more than one answers or questions in a row if >1 people want to
address a question, or if a question had no response.
How do I  prompt l2h to begin a new file?


        6) We use the "references" environment instead of thebibliography,
although they're similar (there's a \reference instead of a
\bibitem).   So, seems to me I can cannibalize that
for my own devices.

        BUT (you knew this was coming), I would also like to trap 
everything after a \reference to perform some actions.  Specifically,
MOST of the journal references are of the format:

        Author, X.Q, Elk, A., \& Smith, Z. 1998, \blech, 45, 398

with \blech being a shorthand for some illustrious journal so that
everyone uses the same abbreviation.  BUT there's a group at Harvard
who has done the Herculean task of actually scanning several illustrious
journals, and it would be really neat to build a link to their service.
(At least for the references that I can easily parse.)  So, how do I trap
myself a copy of the \reference material (which also behaves like
the stuff that comes after an \item, ignoring the optional arguments
(which there won't be for \reference)???  


        At least my questions have become more interesting... :-)

Bob Donahue

Reply via email to