> That did not work: I tried > #+begin_src matlab :results output > But when I exported the org file to latex, the matlab code was also > exported. Strange The only solution I am aware is to have something like this (defun my-latex-filter-src-blocks (text backend info) "Remove source blocks from latex export." (when (org-export-derived-backend-p backend 'latex) "%% [removed source block]\n")) (defun my-html-filter-src-blocks (text backend info) "Remove source blocks from latex export." (when (org-export-derived-backend-p backend 'html) "%% [removed source block]\n")) (add-to-list 'org-export-filter-src-block-functions 'my-latex-filter-src-blocks) (add-to-list 'org-export-filter-src-block-functions 'my-html-filter-src-blocks)