I've been using vim to write articles and recently started using it for
a book as well.
I prefer to write everything as a text file w. textwidth=80 and have
written this very simple script which uses the "txt2html" tool to
generate an HTML file which can later be used to paste the formatted
article into, eg., OpenOffice:
------------ BEGIN ------------
#!/bin/bash
#view text document in HTML page
BASEDIR=~/Work
FN=${USER}_$1
txt2html --xhtml --append_head $BASEDIR/html/txthead.html
--escape_HTML_chars --titlefirst --eight_bit_clean $1.txt
> /tmp/$FN.html
firefox /tmp/$FN.html &
------------ END ------------
This script allows simple formatting like *italics* and _underline_, but
I'd like something a but more "shiny", which would e.g. also recognize
chapter and section headings and maybe even generate a TOC.
Does anybody have any recommendations? There's txt2tags, which I just
found (http://txt2tags.sourceforge.net/writing-book.html), and I suppose
one could write something similar to easily convert a text file to a
LaTex file, but as I said - do anyone have any experience using such
tools?
Till now, I've been happy with my small "view as HTML" script, but with
the more elaborate structure needed in a book I'm beginning to feel its
limitations.
Thanks in advance for any response,
Carsten
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---