Re: [O] double underlines and external references
John Kitchinwrites: Thanks for replying John. > 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. \uuline is working very nicely, and I've set it up through a yasnippet --8<---cut here---start->8--- # -*- mode: snippet -*- # name: double-underline # key: ulx # -- \uuline{ --8<---cut here---end--->8--- Thanks Sharon. > 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 > 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 > -- 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 signature.asc Description: PGP signature
Re: [O] double underlines and external references
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 Kimblewrote: > 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 < > boudic...@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 >
Re: [O] double underlines and external references
John Kitchinwrites: > 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 > 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 signature.asc Description: PGP signature
Re: [O] double underlines and external references
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 --- 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 Kimblewrote: > > 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 >
[O] double underlines and external references
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 signature.asc Description: PGP signature