{ "cells": [ { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "%matplotlib inline" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "\n# The difference between \\\\dfrac and \\\\frac\n\nIn this example, the differences between the \\\\dfrac and \\\\frac TeX macros are\nillustrated; in particular, the difference between display style and text style\nfractions when using Mathtex.\n\n.. versionadded:: 2.1\n\n
To use \\\\dfrac with the LaTeX engine (text.usetex : True), you need to\n import the amsmath package with the text.latex.preamble rc, which is\n an unsupported feature; therefore, it is probably a better idea to just\n use the \\\\displaystyle option before the \\\\frac macro to get this behavior\n with the LaTeX engine.