From mboxrd@z Thu Jan 1 00:00:00 1970 From: edgar@openmail.cc Subject: Re: exporting LaTeX to ODT with custom symbols Date: Sun, 25 Jun 2017 00:36:16 +0000 Message-ID: <65771abe5254b90f59bfff1317f1b9ee@openmail.cc> References: <49e390855285fb66260b0a5efe205e52@openmail.cc> <87shjgw0uh.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39912) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dOvXb-00064c-Vn for emacs-orgmode@gnu.org; Sat, 24 Jun 2017 20:36:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dOvXX-00014q-0s for emacs-orgmode@gnu.org; Sat, 24 Jun 2017 20:36:39 -0400 Received: from onethreetwo.vfemail.net ([199.16.11.132]:2866 helo=vfemail.net) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dOvXW-00014b-PG for emacs-orgmode@gnu.org; Sat, 24 Jun 2017 20:36:34 -0400 In-Reply-To: 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: emacs-orgmode@gnu.org On 2017-06-05 07:00, edgar@openmail.cc wrote: > On 2017-06-04 09:36, Nicolas Goaziou wrote: >> You may want to try tweaking `org-preview-latex-process-alist'. > > Thanks. This helped! > > I leave this in case that it may be useful to others (one thing > worked, the other didn't): > > I managed to get the special symbols by > > 1. M-x customize-variable org-preview-latex-process-alist > 2. Doing [Ins] into the dvipng (or imagemagick) section > 3. typing :latex-header in the Key: field > 4. typing "\\input{./symbols.tex}" in the Value: field > > I can also change the resolution of the pictures, if I manually set > the density in the :image-converter option, but the size changes. To > fix it, I tried by > > 1. adding -scale 50\% at the end of the imagemagick (convert) string > 2. modifying the value of :image-size-adjust, and > 3. changing the scale in org-format-latex-options > > , but that did not help. I don't care too much about the resolution. I > can live with the output of dvipng. > > Thanks again! For posterity (read only if you are looking for a custom answer): I noticed that using the :latex-header option in org-preview-latex-process-alist, disables the regular heading (created through org-format-latex-header, may be?). It replaces the heading (document class, packages, etc.) with whatever the :latex-header line states. This possibly means that one could create a custom _full_ header (with document class, any other package and customisation), and load it by means of :latex-header to see previews and exporting to ODT. This is just an idea. I hope it helps someone. ------------------------------------------------- ONLY AT VFEmail! - Use our Metadata Mitigator to keep your email out of the NSA's hands! $24.95 ONETIME Lifetime accounts with Privacy Features! 15GB disk! No bandwidth quotas! Commercial and Bulk Mail Options!