8000 Issue #1888: added in the \dfrac macro for displaystyle fractions by watkinrt · Pull Request #8151 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Issue #1888: added in the \dfrac macro for displaystyle fractions #8151

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Jul 26, 2017
Prev Previous commit
Next Next commit
With the resent merging of the sphinx-gallery branch, I went through …
…and updated the docstring to appropriately escape the backslashes.
  • Loading branch information
watkinrt committed Jul 4, 2017
commit d0cfe37ec401bd3ad80ea2dfae20e986ccc80ada
8 changes: 4 additions & 4 deletions examples/text_labels_and_annotations/dfrac_demo.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
r"""
=========================================
The difference between \dfrac and \frac
The difference between \\dfrac and \\frac
=========================================

In this example, the differences between the \dfrac and \frac TeX macros are
In this example, the differences between the \\dfrac and \\frac TeX macros are
illustrated; in particular, the difference between display style and text style
fractions when using Mathtex.

.. versionadded:: 2.1

.. note::
To use \dfrac with the LaTeX engine (text.usetex : True), you need to
To use \\dfrac with the LaTeX engine (text.usetex : True), you need to
import the amsmath package with the text.latex.preamble rc, which is
an unsupported feature; therefore, it is probably a better idea to just
use the \displaystyle option before the \frac macro to get this behavior
use the \\displaystyle option before the \\frac macro to get this behavior
with the LaTeX engine.

"""
Expand Down
0