pylatexenc breaking changes
pylatexenc 2.0 (August 24, 2019) is its newest release with breaking changes, 42 of them. The first: Removed pylatexenc.latex2text.EnvDef.__init__. Every breaking API change we have recorded in pylatexenc on PyPI: 43 breaking changes in 2 versions. Below, its 2 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 2.11, released July 25, 2026.
Packages on PyPI run on Python. Python end of life dates.
pylatexenc 2.0 breaking changes
- Removed
pylatexenc.latex2text.EnvDef.__init__
EnvDef() was removed in pylatexenc 2.0 pypi.org - Removed
pylatexenc.latex2text.EnvDef.discard
EnvDef.discard was removed in pylatexenc 2.0 pypi.org - Removed
pylatexenc.latex2text.EnvDef.envname
EnvDef.envname was removed in pylatexenc 2.0 pypi.org - Removed
pylatexenc.latex2text.EnvDef.simplify_repl
EnvDef.simplify_repl was removed in pylatexenc 2.0 pypi.org - Removed
pylatexenc.latex2text.LatexNodes2Text.env_dict
LatexNodes2Text.env_dict was removed in pylatexenc 2.0 pypi.org - Removed
pylatexenc.latex2text.LatexNodes2Text.keep_inline_math
LatexNodes2Text.keep_inline_math was removed in pylatexenc 2.0 pypi.org - Removed
pylatexenc.latex2text.LatexNodes2Text.macro_dict
LatexNodes2Text.macro_dict was removed in pylatexenc 2.0 pypi.org - Removed
pylatexenc.latex2text.LatexNodes2Text.text_replacements
LatexNodes2Text.text_replacements was removed in pylatexenc 2.0 pypi.org - Removed
pylatexenc.latex2text.MacroDef.__init__
MacroDef() was removed in pylatexenc 2.0 pypi.org - Removed
pylatexenc.latex2text.MacroDef.discard
MacroDef.discard was removed in pylatexenc 2.0 pypi.org - Removed
pylatexenc.latex2text.MacroDef.macname
MacroDef.macname was removed in pylatexenc 2.0 pypi.org - Removed
pylatexenc.latex2text.MacroDef.simplify_repl
MacroDef.simplify_repl was removed in pylatexenc 2.0 pypi.org - Removed
pylatexenc.latex2text.main
pylatexenc.latex2text.main was removed in pylatexenc 2.0 pypi.org - Removed
pylatexenc.latex2text.make_accented_char
pylatexenc.latex2text.make_accented_char was removed in pylatexenc 2.0 pypi.org - Removed
pylatexenc.latex2text.unicode_accents_list
pylatexenc.latex2text.unicode_accents_list was removed in pylatexenc 2.0 pypi.org - Removed
pylatexenc.latexencode.args
pylatexenc.latexencode.args was removed in pylatexenc 2.0 pypi.org - Removed
pylatexenc.latexencode.latex
pylatexenc.latexencode.latex was removed in pylatexenc 2.0 pypi.org - Removed
pylatexenc.latexencode.log
pylatexenc.latexencode.log was removed in pylatexenc 2.0 pypi.org - Removed
pylatexenc.latexencode.parser
pylatexenc.latexencode.parser was removed in pylatexenc 2.0 pypi.org - Removed
pylatexenc.latexwalker.LatexNodesJSONEncoder
pylatexenc.latexwalker.LatexNodesJSONEncoder was removed in pylatexenc 2.0 pypi.org - Removed
pylatexenc.latexwalker.LatexWalker.keep_inline_math
LatexWalker.keep_inline_math was removed in pylatexenc 2.0 pypi.org - Removed
pylatexenc.latexwalker.LatexWalker.macro_dict
LatexWalker.macro_dict was removed in pylatexenc 2.0 pypi.org - Removed
pylatexenc.latexwalker.main
pylatexenc.latexwalker.main was removed in pylatexenc 2.0 pypi.org - Removed
pylatexenc.latexwalker.math_node_to_latex
pylatexenc.latexwalker.math_node_to_latex was removed in pylatexenc 2.0 pypi.org - Signature changed
pylatexenc.latex2text.EnvDef
Was class EnvDef; now def EnvDef(envname, simplify_repl=None, discard=False). pypi.org - Signature changed
pylatexenc.latex2text.LatexNodes2Text.__init__
Was def __init__(self, env_dict=None, macro_dict=None, text_replacements=None, **flags); now def __init__(self, latex_context=None, **flags). pypi.org - Signature changed
pylatexenc.latex2text.LatexNodes2Text.node_to_text
Was def node_to_text(self, node, prev_node_hint=None); now def node_to_text(self, node, prev_node_hint=None, textcol=0). pypi.org - Signature changed
pylatexenc.latex2text.MacroDef
Was class MacroDef; now def MacroDef(macname, simplify_repl=None, discard=None). pypi.org - Signature changed
pylatexenc.latexencode.unicode
Was def unicode(string); now unicode. pypi.org - Signature changed
pylatexenc.latexwalker.LatexCommentNode.__init__
Was def __init__(self, comment, comment_post_space='', **kwargs); now def __init__(self, comment, **kwargs). pypi.org - Signature changed
pylatexenc.latexwalker.LatexEnvironmentNode.__init__
Was def __init__(self, envname, nodelist, optargs=[], args=[], **kwargs); now def __init__(self, environmentname, nodelist, **kwargs). pypi.org - Signature changed
pylatexenc.latexwalker.LatexMacroNode.__init__
Was def __init__(self, macroname, nodeoptarg=None, nodeargs=[], macro_post_space='', **kwargs); now def __init__(self, macroname, **kwargs). pypi.org - Signature changed
pylatexenc.latexwalker.LatexNode.__init__
Was def __init__(self, **kwargs); now def __init__(self, _fields, _redundant_fields=None, parsing_state=None, pos=None, len=None, **kwargs). pypi.org - Signature changed
pylatexenc.latexwalker.LatexWalker.__init__
Was def __init__(self, s, macro_dict=None, **flags); now def __init__(self, s, latex_context=None, **kwargs). pypi.org - Signature changed
pylatexenc.latexwalker.LatexWalker.get_latex_braced_group
Was def get_latex_braced_group(self, pos, brace_type='{'); now def get_latex_braced_group(self, pos, brace_type='{', parsing_state=None). pypi.org - Signature changed
pylatexenc.latexwalker.LatexWalker.get_latex_environment
Was def get_latex_environment(self, pos, environmentname=None); now def get_latex_environment(self, pos, environmentname=None, parsing_state=None). pypi.org - Signature changed
pylatexenc.latexwalker.LatexWalker.get_latex_expression
Was def get_latex_expression(self, pos, strict_braces=None); now def get_latex_expression(self, pos, strict_braces=None, parsing_state=None). pypi.org - Signature changed
pylatexenc.latexwalker.LatexWalker.get_latex_maybe_optional_arg
Was def get_latex_maybe_optional_arg(self, pos); now def get_latex_maybe_optional_arg(self, pos, parsing_state=None). pypi.org - Signature changed
pylatexenc.latexwalker.LatexWalker.get_latex_nodes
Was def get_latex_nodes(self, pos=0, stop_upon_closing_brace=None, stop_upon_end_environment=None, stop_upon_closing_mathmode=None); now def get_latex_nodes(self, pos=0, stop_upon_closing_brace=None, stop_upon_end_environment=None... pypi.org - Signature changed
pylatexenc.latexwalker.LatexWalker.get_token
Was def get_token(self, pos, brackets_are_chars=True, environments=True, keep_inline_math=None); now def get_token(self, pos, include_brace_chars=None, environments=True, keep_inline_math=None, parsing_state=None, **kwargs). pypi.org - Signature changed
pylatexenc.latexwalker.LatexWalkerParseError.__init__
Was def __init__(self, msg, s=None, pos=None); now def __init__(self, msg, s=None, pos=None, lineno=None, colno=None). pypi.org - Signature changed
pylatexenc.latexwalker.MacrosDef
Was MacrosDef; now def MacrosDef(macname, optarg, numargs). pypi.org
pylatexenc 1.0 breaking changes
- Behavior changed
The 1.0 release presents a slightly improved API compared with earlier versions; review code that uses the library's API for adjustments. github.com
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.