% Created 2023-05-24 mer. 11:50 % Intended LaTeX compiler: lualatex \documentclass[11pt]{article} \usepackage{graphicx} \usepackage{longtable} \usepackage{wrapfig} \usepackage{rotating} \usepackage[normalem]{ulem} \usepackage{amsmath} \usepackage{amssymb} \usepackage{capt-of} \usepackage{hyperref} \usepackage{minted} \usepackage{fontspec} \setmonofont{Unifont} \date{\today} \title{} \hypersetup{ pdfauthor={Emmanuel Charpentier}, pdftitle={}, pdfkeywords={}, pdfsubject={}, pdfcreator={Emacs 28.2 (Org mode 9.6.6)}, pdflang={English}} \begin{document} I want to use APL `src` blocks in an Org document. This can be done by using \href{https://www.dyalog.com/}{Dyalog APL} interpreter though \href{https://github.com/emacs-jupyter/jupyter}{jupyter-emacs} and the Dyalog \href{https://github.com/Dyalog/dyalog-jupyter-kernel}{jupyter kernel}. This apparently works : \begin{minted}[]{apl} ⍳7 \end{minted} But, no matter what I try to use as parameters, Dyalog's kernel returns an HTML block, which exports to HTML successfully (of course) but \emph{not} to \LaTeX{} nor `.odt`/`docx` or even `Unicode text`. A glimpse at the kernel's source code (partially in APL, beware !) suggests that's a \emph{feature} of this kernel, which returns either HTML or graphics (which I didn't (yet) attempt to use). I then attempted to work around this (mis)feature by converting the HTML block to text, using this Stackoverflow \href{https://stackoverflow.com/questions/64796235/html-to-text-conversion-in-emacs}{suggestion} : \begin{minted}[]{common-lisp} (with-temp-buffer (insert data) (shr-render-region (point-min) (point-max)) (buffer-substring-no-properties (point-min) (point-max))) \end{minted} The conversion works fine : \begin{minted}[]{apl} ⍳7 \end{minted} but what \emph{enrages} me is that the (correct) result is still wrapped in an HTML block ; again, I have been unable to obtain a "normal" output. Can someone suggest a way to transform an HTML export block to a normal output ? \end{document}