Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add export_from_notebook attributes to identify formats from notebook UI #44

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/latex_envs/latex_envs.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,9 @@ class LenvsHTMLExporter(HTMLExporter):
Exports to an html document, embedding latex_env extension (.html)
"""


export_from_notebook = "html w/ LaTeX envs"

def __init__(self, config=None, **kw):
"""
Public constructor
Expand Down Expand Up @@ -337,6 +340,8 @@ class LenvsSlidesExporter(SlidesExporter):
Exports to a reveal-js/slides document, embedding latex_env extension (.html)
"""

export_from_notebook = "slides w/ LaTeX envs"

@property
def default_config(self):
# import jupyter_core.paths
Expand Down Expand Up @@ -403,6 +408,7 @@ class LenvsTocHTMLExporter(LenvsHTMLExporter):
Exports to a html document, embedding latex_env and toc extensions (.html)
"""

export_from_notebook = "html w/ LaTeX envs & toc"
def _template_file_default(self):
return 'latex_envs_toc'

Expand All @@ -414,6 +420,7 @@ class LenvsLatexExporter(LatexExporter):
Exports to a LaTeX document
"""

export_from_notebook = "LaTeX w/ envs"
removeHeaders = Bool(
False, help="Remove headers and footers").tag(config=True, alias="rh")
figcaptionProcess = Bool(
Expand Down