diff --git a/protocol/Makefile b/protocol/Makefile index 0d56e4e1..8fb44483 100644 --- a/protocol/Makefile +++ b/protocol/Makefile @@ -13,9 +13,10 @@ pdf: mv -f aux/protocol.pdf . .PHONY: html -html: pdf sapling - pdf2htmlEX --decompose-ligature 1 --font-size-multiplier 60 --split-pages 1 --dest-dir html protocol.pdf - pdf2htmlEX --decompose-ligature 1 --font-size-multiplier 60 --split-pages 1 --dest-dir saplinghtml sapling.pdf +html: protocol.pdf sapling.pdf + # Can't use --split-pages 1 because XHR doesn't work by default on local files in Chrome. + pdf2htmlEX --decompose-ligature 1 --font-size-multiplier 65 --fit-width 1000 --dest-dir html protocol.pdf + pdf2htmlEX --decompose-ligature 1 --font-size-multiplier 65 --fit-width 1000 --dest-dir html sapling.pdf .PHONY: pvcpdf pvcpdf: @@ -65,7 +66,7 @@ nolatexmk-sapling: .PHONY: clean clean: - rm -f aux/* protocol.ver \ + rm -f aux/* html/* protocol.ver \ protocol.dvi protocol.pdf protocol.bbl protocol.blg protocol.brf protocol.toc \ protocol.aux protocol.out protocol.log protocol.bcf protocol.run.xml protocol.fls protocol.fdb_latexmk \ sapling.dvi sapling.pdf sapling.bbl sapling.blg sapling.brf sapling.toc \ diff --git a/protocol/README.rst b/protocol/README.rst index c5c087c9..c1b59f7d 100644 --- a/protocol/README.rst +++ b/protocol/README.rst @@ -46,3 +46,21 @@ to optimize just ``protocol.pdf`` or ``sapling.pdf`` respectively. This gives a size saving of about 50% for ``protocol.pdf``, and 40% for ``sapling.pdf``. + + +Converting to HTML +------------------ + +To convert to HTML you will first need to install ``pdf2htmlEX``. On Debian: + +.. code:: + + apt-get install pdf2htmlex + +Then use ``make html`` (or ``make optimized html``) to convert both PDFs. + +The results are placed in the ``html`` directory at ``html/protocol.html`` +and ``html/sapling.html``. + +See ``_ for limitations of +this conversion.