From: John Kitchin <jkitchin@andrew.cmu.edu>
To: org-mode-email <emacs-orgmode@gnu.org>
Subject: Re: strange output when executing matlab using babel, strange ,
Date: Fri, 31 May 2019 09:57:53 -0400 [thread overview]
Message-ID: <CAJ51ETobBbW-z_CopsWCvR2JgVr4yw5fJKh1=OWMJKwx14RHzg@mail.gmail.com> (raw)
In-Reply-To: <875zpqydo0.fsf@mat.ucm.es>
[-- Attachment #1: Type: text/plain, Size: 2253 bytes --]
I believe you are seeing org's escaping at play. It puts a comma in front
of the leading *. It must think that it is a heading in org-syntax, and so
it escapes it to avoid some issues.
I think here it is a bug since that is not a heading. can you use some
other leading character? I don't think the * have any significance in latex.
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 Fri, May 31, 2019 at 9:11 AM Uwe Brauer <oub@mat.ucm.es> wrote:
>
>
> Hi
>
> I am running Ubuntu 16.06, matlab 2018b and I am using the python
> kernel to use matlab from within org mode
>
>
> Thanks to John Kitchin, I have the following setting
>
> * Lisp setting
> #+BEGIN_SRC emacs-lisp
> (setq org-confirm-babel-evaluate nil) ;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)
>
>
> (add-to-list 'org-src-lang-modes '("matlab" . matlab))
> (setq python-shell-interpreter "python3")
>
> ;; set default headers for convenience
> (setq org-babel-default-header-args:matlab
> '((:results . "output replace")
> (:session . "matlab")
> (:kernel . "matlab")
> (:exports . "code")
> (:cache . "no")
> (:noweb . "no")
> (:hlines . "no")
> (:tangle . "no")))
>
> (defalias 'org-babel-execute:matlab 'org-babel-execute:ipython)
> (defalias 'org-babel-prep-session:matlab 'org-babel-prep-session:ipython)
> (defalias 'org-babel-matlab-initiate-session
> 'org-babel-ipython-initiate-session)
> #+END_SRC
>
>
> * The problem
>
> When I run
>
> #+begin_src matlab :results output latex :exports results :eval
> never-export
> disp('*Step 3:*')
> disp('*Step 3:* Calculate this')
> #+end_src
>
>
> On obtain
> #+RESULTS:
> #+begin_export latex
> ,*Step 3:*
> ,*Step 3:* Calculate this
> #+end_export
>
>
> Instead of
>
> #+begin_export latex
> *Step 3:*
> *Step 3:* Calculate this
> #+end_export
>
>
> Does anybody have an idea what is wrong there?
>
> Uwe Brauer
>
>
>
[-- Attachment #2: Type: text/html, Size: 3287 bytes --]
next prev parent reply other threads:[~2019-05-31 13:55 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-31 13:08 strange output when executing matlab using babel, strange , Uwe Brauer
2019-05-31 13:57 ` John Kitchin [this message]
2019-05-31 14:30 ` Uwe Brauer
2019-05-31 14:50 ` Nick Dokos
2019-05-31 14:56 ` Uwe Brauer
2019-05-31 15:59 ` John Kitchin
2019-05-31 16:46 ` Uwe Brauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAJ51ETobBbW-z_CopsWCvR2JgVr4yw5fJKh1=OWMJKwx14RHzg@mail.gmail.com' \
--to=jkitchin@andrew.cmu.edu \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.