ipypublish.preprocessors.latex_doc_html module¶
-
class
ipypublish.preprocessors.latex_doc_html.
LatexDocHTML
(*args, **kwargs)[source]¶ Bases:
nbconvert.preprocessors.base.Preprocessor
processing of ipub metatags, specific to html
import embedded html files
add refmap key to references for {label:reference name} lookup e.g. {“fig:test”:”fig. 1”}
add caption_prefix tag for floats with correct numbering/name e.g. cell.metadata.ipub.figure.caption_prefix = “Figure 1: “
-
filesfolder
¶ A trait for unicode strings.
-
metapath
¶ A trait for unicode strings.
-
preprocess
(nb, resources)[source]¶ Preprocessing to apply on each notebook.
Must return modified nb, resources.
If you wish to apply your preprocessing to each cell, you might want to override preprocess_cell method instead.
- Parameters
nb (
NotebookNode
) – Notebook being convertedresources (
dictionary
) – Additional resources used in the conversion process. Allows preprocessors to pass variables into the Jinja engine.
-
src_name
¶ A trait for unicode strings.