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
In latexify_py/examples/examples.ipynb, it would be useful to include in one of the examples the option to print to a .tex file.
Ideas of the solution
This feature could involve redefining stdout to a .tex file, or by opening a new .tex file and writing the output of a latexify function to the new .tex file.
Additional context
This feature would allow more ease of use for the client who wishes to paste the tex output to a Latex editor.
The text was updated successfully, but these errors were encountered:
Hi @odashi, thank you for your response! I came to this repository as a potential user - I love the product. I initially envisioned the use case of exporting python functions to a research paper drafted in latex. I exist as a subset of users who are much more familiar with latex than they are with python.
I'm considering the example use-case of someone, perhaps in academia, who wants to export a colleague's code to a research draft. That said, your proposed example for exporting to a file would be a better fix. I also tend to agree that for most users familiar with python this example would be trivial. I think this change is minor, but also better communicates this product to others. Let me know your thoughts, and I'm open to modifying my pull-request or resubmitting.
@ctarnold Thanks for sharing your thought! Okay let's add this snippet into the example.
As the current pull request contains a bit redundant code, I'd be happy if the pull request adopted the above implementation instead.
Description
In latexify_py/examples/examples.ipynb, it would be useful to include in one of the examples the option to print to a .tex file.
Ideas of the solution
This feature could involve redefining stdout to a .tex file, or by opening a new .tex file and writing the output of a latexify function to the new .tex file.
Additional context
This feature would allow more ease of use for the client who wishes to paste the tex output to a Latex editor.
The text was updated successfully, but these errors were encountered: