emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [org-cite, oc-csl] setting no-link parameter within document?
@ 2021-06-04 11:50 Bruce D'Arcus
  2021-06-04 12:01 ` Denis Maier
  0 siblings, 1 reply; 9+ messages in thread
From: Bruce D'Arcus @ 2021-06-04 11:50 UTC (permalink / raw)
  To: org-mode-email

I see the processor has a org-cite-csl-link-cites defcustom to set
this globally, but can one set it at the document level?

Further explanation:

The default hyperref settings in latex export in general are too much,
with boxes everywhere and garish colors.

When coupled with a note style with bibliography, like
chicago-note-bibliography-16th-edition.csl, it's overwhelming, Notably
each footnoted text becomes linked. And in that case, the linked data
is redundant. Example and screenshots here:

https://github.com/andras-simonyi/citeproc-el/issues/24

So I can imagine a user generally leaving the defcustom set to true,
but on individual documents (like with the chicago example) wanting to
turn it off.

Note that one can, per the thread I link to above, turn off links, or
modify their colors, using hyperref. But that's specific to the latex
export, and I don't think (?) there's an easy way to set that at the
document level.

Bruce


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [org-cite, oc-csl] setting no-link parameter within document?
  2021-06-04 11:50 [org-cite, oc-csl] setting no-link parameter within document? Bruce D'Arcus
@ 2021-06-04 12:01 ` Denis Maier
  2021-06-04 12:18   ` Eric S Fraga
  0 siblings, 1 reply; 9+ messages in thread
From: Denis Maier @ 2021-06-04 12:01 UTC (permalink / raw)
  To: Bruce D'Arcus, org-mode-email

Am 04.06.2021 um 13:50 schrieb Bruce D'Arcus:
> I see the processor has a org-cite-csl-link-cites defcustom to set
> this globally, but can one set it at the document level?
> 
> Further explanation:
> 
> The default hyperref settings in latex export in general are too much,
> with boxes everywhere and garish colors.
> 
> When coupled with a note style with bibliography, like
> chicago-note-bibliography-16th-edition.csl, it's overwhelming, Notably
> each footnoted text becomes linked. And in that case, the linked data
> is redundant. Example and screenshots here:
> 
> https://github.com/andras-simonyi/citeproc-el/issues/24
> 
> So I can imagine a user generally leaving the defcustom set to true,
> but on individual documents (like with the chicago example) wanting to
> turn it off.
> 
> Note that one can, per the thread I link to above, turn off links, or
> modify their colors, using hyperref. But that's specific to the latex
> export, and I don't think (?) there's an easy way to set that at the
> document level.

Ok, I first thought you can just add the configuration to the 
LATEX_HEADER keywords, but that won't work since everything in there is 
loaded before hyperref.

So, I guess a LATEX_HYPERSETUP could make sense?

In the meantime users can just use a hyperref.cfg file to store their 
settings.

Denis

> 
> Bruce
> 
> 



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [org-cite, oc-csl] setting no-link parameter within document?
  2021-06-04 12:01 ` Denis Maier
@ 2021-06-04 12:18   ` Eric S Fraga
  2021-06-04 12:20     ` Denis Maier
  2021-06-04 12:24     ` Bruce D'Arcus
  0 siblings, 2 replies; 9+ messages in thread
From: Eric S Fraga @ 2021-06-04 12:18 UTC (permalink / raw)
  To: Denis Maier; +Cc: org-mode-email, Bruce D'Arcus

On Friday,  4 Jun 2021 at 14:01, Denis Maier wrote:
> Ok, I first thought you can just add the configuration to the
> LATEX_HEADER keywords, but that won't work since everything in there
> is loaded before hyperref.

I am not sure what is loaded before but most of my documents have
something along the lines of

#+latex_header: \hypersetup{colorlinks=true,citecolor=red!80!black,urlcolor=blue!60!black}

adjusted for individual documents; this works just fine for me.

-- 
: Eric S Fraga via Emacs 28.0.50, Org release_9.4.6-549-ga0a87d


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [org-cite, oc-csl] setting no-link parameter within document?
  2021-06-04 12:18   ` Eric S Fraga
@ 2021-06-04 12:20     ` Denis Maier
  2021-06-04 13:16       ` Eric S Fraga
  2021-06-04 12:24     ` Bruce D'Arcus
  1 sibling, 1 reply; 9+ messages in thread
From: Denis Maier @ 2021-06-04 12:20 UTC (permalink / raw)
  To: Org Mode List



Am 04.06.2021 um 14:18 schrieb Eric S Fraga:
> On Friday,  4 Jun 2021 at 14:01, Denis Maier wrote:
>> Ok, I first thought you can just add the configuration to the
>> LATEX_HEADER keywords, but that won't work since everything in there
>> is loaded before hyperref.
> I am not sure what is loaded before but most of my documents have
> something along the lines of
>
> #+latex_header: \hypersetup{colorlinks=true,citecolor=red!80!black,urlcolor=blue!60!black}
>
> adjusted for individual documents; this works just fine for me.
>
Ok, that would mean you can load \hypersetup before having 
\usepackage{hyperref}. Good if it works.

Denis


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [org-cite, oc-csl] setting no-link parameter within document?
  2021-06-04 12:18   ` Eric S Fraga
  2021-06-04 12:20     ` Denis Maier
@ 2021-06-04 12:24     ` Bruce D'Arcus
  2021-06-04 12:51       ` Denis Maier
  2021-06-04 13:28       ` Nicolas Goaziou
  1 sibling, 2 replies; 9+ messages in thread
From: Bruce D'Arcus @ 2021-06-04 12:24 UTC (permalink / raw)
  To: Org Mode List

On Fri, Jun 4, 2021 at 8:18 AM Eric S Fraga <e.fraga@ucl.ac.uk> wrote:
>
> On Friday,  4 Jun 2021 at 14:01, Denis Maier wrote:
> > Ok, I first thought you can just add the configuration to the
> > LATEX_HEADER keywords, but that won't work since everything in there
> > is loaded before hyperref.
>
> I am not sure what is loaded before but most of my documents have
> something along the lines of
>
> #+latex_header: \hypersetup{colorlinks=true,citecolor=red!80!black,urlcolor=blue!60!black}
>
> adjusted for individual documents; this works just fine for me.

Good to know; thanks!

I still think it would be valuable to have the option to do something
like this, so it works across export backends.

#+print_bibliography: :links nil

Bruce


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [org-cite, oc-csl] setting no-link parameter within document?
  2021-06-04 12:24     ` Bruce D'Arcus
@ 2021-06-04 12:51       ` Denis Maier
  2021-06-04 12:59         ` Bruce D'Arcus
  2021-06-04 13:28       ` Nicolas Goaziou
  1 sibling, 1 reply; 9+ messages in thread
From: Denis Maier @ 2021-06-04 12:51 UTC (permalink / raw)
  To: Bruce D'Arcus, Org Mode List

Am 04.06.2021 um 14:24 schrieb Bruce D'Arcus:
> On Fri, Jun 4, 2021 at 8:18 AM Eric S Fraga <e.fraga@ucl.ac.uk> wrote:
>>
>> On Friday,  4 Jun 2021 at 14:01, Denis Maier wrote:
>>> Ok, I first thought you can just add the configuration to the
>>> LATEX_HEADER keywords, but that won't work since everything in there
>>> is loaded before hyperref.
>>
>> I am not sure what is loaded before but most of my documents have
>> something along the lines of
>>
>> #+latex_header: \hypersetup{colorlinks=true,citecolor=red!80!black,urlcolor=blue!60!black}
>>
>> adjusted for individual documents; this works just fine for me.
> 
> Good to know; thanks!
> 
> I still think it would be valuable to have the option to do something
> like this, so it works across export backends.
> 
> #+print_bibliography: :links nil

Turns out, such an option already exists, at least for biblatex:
\usepackage[hyperref=false]{biblatex}

IIRC, it is possible to pass options to the biblatex package, right? As 
this is mostly relevant for biblatex I assume this here does the job.

Denis


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [org-cite, oc-csl] setting no-link parameter within document?
  2021-06-04 12:51       ` Denis Maier
@ 2021-06-04 12:59         ` Bruce D'Arcus
  0 siblings, 0 replies; 9+ messages in thread
From: Bruce D'Arcus @ 2021-06-04 12:59 UTC (permalink / raw)
  To: Denis Maier; +Cc: Org Mode List

On Fri, Jun 4, 2021 at 8:51 AM Denis Maier <denismaier@mailbox.org> wrote:

> > I still think it would be valuable to have the option to do something
> > like this, so it works across export backends.
> >
> > #+print_bibliography: :links nil
>
> Turns out, such an option already exists, at least for biblatex:
> \usepackage[hyperref=false]{biblatex}
>
> IIRC, it is possible to pass options to the biblatex package, right? As
> this is mostly relevant for biblatex I assume this here does the job.

What is "this"?

In any case, to restate:

Citeproc-el has a "no-links" parameter that can currently be
controlled with 'org-cite-csl-link-cites'.

By default it is set to t, which means one gets linked citations in
all output formats. This is fine and good.

I'm just asking to be able to do that at the document level.

That keyword could also be recognized by oc-biblatex too, though I'm
not specifically suggesting that ATM.

Bruce


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [org-cite, oc-csl] setting no-link parameter within document?
  2021-06-04 12:20     ` Denis Maier
@ 2021-06-04 13:16       ` Eric S Fraga
  0 siblings, 0 replies; 9+ messages in thread
From: Eric S Fraga @ 2021-06-04 13:16 UTC (permalink / raw)
  To: Denis Maier; +Cc: Org Mode List

On Friday,  4 Jun 2021 at 14:20, Denis Maier wrote:
> Ok, that would mean you can load \hypersetup before having
> \usepackage{hyperref}. Good if it works.

My exported LaTeX file has the usepackage appearing before the
hypersetup.  Does the order differ for you?

Org Latex header lines should be inserted in the exported LaTeX file
after the contents of the LaTeX class specifications
(org-latex-classes).
-- 
: Eric S Fraga via Emacs 28.0.50, Org release_9.4.6-549-ga0a87d


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [org-cite, oc-csl] setting no-link parameter within document?
  2021-06-04 12:24     ` Bruce D'Arcus
  2021-06-04 12:51       ` Denis Maier
@ 2021-06-04 13:28       ` Nicolas Goaziou
  1 sibling, 0 replies; 9+ messages in thread
From: Nicolas Goaziou @ 2021-06-04 13:28 UTC (permalink / raw)
  To: Bruce D'Arcus; +Cc: Org Mode List

Hello,

"Bruce D'Arcus" <bdarcus@gmail.com> writes:

> On Fri, Jun 4, 2021 at 8:18 AM Eric S Fraga <e.fraga@ucl.ac.uk> wrote:
>>
>> On Friday,  4 Jun 2021 at 14:01, Denis Maier wrote:
>> > Ok, I first thought you can just add the configuration to the
>> > LATEX_HEADER keywords, but that won't work since everything in there
>> > is loaded before hyperref.
>>
>> I am not sure what is loaded before but most of my documents have
>> something along the lines of
>>
>> #+latex_header: \hypersetup{colorlinks=true,citecolor=red!80!black,urlcolor=blue!60!black}
>>
>> adjusted for individual documents; this works just fine for me.
>
> Good to know; thanks!
>
> I still think it would be valuable to have the option to do something
> like this, so it works across export backends.
>
> #+print_bibliography: :links nil

You can use file local variables, or bind keywords.

Regards,
-- 
Nicolas Goaziou


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2021-06-04 13:28 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-06-04 11:50 [org-cite, oc-csl] setting no-link parameter within document? Bruce D'Arcus
2021-06-04 12:01 ` Denis Maier
2021-06-04 12:18   ` Eric S Fraga
2021-06-04 12:20     ` Denis Maier
2021-06-04 13:16       ` Eric S Fraga
2021-06-04 12:24     ` Bruce D'Arcus
2021-06-04 12:51       ` Denis Maier
2021-06-04 12:59         ` Bruce D'Arcus
2021-06-04 13:28       ` Nicolas Goaziou

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).