From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id YLysMfglLF+6QAAA0tVLHw (envelope-from ) for ; Thu, 06 Aug 2020 15:47:04 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id oNKHLfglLF8ePwAA1q6Kng (envelope-from ) for ; Thu, 06 Aug 2020 15:47:04 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 7C8F7940366 for ; Thu, 6 Aug 2020 15:47:03 +0000 (UTC) Received: from localhost ([::1]:53794 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k3i6f-0002FJ-AK for larch@yhetil.org; Thu, 06 Aug 2020 11:47:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56548) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k3i5s-0002Eq-MU for emacs-orgmode@gnu.org; Thu, 06 Aug 2020 11:46:12 -0400 Received: from mail-qk1-x72f.google.com ([2607:f8b0:4864:20::72f]:32989) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k3i5q-0006Ek-Fe for emacs-orgmode@gnu.org; Thu, 06 Aug 2020 11:46:12 -0400 Received: by mail-qk1-x72f.google.com with SMTP id p4so1538828qkf.0 for ; Thu, 06 Aug 2020 08:46:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:references:user-agent:from:to:cc:subject:in-reply-to :message-id:date:mime-version; bh=b3zHqA5spE6d4n3mNjXkqtLHH1ajCaHBi4WKv09xtS0=; b=YmPYF5SYTFTtelvF8yoBuGZpZBjt8gbAioR9N2lXcVuywYbZGRoVDNnQMLqALXBeLj gIUQsmo0Z4hwN5XLJcVIFtsLHbOEyV8hlKBs0h6YKzOXrQacvIbUfPtPmXxsE0hkoPk0 oG69AQwRNlA1OFmAckhRiuXVkgbNEa5jA3QRG4dTq6v7D+c57sTNz8MhofYmKhaMIvd7 CJG0frCiWLWjcp+132tJJpzbR9Etc2lgqezli/MhIwU3kEIOx1V4y37rnYyrcfifsGqa 1bHvGTGXy9JvHrR6C55hrU2Qcb+mT9jGy/QelHMD6UGckpic3aw4JudxOUoLbGrWzEpK vOgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:references:user-agent:from:to:cc:subject :in-reply-to:message-id:date:mime-version; bh=b3zHqA5spE6d4n3mNjXkqtLHH1ajCaHBi4WKv09xtS0=; b=YSMNX7MCKu1gS8VBz+6acbanigwIqk81JQyH5Jb0EmwnkaEGcF+ErRqQ63GptyI+Kg mpjwSF9IoFmB/a+KSjDNdekCd2C8WXgLhIJDspcaSxPo4AbN6EjSragd8wIwQhNmAo6r gk4YXU1twHpGYeM1U+s1hn8r/2TYzupirvSWPvw9IZ8/avfaGspE2fEJd6g49S4INilv 157G0HD/TNy9WWClJRhVBHbWqWDEF6y4HaH/gfFb5BcFvMmEfuMBZ+0t5G7GEIU5Bzdn 7HZA91HIIi4Xm5V8Cs233YIYi9EO+sicn2I8Ci5JlHnwO1qDtnu15rSlCELoBel6bNVB fNCw== X-Gm-Message-State: AOAM531XjMXJxPCl1A6HssaxH/gEfDpFcrOGbvRRj9rpb+5a6MyHNOJR UFgn3eJb7Xx2vscmIgQ7E1l2kCpNKZg= X-Google-Smtp-Source: ABdhPJw19E5KO4waXM19MnWJ6doiCs1Uknt2bhUZ/x9JP1B2KM2dwlfP0aiMYCs+k6E/JXXxfSCs+w== X-Received: by 2002:a37:a2c2:: with SMTP id l185mr8847932qke.417.1596728768069; Thu, 06 Aug 2020 08:46:08 -0700 (PDT) Received: from Johns-iMac.local ([2601:547:901:1830:5988:75a2:939b:3cfd]) by smtp.gmail.com with ESMTPSA id 139sm4278827qkl.13.2020.08.06.08.46.07 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 06 Aug 2020 08:46:07 -0700 (PDT) References: <87eeoljmkq.fsf@skimble.plus.com> <87v9hwrodf.fsf@skimble.plus.com> User-agent: mu4e 1.4.10; emacs 26.3 From: John Kitchin To: Sharon Kimble Subject: Re: Document containing different text colours? In-reply-to: <87v9hwrodf.fsf@skimble.plus.com> Message-ID: Date: Thu, 06 Aug 2020 11:46:06 -0400 MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::72f; envelope-from=johnrkitchin@gmail.com; helo=mail-qk1-x72f.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: 0 X-Spam_score: 0.0 X-Spam_bar: / X-Spam_report: (0.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=1, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Diego Zamboni , emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=gmail.com header.s=20161025 header.b=YmPYF5SY; dmarc=fail reason="SPF not aligned (relaxed)" header.from=andrew.cmu.edu (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: 2.59 X-TUID: gNZggeJa2rhC 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 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 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: >> >> 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 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