emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* export to latex: begin_example gets exported to verbatim (
@ 2022-05-12  7:13 Uwe Brauer
  2022-05-12  7:27 ` Uwe Brauer
  2022-05-12  7:31 ` Eric S Fraga
  0 siblings, 2 replies; 6+ messages in thread
From: Uwe Brauer @ 2022-05-12  7:13 UTC (permalink / raw)
  To: emacs-orgmode


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. 



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-05-12 10:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-12  7:13 export to latex: begin_example gets exported to verbatim ( Uwe Brauer
2022-05-12  7:27 ` 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

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).