Re: [O] Change color for two words in LaTeX export using cologr package?
Fabrice Niessen writes: > I've begun writing such generic macros for basic and advanced formatting > (see [1]), though they are currently limited to the HTML backend: LaTeX has textcolor via (x)xcolor (AFAIR). odt it probably pretty easy to get from LO trials. Rasmus -- This space is left intentionally blank
Re: [O] Change color for two words in LaTeX export using cologr package?
Hello, Rainer M Krug writes: > Eric S Fraga writes: >> On Friday, 24 Jul 2015 at 15:07, Rainer M Krug wrote: >>> In an org document, I want to change the text colour of two words >>> {\color{red} red line } to red in a sentence and the rest should be >>> normal colour. >>> >>> I am missing something, as this changes the text colour for the rest >>> of the sentence into red. How can I only change the colour of the >>> two words? >> >> I usually do this type of thing as follows: >> >> #+latex: {\color{red} >> red line >> #+latex: } >> >> which allows for org-isms in the text. Alternatively, you could do: >> >> ... @@latex:{\color{red} red line}@@ >> >> if you don't need to use org syntax within the {}. > > Thanks - I will try it out on Monday. But it looks good. Or, use a macro "color"... I've begun writing such generic macros for basic and advanced formatting (see [1]), though they are currently limited to the HTML backend: #+MACRO: color @@html:$2@@ I'll update that particular one in the coming hours or days. Best regards, Fabrice Footnotes: [1] https://github.com/fniessen/org-macros -- Fabrice Niessen Leuven, Belgium http://www.pirilampo.org/
Re: [O] Change color for two words in LaTeX export using cologr package?
Eric S Fraga writes: > On Friday, 24 Jul 2015 at 15:07, Rainer M Krug wrote: >> Hi >> >> In an org document, I want to change the text colour of two words >> {\color{red} red line } to red in a sentence and the rest should be >> normal colour. >> >> I am missing something, as this changes the text colour for the rest of >> the sentence into red. How can I only change the colour of the two >> words? > > I usually do this type of thing as follows: > > #+latex: {\color{red} > red line > #+latex: } > > which allows for org-isms in the text. Alternatively, you could do: > > ... @@latex:{\color{red} red line}@@ > > if you don't need to use org syntax within the {}. Thanks - I will try it out on Monday. But it looks good. Thanks, Rainer -- 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: rai...@krugs.de Skype: RMkrug PGP: 0x0F52F982 signature.asc Description: PGP signature
Re: [O] Change color for two words in LaTeX export using cologr package?
On Friday, 24 Jul 2015 at 15:07, Rainer M Krug wrote: > Hi > > In an org document, I want to change the text colour of two words > {\color{red} red line } to red in a sentence and the rest should be > normal colour. > > I am missing something, as this changes the text colour for the rest of > the sentence into red. How can I only change the colour of the two > words? I usually do this type of thing as follows: #+latex: {\color{red} red line #+latex: } which allows for org-isms in the text. Alternatively, you could do: ... @@latex:{\color{red} red line}@@ if you don't need to use org syntax within the {}. -- : Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.1, Org release_8.3beta-1293-g985420
[O] Change color for two words in LaTeX export using cologr package?
Hi In an org document, I want to change the text colour of two words {\color{red} red line } to red in a sentence and the rest should be normal colour. I am missing something, as this changes the text colour for the rest of the sentence into red. How can I only change the colour of the two words? Thanks, Rainer -- 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: rai...@krugs.de Skype: RMkrug PGP: 0x0F52F982 signature.asc Description: PGP signature