* change tables to matrix when importing, including expressions.
@ 2019-06-13 13:26 Uwe Brauer
2019-06-13 17:23 ` Berry, Charles
2019-06-13 20:10 ` Nick Dokos
0 siblings, 2 replies; 4+ messages in thread
From: Uwe Brauer @ 2019-06-13 13:26 UTC (permalink / raw)
To: emacs-orgmode
Hi
I know that
#+begin_src
#+attr_latex: :mode math :environment matrix
| 0 | -5 |
| 5 | 0 |
#+end_src
Results in
#+begin_src
\[
\begin{matrix}
0 & -5 \\
5 & 0 \\
\end{matrix}
\]
#+end_src
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?
Thanks and regards
Uwe Brauer
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: change tables to matrix when importing, including expressions.
2019-06-13 13:26 change tables to matrix when importing, including expressions Uwe Brauer
@ 2019-06-13 17:23 ` Berry, Charles
2019-06-13 17:28 ` Uwe Brauer
2019-06-13 20:10 ` Nick Dokos
1 sibling, 1 reply; 4+ messages in thread
From: Berry, Charles @ 2019-06-13 17:23 UTC (permalink / raw)
To: Uwe Brauer; +Cc: emacs-orgmode@gnu.org
[snip]
> On Jun 13, 2019, at 6:26 AM, Uwe Brauer <oub@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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: change tables to matrix when importing, including expressions.
2019-06-13 13:26 change tables to matrix when importing, including expressions Uwe Brauer
2019-06-13 17:23 ` Berry, Charles
@ 2019-06-13 20:10 ` Nick Dokos
1 sibling, 0 replies; 4+ messages in thread
From: Nick Dokos @ 2019-06-13 20:10 UTC (permalink / raw)
To: emacs-orgmode
Uwe Brauer <oub@mat.ucm.es> writes:
> 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
>
#+attr_latex: :mode math :environment matrix :math-prefix D=
perhaps?
--
Nick
"There are only two hard problems in computer science: cache
invalidation, naming things, and off-by-one errors." -Martin Fowler
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-06-13 20:10 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-06-13 13:26 change tables to matrix when importing, including expressions Uwe Brauer
2019-06-13 17:23 ` Berry, Charles
2019-06-13 17:28 ` Uwe Brauer
2019-06-13 20:10 ` Nick Dokos
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.