From: Uwe Brauer <oub@mat.ucm.es>
To: emacs-orgmode@gnu.org
Subject: export to latex: begin_example gets exported to verbatim (
Date: Thu, 12 May 2022 09:13:54 +0200 [thread overview]
Message-ID: <87v8ubb4ul.fsf@mat.ucm.es> (raw)
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}
But I would prefer
\begin{lstlisting}
sys =
A =
x1 x2 x3
x1 1 1 0
x2 0 1 0
x3 0 1 1
\end{lstlisting}
Any idea how?
Thanks and regards
Uwe Brauer
--
I strongly condemn Putin's war of aggression against the Ukraine.
I support to deliver weapons to Ukraine's military.
I support the ban of Russia from SWIFT.
I support the EU membership of the Ukraine.
next reply other threads:[~2022-05-12 7:17 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-12 7:13 Uwe Brauer [this message]
2022-05-12 7:27 ` export to latex: begin_example gets exported to verbatim ( Uwe Brauer
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=87v8ubb4ul.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).