Skip to content

Using lwarp on an existing latex document without modifying it #23

Answered by bdtc
tvercaut asked this question in Q&A
Discussion options

You must be logged in to vote

Lwarp wants to be loaded early, just after the fonts are set. You could try:
\AddToHook{package/lmodern/after}{\RequirePackage[mathjax]{lwarp}}
or to load immediately after the class:
\AddToHook{class/article/after}{\RequirePackage[mathjax]{lwarp}}

And to convert the PDF to HTML, use
lwarpmk html
and maybe
lwarpmk limages

I'm guessing you have a large number of files to process in bulk, thus the desire to avoid editing each file. If you can get this to work then I'll add something about it in the Lwarp docs.

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
2 replies
@tvercaut
Comment options

@tvercaut
Comment options

Answer selected by tvercaut
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@tvercaut
Comment options

@bdtc
Comment options

bdtc Mar 28, 2024
Maintainer

@tvercaut
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants