summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Leverton <levertond@googlemail.com>2009-04-16 20:37:27 +0100
committerCiaran McCreesh <ciaran.mccreesh@googlemail.com>2009-04-23 23:57:16 +0100
commite5cadcc5d9d08fec469ec4ecd112cc1c9c13ae04 (patch)
tree1af681ee902f6ef3d58effcfc9a56bfb70d6b932 /Makefile
parentWork around TeX4ht being weird (diff)
downloadpms-e5cadcc5d9d08fec469ec4ecd112cc1c9c13ae04.tar.gz
pms-e5cadcc5d9d08fec469ec4ecd112cc1c9c13ae04.tar.bz2
pms-e5cadcc5d9d08fec469ec4ecd112cc1c9c13ae04.zip
Update TeX4ht sed hacks
Account for slightly different whitespace in the output of newer versions, the possibility of tables in appendices, and the silly locale-dependent behaviour of sed.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 27d58c1..a9f1108 100644
--- a/Makefile
+++ b/Makefile
@@ -21,12 +21,12 @@ pms.html: $(SOURCEFILES) pms.bbl
xhlatex pms
@# work around irregularity in how links to longtables are
@# formatted in the List of Tables
- sed -i -e '/<span class="lotToc" >&#x00A0;/{N;N;s/\(&#x00A0;<a \nhref="[^"]\+">\)\([0-9.]\+\)\n/\2\1/}' pms.html
+ LC_ALL=C sed -i -e '/<span class="lotToc" >&#x00A0;/{N;N;s/\(&#x00A0;<a \nhref="[^"]\+">\)\([0-9A-Z.]\+\)[ \n]/\2\1/}' pms.html
@# indent algorithms properly, and avoid adding extra vertical
@# space in Konqueror
- sed -i -e 's/span style="width:/span style="display:-moz-inline-box;display:inline-block;height:1px;width:/' pms.html
+ LC_ALL=C sed -i -e 's/span style="width:/span style="display:-moz-inline-box;display:inline-block;height:1px;width:/' pms.html
@# align algorithm line numbers properly
- sed -i -e '/<span class="ALCitem">/{N;s/\n\(class="[^"]\+">\)\([0-9]:\)<\/span>/\1\&#x2007;\2/}' pms.html
+ LC_ALL=C sed -i -e '/<span class="ALCitem">/{N;s/\n\(class="[^"]\+">\)\([0-9]:\)<\/span>/\1\&#x2007;\2/}' pms.html
pms.bbl: pms.bib pms.tex vc.tex eapi-cheatsheet.pdf
latex pms