emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Document containing different text colours?
@ 2020-08-05 12:37 Sharon Kimble
  2020-08-05 18:29 ` Diego Zamboni
  2020-08-06 18:35 ` Bo Grimes
  0 siblings, 2 replies; 7+ messages in thread
From: Sharon Kimble @ 2020-08-05 12:37 UTC (permalink / raw)
  To: emacs-orgmode

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512


In a book that I am writing, the text is white on black background which
I like. But this is only the first draft, when its ready I shall go onto
the second draft and then third draft, as many as necessary to polish
the book before it goes to the beta-readers.

So the first draft is white text on a black background, is it possible
for all the second draft text to be in a different colour that I assign
to it? And ditto third draft onwards?

I envisage something like setting the text with 'M-x second-draft-text'
which will then display the new text with its assigned colour. Which
will also mean that the document will have multi-coloured text in it?

Is this possible?      

And if it is possible, how do I do it please?

Thanks
  Sharon.  
- -- 
Debian 10.2, fluxbox 1.3.7, emacs 27.1, org 9.3.7
-----BEGIN PGP SIGNATURE-----

iQJPBAEBCgA5FiEELSc/6QwVBIYugJDbNoGAGQr4g1sFAl8qp/YbHGJvdWRpY2Nh
c0Bza2ltYmxlLnBsdXMuY29tAAoJEDaBgBkK+INbXdsP/RWZdu+1N1V+ZCXUmnX3
deLkWS5APBK1zltakwg4Mm7ZxgkTLjEaXrVvpm4i8zMcTXqT38U7HUiUW870hTAC
aH9bEDku+R/F79ibBOZxasEl8S5DnLhK7skplbKBHp8OftV3GWPDTntBr8+F6cre
/tQvVxkd/GDeGZxDvKRuRNEAZN1a05dnfmv6/O0XJ2PpI7rAqMOAEigxpV8G3elk
fFbBmqObJLcJdTOlHu3b3MljnVbo2ePv7q/6Xwgez0g0Q0+Bj6ZW01IMfTr5aRd2
9He+l+ds64M8m2M5NZAME2O7PutgM4IjF6ccp7MAfAkHCWy9t+H1BG6u7xxcT4Oh
ys9wEb2PW6bxl3YPjsx3ByNPup0dZpufudDvNqk2IX4t6qIea/1v6AEwqfic1s5O
DrWX3A6TDj9RcLZN5sPHXC9e4WMfGkbngGwdNo5nkquULwUg91ySBAWEJ3z2TohZ
9/U6W8eV0rvm12GTe3wNssNcrDSfvXXT70Bm8ii94u4w44zBCWiq/puLqgFivutl
u5sNPIedyULbdj+n8SKfmpRZFnfClQA1cVLl6wiTOZx1WubZR++C9IsJhhaLp7kP
ZaLh1Q2zIVYJxp7OolUsdJ40AFrcDI8Y6ra6YWYnpuq7Cgza+l2UI7YFWSXfJLMC
RDz4BPP61uqJQqQ9GKq09EMd
=3YW5
-----END PGP SIGNATURE-----


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

* Re: Document containing different text colours?
  2020-08-05 12:37 Document containing different text colours? Sharon Kimble
@ 2020-08-05 18:29 ` Diego Zamboni
  2020-08-06 11:43   ` Sharon Kimble
  2020-08-06 18:35 ` Bo Grimes
  1 sibling, 1 reply; 7+ messages in thread
From: Diego Zamboni @ 2020-08-05 18:29 UTC (permalink / raw)
  To: Sharon Kimble; +Cc: Org-mode

[-- Attachment #1: Type: text/plain, Size: 2356 bytes --]

Hi Sharon,

I'm not sure I understand what is it that you are trying to do. But color
(or any other visual) is a feature of the exporter you use rather than of
Org-mode itself. For example, if you are exporting to HTML, you can use the
following at the top of the document:

#+html_head_extra: <style>body { color: white; background-color: black;
}</style>

For LaTeX export, you should be able to add the correct settings using #+
LATEX_HEADER_EXTRA.

Hope this helps,
--Diego


On Wed, Aug 5, 2020 at 2:37 PM Sharon Kimble <boudiccas@skimble.plus.com>
wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
>
>
> In a book that I am writing, the text is white on black background which
> I like. But this is only the first draft, when its ready I shall go onto
> the second draft and then third draft, as many as necessary to polish
> the book before it goes to the beta-readers.
>
> So the first draft is white text on a black background, is it possible
> for all the second draft text to be in a different colour that I assign
> to it? And ditto third draft onwards?
>
> I envisage something like setting the text with 'M-x second-draft-text'
> which will then display the new text with its assigned colour. Which
> will also mean that the document will have multi-coloured text in it?
>
> Is this possible?
>
> And if it is possible, how do I do it please?
>
> Thanks
>   Sharon.
> - --
> Debian 10.2, fluxbox 1.3.7, emacs 27.1, org 9.3.7
> -----BEGIN PGP SIGNATURE-----
>
> iQJPBAEBCgA5FiEELSc/6QwVBIYugJDbNoGAGQr4g1sFAl8qp/YbHGJvdWRpY2Nh
> c0Bza2ltYmxlLnBsdXMuY29tAAoJEDaBgBkK+INbXdsP/RWZdu+1N1V+ZCXUmnX3
> deLkWS5APBK1zltakwg4Mm7ZxgkTLjEaXrVvpm4i8zMcTXqT38U7HUiUW870hTAC
> aH9bEDku+R/F79ibBOZxasEl8S5DnLhK7skplbKBHp8OftV3GWPDTntBr8+F6cre
> /tQvVxkd/GDeGZxDvKRuRNEAZN1a05dnfmv6/O0XJ2PpI7rAqMOAEigxpV8G3elk
> fFbBmqObJLcJdTOlHu3b3MljnVbo2ePv7q/6Xwgez0g0Q0+Bj6ZW01IMfTr5aRd2
> 9He+l+ds64M8m2M5NZAME2O7PutgM4IjF6ccp7MAfAkHCWy9t+H1BG6u7xxcT4Oh
> ys9wEb2PW6bxl3YPjsx3ByNPup0dZpufudDvNqk2IX4t6qIea/1v6AEwqfic1s5O
> DrWX3A6TDj9RcLZN5sPHXC9e4WMfGkbngGwdNo5nkquULwUg91ySBAWEJ3z2TohZ
> 9/U6W8eV0rvm12GTe3wNssNcrDSfvXXT70Bm8ii94u4w44zBCWiq/puLqgFivutl
> u5sNPIedyULbdj+n8SKfmpRZFnfClQA1cVLl6wiTOZx1WubZR++C9IsJhhaLp7kP
> ZaLh1Q2zIVYJxp7OolUsdJ40AFrcDI8Y6ra6YWYnpuq7Cgza+l2UI7YFWSXfJLMC
> RDz4BPP61uqJQqQ9GKq09EMd
> =3YW5
> -----END PGP SIGNATURE-----
>
>

[-- Attachment #2: Type: text/html, Size: 3097 bytes --]

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

* Re: Document containing different text colours?
  2020-08-05 18:29 ` Diego Zamboni
@ 2020-08-06 11:43   ` Sharon Kimble
  2020-08-06 15:41     ` Diego Zamboni
  2020-08-06 15:46     ` John Kitchin
  0 siblings, 2 replies; 7+ messages in thread
From: Sharon Kimble @ 2020-08-06 11:43 UTC (permalink / raw)
  To: Diego Zamboni; +Cc: Org-mode

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512


Thanks for replying Diego.

The text of the book will not be exported into latex or any other
forward-type document. I need the coloured text purely for my own
interest and usage. When, and if, I do export it to latex, LibreOffice
doc or whatever, it will just have the standard coloured text of black
text on a white background. But I need different coloured texts in
org-mode to show me graphically where I added in new text to the book,
and at what stage of the drafting.

For instance - first draft is white text, second draft is lime-green,
third draft is light-blue, fourth draft is pale-red, etc.

So in the above instance I would have white text, lime-green text,
light-blue text, pale-red text, etc ... all in the same document.

Is that clearer?

Thanks
  Sharon.    
  
Diego Zamboni <diego@zzamboni.org> writes:

> Hi Sharon,
>
> I'm not sure I understand what is it that you are trying to do. But color (or any other visual) is a feature of the exporter you use rather than of Org-mode itself. For example, if you are exporting to HTML, you can use the following
> at the top of the document:
>
> #+html_head_extra: <style>body { color: white; background-color: black; }</style>
>
> For LaTeX export, you should be able to add the correct settings using #+LATEX_HEADER_EXTRA.
>
> Hope this helps,
> --Diego
>
> On Wed, Aug 5, 2020 at 2:37 PM Sharon Kimble <boudiccas@skimble.plus.com> wrote:
>
>     -----BEGIN PGP SIGNED MESSAGE-----
>     Hash: SHA512
>
>     In a book that I am writing, the text is white on black background which
>     I like. But this is only the first draft, when its ready I shall go onto
>     the second draft and then third draft, as many as necessary to polish
>     the book before it goes to the beta-readers.
>    
>     So the first draft is white text on a black background, is it possible
>     for all the second draft text to be in a different colour that I assign
>     to it? And ditto third draft onwards?
>    
>     I envisage something like setting the text with 'M-x second-draft-text'
>     which will then display the new text with its assigned colour. Which
>     will also mean that the document will have multi-coloured text in it?
>    
>     Is this possible?     
>    
>     And if it is possible, how do I do it please?
>    
>     Thanks
>       Sharon. 
>     - --
>     Debian 10.2, fluxbox 1.3.7, emacs 27.1, org 9.3.7
>     -----BEGIN PGP SIGNATURE-----
>    
>     iQJPBAEBCgA5FiEELSc/6QwVBIYugJDbNoGAGQr4g1sFAl8qp/YbHGJvdWRpY2Nh
>     c0Bza2ltYmxlLnBsdXMuY29tAAoJEDaBgBkK+INbXdsP/RWZdu+1N1V+ZCXUmnX3
>     deLkWS5APBK1zltakwg4Mm7ZxgkTLjEaXrVvpm4i8zMcTXqT38U7HUiUW870hTAC
>     aH9bEDku+R/F79ibBOZxasEl8S5DnLhK7skplbKBHp8OftV3GWPDTntBr8+F6cre
>     /tQvVxkd/GDeGZxDvKRuRNEAZN1a05dnfmv6/O0XJ2PpI7rAqMOAEigxpV8G3elk
>     fFbBmqObJLcJdTOlHu3b3MljnVbo2ePv7q/6Xwgez0g0Q0+Bj6ZW01IMfTr5aRd2
>     9He+l+ds64M8m2M5NZAME2O7PutgM4IjF6ccp7MAfAkHCWy9t+H1BG6u7xxcT4Oh
>     ys9wEb2PW6bxl3YPjsx3ByNPup0dZpufudDvNqk2IX4t6qIea/1v6AEwqfic1s5O
>     DrWX3A6TDj9RcLZN5sPHXC9e4WMfGkbngGwdNo5nkquULwUg91ySBAWEJ3z2TohZ
>     9/U6W8eV0rvm12GTe3wNssNcrDSfvXXT70Bm8ii94u4w44zBCWiq/puLqgFivutl
>     u5sNPIedyULbdj+n8SKfmpRZFnfClQA1cVLl6wiTOZx1WubZR++C9IsJhhaLp7kP
>     ZaLh1Q2zIVYJxp7OolUsdJ40AFrcDI8Y6ra6YWYnpuq7Cgza+l2UI7YFWSXfJLMC
>     RDz4BPP61uqJQqQ9GKq09EMd
>     =3YW5
>     -----END PGP SIGNATURE-----

- -- 
A taste of linux = http://www.sharons.org.uk
TGmeds = http://www.tgmeds.org.uk
DrugFacts = https://www.drugfacts.org.uk
Debian 10.2, fluxbox 1.3.7, emacs 27.1, org 9.3.7
-----BEGIN PGP SIGNATURE-----

iQJOBAEBCgA5FiEELSc/6QwVBIYugJDbNoGAGQr4g1sFAl8r7N0bHGJvdWRpY2Nh
c0Bza2ltYmxlLnBsdXMuY29tAAoJEDaBgBkK+INbjvoP+PDQef4JGrdKVAP+DOHy
C47ndjTK21CJUxVtkdoZneSQmqh4jXoX4j0grJ1cGk8nsGxXW9wMhtDTfHoR8+IR
MbDOglB/i9jzDGMP9R4Z3cmOblfytHOraVeyp7gZLUPbqCfFtjNrT1AG0alZHid8
53iXEIF8t6b/c3ZXfMf6xNBbpnFNfPS6UsO3GIMgiW1q5dBrJA5aNxWfAzzvWGQG
a/+beOf+q+DP/bJc0u4h9yLlsDQ08akDZdrj9Y+nzTnbmfNbm0RvfmI04zUankc+
3CO0GK+nnaCKtM9Oy1UNi3Vc+1vd8XyeDWiuE5aRE42Nz3tmwA5soAHQjToovmaB
hqQg1tu2DdsCNs8DvlI4cYVRjnw629RCbgJBm9y73wTS2h+9rH+c+L9vePt8TgEx
IToqu8nGTvsHD6cG5JyUOpfCySv+NMvl3owXCEDZ5SdInR6TOw2qf4n39XUDT/dd
niwAjJmeM3S7VQQCtc90mQEIoIkbahk7g5DAcpkta2/g8KoP+3ESc+GT9L6UNHLh
uXdNEJ8oSXkI4nC4nCdAp6fKuYiWeEBZXCtuodBehg97PEwEJ45YERz5nD2iuAra
vBfoyvNUIYjXCcKvSx9UZlPfWVYPWA/vSsZ+ys2+s5T+xXCymGumjoUvmfgQdIR1
9hHGxHm1fofbVjbdtigkgXc=
=GIRg
-----END PGP SIGNATURE-----


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

* Re: Document containing different text colours?
  2020-08-06 11:43   ` Sharon Kimble
@ 2020-08-06 15:41     ` Diego Zamboni
  2020-08-06 15:46     ` John Kitchin
  1 sibling, 0 replies; 7+ messages in thread
From: Diego Zamboni @ 2020-08-06 15:41 UTC (permalink / raw)
  To: Sharon Kimble; +Cc: Org-mode


[-- Attachment #1.1: Type: text/plain, Size: 5154 bytes --]

Hi Sharon,

I understand - you want something like a "change tracking mode". I do not
really know if you can manually set custom faces on the text of a buffer
(you probably can, but I don't know how).

If you use git for version control, I found diff-hl mode (
https://github.com/dgutov/diff-hl), which highlights the changes since the
last committed version. Maybe this helps? For example:

[image: image.png]

Best,
--Diego


On Thu, Aug 6, 2020 at 1:43 PM Sharon Kimble <boudiccas@skimble.plus.com>
wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
>
>
> Thanks for replying Diego.
>
> The text of the book will not be exported into latex or any other
> forward-type document. I need the coloured text purely for my own
> interest and usage. When, and if, I do export it to latex, LibreOffice
> doc or whatever, it will just have the standard coloured text of black
> text on a white background. But I need different coloured texts in
> org-mode to show me graphically where I added in new text to the book,
> and at what stage of the drafting.
>
> For instance - first draft is white text, second draft is lime-green,
> third draft is light-blue, fourth draft is pale-red, etc.
>
> So in the above instance I would have white text, lime-green text,
> light-blue text, pale-red text, etc ... all in the same document.
>
> Is that clearer?
>
> Thanks
>   Sharon.
>
> Diego Zamboni <diego@zzamboni.org> writes:
>
> > Hi Sharon,
> >
> > I'm not sure I understand what is it that you are trying to do. But
> color (or any other visual) is a feature of the exporter you use rather
> than of Org-mode itself. For example, if you are exporting to HTML, you can
> use the following
> > at the top of the document:
> >
> > #+html_head_extra: <style>body { color: white; background-color: black;
> }</style>
> >
> > For LaTeX export, you should be able to add the correct settings using
> #+LATEX_HEADER_EXTRA.
> >
> > Hope this helps,
> > --Diego
> >
> > On Wed, Aug 5, 2020 at 2:37 PM Sharon Kimble <boudiccas@skimble.plus.com>
> wrote:
> >
> >     -----BEGIN PGP SIGNED MESSAGE-----
> >     Hash: SHA512
> >
> >     In a book that I am writing, the text is white on black background
> which
> >     I like. But this is only the first draft, when its ready I shall go
> onto
> >     the second draft and then third draft, as many as necessary to polish
> >     the book before it goes to the beta-readers.
> >
> >     So the first draft is white text on a black background, is it
> possible
> >     for all the second draft text to be in a different colour that I
> assign
> >     to it? And ditto third draft onwards?
> >
> >     I envisage something like setting the text with 'M-x
> second-draft-text'
> >     which will then display the new text with its assigned colour. Which
> >     will also mean that the document will have multi-coloured text in it?
> >
> >     Is this possible?
> >
> >     And if it is possible, how do I do it please?
> >
> >     Thanks
> >       Sharon.
> >     - --
> >     Debian 10.2, fluxbox 1.3.7, emacs 27.1, org 9.3.7
> >     -----BEGIN PGP SIGNATURE-----
> >
> >     iQJPBAEBCgA5FiEELSc/6QwVBIYugJDbNoGAGQr4g1sFAl8qp/YbHGJvdWRpY2Nh
> >     c0Bza2ltYmxlLnBsdXMuY29tAAoJEDaBgBkK+INbXdsP/RWZdu+1N1V+ZCXUmnX3
> >     deLkWS5APBK1zltakwg4Mm7ZxgkTLjEaXrVvpm4i8zMcTXqT38U7HUiUW870hTAC
> >     aH9bEDku+R/F79ibBOZxasEl8S5DnLhK7skplbKBHp8OftV3GWPDTntBr8+F6cre
> >     /tQvVxkd/GDeGZxDvKRuRNEAZN1a05dnfmv6/O0XJ2PpI7rAqMOAEigxpV8G3elk
> >     fFbBmqObJLcJdTOlHu3b3MljnVbo2ePv7q/6Xwgez0g0Q0+Bj6ZW01IMfTr5aRd2
> >     9He+l+ds64M8m2M5NZAME2O7PutgM4IjF6ccp7MAfAkHCWy9t+H1BG6u7xxcT4Oh
> >     ys9wEb2PW6bxl3YPjsx3ByNPup0dZpufudDvNqk2IX4t6qIea/1v6AEwqfic1s5O
> >     DrWX3A6TDj9RcLZN5sPHXC9e4WMfGkbngGwdNo5nkquULwUg91ySBAWEJ3z2TohZ
> >     9/U6W8eV0rvm12GTe3wNssNcrDSfvXXT70Bm8ii94u4w44zBCWiq/puLqgFivutl
> >     u5sNPIedyULbdj+n8SKfmpRZFnfClQA1cVLl6wiTOZx1WubZR++C9IsJhhaLp7kP
> >     ZaLh1Q2zIVYJxp7OolUsdJ40AFrcDI8Y6ra6YWYnpuq7Cgza+l2UI7YFWSXfJLMC
> >     RDz4BPP61uqJQqQ9GKq09EMd
> >     =3YW5
> >     -----END PGP SIGNATURE-----
>
> - --
> A taste of linux = http://www.sharons.org.uk
> TGmeds = http://www.tgmeds.org.uk
> DrugFacts = https://www.drugfacts.org.uk
> Debian 10.2, fluxbox 1.3.7, emacs 27.1, org 9.3.7
> -----BEGIN PGP SIGNATURE-----
>
> iQJOBAEBCgA5FiEELSc/6QwVBIYugJDbNoGAGQr4g1sFAl8r7N0bHGJvdWRpY2Nh
> c0Bza2ltYmxlLnBsdXMuY29tAAoJEDaBgBkK+INbjvoP+PDQef4JGrdKVAP+DOHy
> C47ndjTK21CJUxVtkdoZneSQmqh4jXoX4j0grJ1cGk8nsGxXW9wMhtDTfHoR8+IR
> MbDOglB/i9jzDGMP9R4Z3cmOblfytHOraVeyp7gZLUPbqCfFtjNrT1AG0alZHid8
> 53iXEIF8t6b/c3ZXfMf6xNBbpnFNfPS6UsO3GIMgiW1q5dBrJA5aNxWfAzzvWGQG
> a/+beOf+q+DP/bJc0u4h9yLlsDQ08akDZdrj9Y+nzTnbmfNbm0RvfmI04zUankc+
> 3CO0GK+nnaCKtM9Oy1UNi3Vc+1vd8XyeDWiuE5aRE42Nz3tmwA5soAHQjToovmaB
> hqQg1tu2DdsCNs8DvlI4cYVRjnw629RCbgJBm9y73wTS2h+9rH+c+L9vePt8TgEx
> IToqu8nGTvsHD6cG5JyUOpfCySv+NMvl3owXCEDZ5SdInR6TOw2qf4n39XUDT/dd
> niwAjJmeM3S7VQQCtc90mQEIoIkbahk7g5DAcpkta2/g8KoP+3ESc+GT9L6UNHLh
> uXdNEJ8oSXkI4nC4nCdAp6fKuYiWeEBZXCtuodBehg97PEwEJ45YERz5nD2iuAra
> vBfoyvNUIYjXCcKvSx9UZlPfWVYPWA/vSsZ+ys2+s5T+xXCymGumjoUvmfgQdIR1
> 9hHGxHm1fofbVjbdtigkgXc=
> =GIRg
> -----END PGP SIGNATURE-----
>

[-- Attachment #1.2: Type: text/html, Size: 6730 bytes --]

[-- Attachment #2: image.png --]
[-- Type: image/png, Size: 105957 bytes --]

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

* Re: Document containing different text colours?
  2020-08-06 11:43   ` Sharon Kimble
  2020-08-06 15:41     ` Diego Zamboni
@ 2020-08-06 15:46     ` John Kitchin
  1 sibling, 0 replies; 7+ messages in thread
From: John Kitchin @ 2020-08-06 15:46 UTC (permalink / raw)
  To: Sharon Kimble; +Cc: Diego Zamboni, emacs-orgmode

This would not be too easy to achieve.

One way I can see it happening is if you keep your manuscript in a VC
system like git, and you tag the different draft versions. Then you use
the VC diff machinery to find the diffs between the versions, and
somehow use that to put color overlays or text properties.

latexdiff can do something like this but only for two versions, not
multiple versions. Even the fanciest of diff programs I think can only
deal with three files (versions).

You might find some insight at
https://github.com/jkitchin/scimax/blob/master/scimax-editmarks.org#from-git-diff.

this uses the scimax-editmarks package I have been working on, and uses wdiff
to markup the differences between two versions of a file in a git repo.

Looking back on this you should expect a rainbow soup of issues, for
example, how would you deal with text that has been deleted? or moved
around, or changed a few times between versions.

I am not sure it would be easy to figure out how to do this for multiple
versions.

Sharon Kimble <boudiccas@skimble.plus.com> writes:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
>
>
> Thanks for replying Diego.
>
> The text of the book will not be exported into latex or any other
> forward-type document. I need the coloured text purely for my own
> interest and usage. When, and if, I do export it to latex, LibreOffice
> doc or whatever, it will just have the standard coloured text of black
> text on a white background. But I need different coloured texts in
> org-mode to show me graphically where I added in new text to the book,
> and at what stage of the drafting.
>
> For instance - first draft is white text, second draft is lime-green,
> third draft is light-blue, fourth draft is pale-red, etc.
>
> So in the above instance I would have white text, lime-green text,
> light-blue text, pale-red text, etc ... all in the same document.
>
> Is that clearer?
>
> Thanks
>   Sharon.
>
> Diego Zamboni <diego@zzamboni.org> writes:
>
>> Hi Sharon,
>>
>> I'm not sure I understand what is it that you are trying to do. But color (or any other visual) is a feature of the exporter you use rather than of Org-mode itself. For example, if you are exporting to HTML, you can use the following
>> at the top of the document:
>>
>> #+html_head_extra: <style>body { color: white; background-color: black; }</style>
>>
>> For LaTeX export, you should be able to add the correct settings using #+LATEX_HEADER_EXTRA.
>>
>> Hope this helps,
>> --Diego
>>
>> On Wed, Aug 5, 2020 at 2:37 PM Sharon Kimble <boudiccas@skimble.plus.com> wrote:
>>
>>     -----BEGIN PGP SIGNED MESSAGE-----
>>     Hash: SHA512
>>
>>     In a book that I am writing, the text is white on black background which
>>     I like. But this is only the first draft, when its ready I shall go onto
>>     the second draft and then third draft, as many as necessary to polish
>>     the book before it goes to the beta-readers.
>>
>>     So the first draft is white text on a black background, is it possible
>>     for all the second draft text to be in a different colour that I assign
>>     to it? And ditto third draft onwards?
>>
>>     I envisage something like setting the text with 'M-x second-draft-text'
>>     which will then display the new text with its assigned colour. Which
>>     will also mean that the document will have multi-coloured text in it?
>>
>>     Is this possible?
>>
>>     And if it is possible, how do I do it please?
>>
>>     Thanks
>>       Sharon.
>>     - --
>>     Debian 10.2, fluxbox 1.3.7, emacs 27.1, org 9.3.7
>>     -----BEGIN PGP SIGNATURE-----
>>
>>     iQJPBAEBCgA5FiEELSc/6QwVBIYugJDbNoGAGQr4g1sFAl8qp/YbHGJvdWRpY2Nh
>>     c0Bza2ltYmxlLnBsdXMuY29tAAoJEDaBgBkK+INbXdsP/RWZdu+1N1V+ZCXUmnX3
>>     deLkWS5APBK1zltakwg4Mm7ZxgkTLjEaXrVvpm4i8zMcTXqT38U7HUiUW870hTAC
>>     aH9bEDku+R/F79ibBOZxasEl8S5DnLhK7skplbKBHp8OftV3GWPDTntBr8+F6cre
>>     /tQvVxkd/GDeGZxDvKRuRNEAZN1a05dnfmv6/O0XJ2PpI7rAqMOAEigxpV8G3elk
>>     fFbBmqObJLcJdTOlHu3b3MljnVbo2ePv7q/6Xwgez0g0Q0+Bj6ZW01IMfTr5aRd2
>>     9He+l+ds64M8m2M5NZAME2O7PutgM4IjF6ccp7MAfAkHCWy9t+H1BG6u7xxcT4Oh
>>     ys9wEb2PW6bxl3YPjsx3ByNPup0dZpufudDvNqk2IX4t6qIea/1v6AEwqfic1s5O
>>     DrWX3A6TDj9RcLZN5sPHXC9e4WMfGkbngGwdNo5nkquULwUg91ySBAWEJ3z2TohZ
>>     9/U6W8eV0rvm12GTe3wNssNcrDSfvXXT70Bm8ii94u4w44zBCWiq/puLqgFivutl
>>     u5sNPIedyULbdj+n8SKfmpRZFnfClQA1cVLl6wiTOZx1WubZR++C9IsJhhaLp7kP
>>     ZaLh1Q2zIVYJxp7OolUsdJ40AFrcDI8Y6ra6YWYnpuq7Cgza+l2UI7YFWSXfJLMC
>>     RDz4BPP61uqJQqQ9GKq09EMd
>>     =3YW5
>>     -----END PGP SIGNATURE-----
>
> - --
> A taste of linux = http://www.sharons.org.uk
> TGmeds = http://www.tgmeds.org.uk
> DrugFacts = https://www.drugfacts.org.uk
> Debian 10.2, fluxbox 1.3.7, emacs 27.1, org 9.3.7
> -----BEGIN PGP SIGNATURE-----
>
> iQJOBAEBCgA5FiEELSc/6QwVBIYugJDbNoGAGQr4g1sFAl8r7N0bHGJvdWRpY2Nh
> c0Bza2ltYmxlLnBsdXMuY29tAAoJEDaBgBkK+INbjvoP+PDQef4JGrdKVAP+DOHy
> C47ndjTK21CJUxVtkdoZneSQmqh4jXoX4j0grJ1cGk8nsGxXW9wMhtDTfHoR8+IR
> MbDOglB/i9jzDGMP9R4Z3cmOblfytHOraVeyp7gZLUPbqCfFtjNrT1AG0alZHid8
> 53iXEIF8t6b/c3ZXfMf6xNBbpnFNfPS6UsO3GIMgiW1q5dBrJA5aNxWfAzzvWGQG
> a/+beOf+q+DP/bJc0u4h9yLlsDQ08akDZdrj9Y+nzTnbmfNbm0RvfmI04zUankc+
> 3CO0GK+nnaCKtM9Oy1UNi3Vc+1vd8XyeDWiuE5aRE42Nz3tmwA5soAHQjToovmaB
> hqQg1tu2DdsCNs8DvlI4cYVRjnw629RCbgJBm9y73wTS2h+9rH+c+L9vePt8TgEx
> IToqu8nGTvsHD6cG5JyUOpfCySv+NMvl3owXCEDZ5SdInR6TOw2qf4n39XUDT/dd
> niwAjJmeM3S7VQQCtc90mQEIoIkbahk7g5DAcpkta2/g8KoP+3ESc+GT9L6UNHLh
> uXdNEJ8oSXkI4nC4nCdAp6fKuYiWeEBZXCtuodBehg97PEwEJ45YERz5nD2iuAra
> vBfoyvNUIYjXCcKvSx9UZlPfWVYPWA/vSsZ+ys2+s5T+xXCymGumjoUvmfgQdIR1
> 9hHGxHm1fofbVjbdtigkgXc=
> =GIRg
> -----END PGP SIGNATURE-----


--
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu


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

* Re: Document containing different text colours?
  2020-08-05 12:37 Document containing different text colours? Sharon Kimble
  2020-08-05 18:29 ` Diego Zamboni
@ 2020-08-06 18:35 ` Bo Grimes
  2020-08-07  7:22   ` Eric S Fraga
  1 sibling, 1 reply; 7+ messages in thread
From: Bo Grimes @ 2020-08-06 18:35 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 2555 bytes --]

It feels to me like this should be possible because syntax highlighting 
mixes colors.  I am woefully inadequate to help, but I feel like 
mentioning this might spark a guru's imagination.

I remember years ago when I used Notepad++ on Windows it allowed 
user-defined syntax highlighting, and I did so for my GTD system at that 
time.  I have no doubt one could create a personal syntax highlighting 
scheme in Emacs, but (how(me(ask(don't)))! <--- I'm sure that's absurd, 
but hopefully a funny indicator of my ignorance.

It would be a stop-gap with some pitfalls, but perhaps make all 2nd 
draft text bold and all 3rd draft italics.  The obvious pitfall is any 
already emphasized first draft text.

On 8/5/20 8:37 AM, Sharon Kimble wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
>
>
> In a book that I am writing, the text is white on black background which
> I like. But this is only the first draft, when its ready I shall go onto
> the second draft and then third draft, as many as necessary to polish
> the book before it goes to the beta-readers.
>
> So the first draft is white text on a black background, is it possible
> for all the second draft text to be in a different colour that I assign
> to it? And ditto third draft onwards?
>
> I envisage something like setting the text with 'M-x second-draft-text'
> which will then display the new text with its assigned colour. Which
> will also mean that the document will have multi-coloured text in it?
>
> Is this possible?
>
> And if it is possible, how do I do it please?
>
> Thanks
>    Sharon.
> - -- 
> Debian 10.2, fluxbox 1.3.7, emacs 27.1, org 9.3.7
> -----BEGIN PGP SIGNATURE-----
>
> iQJPBAEBCgA5FiEELSc/6QwVBIYugJDbNoGAGQr4g1sFAl8qp/YbHGJvdWRpY2Nh
> c0Bza2ltYmxlLnBsdXMuY29tAAoJEDaBgBkK+INbXdsP/RWZdu+1N1V+ZCXUmnX3
> deLkWS5APBK1zltakwg4Mm7ZxgkTLjEaXrVvpm4i8zMcTXqT38U7HUiUW870hTAC
> aH9bEDku+R/F79ibBOZxasEl8S5DnLhK7skplbKBHp8OftV3GWPDTntBr8+F6cre
> /tQvVxkd/GDeGZxDvKRuRNEAZN1a05dnfmv6/O0XJ2PpI7rAqMOAEigxpV8G3elk
> fFbBmqObJLcJdTOlHu3b3MljnVbo2ePv7q/6Xwgez0g0Q0+Bj6ZW01IMfTr5aRd2
> 9He+l+ds64M8m2M5NZAME2O7PutgM4IjF6ccp7MAfAkHCWy9t+H1BG6u7xxcT4Oh
> ys9wEb2PW6bxl3YPjsx3ByNPup0dZpufudDvNqk2IX4t6qIea/1v6AEwqfic1s5O
> DrWX3A6TDj9RcLZN5sPHXC9e4WMfGkbngGwdNo5nkquULwUg91ySBAWEJ3z2TohZ
> 9/U6W8eV0rvm12GTe3wNssNcrDSfvXXT70Bm8ii94u4w44zBCWiq/puLqgFivutl
> u5sNPIedyULbdj+n8SKfmpRZFnfClQA1cVLl6wiTOZx1WubZR++C9IsJhhaLp7kP
> ZaLh1Q2zIVYJxp7OolUsdJ40AFrcDI8Y6ra6YWYnpuq7Cgza+l2UI7YFWSXfJLMC
> RDz4BPP61uqJQqQ9GKq09EMd
> =3YW5
> -----END PGP SIGNATURE-----
>
-- 
Bo Grimes

[-- Attachment #2: Type: text/html, Size: 3007 bytes --]

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

* Re: Document containing different text colours?
  2020-08-06 18:35 ` Bo Grimes
@ 2020-08-07  7:22   ` Eric S Fraga
  0 siblings, 0 replies; 7+ messages in thread
From: Eric S Fraga @ 2020-08-07  7:22 UTC (permalink / raw)
  To: Bo Grimes; +Cc: emacs-orgmode

On Thursday,  6 Aug 2020 at 14:35, Bo Grimes wrote:
> It feels to me like this should be possible because syntax
> highlighting mixes colors.

hi-lock-mode may do what the OP wanted with some careful insertion of
tags in the document, maybe in the form of comment lines.

-- 
: Eric S Fraga via Emacs 28.0.50, Org release_9.3.7-705-gea9463


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

end of thread, other threads:[~2020-08-07  7:37 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-05 12:37 Document containing different text colours? Sharon Kimble
2020-08-05 18:29 ` Diego Zamboni
2020-08-06 11:43   ` Sharon Kimble
2020-08-06 15:41     ` Diego Zamboni
2020-08-06 15:46     ` John Kitchin
2020-08-06 18:35 ` Bo Grimes
2020-08-07  7:22   ` Eric S Fraga

Code repositories for project(s) associated with this 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).