[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] change tables to matrix when importing, including expressions.
From: |
Berry, Charles |
Subject: |
Re: [O] change tables to matrix when importing, including expressions. |
Date: |
Thu, 13 Jun 2019 17:23:32 +0000 |
[snip]
> On Jun 13, 2019, at 6:26 AM, Uwe Brauer <address@hidden> 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