You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’m looking to convert Jupyter notebooks with calculations rendered by handcalcs into MS Word equations. So far, I’ve been following these steps:
Display the math as MathML using MathJax.
Copy and paste it into Notepad++ to strip formatting.
Copy it again and paste it into Word.
However, I’m encountering some issues. The formatting, particularly the column indentation and text height (like varying font sizes in handcalcs-rendered equations), doesn’t transfer well. The result looks quite different from the original.
Has anyone else faced this issue, or found a more reliable process to maintain the formatting when converting equations?
The goal is to automate the conversion of the jupyter notebook to doc file.
The text was updated successfully, but these errors were encountered:
Hey, let me introduce you to Quarto. This is the perfect solution for this. Quarto translates Markdown into latex, html or word. After following the installation instructions you can create a jupyter notebook like so:
The first cell does all the formatting for the word export. You can also add a custom template (from your company for example). In this example i disabled the code input cells, so only the celloutput will be in the export.
For handcalcs, I did change the latex_block_start and end, that it follows the markdown syntax (you can also change this in your config file in your handcalcs installation).
The whole Notebook can then be exported to a .docx file, which looks like this:
Or with one button you can export the notebook to a pdf via latex, looking like this:
I’m looking to convert Jupyter notebooks with calculations rendered by handcalcs into MS Word equations. So far, I’ve been following these steps:
However, I’m encountering some issues. The formatting, particularly the column indentation and text height (like varying font sizes in handcalcs-rendered equations), doesn’t transfer well. The result looks quite different from the original.
Has anyone else faced this issue, or found a more reliable process to maintain the formatting when converting equations?
The goal is to automate the conversion of the jupyter notebook to doc file.
The text was updated successfully, but these errors were encountered: