From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: New markup for revising manuscripts Date: Sat, 11 Mar 2017 10:59:12 +0000 Message-ID: <87r324oz9b.fsf@ucl.ac.uk> References: <63b8c6bce92349fe95acb0c37536e965@HE1PR01MB1898.eurprd01.prod.exchangelabs.com> Reply-To: Eric S Fraga Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60711) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cmh9Y-0002Ou-UM for emacs-orgmode@gnu.org; Sat, 11 Mar 2017 08:33:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cmh9V-0007pa-06 for emacs-orgmode@gnu.org; Sat, 11 Mar 2017 08:33:48 -0500 Received: from mail-eopbgr30138.outbound.protection.outlook.com ([40.107.3.138]:5984 helo=EUR03-AM5-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 1cmh9U-0007oI-Kn for emacs-orgmode@gnu.org; Sat, 11 Mar 2017 08:33:44 -0500 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: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Friday, 10 Mar 2017 at 20:33, Doyley, Marvin M. 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 ? I don't know about elegant but my approach is to subvert the +...+ emphasis markers. These usually indicate strike-through, something I never use. Instead, I have +some text+ be highlighted and exported to LaTeX and HTML as such. To achieve this, I customise a number org variables. It took me some time to find how I actually did this as it's been part of my org setup for years, so much so that I almost thought it was default behaviour! In any case, the following is an elided extract from my customised variables: #+begin_src emacs-lisp (custom-set-variables '(org-emphasis-alist (quote (("*" bold) ("/" italic) ("_" underline) ("=3D" org-verbatim verbatim) ("~" org-code verbatim) ("+" highlight)))) '(org-html-text-markup-alist (quote ((bold . "%s") (code . "%s") (italic . "%s") (strike-through . "%s") (underline . "%s") (verbatim . "%s")))) '(org-latex-text-markup-alist (quote ((bold . "\\textbf{%s}") (code . protectedtexttt) (italic . "\\emph{%s}") (strike-through . "\\hl{%s}") (underline . "\\uline{%s}") (verbatim . protectedtexttt))))) #+end_src=20 There are basically copies of the defaults with the strike-through element changed. Now I can write +highlighted text+ which appears as you wish in both HTML and LaTeX exports as well as on the screen (customise the highlight face to get what you want on screen). For LaTeX, you also have to (add-to-list 'org-latex-packages-alist '("" "soul")) which provides the \hl{} LaTeX command. HTH, eric =2D-=20 : Eric S Fraga (0xFFFCF67D), Emacs 26.0.50.1, Org release_9.0.4-242-g2c27b8 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQSPXCedOQfhSlwpVw3IkZPY//z2fQUCWMPYgAAKCRDIkZPY//z2 fa2OAJ9FwKPDkQrNVpiRi3vRrhi+d2wdxgCgg2dC+IXtXJt3/UHNEhjk9F4JL/E= =Y6Jm -----END PGP SIGNATURE----- --=-=-=--