emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* orgtbl-insert-matrix, embedded
@ 2017-02-19 17:20 Uwe Brauer
  2017-02-22 14:12 ` Rasmus
  0 siblings, 1 reply; 3+ messages in thread
From: Uwe Brauer @ 2017-02-19 17:20 UTC (permalink / raw)
  To: emacs-orgmode



Hi

I can use orgtbl-insert-matrix to nicely insert one matrix
resulting in
% BEGIN RECEIVE ORGTBL neu
\[
\begin{pmatrix}
8 & 8 \\
 &  \\
\end{pmatrix}
\]
% END RECEIVE ORGTBL neu
\begin{comment}
#+ORGTBL: SEND neu orgtbl-to-latex-matrix :splice nil :skip 0
| 8 | 8 |
|   |   |
\end{comment}
is there a way to insert another array into the same latex environment?

Thanks

Uwe Brauer 

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

* Re: orgtbl-insert-matrix, embedded
  2017-02-19 17:20 orgtbl-insert-matrix, embedded Uwe Brauer
@ 2017-02-22 14:12 ` Rasmus
  2017-02-26  9:01   ` Uwe Brauer
  0 siblings, 1 reply; 3+ messages in thread
From: Rasmus @ 2017-02-22 14:12 UTC (permalink / raw)
  To: emacs-orgmode

Hi Uwe,

Uwe Brauer <oub@mat.ucm.es> writes:

> I can use orgtbl-insert-matrix to nicely insert one matrix
> resulting in
> % BEGIN RECEIVE ORGTBL neu
> \[
> \begin{pmatrix}
> 8 & 8 \\
>  &  \\
> \end{pmatrix}
> \]
> % END RECEIVE ORGTBL neu
> \begin{comment}
>
> #+ORGTBL: SEND neu orgtbl-to-latex-matrix :splice nil :skip 0
> | 8 | 8 |
>
> |   |   |
> \end{comment}
> is there a way to insert another array into the same latex environment?

Something like this?

    #+ATTR_LATEX: :mode math :environment pmatrix :math-suffix \times :math-prefix \mathbf{y}=
    | a | b |
    | c | d |
    #+ATTR_LATEX: :mode math :environment pmatrix
    | 1 | 2 |
    | 3 | 4 |

See (info "(org) Tables in LaTeX export"):

    http://orgmode.org/org.html#Tables-in-LaTeX-export

Rasmus

-- 
Even a three-legged dog has three good legs to lose

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

* Re: orgtbl-insert-matrix, embedded
  2017-02-22 14:12 ` Rasmus
@ 2017-02-26  9:01   ` Uwe Brauer
  0 siblings, 0 replies; 3+ messages in thread
From: Uwe Brauer @ 2017-02-26  9:01 UTC (permalink / raw)
  To: emacs-orgmode

>>> "Rasmus" == Rasmus  <rasmus@gmx.us> writes:

    >     #+ATTR_LATEX: :mode math :environment pmatrix :math-suffix \times
    > :math-prefix \mathbf{y}=
    >     | a | b |
    >     | c | d |
    >     #+ATTR_LATEX: :mode math :environment pmatrix
    >     | 1 | 2 |
    >     | 3 | 4 |

This does not work for me in a latex buffer. In my example I used
orgtbl-mode in latex buffer. I am not talking about exporting from a org
buffer to latex buffer. But may be I misunderstood you.

Uwe 

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

end of thread, other threads:[~2017-02-26  9:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-19 17:20 orgtbl-insert-matrix, embedded Uwe Brauer
2017-02-22 14:12 ` Rasmus
2017-02-26  9:01   ` 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).