From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sharon Kimble Subject: Re: mass conversion? Date: Sat, 08 Oct 2016 19:03:54 +0100 Message-ID: <87vax2vhth.fsf@skimble.plus.com> References: <877f9kd9fv.fsf@skimble.plus.com> <87k2djbmdr.fsf@alphapapa.net> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58257) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsvyl-00079D-7n for emacs-orgmode@gnu.org; Sat, 08 Oct 2016 14:04:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bsvyi-00067P-1p for emacs-orgmode@gnu.org; Sat, 08 Oct 2016 14:04:11 -0400 Received: from avasout01.plus.net ([84.93.230.227]:53419) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsvyh-00065q-SX for emacs-orgmode@gnu.org; Sat, 08 Oct 2016 14:04:08 -0400 In-Reply-To: <87k2djbmdr.fsf@alphapapa.net> (Adam Porter's message of "Fri, 07 Oct 2016 21:33:20 -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: Adam Porter Cc: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Adam Porter writes: > Sharon Kimble writes: > >> In an org-mode document which is then converted I'm using the latex >> glossary package, which shows my glossary items as '\gls{foo}'. I'm now >> getting to the stage of having a paper copy of the latexed PDF but am >> finding that the glossary items in the main text do not show at all when >> using just black text on a white background in the PDF. >> >> So what I'm trying to do is to underline each one in the org-mode text >> which converts very easily to underlined in the black/white paper PDF. >> >> But how can I do it globally please, using just a couple of commands to >> work on all instances in the org-mode file please? > > I don't have much experience with LaTeX, but if I understand correctly, > what you're trying to do would typically be a candidate for a keyboard > macro in Emacs. As in, press F3, then use normal commands to search for > the next occurance and modify it (using commands that go > forward/backward by word or syntax), and then F4 when you've finished > modifying that instance. If you do it right, pressing F4 again should > modify the next instance, and so forth, until you reach the end of the > file. > > There are also some handy packageson MELPA that will convert keyboard > macros to interactive commands/functions. > > Hope this helps. Thanks for this Adam, I've gone down the route suggested by John Kitchin in a pm, of using '#+latex_header: \renewcommand{\glstextformat}[1]{\underline{\color{red}\em #1}}' which works very well both on-screen and in a printed copy. Thanks Sharon. =2D-=20 A taste of linux =3D http://www.sharons.org.uk TGmeds =3D http://www.tgmeds.org.uk Debian 8.4, fluxbox 1.3.7, emacs 25.1.1 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJX+TULAAoJEDaBgBkK+INbzrcQAMZ0CKQPTajw4+vIMIG+SjnD 5wDZ5TaA/onRNQIdxxArvel9Ge6g6VHzGZrU7cuv+ESk/EHw0Qlp61h6s1dq7WPS Q0rlqZvSAZXGtSTJnPWkkB5/2EPyYWllOeB0z9Nim57foEyU9+2RAeW32Y0K7xMi 2A934fwN/2uCionx41yYroZze8SIum5tWX3XMn+ok21wLBnlqUQeUlicejVWh6/x rhuV/g+Hopw4pX4zxW+fwnvI2AtDuvFofafqCy/C4YRtoUwVUKrC67hOVkhAbLcv lVE8qyJUwFzwVpBnLss66I08TnssugY0KXJBlqGXgJktKL8dVkAlxJjygBYHRBji sOagL/pCa0FASb23EBy1DPGglexs4YgrCNmZVTFbQ9NCj/aJ2TJx4OOWF42fARt3 g5l8K/P6HOopDezOsqsWDWRLGf8hVlXXL1njywdi8ayDR++WTcCrM7VsS0vYpXA5 678sErnbdAr8J4Th1ALqTu4KYPvPyAcbIvLRtu9TALTMo+tQUBRo6gHkEiCr+3fI qLPp7h4cveIluNSqKmvfdwyR3xreF3Yi1JSSZOoyTjnmb/EG4zF88TJgjQizoX2F lDt09De63GArDbTeo5nf2K6HGLbCpi9EbwQn86t9O88QA9GZPJZ3kpFsyigcNgMx kiT4Teqy7/SljDW+XeWP =qG0h -----END PGP SIGNATURE----- --=-=-=--