Re: [org-cite, oc-csl] setting no-link parameter within document?
Hello, "Bruce D'Arcus" writes: > On Fri, Jun 4, 2021 at 8:18 AM Eric S Fraga 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
Re: [org-cite, oc-csl] setting no-link parameter within document?
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
Re: [org-cite, oc-csl] setting no-link parameter within document?
On Fri, Jun 4, 2021 at 8:51 AM Denis Maier 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
Re: [org-cite, oc-csl] setting no-link parameter within document?
Am 04.06.2021 um 14:24 schrieb Bruce D'Arcus: On Fri, Jun 4, 2021 at 8:18 AM Eric S Fraga 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
Re: [org-cite, oc-csl] setting no-link parameter within document?
On Fri, Jun 4, 2021 at 8:18 AM Eric S Fraga 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
Re: [org-cite, oc-csl] setting no-link parameter within document?
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
Re: [org-cite, oc-csl] setting no-link parameter within document?
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
Re: [org-cite, oc-csl] setting no-link parameter within document?
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
[org-cite, oc-csl] setting no-link parameter within document?
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