We will need to split the typical tex document into some basic elements to easily specify build options.
\documentclass[] should all be options font size, document type (article, book) etc.
preamble should be supplied by specifying jupyter_pdf_template = <path> and use a template approach which is more flexible for future edits
\maketitle needs to be an option jupyter_pdf_title=True/False
logo needs to be an option jupyter_pdf_logo = <path> and assumed to be centred under the title
body of the tex should be determined solely by translator when writing source ipynb notebooks.
where these adjustments get made needs to be tested. (a) rst to ipynb stage or (b) ipynb to rst stage. For example, preamble probably shouldn't get written to the notebook (as the notebook is the document) but should be added in stage (b).
We will need to split the typical
tex
document into some basic elements to easily specify build options.\documentclass[]
should all be optionsfont size
,document type (article, book)
etc.preamble
should be supplied by specifyingjupyter_pdf_template = <path>
and use a template approach which is more flexible for future edits\maketitle
needs to be an optionjupyter_pdf_title=True/False
logo
needs to be an optionjupyter_pdf_logo = <path>
and assumed to be centred under the titlebody
of the tex should be determined solely bytranslator
when writing sourceipynb
notebooks.where these adjustments get made needs to be tested. (a)
rst
toipynb
stage or (b)ipynb
torst
stage. For example, preamble probably shouldn't get written to the notebook (as the notebook is the document) but should be added in stage (b).