On Apr 25, 12:13am, Jameson Burt wrote:
> Subject: latex2html: link text without forming sections?
> I want to link some text in a latex document.
> Seeking simplicity, I want to have but one *.tex file,
> and I want to use no \section.
> In other words, I want the primary html document generated by latex2html to
> have most of the text. But within that document, I want a few paragraphs to
> reside at a link.
By `reside at a link', do you mean that those extra paragraphs would be on a
separate page pointed to by some sort of anchor in the main page(s) where the
paragraphs had appeared? The analogy comes to my mind of a `sidebar'
(particularly, because I want to achieve the same sort of effect! --- although
I'm not sure how best to get that effect in LaTeX)
This can be done with a separate file and using some of the html.sty linking
macros (eg \htmladdnormallink). But other reasons for wanting to include it
in the main file are wanting it processed in one run, in a consistent style and
including an `up' link back to the main document.
> Why not use \section?
> Section produces an inflexible document.
> After the first \section, the rest of the *.tex document gets put in links.
> I want a couple paragraphs between my links.
By calling it a (kind of) section you get all the implications of that --- the
effect on later parts of the document, the fact that it will appear in a TOC,
it may even be numbered, etc -- These effects may be incorrect if the text
isn't semantically a `section'.
What would be nice would be a new environment, say, sidebar (following up on
Ross's comments :>), defined in html.sty & supported by l2h.
What's difficult is to see how l2h would support it cleanly; a lot of the
machinery that processes pages (putting headers & footers and patching up
labels and such) seems to be closely tied to the hierarchy defined by
sectioning, (internal) section numbers and so on.
OTOH, getting away from that rigid arrangement will be necessary in a move
towards XML, since a DTD will define what environments can be contained in
which, which `start tags' automatically imply an end to previous ones, and so
forth.
OTO-OH (on the other other hand), I'm less clear how a main document (in an XML
context) gets divided up into `pages' anyway....
--
--
[EMAIL PROTECTED]
http://math.nist.gov/~BMiller/