Pipelines

PyDetex https://github.com/ppizarror/PyDetex

PIPELINES Defines the pipelines which apply parsers.

pydetex.pipelines.simple(s, lang='en', show_progress=False, replace_pydetex_tags=True, remove_common_tags=True, **kwargs)[source]

The most simple pipeline ever.

Parameters
  • s (str) – String latex

  • lang (str) – Language tag of the code

  • show_progress (bool) – Show progress bar

  • replace_pydetex_tags (bool) – Replace pydetex tags like symbols, cites

  • remove_common_tags (bool) – Call remove_common_tags parser

Return type

str

Returns

String with no latex!

pydetex.pipelines.strict(s, lang='en', show_progress=False, **kwargs)[source]

Apply simple + removes all commands.

Parameters
  • s (str) – String latex

  • lang (str) – Language tag of the code

  • show_progress (bool) – Show progress bar

Return type

str

Returns

String with no latex!