emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Uwe Brauer <oub@mat.ucm.es>
To: emacs-orgmode@gnu.org
Subject: Re: export to latex: begin_example gets exported to verbatim (
Date: Thu, 12 May 2022 09:27:48 +0200	[thread overview]
Message-ID: <87pmkjb47f.fsf@mat.ucm.es> (raw)
In-Reply-To: 87v8ubb4ul.fsf@mat.ucm.es

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

>>> "UB" == Uwe Brauer <oub@mat.ucm.es> writes:

> Hi

> Please consider 

> * matlab :results output src :exports results: exports code  :eval never-export

> #+begin_src matlab :results output src :exports results: exports code  :eval never-export
> clear all
> A=[1 1 0; 0 1 0; 0 1 1];
> B=[0 1; 1 0; 0 1];
> C=[1 1 1];
> D=0;
> sys=ss(A,B,C,D)
> #+end_src


> #+RESULTS:

> #+begin_example

> sys =
 
>   A = 
>        x1  x2  x3
>    x1   1   1   0
>    x2   0   1   0
>    x3   0   1   1

> #+end_example

> When I export this to latex, I obtain

> \begin{verbatim}

> sys =
 
>   A = 
>        x1  x2  x3
>    x1   1   1   0
>    x2   0   1   0
>    x3   0   1   1

> \end{verbatim}

Of course I can always add

#+ATTR_LATEX: :environment lstlisting

After I executed the code, but this is a bit cumbersome

[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5673 bytes --]

  reply	other threads:[~2022-05-12  7:29 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-12  7:13 export to latex: begin_example gets exported to verbatim ( Uwe Brauer
2022-05-12  7:27 ` Uwe Brauer [this message]
2022-05-12  7:31 ` Eric S Fraga
2022-05-12  8:05   ` Uwe Brauer
2022-05-12  8:52     ` Juan Manuel Macías
2022-05-12 10:02       ` 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

  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=87pmkjb47f.fsf@mat.ucm.es \
    --to=oub@mat.ucm.es \
    --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).