@@ -79,51 +79,56 @@ Postscript options
7979In order to produce encapsulated postscript files that can be embedded in a new
8080LaTeX document, the default behavior of matplotlib is to distill the output,
8181which removes some postscript operators used by LaTeX that are illegal in an
82- eps file. This step produces fonts which may be unacceptable to some users. One
83- workaround is to to set ``ps.distiller.res `` to a higher value (perhaps 6000) in
84- your rc settings. A better workaround, which requires Poppler _ or Xpdf _, can be
82+ eps file. This step produces results which may be unacceptable to some users,
83+ because the text is coarsely rasterized and converted to bitmaps, which are not
84+ scalable like standard postscript, and the text is not searchable. One
85+ workaround is to to set ``ps.distiller.res `` to a higher value (perhaps 6000)
86+ in your rc settings, which will produce larger files but may look better and
87+ scale reasonably. A better workaround, which requires Poppler _ or Xpdf _, can be
8588activated by changing the ``ps.usedistiller `` rc setting to ``xpdf ``. This
86- alternative produces postscript with text that can be edited in Adobe
87- Illustrator, and searched text in pdf documents.
89+ alternative produces postscript without rasterizing text, so it scales
90+ properly, can be edited in Adobe Illustrator, and searched text in pdf
91+ documents.
8892
8993.. _usetex-hangups :
9094
9195Possible hangups
9296================
9397
94- * On Windows, the PATH environment variable may need to be modified to
95- find the latex, dvipng and ghostscript executables. This is done by
96- going to the control panel, selecting the "system" icon, selecting
97- the "advanced" tab, and clicking the "environment variables" button
98- (and people think Linux is complicated. Sheesh.) Select the PATH
99- variable, and add the appropriate directories.
98+ * On Windows, the :envvar: `PATH ` environment variable may need to be modified
99+ to include the directories containing the latex, dvipng and ghostscript
100+ executables. See :ref: `environment-variables ` and
101+ :ref: `setting-windows-environment-variables ` for details.
100102
101- * Using MiKTeX with Computer Modern fonts, if you get odd - Agg and PNG
103+ * Using MiKTeX with Computer Modern fonts, if you get odd \* Agg and PNG
102104 results, go to MiKTeX/Options and update your format files
103105
104- * The fonts look terrible on screen. You are probably running Mac OS,
105- and there is some funny business with dvipng on the mac. Set
106- text.dvipnghack : True in your matplotlibrc file.
106+ * The fonts look terrible on screen. You are probably running Mac OS, and there
107+ is some funny business with older versions of dvipng on the mac. Set
108+ `` text.dvipnghack : True `` in your matplotlibrc file.
107109
108110* On Ubuntu and Gentoo, the base texlive install does not ship with
109111 the type1cm package. You may need to install some of the extra
110112 packages to get all the goodies that come bundled with other latex
111113 distributions.
112114
113- * Some progress has been made so Matplotlib uses the dvi files
115+ * Some progress has been made so matplotlib uses the dvi files
114116 directly for text layout. This allows latex to be used for text
115117 layout with the pdf and svg backends, as well as the \* Agg and PS
116118 backends. In the future, a latex installation may be the only
117119 external dependency.
118120
119121.. _usetex-troubleshooting :
120122
121- Trouble shooting
122- ================
123+ Troubleshooting
124+ ===============
123125
124- * Try deleting `tex.cache ` from your `~/.matplotlib ` directory
126+ * Try deleting your :file: `.matplotlib/tex.cache ` directory. If you don't know
127+ where to find :file: `.matplotlib `, see
128+ :ref: `locating-matplotlib-config-dir `.
125129
126- * Make sure LaTeX, dvipng and ghostscript are each working and on your PATH.
130+ * Make sure LaTeX, dvipng and ghostscript are each working and on your
131+ :envvar: `PATH `.
127132
128133* Make sure what you are trying to do is possible in a LaTeX document,
129134 that your LaTeX syntax is valid and that you are using raw strings
@@ -133,7 +138,7 @@ Trouble shooting
133138 upgrading Ghostscript _. If possible, please try upgrading to the
134139 latest release before reporting problems to the list.
135140
136- * The text.latex.preample rc setting is not officially supported. This
141+ * The `` text.latex.preamble `` rc setting is not officially supported. This
137142 option provides lots of flexibility, and lots of ways to cause
138143 problems. Please disable this option before reporting problems to
139144 the mailing list.
0 commit comments