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

feature request: compile only some output formats #25

Open
joshuahhh opened this issue Aug 25, 2022 · 3 comments
Open

feature request: compile only some output formats #25

joshuahhh opened this issue Aug 25, 2022 · 3 comments

Comments

@joshuahhh
Copy link
Collaborator

LaTeX output is slow, so I'd like a way to only compile HTML output as I'm writing. I can comment out the "latex" section in the metadata, but this clobbers my collaborators' environments. It would be nicer if there were a command-line argument to specify (as an override) which output formats I want – or something like that.

@jheer
Copy link
Member

jheer commented Aug 25, 2022

I agree this would be helpful. Any thoughts on command line syntax?

For example, maybe something like this?

lpub —suppress-output=latex [file]

@joshuahhh
Copy link
Collaborator Author

joshuahhh commented Aug 25, 2022

That sounds fine!

Or the positive form: lpub --output=html [file]?

Or the unnecessarily galaxy-brain alternative: lpub --patch-meta='[{"op": "remove", "path": "/output/latex"}]'? (That's a JSON Patch spec for modifying the document's meta block. Totally general! Galactically brained!)

@joshuahhh
Copy link
Collaborator Author

Related anecdote -- I just found myself setting minify: true in HTML options in order to speed up compilation. Another temporary dev-mode setting!

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

No branches or pull requests

2 participants