Newbie Questions: reST vs LaTeX
Scott Meyers <smeyers <at> aristeia.com>
2008-12-02 17:49:48 GMT
[Apologies if this appears twice. I tried posting via gmane nearly 12 hours ago, but nothing has appeared,
so I'm trying email this time.]
I'm getting ready to write a new book, and just when I thought my likely choice of LaTeX over DocBook had
settled the matter of what to use, I was pointed to reST, which, not being a Python programmer, I'd not heard
of. I've now looked at some examples and played around with DocUtils a bit, and while some things look
easier in reST than in LaTeX, I was unable to find out how to create tables with cell contents that are
centered horizontally and vertically. In fact, googling around for information on how to center text in
general yielded nothing, although I did see that there is a "center" alignment attribute that can be
applied to images and figures. (The word "center" does not appear on <http://docutils.sourceforge.net/docs/user/rst/quickref.html>http://docutils.sourceforge.net/docs/us
er/rst/quickref.html,
<http://docutils.sourceforge.net/docs/user/rst/cheatsheet.txt>http://docutils.sourceforge.net/docs/user/rst/cheatsheet.txt,
or <http://docutils.sourceforge.net/rst.html>http://docutils.sourceforge.net/rst.html.)
This leads to a specific question and a general question. The specific question is: how do I center the
contents of a table cell in reST? The general question is: where can I find a summary of how reST and LaTeX
compare to one another in terms of expressive power? I've used LaTeX before, and I'm pretty sure you can do
anything you want with it, although possibly with considerable pain. Documents like
<http://docs.python.org/library/multiprocessing.html>http://docs.python.org/library/multiprocessing.html
demonstrate that reST can also do a lot, but my inability to quickly find a way to center text in a table cell
makes me a little nervous, and reST vs. LaTeX comparisons aren't easy to come by.
It's perhaps worth noting that I plan to write the book with both paper and electronic publication in mind,
and in the realm of electronic publication, I want to be able to support output devices with different
sizes, aspect ratios, and capabilities, e.g., possibly without color capability (e.g., Kindle),
possibly quite small (e.g., iPhone), possibly a large computer monitor with extensive color
facilities). I should also mention that the book is likely to include very few code samples, so the ability
to format code is not a particularly big concern for me.
Thanks for any help and insights you can offer.
(Continue reading)