You can also consider Markdown or any other "lightweight" markup supported by pandoc if you can afford a Haskell binary as a dependency. | [reply] |
It depends on your notion of "fancy" and your tolerance of dependencies.
Modern CSS can do all of this, but you'll need a browser like app to produce PDF.
Since HTML is NOT supposed to be a print format you'll end up with the same entropy like LaTeX.
I'm using Emacs org-mode to have nice markup translated to LaTeX/PDF, also for beamer presentations.
This hides the boilerplate for me, but LaTeX is not particularly fast.
But without more clarification about your requirements it's a rather fuzzy question.
Edit
And of course it has been discussed before for many times. Just search the archives.
| [reply] |
I looked through the archives -- looks like I couldn't guess the right search terms { sigh, story of my life }.
It sounds like LaTex might be the "easiest" option. If you're not doing anything too crazy LaTex isn't *too* bad. And if I pound on it hard enough I can get Perl-constructs that really do hide the strangeness.
NB: I did this kind of thing for HTML years and years ago {this long before the advent of AJAX and all the super-fancy cgi packages}. Part of my job was writing CGI programs and I put together a little meta-package to make things easier {and the HTML less broken} I don't remember quite what I had done back-then any more, but it was handy things like italic(text) button(label, what to do), etc.
I was mostly asking in general - e.g., I have a .txt file that is, basically, a long table. I was thinking it'd be nice if I could have it be nicer to read/use version but still have a simple/flat txt file that I can easily edit. I wondered if there was some XML stuff that might do that. As I said, I think that LaTex is probably the easiest path -- it is even worse than Word in terms of idiosyncrasies, but can easily figure it out and then I can have a simple source file and let Perl just handle making it LaTeX friendly.
| [reply] |
Maybe take a look at asciidoc, I found it useful some years ago.
poj
| [reply] |
I looked into the archives for pdf creation and stopped searching in January this year:
Perl to generate PDF
From a certain BernieC
| [reply] |
In additional to the suggestion of asciidoc below, there's also docbook (SGML based) - a good starting point may be Pod::DocBook. A MetaCPAN search for SGML is also a good starting point. Here is a pretty comprehensive list of mark up languages. SGML is the basis for some of them (e.g., docbook, linuxdoc), but certainly not all. I'd be remiss to not mention that quite a few things have been published using the old unix *roff family of text formatters. | [reply] |
LaTeX. See also
«The Crux of the Biscuit is the Apostrophe»
perl -MCrypt::CBC -E 'say Crypt::CBC->new(-key=>'kgb',-cipher=>"Blowfish")->decrypt_hex($ENV{KARL});'Help
| [reply] [d/l] |