diff options
author | mstsirkin <mstsirkin@0c8fb4dd-22a2-4bb5-bc14-6c75a5f43652> | 2013-11-25 12:23:51 +0000 |
---|---|---|
committer | mstsirkin <mstsirkin@0c8fb4dd-22a2-4bb5-bc14-6c75a5f43652> | 2013-11-25 12:23:51 +0000 |
commit | 40af2b9446cbc68e7c6f44fe26c3bb23e65b05aa (patch) | |
tree | 2cd98e0cf999e50b46311ff1050e4dbcae28f9f6 /makehtml.sh | |
parent | 8b579fdca9d3176b48efc80bce585d3e279b220a (diff) |
virtio: add latex templates from CMIS
I imported latex templates from the CMIS specifications
and changed s/CMIS/VIRTIO/ everywhere.
The result is very close to one produced by exporting from the
ODF we were supplied, with the exception of the TOC formatting,
where section numbers are in blue instead of black, and major
sections don't have dots leading to page numbers.
I'm guessing this isn't very important, someone with more latex
knowledge can try to figure this out.
Generating html doesn't actually work for me.
It doesn't work for me for CMIS either, so
it's probably just an issue with my local latex setup.
I'm not sure we need html output at all.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
git-svn-id: https://tools.oasis-open.org/version-control/svn/virtio@103 0c8fb4dd-22a2-4bb5-bc14-6c75a5f43652
Diffstat (limited to 'makehtml.sh')
-rwxr-xr-x | makehtml.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/makehtml.sh b/makehtml.sh new file mode 100755 index 0000000..000a5bc --- /dev/null +++ b/makehtml.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +SPECDOC=virtio-v1.0-csd01-html + +htlatex $SPECDOC.tex "virtiohtml,info,charset=utf-8" " -cunihtf -utf8" + +mv $SPECDOC.html $SPECDOC.tmp1 + +sed 's/~~/"/g' $SPECDOC.tmp1 >$SPECDOC.tmp2 +sed 's/>~/>"/g' $SPECDOC.tmp2 >$SPECDOC.tmp3 +sed 's/>=~/>="/g' $SPECDOC.tmp3 >$SPECDOC.tmp4 +sed 's/~</"</g' $SPECDOC.tmp4 >$SPECDOC.tmp5 + +mv $SPECDOC.tmp5 $SPECDOC.html +rm $SPECDOC.tmp* |