emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[solution of sorts] (was: [matlab src is always exported to latex!!])


From: Uwe Brauer
Subject: [solution of sorts] (was: [matlab src is always exported to latex!!])
Date: Tue, 13 Oct 2020 10:31:24 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)




> 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)


Attachment: smime.p7s
Description: S/MIME cryptographic signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]