If you are doing a lot of publishing of math documents you might try the GNU TeXmacs editor. It exports to LaTeX, PDF, HTML and others. The learning curve is a little steep, but with some diligence you can find this program produces publication quality documents.
David Miller On May 30, 3:53 pm, Bruce Jackson <[email protected]> wrote: > Hi, group, > > I've become a big fan of asciidoc and use it whenever I can. > > I've spent some time looking through the FAQs, poking through the full > User's Guide, PowerMan's excellent cheat sheet, and various other > explanatory pages on the AsciiDoc project website. Possibly due to my > unfamiliarity with the terms "backends", "filters", "macros" and "pass- > thru blocks" I have been unable to come up with an easy way to have > one equation markup generate properly in both HTML and PDF output > formats. > > I use a Makefile to generate chunked HTML and PDF; it contains two > invocations of a2x with custom attributes "formatpdf" or "formathtml" > which I use inside the source file. (I do this instead of checking the > "backend" version since a2x doesn't seem to define a "backend"?) > > make: Orbit.pdf Orbit.html > > Orbit.pdf: Orbit.txt ${IMAGES} > a2x -vf pdf -d article -a formatpdf Orbit.txt > > Orbit.html: Orbit.txt ${IMAGES} > a2x -vf xhtml -a latex -a formathtml Orbit.txt > > and the source document Orbit.txt contains, for example, > > To split the acceleration into two dimensions (X and Y) we can use the > fact that the portion of force in either dimension is proportional to > the ratio of distance in that dimension to total distance: > > // PDF version > ifdef::formatpdf[] > [latexmath] > ++++++ > \[\frac{F_x}{F} = \frac{R_x}{R}\] > \[F_x = \frac{R_x F}{R}\] > ++++++ > endif::formatpdf[] > > // HTML version > ifndef::formatpdf[] > ["latex","ex3_2a.png",{eqndpi}] > $\frac{F_x}{F} = \frac{R_x}{R}$ > > ["latex","ex3_2b.png",{eqndpi}] > $F_x = \frac{R_x F}{R}$ > endif::formatpdf[] > > Surely there is a simpler way that lets me use one latex markup style > but supports both soft and hardcopy output formats. Also, is there > some way the source document can know at processing time which output > it is intended for, if a2x is used instead of asciidoc? (I don't > really understand why there exist both asciidoc and a2x; they seem to > do the same thing but have different command syntaxes). > > Thanks from a n00b. > > -- Bruce Jackson -- You received this message because you are subscribed to the Google Groups "asciidoc" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/asciidoc?hl=en.
