From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: double underlines and external references Date: Wed, 13 Dec 2017 14:19:53 -0800 Message-ID: References: <87o9n2smkx.fsf@skimble.plus.com> <87374esdu5.fsf@skimble.plus.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a11443ab2ae6cc20560402aab" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35772) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ePFNd-00085z-7v for Emacs-orgmode@gnu.org; Wed, 13 Dec 2017 17:19:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ePFNb-0007zw-KP for Emacs-orgmode@gnu.org; Wed, 13 Dec 2017 17:19:57 -0500 Received: from mail-wm0-x22c.google.com ([2a00:1450:400c:c09::22c]:44475) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ePFNb-0007zS-9f for Emacs-orgmode@gnu.org; Wed, 13 Dec 2017 17:19:55 -0500 Received: by mail-wm0-x22c.google.com with SMTP id t8so7846807wmc.3 for ; Wed, 13 Dec 2017 14:19:55 -0800 (PST) In-Reply-To: <87374esdu5.fsf@skimble.plus.com> 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: Sharon Kimble Cc: "emacs-orgmode@gnu.org" --001a11443ab2ae6cc20560402aab Content-Type: text/plain; charset="UTF-8" I see, if it is just export you can still use a link with custom exporters for internal and external recipes. eg: [[irec: some recipe label]] might export to \uline{some recipe label} and [[erec:some other recipe]] might export to \uuline{some other recipe}, and you would use the ulem latex package to get those commands. The colors I was referring to were for your benefit in org-mode to make it easy to see which kind of link it is. Another alternative is a macro: #+MACRO: irec \uline{$1} #+MACRO: erec \uuline{$1} #+LATEX_HEADER: \usepackage{ulem} {{{irec(some label)}}} and {{{erec(some other label)}}} This exports to: \uline{some label} and \uuline{some other label} John ----------------------------------- 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 On Wed, Dec 13, 2017 at 10:05 AM, Sharon Kimble wrote: > John Kitchin writes: > > > You could just use regular links for this. You could setup a face > function that changes the color depending on it being internal or external, > or you could make separate links for them. See > > 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 > > Thanks for replying John. > > I don't think I was quite as explicit as I should've been. I'm exporting > 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 printed > as books. > > Hence my need for both, double and single line, underlines. > > But I'm also open to any other way of finding some other way of showing > the different links, but I can only use either black or white colours. > > Thanks > Sharon. > > > > ----------------------------------- > > 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 > > > > On Wed, Dec 13, 2017 at 6:56 AM, Sharon Kimble < > boudiccas@skimble.plus.com> wrote: > > > > For my current series of books that I'm writing in org-mode which is > > being exported to latex, I need to differentiate between recipes in > the > > current working file, and to recipes in an external file. This is in > a > > series of books all containing recipes. So what I'm looking for is > the > > ability to use a single underline for internal, and a double > underline > > for external. I can do a single underline easily in org-mode, but I'm > > having problems with a double underline. > > > > But is it the best method, using single and double underlines? Can > > anyone suggest some other ways of doing it, please? Like, for > instance, > > can I have a reference to a particular section in another file? > > > > Thanks > > Sharon > > -- > > A taste of linux = http://www.sharons.org.uk > > TGmeds = http://www.tgmeds.org.uk > > DrugFacts = https://www.drugfacts.org.uk > > Debian 9.3, fluxbox 1.3.5-2, emacs 25.3.2, org-mode 9.1.4-2 > > > > -- > A taste of linux = http://www.sharons.org.uk > TGmeds = http://www.tgmeds.org.uk > DrugFacts = https://www.drugfacts.org.uk > Debian 9.3, fluxbox 1.3.5-2, emacs 25.3.2, org-mode 9.1.4-2 > --001a11443ab2ae6cc20560402aab Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I see, if it is just export you can still use a link with = custom exporters for internal and external recipes. eg: [[irec: some recipe= label]] might export to \uline{some recipe label} and [[erec:some other re= cipe]] might export to \uuline{some other recipe}, and you would use the ul= em latex package to get those commands.=C2=A0

The colors= I was referring to were for your benefit in org-mode to make it easy to se= e 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
Carne= gie Mellon University
Pittsburgh, PA 15213
412-268-7803

On Wed, Dec 13, 2017 at 10:05 AM, Sharon Kim= ble <boudiccas@skimble.plus.com> wrote:
John Kitchin <jkitchin@andrew.cmu.edu> writes:

> You could just use regular links for this. You could setup a face func= tion that changes the color depending on it being internal or external, or = you could make separate links for them. See=C2=A0
> http://kitchingrou= p.cheme.cmu.edu/blog/2016/11/04/New-link-features-in-org-9/ f= or many examples of what kinds of things can be done.
>
> John

Thanks for replying John.

I don't think I was quite as explicit as I should've been. I'm = exporting
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 printed as books.

Hence my need for both, double and single line, underlines.

But I'm also open to any other way of finding some other way of showing=
the different links, but I can only use either black or white colours.

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 <boudiccas@skimble.plus.com> 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 be= tween recipes in the
>=C2=A0 =C2=A0 =C2=A0current working file, and to recipes in an external= file. This is in a
>=C2=A0 =C2=A0 =C2=A0series of books all containing recipes. So what I&#= 39;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 double = underlines? Can
>=C2=A0 =C2=A0 =C2=A0anyone suggest some other ways of doing it, please?= Like, for instance,
>=C2=A0 =C2=A0 =C2=A0can I have a reference to a particular section in a= nother 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<= br> >=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-mode= 9.1.4-2
>

--
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

--001a11443ab2ae6cc20560402aab--