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

consistent parameter passing for html and latex-generated pdf #201

Open
phaustin opened this issue Jun 16, 2020 · 2 comments
Open

consistent parameter passing for html and latex-generated pdf #201

phaustin opened this issue Jun 16, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@phaustin
Copy link
Contributor

@hcolclou and I have pushed a new sphinx theme that implements some CSS3 page media formatting for myst_nb:
https://github.com/eoas-ubc/paged_html_theme#pagedjs-html-sphinx-theme

We'll be using it to provide parts of the functionality of the latex geometry, fancyhdrs, Lastpage packages as well as an explicit pagebreak.

@choldgraf and @chrisjsewell -- any thoughts on the best way to pass mulitple parameters like margin/header sizes/content so that the same format works for both latex and chrome-pdf builders? Tagging @racooneer since it's related to jupyter-book/jupyter-book#653

@phaustin phaustin added the enhancement New feature or request label Jun 16, 2020
@mmcky
Copy link
Member

mmcky commented Jun 16, 2020

this is an important issue. thanks for opening @phaustin. I think the best approach (but time consuming) is to start building a spec of the parameters that we want to start supporting with a column for myst option -> desired html, pdfhtml and pdflatex output.

This will allow the different teams to work to a single spec and reserve option names when implementing support for the metadata that has been specified in myst in a consistent manner?

Alternatively we could setup an issue template for myst option and I can sync those across to a document for reference. My only hesitation is some options are discussed in myst-parser and others in myst-nb and others in jupyter-book.

Not sure where to put this (@choldgraf)? -- should we have a myst-specification repo? I was thinking the docs for myst-parser given it holds much of the myst specification - but not always obvious for others to review. It needs to be in a place everyone can refer to and is easily accessible / editable.

@choldgraf
Copy link
Member

I think it's worth having a spec. Right now the myst-parser serves as a reference implementation but I don't know that we have a really clear pattern others can follow for expected behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants