pydocmaker.backend.ex_typst
Attributes
Classes
Helper class that provides a standard way to create an ABC using |
Functions
|
|
|
|
|
|
|
Module Contents
- pydocmaker.backend.ex_typst.log
- pydocmaker.backend.ex_typst.__default_template = Multiline-String
Show Value
""" #set page("a4") #show link: set text(fill: blue, weight: 700) #show link: underline // code blocks #let code-border = luma(0) #show raw.where(block: false): set text(weight: "semibold") #show raw.where(block: true): set text(size: 0.8em) #show raw.where(block: true): it => { block( width:100%, inset: 10pt, radius: 4pt, stroke: 0.1pt + code-border, it, ) } #set figure(numbering: "1") #set figure.caption(separator: " - ") // With a nice separator #set math.equation(numbering: "(1)", supplement: "Eq.") {{ body}} """
- pydocmaker.backend.ex_typst._table_template = Multiline-String
Show Value
""" #figure( table( columns: {n_cols:}, stroke: {stroke:}, align:(left+horizon), {header:} {rows:} ), {suffix:} ) <{name:}> """
- pydocmaker.backend.ex_typst._figure_template = Multiline-String
Show Value
""" #figure( image(base64.decode({name:}), {width:} format: "{ext:}"), {suffix:} ) <{name:}> """
- pydocmaker.backend.ex_typst.DATA_URI_IMAGE_RE
- pydocmaker.backend.ex_typst.test_typst_installed()
- pydocmaker.backend.ex_typst.to_typst_string(text)
- pydocmaker.backend.ex_typst._compile(verb, on_warning, **kw)
- pydocmaker.backend.ex_typst.compile_with_typst(typst_code: str | List[dict], output: str = None, verb=1, on_warning='warn', format=None, attachments=None, **kwargs)
- pydocmaker.backend.ex_typst.convert(doc: List[dict], template=None, template_params=None, ret_attachments=False, **kwargs)
- class pydocmaker.backend.ex_typst.DocumentTypstFormatter
Bases:
pydocmaker.backend.baseformatter.BaseFormatterHelper class that provides a standard way to create an ABC using inheritance.
- cnt_img = 0
- cnt_tables = 0
- libraries
- _handle_color(part, color=None, **kwargs)
- digest_latex(children: str, **kwargs)
- digest_markdown(children='', **kwargs) list
- digest_text(children='', **kwargs)
- digest_table(children=None, **kwargs) str
- digest_image(**kwargs) list
- digest_verbatim(children='', **kwargs) list