pyexlatex.logic.output.api.builders package

Submodules

pyexlatex.logic.output.api.builders.base module

class pyexlatex.logic.output.api.builders.base.BaseBuilder(executable=None, bibtex='bibtex', max_runs=15)[source]

Bases: object

The base class for LaTeX file builders

__init__(executable=None, bibtex='bibtex', max_runs=15)[source]
default_executable: str
is_available()[source]
output_extension: str
post_file_output_args: Sequence[str] = ()
pre_file_output_args: Sequence[str] = ('-interaction=batchmode', '-halt-on-error', '-shell-escape', '-file-line-error')

pyexlatex.logic.output.api.builders.htlatex module

class pyexlatex.logic.output.api.builders.htlatex.HTLatexBuilder(executable=None, bibtex='bibtex', max_runs=15)[source]

Bases: pyexlatex.logic.output.api.builders.base.BaseBuilder

A simple htlatex-based builder for LaTeX files to generate HTML from LaTeX.

Builds LaTeX files by copying them to a temporary directly and running htlatex until the associated .aux file stops changing.

Parameters
  • executable (Optional[str]) – The path to the htlatex binary (will looked up on $PATH).

  • max_runs (int) – An integer providing an upper limit on the amount of times htlatex can be rerun before an exception is thrown.

default_executable: str = 'make4ht'
output_extension: str = 'html'
post_file_output_args: Sequence[str] = ()
pre_file_output_args: Sequence[str] = ('--lua', '--shell-escape', '--utf8')

pyexlatex.logic.output.api.builders.lualatex module

class pyexlatex.logic.output.api.builders.lualatex.LuaLatexBuilder(executable=None, bibtex='bibtex', max_runs=15)[source]

Bases: pyexlatex.logic.output.api.builders.base.BaseBuilder

A simple lualatex-based builder for LaTeX files.

Builds LaTeX files by copying them to a temporary directly and running lualatex until the associated .aux file stops changing.

Parameters
  • executable (Optional[str]) – The path to the lualatex binary (will looked up on $PATH).

  • max_runs (int) – An integer providing an upper limit on the amount of times lualatex can be rerun before an exception is thrown.

default_executable: str = 'lualatex'
output_extension: str = 'pdf'