emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: John Kitchin <jkitchin@andrew.cmu.edu>
To: org-mode-email <emacs-orgmode@gnu.org>
Subject: Re: org babel: %% [removed source block]
Date: Thu, 29 Nov 2018 08:46:25 -0500	[thread overview]
Message-ID: <CAJ51ETrGr-=Z6XAb6kMrL=kADpxQnJ9fGNdj3=N=-YJjwqW=Zw@mail.gmail.com> (raw)
In-Reply-To: <87r2f4ggwc.fsf@mat.ucm.es>

[-- Attachment #1: Type: text/plain, Size: 1357 bytes --]

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 <oub@mat.ucm.es> wrote:

> >>> "Eric" == Eric S Fraga <esflists@gmail.com> 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<nmaxit
>     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}
>

[-- Attachment #2: Type: text/html, Size: 2185 bytes --]

  reply	other threads:[~2018-11-29 13:45 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-29 11:38 org babel: %% [removed source block] Uwe Brauer
2018-11-29 13:03 ` Eric S Fraga
2018-11-29 13:19   ` Uwe Brauer
2018-11-29 13:46     ` John Kitchin [this message]
2018-11-29 15:16       ` Uwe Brauer
2018-11-29 15:18       ` Uwe Brauer
2018-11-29 15:24       ` Uwe Brauer
2018-11-29 16:32 ` Berry, Charles
2018-11-29 16:57   ` Uwe Brauer
2018-11-29 17:25     ` John Kitchin
2018-11-29 17:27   ` [SOLVED] (was: org babel: %% [removed source block]) Uwe Brauer
2018-11-29 22:20     ` [SOLVED] Nick Dokos

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAJ51ETrGr-=Z6XAb6kMrL=kADpxQnJ9fGNdj3=N=-YJjwqW=Zw@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 public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).