<filename>other/ipypublish/export_plugins/latex_ipypublish_main.py
"""latex article in the main ipypublish format:
- only output cells with metadata tags are used
- code, figures, tables and code are formatted accordingly
"""
from __future__ import annotations

from ipypublish.filters.ansi_listings import ansi2listings
from ipypublish.filters.filters import create_key
from ipypublish.filters.filters import dict_to_kwds
from ipypublish.filters.filters import first_para
from ipypublish.filters.filters import is_equation
from ipypublish.filters.filters import remove_dollars
from ipypublish.latex.create_tplx import create_tplx
from ipypublish.latex.ipypublish import biblio_natbib as bib
from ipypublish.latex.ipypublish import contents_framed_code as code
from ipypublish.latex.ipypublish import contents_output as output
from ipypublish.latex.ipypublish import doc_article as doc
from ipypublish.latex.ipypublish import front_pages as title
from ipypublish.latex.standard import standard_definitions as defs
from ipypublish.latex.standard import standard_packages as package
from ipypublish.preprocessors.latex_doc_captions import LatexCaptions
from ipypublish.preprocessors.latex_doc_links import LatexDocLinks
from ipypublish.preprocessors.split_outputs import SplitOutputs

oformat = 'Latex'
template = create_tplx([p.tplx_dict for p in
                        [package, defs, doc, title, bib, output, code]])

_filters = {'remove_dollars': remove_dollars,
            'first_para': first_para,
            'create_key': create_key,
            'dict_to_kwds': dict_to_kwds,
            'ansi2listings': ansi2listings,
            'is_equation': is_equation}

config = {'TemplateExporter.filters': _filters,
          'Exporter.filters': _filters,
          'SplitOutputs.split': True,
          'Exporter.preprocessors': [SplitOutputs, LatexDocLinks, LatexCaptions]}

<filename>other/ipypublish/export_plugins/latex_ipypublish_main.py
"""latex article in the main ipypublish format:
- only output cells with metadata tags are used
- code, figures, tables and code are formatted accordingly
"""
from __future__ import annotations

from ipypublish.filters.ansi_listings import ansi2listings
from ipypublish.filters.filters import create_key
from ipypublish.filters.filters import dict_to_kwds
from ipypublish.filters.filters import first_para
from ipypublish.filters.filters import is_equation
from ipypublish.filters.filters import remove_dollars
from ipypublish.latex.create_tplx import create_tplx
from ipypublish.latex.ipypublish import biblio_natbib as bib
from ipypublish.latex.ipypublish import contents_framed_code as code
from ipypublish.latex.ipypublish import contents_output as output
from ipypublish.latex.ipypublish import doc_article as doc
from ipypublish.latex.ipypublish import front_pages as title
from ipypublish.latex.standard import standard_definitions as defs
from ipypublish.latex.standard import standard_packages as package
from ipypublish.preprocessors.latex_doc_captions import LatexCaptions
from ipypublish.preprocessors.latex_doc_links import LatexDocLinks
from ipypublish.preprocessors.split_outputs import SplitOutputs

oformat = 'Latex'
template = create_tplx([p.tplx_dict for p in
                        [package, defs, doc, title, bib, output, code]])

_filters = {'remove_dollars': remove_dollars,
            'first_para': first_para,
            'create_key': create_key,
            'dict_to_kwds': dict_to_kwds,
            'ansi2listings': ansi2listings,
            'is_equation': is_equation}

config = {'TemplateExporter.filters': _filters,
          'Exporter.filters': _filters,
          'SplitOutputs.split': True,
          'Exporter.preprocessors': [SplitOutputs, LatexDocLinks, LatexCaptions]}

latex article in the main ipypublish format: - only output cells with metadata tags are used - code, figures, tables and code are formatted accordingly