bibble.latex.writer

See EOF for license/metadata/notes as applicable

Type Aliases

U2LRule

Classes

LatexWriter

Unicode->Latex Transform.

Module Contents

bibble.latex.writer.U2LRule: TypeAlias = UnicodeToLatexConversionRule
class bibble.latex.writer.LatexWriter(**kwargs)[source]

Bases: bibble.util.middlecore.IdenBlockMiddleware

Unicode->Latex Transform. all strings in the library except urls, files, dois and crossrefs see https://pylatexenc.readthedocs.io/en/latest/latexencode/

to customize the conversion rules, use pylatexenc.latexencode and call rebuild_encoder with them

_transform_raw_str(python_string) <Unknown>[source]
Parameters:

python_string (str)

Return type:

jgdv.Result[str, Exception]

field_h(field, entry) <Unknown>[source]
Parameters:
  • field (bibtexparser.model.Field)

  • entry (Entry)

Return type:

jgdv.Result[list[Field], Exception]

on_write() <Unknown>[source]
transform_Entry(entry, library) <Unknown>[source]
Parameters:
  • entry (Entry)

  • library (bibtexparser.library.Library)

Return type:

list[Block]

_blacklist = ('url', 'file', 'doi', 'crossref')
_total_options
_total_rules: list[U2LRule]