@@ -40,7 +40,7 @@ Rc parameters that control the behavior of the pgf backend:
40
40
================= =====================================================
41
41
pgf.preamble Lines to be included in the LaTeX preamble
42
42
pgf.rcfonts Setup fonts from rc params using the fontspec package
43
- pgf.texsystem Either "xelatex", "lualatex" or "pdflatex"
43
+ pgf.texsystem Either "xelatex" (default) , "lualatex" or "pdflatex"
44
44
================= =====================================================
45
45
46
46
.. note ::
@@ -82,10 +82,10 @@ Custom preamble
82
82
===============
83
83
84
84
Full customization is possible by adding your own commands to the preamble.
85
- Use the ``pgf.preamble `` parameter if you want to configure the math fonts or
86
- for loading additional packages. Also, if you want to do the font configuration
87
- yourself instead of using the fonts specified in the rc parameters, make sure
88
- to disable ``pgf.rcfonts ``.
85
+ Use the ``pgf.preamble `` parameter if you want to configure the math fonts,
86
+ using `` unicode-math `` for example, or for loading additional packages. Also,
87
+ if you want to do the font configuration yourself instead of using the fonts
88
+ specified in the rc parameters, make sure to disable ``pgf.rcfonts ``.
89
89
90
90
.. htmlonly ::
91
91
@@ -147,6 +147,15 @@ Troubleshooting
147
147
ways to cause problems. When experiencing problems, try to minimalize or
148
148
disable the custom preamble.
149
149
150
+ * Configuring an ``unicode-math `` environment can be a bit tricky. The
151
+ TeXLive distribution for example provides a set of math fonts which are
152
+ usually not installed system-wide. XeTeX, unlike LuaLatex, cannot find
153
+ these fonts by their name, which is why you might have to specify
154
+ ``\setmathfont{xits-math.otf} `` instead of ``\setmathfont{XITS Math} `` or
155
+ alternatively make the fonts available to your OS. See this
156
+ `tex.stackexchange.com question <http://tex.stackexchange.com/questions/43642 >`_
157
+ for more details.
158
+
150
159
* If the font configuration used by matplotlib differs from the font setting
151
160
in yout LaTeX document, the alignment of text elements in imported figures
152
161
may be off. Check the header of your ``.pgf `` file if you are unsure about
0 commit comments