|
102 | 102 | :rc:`text.usetex`. As noted above, underscores (``_``) do not require
|
103 | 103 | escaping outside of math mode.
|
104 | 104 |
|
| 105 | +.. note:: |
| 106 | + LaTeX always defaults to using a serif font for math (even when |
| 107 | + ``rcParams["font.family"] = "sans-serif"``). If desired, adding |
| 108 | + ``\usepackage{sfmath}`` to ``rcParams["text.latex.preamble"]`` lets LaTeX |
| 109 | + output sans-serif math. |
| 110 | +
|
105 | 111 | PostScript options
|
106 | 112 | ==================
|
107 | 113 |
|
|
129 | 135 | :ref:`setting-windows-environment-variables` for details.
|
130 | 136 |
|
131 | 137 | * Using MiKTeX with Computer Modern fonts, if you get odd \*Agg and PNG
|
132 |
| - results, go to MiKTeX/Options and update your format files |
| 138 | + results, go to MiKTeX/Options and update your format files. |
133 | 139 |
|
134 | 140 | * On Ubuntu and Gentoo, the base texlive install does not ship with
|
135 | 141 | the type1cm package. You may need to install some of the extra
|
136 | 142 | packages to get all the goodies that come bundled with other LaTeX
|
137 | 143 | distributions.
|
138 | 144 |
|
139 |
| -* Some progress has been made so Matplotlib uses the dvi files |
140 |
| - directly for text layout. This allows LaTeX to be used for text |
141 |
| - layout with the pdf and svg backends, as well as the \*Agg and PS |
142 |
| - backends. In the future, a LaTeX installation may be the only |
143 |
| - external dependency. |
144 |
| -
|
145 | 145 | .. _usetex-troubleshooting:
|
146 | 146 |
|
147 | 147 | Troubleshooting
|
|
150 | 150 | * Try deleting your :file:`.matplotlib/tex.cache` directory. If you don't know
|
151 | 151 | where to find :file:`.matplotlib`, see :ref:`locating-matplotlib-config-dir`.
|
152 | 152 |
|
153 |
| -* Make sure LaTeX, dvipng and ghostscript are each working and on your |
| 153 | +* Make sure LaTeX, dvipng and Ghostscript are each working and on your |
154 | 154 | :envvar:`PATH`.
|
155 | 155 |
|
156 | 156 | * Make sure what you are trying to do is possible in a LaTeX document,
|
|
159 | 159 |
|
160 | 160 | * :rc:`text.latex.preamble` is not officially supported. This
|
161 | 161 | option provides lots of flexibility, and lots of ways to cause
|
162 |
| - problems. Please disable this option before reporting problems to |
163 |
| - the mailing list. |
| 162 | + problems. Please disable this option before reporting problems. |
164 | 163 |
|
165 | 164 | * If you still need help, please see :ref:`reporting-problems`.
|
166 | 165 |
|
|
0 commit comments