Pylatexenc

Latest version: v2.10

Safety actively analyzes 701786 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

3.0alpha

===================

(Still in development.)

.. toctree::
:maxdepth: 1

new-in-pylatexenc-3

- see in particular the :ref:`list of changes that might affect existing code
<new-in-pylatexenc-3-possible-pitfall-changes>` if you're using some more
advanced features of `pylatexenc`.

2.10

===============

- Added :py:class:`pylatexenc.latexencode.PartialLatexToLatexEncoder` which can
help to avoid double-escaping some existing LaTeX expressions in the string
that we want to LaTeX-encode.

- The :py:class:`pylatexenc.latexencode.UnicodeToTextConversionRule` now has a
:py:attr:`~pylatexenc.latexencode.UnicodeToTextConversionRule.replacement_text_protection`
field which can be used to override the default `replacement_text_protection`
set on a :py:class:`pylatexenc.latexencode.UnicodeToTextEncoder` object. Also
the `replacement_text_protection` fields accept an arbitrary callable object.

- added some known macro definitions for :py:mod:`~pylatexenc.latexwalker` and
:py:mod:`~pylatexenc.latex2text`, such as ``\definecolor`` and ``\textcolor``.

- Bug fixes (including :issue:`57`)

2.9

==============

- Bug fixes (including issues :issue:`49`, :issue:`51`, :pr:`52`, :pr:`53`,
:pr:`54`)

2.8

==============

- `latex2text` module: Basic support for array and matrix environments.
Matrices are represented inline, in the form ``[ a b; c d ]``.

- `latexencode` bugfix (issue :issue:`44`)

2.7

==============

- Bug fix: the parser now disambiguates ``$$`` as either a display math
delimiter or two inline math delimiters as in ``$a$$b$`` (issue :issue:`43`)

2.6

==============

- In `latex2text`:

+ Bug fix: default behavior of the `strict_latex_spaces` option in the
:py:class:`pylatexenc.latex2text.LatexNodes2Text()` constructor

+ fix ``\le``, ``\ge``, ``\leqslant``, ``\geqslant`` (issue :issue:`41`)

+ reorganized the default latex symbol categories

Page 1 of 2

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.