emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Document containing different text colours?


From: John Kitchin
Subject: Re: Document containing different text colours?
Date: Thu, 06 Aug 2020 11:46:06 -0400
User-agent: mu4e 1.4.10; emacs 26.3

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]