From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Doyley, Marvin M." Subject: Re: New markup for revising manuscripts Date: Sat, 11 Mar 2017 11:35:40 +0000 Message-ID: <67759338-DFA9-428A-899C-D383F0F0FDAB@ur.rochester.edu> References: <4F883241-1170-4E41-88AE-A13C99581597@ur.rochester.edu> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Apple-Mail=_0CC0D726-8C2D-4650-92E1-FA412A94B8DD"; protocol="application/pgp-signature"; micalg=pgp-sha512 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37904) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cmfJN-0002Dh-HS for emacs-orgmode@gnu.org; Sat, 11 Mar 2017 06:35:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cmfJK-0006hL-DR for emacs-orgmode@gnu.org; Sat, 11 Mar 2017 06:35:49 -0500 Received: from mail-by2nam01on0125.outbound.protection.outlook.com ([104.47.34.125]:52800 helo=NAM01-BY2-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cmfJJ-0006gQ-Q5 for emacs-orgmode@gnu.org; Sat, 11 Mar 2017 06:35:46 -0500 In-Reply-To: Content-Language: en-US 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" To: John Kitchin Cc: "emacs-orgmode@gnu.org" , "Doyley, Marvin M." , Kaushal Modi --Apple-Mail=_0CC0D726-8C2D-4650-92E1-FA412A94B8DD Content-Type: multipart/alternative; boundary="Apple-Mail=_6B605D5C-1154-47F0-B389-F3308E6F6F09" --Apple-Mail=_6B605D5C-1154-47F0-B389-F3308E6F6F09 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hi John, Thanks for the info on making colored links, this will definitely help = (i.e., show the changes in org). The only snag is how do I export the = colored link automatically as \textcolor{red}{comments} during org = export ? Cheers, M > On Mar 10, 2017, at 4:47 PM, John Kitchin = wrote: >=20 > You can .... wait for it... make a colored link ;): = http://kitchingroup.cheme.cmu.edu/blog/2016/11/04/New-link-features-in-org= -9/#org1bc1061 = >=20 > The example there has an html export defined, but you could as easily = define a latex exporter. It has some limitations, like it might not = reliably work on multiple lines, and you would not want to "highlight" = across elements (or the latex will get ugly and probably not work). >=20 > I have been working on some ways to get persistent highlighting using = overlays for a similar purpose: = http://kitchingroup.cheme.cmu.edu/blog/2016/11/10/Persistent-highlighting-= in-Emacs/ = >=20 > so far I only can get reliable output to html. Latex seems possible, = again if you don't highlight across too many elements. It is a work in = progress here: = https://github.com/jkitchin/scimax/blob/master/ov-highlighter.el = >=20 > Towards the bottom of = https://github.com/jkitchin/scimax/blob/master/cm-mods.el = I was working on some ways to use the criticmarkup = in conjunction with git diffs to automatically make these kinds of = diffs. >=20 > I can't say I am fully satisified by any of these solutions (that is = why there are so many of them ;) >=20 > John >=20 > ----------------------------------- > 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 = >=20 >=20 > On Fri, Mar 10, 2017 at 3:56 PM, Kaushal Modi > wrote: > I use this macro to highlight text in html/latex(pdf): >=20 > #+MACRO: COLOR @@html:$2@@@@latex:\textcolor{$1}{$2}@@ >=20 > This is from = https://github.com/fniessen/org-macros/blob/master/README.org = >=20 > Example use: > {{{COLOR(red, This information is important.)}}} >=20 > It doesn't though highlight the text in red in org-mode. >=20 > On Fri, Mar 10, 2017 at 3:49 PM Doyley, Marvin M. = > wrote: > Hi there, >=20 > When revising manuscripts, I usually highlight the changes (response = to reviewer) in red. I use typically do this as follows: > (1) #+latex_header: \newcommand{\response}[1]{\textcolor{red}{#1}} > (2) \response{changes) >=20 > Is there a more elegant way to do this ? It would be nice if I could = change the color of the select text in both org and the exported latex = file to red. Seeing the highlighted text in org would be a huge plus. >=20 > Thanks > M > -- > Kaushal Modi >=20 >=20 --Apple-Mail=_6B605D5C-1154-47F0-B389-F3308E6F6F09 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii
Hi John,

Thanks for the info on making colored = links, this will definitely help (i.e., show the changes in org). The = only snag is how do I export the colored link automatically as = \textcolor{red}{comments} during org export ? 

Cheers,
M
On = Mar 10, 2017, at 4:47 PM, John Kitchin <jkitchin@andrew.cmu.edu> wrote:

You can .... wait for it... make = a colored link ;): http://kitchingroup.cheme.cmu.edu/blog/2016/11/04/New-link-feat= ures-in-org-9/#org1bc1061

The example there has an html export defined, but you could = as easily define a latex exporter. It has some limitations, like it = might not reliably work on multiple lines, and you would not want to = "highlight" across elements (or the latex will get ugly and probably not = work).

I have = been working on some ways to get persistent highlighting using overlays = for a similar purpose: http://kitchingroup.cheme.cmu.edu/blog/2016/11/10/Persistent-hi= ghlighting-in-Emacs/

so far I only can get reliable output to html. Latex seems = possible, again if you don't highlight across too many elements. It is a = work in progress here: https://github.com/jkitchin/scimax/blob/master/ov-highlighter.e= l

Towards = the bottom of https://github.com/jkitchin/scimax/blob/master/cm-mods.el = I was working on some ways to use the criticmarkup  in conjunction = with git diffs to automatically make these kinds of = diffs. 

I = can't say I am fully satisified by any of these solutions (that is why = there are so many of them ;)

John

-----------------------------------
Professor = John Kitchin 
Doherty Hall A207F
Department of Chemical Engineering
Carnegie = Mellon University
Pittsburgh, PA 15213
412-268-7803

On Fri, Mar 10, 2017 at 3:56 = PM, Kaushal Modi <kaushal.modi@gmail.com> wrote:
I use this macro to highlight text in html/latex(pdf):

#+MACRO: = COLOR @@html:<span style=3D"color: = $1">$2</span>@@@@latex:\textcolor{$1}{$2}@@


Example use:
{{{COLOR(red, This information is important.)}}}

It doesn't though highlight the text in red in = org-mode.

On = Fri, Mar 10, 2017 at 3:49 PM Doyley, Marvin M. <m.doyley@rochester.edu> wrote:
Hi there,

When revising manuscripts, I usually highlight the changes (response to = reviewer) in red. I use typically do this as follows:
(1) #+latex_header: \newcommand{\response}[1]{\textcolor{red}{#1}}
(2) \response{changes)

Is there a more elegant way to do this ?  It would be nice if I = could change the color of the select text in both org and the exported = latex file to red. Seeing the highlighted text in org would be a huge = plus.

Thanks
M
--

Kaushal Modi



= --Apple-Mail=_6B605D5C-1154-47F0-B389-F3308E6F6F09-- --Apple-Mail=_0CC0D726-8C2D-4650-92E1-FA412A94B8DD Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- iQIcBAEBCgAGBQJYw+ELAAoJEBwrWjMT8xXrQUgP/jXkAItq0pyozk8qScGLxNch 9+ULsNyax+pdjdVi4Dy1RdQG/+Ztm/2ZhGvW2TdHWfab5QZU/CyDIsjjpgIURXTe 5DMkh0OkwMCvpgWhkBg/Z4BLsSu+J+kbcs6OE+XRFa59nIN08NjVsLoFYZbwurel G/+tekEnIvbeDtEUET/5iep4lK9QPKdTAojn8Aq6sQg8DoUt7yjU3i9Fklr/NOHo 6TstpttifJ3872d5Y0+6I4+cN16VMapnlJzl/LVXJuXBZLvtZPwXt/akqaiUwjHB WyO+RXO9tYRu/QG0IyG6lsZR2FRuJInxRDNQ4zp6IIuNYXRMR0YPhpxlUlf1ikTO Ev8zLGOgKWZTrkfP//gxwY9Ll1qYcSXSqbJeEoA8ZJDHZUmNtH0X291oi9oNy8FY w/h0aDxeHOcy94HrYjGOSLIqvlXzSBK/pmuYaa5A23nedy7jf0Z5GVEd4o7RQShN S99776IJs6QdhroWOofMXyb9Vj08HKaefHVeUnYlIvSKhRTNgln1Uos/xW4Sj/Kl xZjOZ6DKSXfz9RyLo8K++d6GdMk3+0RsoGZdevI1t7sUDIMZ6Eqk2YaBLWO4L3d+ hLmdkfE0ZNJqDGZwrMmXjpj02hxqPPTTstvUbaRrA9LQREMHFt2PL0wV7XDYH398 gljURKRWzZfQkoamXKGT =y0d+ -----END PGP SIGNATURE----- --Apple-Mail=_0CC0D726-8C2D-4650-92E1-FA412A94B8DD--