Repository: matplotlib/matplotlib
File: lib/matplotlib/rcsetup.py (Python)

Code before:
        default=True,
        validator=validate_bool,
        description="Use mathtext if there is an even number of unescaped dollar signs."

    ),
    _Param(
        "text.usetex",
        default=False,
        validator=validate_bool,
        description="use latex for all text handling. The following fonts are "
                    "supported through the usual rc parameter settings: "
                    "new century schoolbook, bookman, times, palatino, zapf chancery, "
                    "charter, serif, sans-serif, helvetica, avant garde, courier, "
                    "monospace, computer modern roman, computer modern sans serif, "
                    "computer modern typewriter"
    ),
    _Param(
        "text.latex.engine",
        default="latex",
        validator=["latex", "latex+dvipng"],
        description=(
            "The TeX engine/format to use.  The following values are ""supported:\n"
            "- 'latex': The classic TeX engine (the current default).  All backends "
            "render TeX's output by parsing the DVI output into glyphs and boxes and "
            "emitting those one by one.\n"
            "- 'latex+dvipng': The same as 'tex', with the exception that Agg-based "
            "backends rely on dvipng to rasterize TeX's output.  This value was the "
            "default up to Matplotlib 3.10."
        )
    ),
    _Param(
        "text.latex.preamble",
        default="",
        validator=validate_string,
        description='IMPROPER USE OF THIS FEATURE WILL LEAD TO LATEX FAILURES AND IS '
                    'THEREFORE UNSUPPORTED. PLEASE DO NOT ASK FOR HELP IF THIS FEATURE '
                    'DOES NOT DO WHAT YOU EXPECT IT TO. text.latex.preamble is a '
                    'single line of LaTeX code that will be passed on to the LaTeX '
                    'system. It may contain any code that is valid for the LaTeX '
                    '"preamble", i.e. between the "\\documentclass" and '
                    '"\\begin{document}" statements. Note that it has to be put on a '
                    'single line, which may become quite long. The following packages '
                    'are always loaded with usetex, so beware of package collisions: '
                    '   color, fix-cm, geometry, graphicx, textcomp. PostScript '
                    '(PSNFSS) font packages may also be loaded, depending on your font '
                    'settings.'
    ),
    _Param(
        "mathtext.fontset",
        default="dejavusans",
        validator=["dejavusans", "dejavuserif", "cm", "stix", "stixsans", "custom"],

Review comment (suggestion):
There is no `tex`, I think?
```suggestion
            "- 'latex+dvipng': The same as 'latex', with the exception that Agg-based "
```

Code after:
        validator=validate_bool,
        description="Use mathtext if there is an even number of unescaped dollar signs."

    ),
    _Param(
        "text.usetex",
        default=False,
        validator=validate_bool,
        description="use latex for all text handling. The following fonts are "
                    "supported through the usual rc parameter settings: "
                    "new century schoolbook, bookman, times, palatino, zapf chancery, "
                    "charter, serif, sans-serif, helvetica, avant garde, courier, "
                    "monospace, computer modern roman, computer modern sans serif, "
                    "computer modern typewriter"
    ),
    _Param(
        "text.latex.engine",
        default="latex",
        validator=["latex", "latex+dvipng"],
        description=(
            "The TeX engine/format to use.  The following values are supported:\n"
            "- 'latex': The classic TeX engine (the current default).  All backends "
            "render TeX's output by parsing the DVI output into glyphs and boxes and "
            "emitting those one by one.\n"
            "- 'latex+dvipng': The same as 'latex', with the exception that Agg-based "
            "backends rely on dvipng to rasterize TeX's output.  This value was the "
            "default up to Matplotlib 3.10."
        )
    ),
    _Param(
        "text.latex.preamble",
        default="",
        validator=validate_string,
        description='IMPROPER USE OF THIS FEATURE WILL LEAD TO LATEX FAILURES AND IS '
                    'THEREFORE UNSUPPORTED. PLEASE DO NOT ASK FOR HELP IF THIS FEATURE '
                    'DOES NOT DO WHAT YOU EXPECT IT TO. text.latex.preamble is a '
                    'single line of LaTeX code that will be passed on to the LaTeX '
                    'system. It may contain any code that is valid for the LaTeX '
                    '"preamble", i.e. between the "\\documentclass" and '
                    '"\\begin{document}" statements. Note that it has to be put on a '
                    'single line, which may become quite long. The following packages '
                    'are always loaded with usetex, so beware of package collisions: '
                    '   color, fix-cm, geometry, graphicx, textcomp. PostScript '
                    '(PSNFSS) font packages may also be loaded, depending on your font '
                    'settings.'
    ),
    _Param(
        "mathtext.fontset",
        default="dejavusans",
        validator=["dejavusans", "dejavuserif", "cm", "stix", "stixsans", "custom"],
        description="Should be 'dejavusans' (default), 'dejavuserif', "