From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sharon Kimble Subject: Re: double underlines and external references Date: Mon, 18 Dec 2017 21:56:14 +0000 Message-ID: <87po7bzon5.fsf@skimble.plus.com> References: <87o9n2smkx.fsf@skimble.plus.com> <87374esdu5.fsf@skimble.plus.com> 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]:38890) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eR3Oh-0006ld-4o for emacs-orgmode@gnu.org; Mon, 18 Dec 2017 16:56:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eR3Oc-000825-Ex for emacs-orgmode@gnu.org; Mon, 18 Dec 2017 16:56:31 -0500 Received: from avasout02.plus.net ([212.159.14.17]:37407 helo=avasout02.plus.net.plus.net) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eR3Oc-00080a-5z for emacs-orgmode@gnu.org; Mon, 18 Dec 2017 16:56:26 -0500 In-Reply-To: (John Kitchin's message of "Wed, 13 Dec 2017 14:19:53 -0800") 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" --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable John Kitchin writes: Thanks for replying John. > I see, if it is just export you can still use a link with custom exporter= s for internal and external recipes. eg: [[irec: some recipe label]] might = export to \uline{some recipe label} and [[erec:some other recipe]] might ex= port to \ > uuline{some other recipe}, and you would use the ulem latex package to ge= t those commands.=C2=A0 \uuline is working very nicely, and I've set it up through a yasnippet =2D-8<---------------cut here---------------start------------->8--- # -*- mode: snippet -*- # name: double-underline # key: ulx # -- \uuline{ =2D-8<---------------cut here---------------end--------------->8--- Thanks Sharon. > The colors I was referring to were for your benefit in org-mode to make i= t easy to see which kind of link it is. > > Another alternative is a macro: > > #+MACRO: irec=C2=A0 \uline{$1} > #+MACRO: erec=C2=A0 \uuline{$1} > #+LATEX_HEADER: \usepackage{ulem} > {{{irec(some label)}}} and {{{erec(some other label)}}} > > This exports to:=C2=A0\uline{some label} and \uuline{some other label}=C2= =A0 > > John > > ----------------------------------- > Professor John Kitchin=C2=A0 > Doherty Hall A207F > Department of Chemical Engineering > Carnegie Mellon University > Pittsburgh, PA 15213 > 412-268-7803 > @johnkitchin > http://kitchingroup.cheme.cmu.edu > > On Wed, Dec 13, 2017 at 10:05 AM, Sharon Kimble wrote: > > John Kitchin writes: >=20=20=20=20 > > You could just use regular links for this. You could setup a face f= unction that changes the color depending on it being internal or external, = or you could make separate links for them. See=C2=A0 > > http://kitchingroup.cheme.cmu.edu/blog/2016/11/04/New-link-features= -in-org-9/ for many examples of what kinds of things can be done. > > > > John >=20=20=20=20 > Thanks for replying John. >=20=20=20=20 > I don't think I was quite as explicit as I should've been. I'm export= ing > my org-mode documents into latex ones, which are then building a PDF, > which can then be printed in black and white (with no other colours > being allowed), with the ultimate aim of it being professionally prin= ted > as books. >=20=20=20=20 > Hence my need for both, double and single line, underlines. >=20=20=20=20 > But I'm also open to any other way of finding some other way of showi= ng > the different links, but I can only use either black or white colours. >=20=20=20=20 > Thanks > Sharon. > > > ----------------------------------- > > Professor John Kitchin=C2=A0 > > Doherty Hall A207F > > Department of Chemical Engineering > > Carnegie Mellon University > > Pittsburgh, PA 15213 > > 412-268-7803 > > @johnkitchin > > http://kitchingroup.cheme.cmu.edu > > > > On Wed, Dec 13, 2017 at 6:56 AM, Sharon Kimble wrote: > > > >=C2=A0 =C2=A0 =C2=A0For my current series of books that I'm writing = in org-mode which is > >=C2=A0 =C2=A0 =C2=A0being exported to latex, I need to differentiate= between recipes in the > >=C2=A0 =C2=A0 =C2=A0current working file, and to recipes in an exter= nal file. This is in a > >=C2=A0 =C2=A0 =C2=A0series of books all containing recipes. So what = I'm looking for is the > >=C2=A0 =C2=A0 =C2=A0ability to use a single underline for internal, = and a double underline > >=C2=A0 =C2=A0 =C2=A0for external. I can do a single underline easily= in org-mode, but I'm > >=C2=A0 =C2=A0 =C2=A0having problems with a double underline. > > > >=C2=A0 =C2=A0 =C2=A0But is it the best method, using single and doub= le underlines? Can > >=C2=A0 =C2=A0 =C2=A0anyone suggest some other ways of doing it, plea= se? Like, for instance, > >=C2=A0 =C2=A0 =C2=A0can I have a reference to a particular section i= n another file? > > > >=C2=A0 =C2=A0 =C2=A0Thanks > >=C2=A0 =C2=A0 =C2=A0Sharon > >=C2=A0 =C2=A0 =C2=A0-- > >=C2=A0 =C2=A0 =C2=A0A taste of linux =3D http://www.sharons.org.uk > >=C2=A0 =C2=A0 =C2=A0TGmeds =3D http://www.tgmeds.org.uk > >=C2=A0 =C2=A0 =C2=A0DrugFacts =3D https://www.drugfacts.org.uk > >=C2=A0 =C2=A0 =C2=A0Debian 9.3, fluxbox 1.3.5-2, emacs 25.3.2, org-m= ode 9.1.4-2 > > >=20=20=20=20 > -- > A taste of linux =3D http://www.sharons.org.uk > TGmeds =3D http://www.tgmeds.org.uk > DrugFacts =3D https://www.drugfacts.org.uk > Debian 9.3, fluxbox 1.3.5-2, emacs 25.3.2, org-mode 9.1.4-2 > =2D-=20 A taste of linux =3D http://www.sharons.org.uk TGmeds =3D http://www.tgmeds.org.uk DrugFacts =3D https://www.drugfacts.org.uk=20=20 Debian 9.3, fluxbox 1.3.5-2, emacs 25.3.2, org-mode 9.1.4-2 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEELSc/6QwVBIYugJDbNoGAGQr4g1sFAlo4OX4ACgkQNoGAGQr4 g1sBfA/9FqQEW58h3BN6DHRV5wqv2XBJyLlg4ByjCafof3VRqmlB+GxU2bo2wQwI xNivb2QmK4WiVMBCHxTu5G/1GKiMmleSVrUIroqF21zVo5u4jlygNz10ybp+Afq3 +r/5Ui6TuJNBs2P5FxWQrzJ8RgNEZSxO4kKIl8CQPKF2fk/1KP0iGMQYAG5auorC nKWysotTqcidgMN9/sLVc1R1QdK4RVpQmwK1dc2edldqMYJMWNBt57TMo8bhdhK1 DxMgg+4F6lUi/WzSVrNYIEjcxNF+OQrT1tzcezQzhsjJPjPJGH9CAAOIB1fxdlNW oA6zHiWTY5Kky0s0vQ3O/7LURh4uA8DWzZs75jUABeKjt+J5HUyRYuralUYk01rO B3qRrA743FvrFbByPastfKkn02SHh9jY9qsK0XMiOvm0/JlPA+yIjUWbXF+wwmqo kLWw/RQi7IKAsfxXz6LppaGWLesN1nZwuNPFwToFlUIV6i8yL3IzsCD4H0NpmGP6 ZEqMeIdq+PQHJBFz+Nmq+YoM+yCJ7uSZi1wCOeyrNM9ZdD85Qzg/TZ87dWcSqSKx bdhdcgOfQq+N0FcECtLRIHN5fc3uJ3nSjr3QyRqpKXSHVYdYshzl8/WNVifoqzHo xPfNhCHnPQ1ubxBfqpFGb21zmJdch/3l+CavcIfCBVLwFQRr/jM= =sczp -----END PGP SIGNATURE----- --=-=-=--