From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: How to export LaTeX amsmath align bmatrix to ODT? Date: Wed, 14 Jun 2017 16:10:21 +0200 Message-ID: <87poe6irsi.fsf@nicolasgoaziou.fr> References: <053c5f245be78d9dd8952c300c6b192b@openmail.cc> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44954) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dL906-0006RP-Vi for emacs-orgmode@gnu.org; Wed, 14 Jun 2017 10:10:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dL905-00041W-Oc for emacs-orgmode@gnu.org; Wed, 14 Jun 2017 10:10:26 -0400 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:54581) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dL905-00041H-IV for emacs-orgmode@gnu.org; Wed, 14 Jun 2017 10:10:25 -0400 In-Reply-To: (edgar@openmail.cc's message of "Mon, 12 Jun 2017 21:36:09 +0000") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: edgar@openmail.cc Cc: emacs-orgmode@gnu.org Hello, edgar@openmail.cc writes: > On 2017-06-10 05:13, edgar@openmail.cc wrote: >> On 2017-06-10 04:54, edgar@openmail.cc wrote: >>> Hello, >>> >>> I have been making progress with my export procedure to ODT. I would >>> like to know if someone knows how to export the following LaTeX block >>> to ODT correctly: >>> >>> \[\begin{align} \begin{bmatrix} a = 1 & b=2 \\ c=3 & d = 4 >>> \end{bmatrix} \end{align}\] >>> https://www.vfemail.net/roundcube/?_task=mail&_action=compose&_id=289067995593b7fd683a1f# >>> \[\begin{align} a = & 1 + 2 + 3 + 4 \\ c = & 4 \end{bmatrix} >>> \end{align}\] I'm a bit lost here. In particular, I'm able to export the example above out-of-the-box, provided I add "#+options: tex:dvipng" or some such in the document. > For the record, I had modified org-preview-latex-process-alist to get > custom symbols, and this got in the way of the LaTeX bmatrix > environment (I don't know how; I was loading a file with > with :latex-header as "\\input{preamble.tex}"). > > My partial answer (it is partial, because the \tensor preview renders > in a different color than the rest of symbols): Instead of modifying > org-preview-latex-process-alist, the answer I modified > org-format-tex-header. I added the following at the end of M-x > customize-variable org-format-tex-header (I leave it here for > posterity; I added some symbols: tensor, derivative, vector, Roman > numeral, etc.) I don't think you need to modify `org-format-latex-header' at all. There is `org-latex-packages-alist' for that. So, is there a bug in the ODT export back-end? If so, could you post an ECM? Loads of LaTeX code doesn't help understanding the issue. Regards, -- Nicolas Goaziou