Re: [O] org babel: %% [removed source block]
Have you tried this with an emacs -q? Your examples work as expected in emacs -q for me. John --- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu On Thu, Nov 29, 2018 at 11:58 AM Uwe Brauer wrote: > >>> "Berry," == Berry, Charles writes: > >> I cannot reproduce your export issue with org 9.1.14. >> You need to provide more details. > > Ok, I searched already my custom settings. >> Perhaps you have a header-arg set that you have not told us about? > >> What does C-c C-v C-i report when point is in each of your source > blocks? I get > >> Lang: matlab >> Properties: >>:header-argsnil >>:header-args:matlab nil >> Header Arguments: >>:cache no >>:exportscode >>:hlines no >>:noweb no >>:padlineno >>:resultsnone >>:sessionnone >>:tangle test.m > > > Her is my output > > The only difference I can find is the results/replace entry. > > Not sure what to do. > > > Lang: matlab > Properties: > :header-argsnil > :header-args:matlab nil > Header Arguments: > :cache no > :exportscode > :hlines no > :noweb no > :padlineno > :resultsreplace > :sessionnone > :tangle test.m >
Re: [O] org babel: %% [removed source block]
>>> "Berry," == Berry, Charles writes: > I cannot reproduce your export issue with org 9.1.14. > You need to provide more details. Ok, I searched already my custom settings. > Perhaps you have a header-arg set that you have not told us about? > What does C-c C-v C-i report when point is in each of your source blocks? I get > Lang: matlab > Properties: >:header-argsnil >:header-args:matlab nil > Header Arguments: >:cache no >:exportscode >:hlines no >:noweb no >:padlineno >:resultsnone >:sessionnone >:tangle test.m Her is my output The only difference I can find is the results/replace entry. Not sure what to do. Lang: matlab Properties: :header-argsnil :header-args:matlab nil Header Arguments: :cache no :exportscode :hlines no :noweb no :padlineno :resultsreplace :sessionnone :tangle test.m smime.p7s Description: S/MIME cryptographic signature
Re: [O] org babel: %% [removed source block]
I cannot reproduce your export issue with org 9.1.14. You need to provide more details. Perhaps you have a header-arg set that you have not told us about? What does C-c C-v C-i report when point is in each of your source blocks? I get Lang: matlab Properties: :header-argsnil :header-args:matlab nil Header Arguments: :cache no :exportscode :hlines no :noweb no :padlineno :resultsnone :sessionnone :tangle test.m for the first. HTH, Chuck > On Nov 29, 2018, at 3:38 AM, Uwe Brauer wrote: > > > Hi > > I have the following org file > #+BEGIN_SRC matlab :tangle test.m :padline no :results none > function [ll x]=mitest(A0,x0) > % initialization > format long > epsi=1.e-3; > nit=0; > nmaxit=200; > Delta=10; > A=A0; > while Delta>epsi & nitnit=nit+1; % counter > #+END_SRC > > The basic idea is. > That we do. > We also will > > #+BEGIN_SRC matlab :tangle test.m :padline no >y=A*x0; > end > #+END_SRC > > Now org-babel-tangle works nicely, but when I try to export the org file > to latex via org-export-dispatch > > I obtain a latex file in which the source code is removed. > > What do I miss?? > > > I am asked in the export process whether I want to evaluate the code, > which I don't since it is a simple function not a code to be evaluated. > > >
Re: [O] org babel: %% [removed source block]
>>> "John" == John Kitchin writes: > Maybe you need :exports and not :export. > John I tried also lisp #+begin_src elisp :tangle test.el :exports code :padline no (require 'ob-ipython) (setq org-confirm-babel-evaluate t) ;don't prompt me to confirm everytime I want to evaluate a block ;;; display/update images in the buffer after I evaluate (add-hook 'org-babel-after-execute-hook 'org-display-inline-images 'append) #+end_src The basic idea is. That we do. We also will #+begin_src elisp :tangle test.el :exports code :padline no (defun org-babel-execute:matlab-org (body params) "Execute a block of matlab code with Babel." (org-babel-execute:octave body params 'matlab)) #+end_src But no, when exporting to latex the source code is removed. smime.p7s Description: S/MIME cryptographic signature
Re: [O] org babel: %% [removed source block]
>>> "John" == John Kitchin writes: > Maybe you need :exports and not :export. > John I also see Code block produced no output. org-babel-exp process matlab at position 250... smime.p7s Description: S/MIME cryptographic signature
Re: [O] org babel: %% [removed source block]
>>> "John" == John Kitchin writes: > Maybe you need :exports and not :export. > John I tried #+begin_src matlab :tangle test.m :exports code :padline no function [ll x]=mitest(A0,x0) % initialization format long epsi=1.e-3; nit=0; nmaxit=200; Delta=10; A=A0; while Delta>epsi & nit smime.p7s Description: S/MIME cryptographic signature
Re: [O] org babel: %% [removed source block]
Maybe you need :exports and not :export. John --- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu On Thu, Nov 29, 2018 at 8:20 AM Uwe Brauer wrote: > >>> "Eric" == Eric S Fraga writes: > >> On Thursday, 29 Nov 2018 at 12:38, Uwe Brauer wrote: >>> Now org-babel-tangle works nicely, but when I try to export the org >>> file to latex via org-export-dispatch > >> I think the default is >> :exports results >> so you what you want is either >> :exports both >> or >> :exports code > > Thanks, but I tried > #+begin_src matlab :tangle test.m :export code :wrap latex :padline no > function [ll x]=mitest(A0,x0) > % initialization > format long > epsi=1.e-3; > nit=0; > nmaxit=200; > Delta=10; > A=A0; > while Delta>epsi & nit nit=nit+1; % counter > #+end_src > > The basic idea is. > That we do. > We also will > > #+begin_src matlab :tangle test.m :export both :wrap latex :padline no > y=A*x0; > end > #+end_src > > > And I obtain always: > \begin{document} > > %% [removed source block] > The basic idea is. > That we do. > We also will > > %% [removed source block] > \end{document} >
Re: [O] org babel: %% [removed source block]
>>> "Eric" == Eric S Fraga writes: > On Thursday, 29 Nov 2018 at 12:38, Uwe Brauer wrote: >> Now org-babel-tangle works nicely, but when I try to export the org >> file to latex via org-export-dispatch > I think the default is > :exports results > so you what you want is either > :exports both > or > :exports code Thanks, but I tried #+begin_src matlab :tangle test.m :export code :wrap latex :padline no function [ll x]=mitest(A0,x0) % initialization format long epsi=1.e-3; nit=0; nmaxit=200; Delta=10; A=A0; while Delta>epsi & nit smime.p7s Description: S/MIME cryptographic signature
Re: [O] org babel: %% [removed source block]
On Thursday, 29 Nov 2018 at 12:38, Uwe Brauer wrote: > Now org-babel-tangle works nicely, but when I try to export the org > file to latex via org-export-dispatch I think the default is :exports results so you what you want is either :exports both or :exports code -- Eric S Fraga via Emacs 27.0.50, Org release_9.1.14-1034-gafcb1d
[O] org babel: %% [removed source block]
Hi I have the following org file #+BEGIN_SRC matlab :tangle test.m :padline no :results none function [ll x]=mitest(A0,x0) % initialization format long epsi=1.e-3; nit=0; nmaxit=200; Delta=10; A=A0; while Delta>epsi & nit