jkitchin / ox-ipynb

org-mode exporter to Jupyter notebooks
170 stars 39 forks source link

#+begin_export latex is not exported #41

Closed Morazotti closed 3 years ago

Morazotti commented 3 years ago

Whenever I need a pure \LaTeX environment, I'm used to use it with

#+begin_export latex
<...>
#+end_export, 

as I can freely move to an org-src-mode window, allowing auctex keybindings, yasnippets snippets and such. However, if I export an org file to ipynb with these export blocks, they get supressed from the output. Is there a workaround (other than removing those block headers)? Thanks.

jkitchin commented 3 years ago

I don't see a way around that, that is pretty specific to latex exports. The only thing I can think of is a pre-processing hook to replace those blocks with something else that looks more like equations or latex environments.

Morazotti commented 3 years ago

Well, that's all right. The export blocks are used together with \begin{align}, so there is little hassle to remove all block structure from file using macros, while keeping latex stuff. In any case, thank you! Big fan of the project, and the other various utilities.