[go: nahoru, domu]

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

Create HTML export #360

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

MilesCranmer
Copy link
Contributor
@MilesCranmer MilesCranmer commented May 2, 2023

This creates a new command:

showyourwork html

which uses LaTeXML to convert the manuscript to an HTML version. It uses @dginev's https://github.com/dginev/ar5ivist which is a good set of defaults and css files (same settings used in ar5iv.org).

In particular it uses the ar5ivist docker image, so if a user wants to use this, they need to have docker setup. There's currently no conda-forge implementation of latexml, so this is the only option.

I could also create a GitHub action for this if it's of interest. In theory you could have a GitHub pages be generated for any SYW paper hosted on GitHub.

@dfm wdyt? I know you are interested in mystjs as well so I'll just point out that this would not rule out mystjs integration; they could definitely be integrated in some way. This is just a LaTeX -> HTML converter that works on the exact same input files.


This would likely be better suited as a plugin or a .contrib but I found it really difficult to get it working this way due to the "spooky action at a distance" import structure in the .smk files. This seems like the only option for right now. Maybe we can refactor things later so that plugins/user-defined postprocessing is possible.


Fixes #321

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

Successfully merging this pull request may close these issues.

optional build of html files
2 participants