[snip]

> On Jun 13, 2019, at 6:26 AM, Uwe Brauer <o...@mat.ucm.es> wrote:
> 
> 
> However I would like 
> #+begin_src 
> #+attr_latex: :mode math :environment matrix
> D=
> | 0 | -5 |
> | 5 |  0 |
> #+end_src
> 
> To be exported as 
> 
> #+begin_src 
> \[
> D=
> \begin{matrix}
> 0 & -5 \\
> 5 & 0 \\
> \end{matrix}
> \]
> #+end_src
> 
> How can I do that? 


This is morally equivalent:


#+attr_latex: :mode math :math-prefix D= :environment matrix
| 0 | -5 |
| 5 |  0 |


There will be no newline between the '=' and the '\begin'. If that is something 
you truly need you will have to add a filter. See (info "(org) Advanced Export 
Configuration").

HTH,

Chuck

Reply via email to