[Python] LaTeX Definitions in Google Colab

Discussão em 'Python' iniciado por Stack, Novembro 20, 2024.

  1. Stack

    Stack Membro Participativo

    I've spent the past few weeks trying to find a way to make standard definitions I use when writing in Latex be applied to a Colab project.

    It's possible to define terms within a single markdown cell a few different ways. However, I am trying to find something I could put at the top of all my projects that would load definitions across all cells. I am fine with hosting a file on github that I load or a local file of some sort, but my attempts to do this so far have been unsuccessful.

    The closest I have come has been to do this has been to use nbextensions. But because Colab doesn't have the clear interface like Jupyter Notebook, you have to enable the extension manually, which I seem to do with jupyter nbextension enable load_tex_macros/main, but even though my definitions file is in the correct place, it does not load the definitions. Besides, this solution is undesirable because I'd have to reinstall things every time I open the project.

    I know there has to be a workaround by creating a custom js file of some sort at the least. I have tried to read the MathJax documentation, but haven't been able to adopt what I need

    Continue reading...

Compartilhe esta Página