2016-01-28 15:15:43 -08:00
|
|
|
==============================
|
|
|
|
Zcash Protocol Specification
|
|
|
|
==============================
|
|
|
|
|
2016-08-14 15:59:44 -07:00
|
|
|
Build dependencies on Debian-based systems include, at least:
|
2016-01-28 15:15:43 -08:00
|
|
|
|
|
|
|
.. code::
|
|
|
|
|
2018-03-24 02:10:32 -07:00
|
|
|
apt-get install texlive texlive-science texlive-fonts-extra \
|
|
|
|
texlive-generic-recommended texlive-bibtex-extra biber latexmk
|
|
|
|
|
|
|
|
|
|
|
|
Building
|
|
|
|
--------
|
|
|
|
|
|
|
|
Use:
|
|
|
|
|
|
|
|
* ``make sapling`` to make the draft specification for the Overwinter and
|
2018-09-02 00:50:40 -07:00
|
|
|
Sapling upgrades (``sapling.pdf``);
|
|
|
|
* ``make sprout`` to make a version of the specification that does not
|
|
|
|
include Overwinter or Sapling.
|
2018-03-24 02:10:32 -07:00
|
|
|
|
|
|
|
By default these use ``latexmk``, which does not work on all systems.
|
|
|
|
Use ``make nolatexmk-pdf`` or ``make nolatexmk-sapling`` if you run into
|
|
|
|
problems with ``latexmk``, but that is not the preferred way of building
|
|
|
|
because it may not run ``pdflatex`` enough times.
|
|
|
|
|
|
|
|
There is also support for using the incremental (``-pvc``) mode of
|
|
|
|
``latexmk`` to automatically rebuild when changes in the source files
|
2018-09-02 00:50:40 -07:00
|
|
|
are detected: ``make pvcsapling`` or ``make pvcsprout``.
|
2018-03-24 02:10:32 -07:00
|
|
|
Manual intervention is still needed when there are LaTeX errors.
|
|
|
|
|
|
|
|
|
|
|
|
Optimizing PDF size
|
|
|
|
-------------------
|
|
|
|
|
|
|
|
Optionally, you can use `Péter Szabó <https://github.com/pts>`_'s
|
|
|
|
``pdfsizeopt`` program to optimize the size of the resulting PDF files.
|
|
|
|
|
2018-03-26 11:25:46 -07:00
|
|
|
Use:
|
|
|
|
|
|
|
|
* ``make optsapling`` to make an optimized version of ``sapling.pdf``;
|
2018-09-02 00:50:40 -07:00
|
|
|
* ``make optsprout`` to make an optimized version of ``sprout.pdf``;
|
2018-03-26 11:25:46 -07:00
|
|
|
* ``make optimized`` to make both.
|
2018-03-24 02:10:32 -07:00
|
|
|
|
2018-03-26 11:25:46 -07:00
|
|
|
This will probably only work on Linux. The first time one of these
|
|
|
|
targets is run, it will automatically clone and build the necessary
|
|
|
|
dependencies (pinned by ``git`` hash) from GitHub.
|
2018-03-24 02:10:32 -07:00
|
|
|
|
2018-09-02 00:50:40 -07:00
|
|
|
This gives a size saving of about 40-50%.
|
2018-03-24 02:11:18 -07:00
|
|
|
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
2018-09-02 00:50:40 -07:00
|
|
|
The results are placed in the ``html`` directory at ``html/sapling.html``
|
|
|
|
and ``html/sprout.html``.
|
2018-03-24 02:11:18 -07:00
|
|
|
|
|
|
|
See `<https://github.com/zcash/zips/issues/127>`_ for limitations of
|
|
|
|
this conversion.
|