@@ -53,7 +53,7 @@ Installing dependencies
53
53
The documentation for Matplotlib is generated from reStructuredText (ReST _)
54
54
using the Sphinx _ documentation generation tool. To build the documentation
55
55
you will need to (1) set up an appropriate Python environment and (2)
56
- separately install LaTeX and Graphviz .
56
+ separately install our external dependencies .
57
57
58
58
To (1) set up an appropriate Python environment for building the
59
59
documentation, you should:
@@ -70,16 +70,24 @@ shown below:
70
70
.. include :: ../../requirements/doc/doc-requirements.txt
71
71
:literal:
72
72
73
- To (2) set up LaTeX and Graphviz dependencies you should :
73
+ For (2), the Matplotlib docs require that you:
74
74
75
75
* install a minimal working LaTeX distribution
76
- * install the LaTeX packages cm-super and dvipng
77
76
* install `Graphviz <http://www.graphviz.org/download >`_
77
+ * install the LaTeX packages cm-super and dvipng. If your OS bundles `TexLive `,
78
+ then often the "complete" version of the installer will automatically include
79
+ these packages (e.g. "texlive-full" or "texlive-all").
80
+ * (suggested) install `Inkscape <https://inkscape.org >`_.
81
+ * (suggested) install `optipng <http://optipng.sourceforge.net >`_.
82
+ * (suggested) install the "Humor Sans" font (aka the "XKCD" font).
78
83
79
84
.. note ::
80
85
81
86
The documentation will not build without LaTeX and Graphviz. These are not
82
- Python packages and must be installed separately.
87
+ Python packages and must be installed separately. The documentation can be
88
+ built without Inkscape and optipng, but the build process will raise various
89
+ warnings. If the build process warns that you are missing fonts, make sure
90
+ your LaTeX distribution bundles cm-super or install it separately.
83
91
84
92
Building the docs
85
93
-----------------
@@ -111,7 +119,7 @@ it, use
111
119
.. code-block :: sh
112
120
113
121
make SPHINXOPTS= html
114
-
122
+
115
123
On Windows the arguments must be at the end of the statement:
116
124
117
125
.. code-block :: bat
@@ -131,8 +139,8 @@ On Windows, either use the format shown above or set options as environment vari
131
139
132
140
.. code-block :: bat
133
141
134
- set O = -W --keep-going -j4
135
- make html
142
+ set O = -W --keep-going -j4
143
+ make html
136
144
137
145
.. _writing-rest-pages :
138
146
0 commit comments