jupyterlab / jupyter-renderers

Renderers and renderer extensions for JupyterLab
BSD 3-Clause "New" or "Revised" License
490 stars 77 forks source link

katex: change options #238

Closed alexlenail closed 3 years ago

alexlenail commented 3 years ago

katex renders cells with some default options:

https://github.com/jupyterlab/jupyter-renderers/blob/098237f6af16c498e1310a5d0969162ebc96bd60/packages/katex-extension/src/autorender.ts#L195-L207

I'd like to add an option:

globalGroup: true

I'm happy to add that option globally. What it does is permits latex macros (\newcommand) to be applied across cells.

Once I've installed

jupyter labextension install @jupyterlab/katex-extension

where can I find the source of this extension in order to add this configuration option? Alternatively, is there a better way?

alexlenail commented 3 years ago

I followed the install instructions, made my edits, and it works. You can close this issue.

However, I suggest adding

globalGroup: true

as a default in this package. It isn't clear to me why you wouldn't want it.