emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* oc-biblatex too aggressive in replacing styles
@ 2021-11-28 17:01 Rasmus
  2021-11-28 17:19 ` Bruce D'Arcus
  2021-11-28 18:10 ` Nicolas Goaziou
  0 siblings, 2 replies; 6+ messages in thread
From: Rasmus @ 2021-11-28 17:01 UTC (permalink / raw)
  To: emacs-orgmode

Hi,

Thanks for providing ox-biblatex.

It works very well and has replaced my local hacks for LaTeX
bibliographies.

However, I think it is currently too aggressive in overwriting styles.

Could it perhaps accept any style that is given in
‘org-cite-biblatex-options’ / ‘org-latex-packages-alist’ and only
overwrite it if another style is explicitly specified in the file to be
exported?

A bit like how ox-koma-letter looks for in-buffer changed values.

Currently, the only way I have found that I can specify that I want to use
biblatex-chicago is by issuing

    #+cite_export: biblatex chicago-authordate

But this is a bit blunt as it overrules ‘org-cite-export-processors’ and
thus biblatex is used for e.g. text export (of course I can replicate
org-cite-export-processors with a macro that looks at the current export
backend).

(If you want I am happy to try to work on this)

Thanks,
Rasmus

Example:

    See [cite/t:@OrgCitations]

    #+bibliography: lit.bib

    # only way to "actuallyhicago:
    #+cite_export: biblatex chicago-authordate
    * settings :noexport:
    #+begin_src emacs-lisp
      (require 'oc-biblatex)
      ;; test 1:  style is gobbled 
      ;; (setq org-cite-biblatex-options "style=chicago-authordate, maxcitenames=2")
      ;; test 2:  style is gobbled
      ;; (setq org-latex-packages-alist '(("style=chicago-authordate, maxcitenames=2" "biblatex")))
      ;; test 3: biblatex and biblatex-chicago are both loaded
      ;; (setq org-latex-packages-alist '(("authordate" "biblatex-chicago")))
    #+end_src


-- 
9000!



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

* Re: oc-biblatex too aggressive in replacing styles
  2021-11-28 17:01 oc-biblatex too aggressive in replacing styles Rasmus
@ 2021-11-28 17:19 ` Bruce D'Arcus
  2021-11-28 17:38   ` Bruce D'Arcus
  2021-11-28 18:10 ` Nicolas Goaziou
  1 sibling, 1 reply; 6+ messages in thread
From: Bruce D'Arcus @ 2021-11-28 17:19 UTC (permalink / raw)
  To: Rasmus; +Cc: org-mode-email

[-- Attachment #1: Type: text/plain, Size: 998 bytes --]

On Sun, Nov 28, 2021, 12:04 PM Rasmus <rasmus@gmx.us> wrote:

However, I think it is currently too aggressive in overwriting styles.
>
> Could it perhaps accept any style that is given in
> ‘org-cite-biblatex-options’ / ‘org-latex-packages-alist’ and only
> overwrite it if another style is explicitly specified in the file to be
> exported?


I raised a similar question awhile back, and am not sure the best approach.

But to give some context:

The current styles in the core processors are designed for portability;
they are not natbib or biblatex or CSL styles, but org styles that can be
mapped to those targets in more-or-less consistent ways.

This is tricky to do, in part because of inconsistencies; in particular
between natbib and biblatex.

Which is to say, in some cases the style mappings might be enhanced or
modified.

But I agree there should be some kind to fallback, in particular for
biblatex, which has an insane amount of commands.

Bruce

[-- Attachment #2: Type: text/html, Size: 1668 bytes --]

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

* Re: oc-biblatex too aggressive in replacing styles
  2021-11-28 17:19 ` Bruce D'Arcus
@ 2021-11-28 17:38   ` Bruce D'Arcus
  2021-11-28 17:48     ` Rasmus
  0 siblings, 1 reply; 6+ messages in thread
From: Bruce D'Arcus @ 2021-11-28 17:38 UTC (permalink / raw)
  To: Rasmus; +Cc: org-mode-email

On Sun, Nov 28, 2021 at 12:19 PM Bruce D'Arcus <bdarcus@gmail.com> wrote:
>
> On Sun, Nov 28, 2021, 12:04 PM Rasmus <rasmus@gmx.us> wrote:
>
>> However, I think it is currently too aggressive in overwriting styles.
>>
>> Could it perhaps accept any style that is given in
>> ‘org-cite-biblatex-options’ / ‘org-latex-packages-alist’ and only
>> overwrite it if another style is explicitly specified in the file to be
>> exported?
>
> I raised a similar question awhile back, and am not sure the best approach.

Here's Nicolas' response to my query, which I agree with, and which is
consistent I think with what you are suggesting.

https://lists.gnu.org/archive/html//emacs-orgmode/2021-10/msg00449.html

Bruce


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

* Re: oc-biblatex too aggressive in replacing styles
  2021-11-28 17:38   ` Bruce D'Arcus
@ 2021-11-28 17:48     ` Rasmus
  0 siblings, 0 replies; 6+ messages in thread
From: Rasmus @ 2021-11-28 17:48 UTC (permalink / raw)
  To: emacs-orgmode

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

> On Sun, Nov 28, 2021 at 12:19 PM Bruce D'Arcus <bdarcus@gmail.com> wrote:
>>
>> On Sun, Nov 28, 2021, 12:04 PM Rasmus <rasmus@gmx.us> wrote:
>>
>
>>> However, I think it is currently too aggressive in overwriting styles.
>>>
>>> Could it perhaps accept any style that is given in
>>> ‘org-cite-biblatex-options’ / ‘org-latex-packages-alist’ and only
>>> overwrite it if another style is explicitly specified in the file to be
>>> exported?
>>
>> I raised a similar question awhile back, and am not sure the best approach.
>
> Here's Nicolas' response to my query, which I agree with, and which is
> consistent I think with what you are suggesting.
>
> https://lists.gnu.org/archive/html//emacs-orgmode/2021-10/msg00449.html
>
> Bruce

Thanks a lot for pointing me to that thread! 

Rasmus



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

* Re: oc-biblatex too aggressive in replacing styles
  2021-11-28 17:01 oc-biblatex too aggressive in replacing styles Rasmus
  2021-11-28 17:19 ` Bruce D'Arcus
@ 2021-11-28 18:10 ` Nicolas Goaziou
  2021-11-30 19:43   ` Rasmus
  1 sibling, 1 reply; 6+ messages in thread
From: Nicolas Goaziou @ 2021-11-28 18:10 UTC (permalink / raw)
  To: Rasmus; +Cc: emacs-orgmode

Hello,

Rasmus <rasmus@gmx.us> writes:

> However, I think it is currently too aggressive in overwriting styles.

Ah?

> Could it perhaps accept any style that is given in
> ‘org-cite-biblatex-options’ / ‘org-latex-packages-alist’ and only
> overwrite it if another style is explicitly specified in the file to be
> exported?

Isn't it the case already?

> Currently, the only way I have found that I can specify that I want to use
> biblatex-chicago is by issuing
>
>     #+cite_export: biblatex chicago-authordate

If you need chicago-authordate style globally, you can set
`org-cite-export-processors' instead, e.g., to

  ((t biblatex "chicago-authordate"))

You are responsible, however, for requiring appropriate packages in the
document header (with `org-latex-packages-alist', for example).

Regards,
-- 
Nicolas Goaziou


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

* Re: oc-biblatex too aggressive in replacing styles
  2021-11-28 18:10 ` Nicolas Goaziou
@ 2021-11-30 19:43   ` Rasmus
  0 siblings, 0 replies; 6+ messages in thread
From: Rasmus @ 2021-11-30 19:43 UTC (permalink / raw)
  To: mail; +Cc: emacs-orgmode

Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:

> Hello,
>
> Rasmus <rasmus@gmx.us> writes:
>
>> However, I think it is currently too aggressive in overwriting styles.
>
> Ah?
>
>> Could it perhaps accept any style that is given in
>> ‘org-cite-biblatex-options’ / ‘org-latex-packages-alist’ and only
>> overwrite it if another style is explicitly specified in the file to be
>> exported?
>
> Isn't it the case already?

For me it is not. But maybe I used the latest release and not the latest git version.  Let me recheck and get pack. 

>> Currently, the only way I have found that I can specify that I want to use
>> biblatex-chicago is by issuing
>>
>>     #+cite_export: biblatex chicago-authordate
>
> If you need chicago-authordate style globally, you can set
> `org-cite-export-processors' instead, e.g., to
>
>   ((t biblatex "chicago-authordate"))

I see. I had missed that you could supply a third argument, but it seems to work perfectly! Thanks! 
(And sorry about the noise.)

Maybe I will try to write a patch for the manual.

Kind regards,
Rasmus

-- 
A clever person solves a problem. A wise person avoids it


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

end of thread, other threads:[~2021-11-30 19:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-28 17:01 oc-biblatex too aggressive in replacing styles Rasmus
2021-11-28 17:19 ` Bruce D'Arcus
2021-11-28 17:38   ` Bruce D'Arcus
2021-11-28 17:48     ` Rasmus
2021-11-28 18:10 ` Nicolas Goaziou
2021-11-30 19:43   ` Rasmus

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