Re: [matlab src is always exported to latex!!]

2020-10-13 Thread Uwe Brauer
>>> "ESF" == Eric S Fraga writes: > On Tuesday, 13 Oct 2020 at 14:56, Uwe Brauer wrote: > "DZ" == Diego Zamboni writes: >>> #+begin_src octave :exports results :results output raw >> >> That's it. That solves it, thanks so my function is not necessary. Good >> to know > The problem with =r

Re: [matlab src is always exported to latex!!]

2020-10-13 Thread Eric S Fraga
On Tuesday, 13 Oct 2020 at 14:56, Uwe Brauer wrote: "DZ" == Diego Zamboni writes: >> #+begin_src octave :exports results :results output raw > > That's it. That solves it, thanks so my function is not necessary. Good > to know The problem with =raw= is that you may find you have to manually

Re: [matlab src is always exported to latex!!]

2020-10-13 Thread Uwe Brauer
>>> "DZ" == Diego Zamboni writes: Hi Diego > Uwe, > In my testing (using octave since I don't have matlab, but I hope it's > similar), using = :exports none :results output raw= seems to produce the > desired output: > #+begin_src octave :exports results :results output raw That's it. That so

Re: [matlab src is always exported to latex!!]

2020-10-13 Thread Diego Zamboni
Uwe, In my testing (using octave since I don't have matlab, but I hope it's similar), using = :exports none :results output raw= seems to produce the desired output: #+begin_src octave :exports results :results output raw close all N = 3; % number of chebyshev nodes n = 1; % polytropic index iter

Re: [matlab src is always exported to latex!!]

2020-10-13 Thread Uwe Brauer
>>> "AB" == Arne Babenhauserheide writes: > Uwe Brauer writes: >> 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 > Do you use :exports results? > :results output switches to sh

Re: [matlab src is always exported to latex!!]

2020-10-13 Thread Uwe Brauer
>>> "ESF" == Eric S Fraga writes: > On Tuesday, 13 Oct 2020 at 09:26, Uwe Brauer wrote: >> 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 > If you want the output only, you also need

Re: [matlab src is always exported to latex!!] (was: org mode with babel source: execute all source blocks, don't export them to latex)

2020-10-13 Thread Dr. Arne Babenhauserheide
Uwe Brauer writes: > 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 Do you use :exports results? :results output switches to show what is printed to stdout Best wishes, Arne -- Unp

Re: [matlab src is always exported to latex!!]

2020-10-13 Thread Eric S Fraga
On Tuesday, 13 Oct 2020 at 09:26, Uwe Brauer wrote: > 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 If you want the output only, you also need to add ":exports results". -- : Eric S Fra

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

2020-10-13 Thread Uwe Brauer
> 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

[matlab src is always exported to latex!!] (was: org mode with babel source: execute all source blocks, don't export them to latex)

2020-10-13 Thread Uwe Brauer
Hi Diego Thanks for the quick answer > Hi Uwe, > 1. Is there any equivalent to org-update-all-dblocks for the source > I think you want org-babel-execute-buffer: Right, thanks!!! > Documentation > Call org-babel-execute-src-block on every source block in > the current buffer. > 2.