I am not sure the correct terminology but I find that web/html sources that contain large amounts of math formula using MathJax do not get converted to HTML archive or PDF with all formula converted.
I have tried grabbing a bookmark, then converting the bookmark to an HTML archive or a PDF. Some formula are left as source in both cases. I have tried grabbing HTML, then converting the HTML to an HTML archive or PDF. The results were the same. I have tried grabbing the page as a PDF. The results were the same. (I get the same results with every DEVONthink method.)
In one example I noticed that the final PDF contained the following message at the bottom.
So far the only way I have been able to produce a fully converted PDF and import to DEVONthink was to tell Safari to export the page to a PDF, then import the fully converted PDF to DEVONthink.
It looks like DEVONthink is not waiting until all the MathJAX javascript has completed before performing the conversion.
Yes, I think that is the cause of the slow rendering. What I would like to do is see if there is a way that I could cause DEVONthink to wait until the HTML page has been fully rendered, regardless of how long it takes, before attempting to convert to a static format like a PDF.
For some reason when I export from Safari directly to PDF, Safari waits until the page is fully rendered before converting to PDF, but DEVONthink does not.
DEVONthink waits actually until the page is completely loaded or until the connection times out. In case of dynamic pages loading contents after delays and/or after user actions (e.g. scrolling) this might not always work though.
I experience a similar problem when trying to export web pages with MathJax content to DEVONthink as PDF (one page). In my case, the MathJax content is just ignored (i.e., I don’t see the math in MathJax syntax, but just blank). Weirdly enough, the same page worked to export with embedded formulas earlier today (albeit always displaying MathJax formulas twice), but does not anymore: http://www.metafor-project.org/doku.php/tips:rma_vs_lm_lme_lmer?s%5B%5D=lme4 (I can’t include full links as this is my first post)
As far as I can see, I have a good internet connection. Do you have any suggestions on how to make sure that MathJax is rendered and included in the PDF? Thanks!
Capturing the website in DEVONthink indeed solves the problem. So, would you suggest the following workflow?
use “Clip to DEVONthink” to save webpage as bookmark
convert to PDF in DEVONthink
delete bookmark
Seems a little cumbersome, but definitely preferable to having to worry that math isn’t translated. Maybe I could automate this using AppleScript?!
If the developers could come up with a way to reliably parse and convert MathJax containing webpages, that would be great! Maybe the simplest solution would be to implement something like the above internally (i.e., save as temporary bookmark and parse/convert in DEVONthink).
You’re welcome.
You can clip a bookmark or drag and drop the address from the browser into DEVONthink.
I do a lot of web access in DEVONthink and clip there too.
Okay, I know that one can use DEVONthink to browse from a given anchor point / representation like a bookmark. But is it possible to just have a browser window in DEVONthink in which one could type in / paste any URL and would be taken to that site without first having to create a bookmark? (that would allow to skip step 1 above). Thank you!