From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer M Krug Subject: Re: [odt-export] Setting Text Colour for odt export Date: Fri, 20 Nov 2015 14:33:43 +0100 Message-ID: References: <87oaeo3kqa.fsf@gmx.us> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38318) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zzlp6-0002VS-67 for emacs-orgmode@gnu.org; Fri, 20 Nov 2015 08:33:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zzlp2-0002Ek-1R for emacs-orgmode@gnu.org; Fri, 20 Nov 2015 08:33:56 -0500 Received: from mail-wm0-f53.google.com ([74.125.82.53]:38000) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zzlp1-0002ET-Ry for emacs-orgmode@gnu.org; Fri, 20 Nov 2015 08:33:51 -0500 Received: by wmec201 with SMTP id c201so21281386wme.1 for ; Fri, 20 Nov 2015 05:33:51 -0800 (PST) In-Reply-To: <87oaeo3kqa.fsf@gmx.us> (rasmus@gmx.us's message of "Fri, 20 Nov 2015 13:42:53 +0100") 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Rasmus Cc: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Rasmus writes: > Hi, > > Rainer M Krug writes: > >> I am using=20 >> >> \color{red} some red text \color{black} and we continue with black >> >> to set the text colour for sections in my document for LaTeX export, but >> this does obviously does not org for odt export. >> >> What can I use to achieve the same for odt export? > > You can use a macro. {{{color(text, red)}}}. You then specify a macro > that inserts > > @@latex:{\color{red} text}@@@@odt:text@@, OK - that looks nice. Where can I read more about the @@...@@ syntax in org? For conditional backend specific syntax I was only using =2D-8<---------------cut here---------------start------------->8--- #+MACRO: clearpage (eval (if (org-export-derived-backend-p org-export-curre= nt-backend 'latex) "\\clearpage" "" )) =2D-8<---------------cut here---------------end--------------->8--- but the @@...@@ looks clearer to me. > > Unfortunately, it doesn=E2=80=99t seem like odt provides inline styles, s= o you may > have to add new styles for each color; see: > > https://www.gnu.org/software/emacs/manual/html_node/org/Creating-one_= 002doff-styles.html Hm. This sounds problematic, as I have to convert these to docx and send them finally to the co-authors. At the moment odt export just inserts "\color{red}" so I'll leave it for this at the moment. Thanks, Rainer > > Hope it helps, > Rasmus =2D-=20 Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,= UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax : +33 - (0)9 58 10 27 44 Fax (D): +49 - (0)3 21 21 25 22 44 email: Rainer@krugs.de Skype: RMkrug PGP: 0x0F52F982 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBCAAGBQJWTyE7AAoJENvXNx4PUvmCOHUIAO4dbQf4csCTtxg0SybQj4tH QdKA6aAl/tPcOSdAcnDqrX1+DyVd/mUK6Gy4YNf/d4fHy4qFjDF0DtQoBUBdocpI w5ccLUfWxCKL82zdailfXXK/EC/NYa5MSK2yJgywtjyOGxb6RKi3XBD7vcAGhJb6 XIOLhR3JgPgumdnGx48jwNq7q0rphNgGFgUB5e4lx94486Fh4lEGdh5NK/YahxmN LW6Rj0QD/uAPglrzmgMUHMI9VM3iuyauRhNeRnWDu2HYSRHxwzuFgHt89cZX8LyQ lD9o0mucKOp3O3VnyPcb13ZKfoN0pYCiP39QsEo0FMQrHBZB7e98svlL2s51rZQ= =pBYF -----END PGP SIGNATURE----- --=-=-=--