[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)
smime.p7s
Description: S/MIME cryptographic signature
- org mode with babel source: execute all source blocks, don't export them to latex, Uwe Brauer, 2020/10/13
- Re: org mode with babel source: execute all source blocks, don't export them to latex, Diego Zamboni, 2020/10/13
- [matlab src is always exported to latex!!] (was: org mode with babel source: execute all source blocks, don't export them to latex), Uwe Brauer, 2020/10/13
- Re: [matlab src is always exported to latex!!] (was: org mode with babel source: execute all source blocks, don't export them to latex), Dr. Arne Babenhauserheide, 2020/10/13
- Re: [matlab src is always exported to latex!!], Uwe Brauer, 2020/10/13
- Re: [matlab src is always exported to latex!!], Diego Zamboni, 2020/10/13
- Re: [matlab src is always exported to latex!!], Uwe Brauer, 2020/10/13
- Re: [matlab src is always exported to latex!!], Eric S Fraga, 2020/10/13
- Re: [matlab src is always exported to latex!!], Uwe Brauer, 2020/10/13