From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id SMzxOgHvH2ZiCwAA62LTzQ:P1 (envelope-from ) for ; Wed, 17 Apr 2024 17:47:14 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id SMzxOgHvH2ZiCwAA62LTzQ (envelope-from ) for ; Wed, 17 Apr 2024 17:47:14 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=AEe8J4tQ; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1713368833; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=6JhJpTeQ1AA2n8RsVPAF82/AQTafyhL/0xr9jiPJPkQ=; b=U7oWkmg1/NCIXs4JQFOBYutR3OrOMcwv+xmhkOEytrdmO5qTqTTY6FCl5B1OxwO4XYStTq NpY1Z33214pcO9fpzXqn5ESAwMZaF4obJNXmS1F6m/9T2HQgPPtqED57mEipDX5sMWXGHy CZhBDtRwXmu9S8YJc74vRMmYR0mmsc0AfhE1u5sCEOWfJMV8CGxsa56RThpRSrkwTnA27N fb2Eh0SvHyUa0cM1zwovFPoqlwecDZUPbNbg8WiXIvnhHJnZP+n12LF8Fay5+t87bX0G89 iLy30Tjk7HxAfl63OQ14i4ulD5rq2WfUGYTJ6oV1E0v4V2ZuCED5jTUmH481gg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1713368833; a=rsa-sha256; cv=none; b=dQwsMdkv4z9aA3FShB7+ZQ6M9j54ay4VP1EXtVl85RsKGDAJJUGLOJAu4Apg+uIFJlNi/M B7obcUPw9qVNGuHRLR3Bft91CFrUlNu9ZzD9X9miiXilo9UKXAQs0ywQzlF5bNDv9El9rX yp+VQhZMXDyty4hTjEmJdKznLWzyO3zH5bZb57CSzGctOILJNxmIsY82b1hk59MLgEaHQ4 /MKoaTTRDsU84CA9fQ3lPDkSU3RvsgzfwcELmk+6CBJ3OBf5QwcwQZcZiHwKP78lnVNP0Z rb4JS/if6PoyRlwltmR22KM8L9gEHQGcS1fmrwLy6LMkrXx5XsCgJffIi+aVzw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=AEe8J4tQ; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 7DAA71EB4D for ; Wed, 17 Apr 2024 17:47:13 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rx7UJ-0004vq-1V; Wed, 17 Apr 2024 11:46:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rx7UF-0004ve-Vf for emacs-orgmode@gnu.org; Wed, 17 Apr 2024 11:46:16 -0400 Received: from mail-ed1-x530.google.com ([2a00:1450:4864:20::530]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rx7UC-0005zM-5E for emacs-orgmode@gnu.org; Wed, 17 Apr 2024 11:46:15 -0400 Received: by mail-ed1-x530.google.com with SMTP id 4fb4d7f45d1cf-56e477db7fbso9533204a12.3 for ; Wed, 17 Apr 2024 08:46:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713368770; x=1713973570; darn=gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=6JhJpTeQ1AA2n8RsVPAF82/AQTafyhL/0xr9jiPJPkQ=; b=AEe8J4tQVM0rithfXKuGE8O4dKueX3bIZRc2sKuNHZODdLJjGu+Yqoe1ThWJzQr08Z 3EujgxRmR69NLhevLIyFP/NZOI5UZ+56xOu6hbIRz5q5a2OxTyThbGAzS1pFT/Dyq+yj XXAOo43fJf9ee8JMPY/kQM/S6NAEAYDb4/G41oEEbmkKdF5ltyAPFHwnIl0FuIAig0m1 ts/Z5iqwxXOzs4uimxRvpJ+CQk8JK9f58AxUIO53YPbfeda3gpL8tq3+w9zY4Z5nahwh rVl149yuvwSr14sEis8w4APHs5/O30/m6wL+HomX+6MRvxMW/Eh4v+YCkxYDJuaqRpCH le4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713368770; x=1713973570; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=6JhJpTeQ1AA2n8RsVPAF82/AQTafyhL/0xr9jiPJPkQ=; b=R+wGYzx9PlP8+KDNDbtcahkgkNxd8y5K6cnSpDuIl4HR13+JYavzgXGXkYLNrXGtPX WxqZ+D+jXEOTQf2OxeMWLWFKpqARYQ9jtqJtypqHyoJhzRAM0HLsNWh9+JRxL/XslqpY cmbbT/z7P2Zze9ZKxjJuhCX+yHLxq0K/tL+ayb+w/MLdv0nJFsTYT12Ua49IMkrnLshF 8tBZf6lWfu3mE6MAKCXOlvgl85Fftuenx98/Queccy2pUv1lKHM8KhCG52n1DLLH12J7 vLxqRPIKuU11ESAAviI8Zbb8FYMPaKUzjJg3yS9ZJG732duo3nR/Tsji5xLRiu03mUTW k4EQ== X-Gm-Message-State: AOJu0YxeFmOygMAXm+VQSxoOvHKYt7rAPeh29E9siSat8uSAuB26xkVD m4O7jteCsG7I7aAJkiZssLLEM8jcCq7KZ5ABU4wWk4XSX2AgiPZoajlFoWw3i5I6tlyogzrcyny rZD0VALtSqONcF0tMHqi9UpDOHBw= X-Google-Smtp-Source: AGHT+IGPVhbAcUIfAL6HGPhpwpZCuysii52YTsSGe0/xhB67sx9XKSXDLR5aVzjwxMB1wIlbmr22pn/WLPPYPPuLEgE= X-Received: by 2002:a50:9e4e:0:b0:56e:238e:372c with SMTP id z72-20020a509e4e000000b0056e238e372cmr12234735ede.26.1713368770097; Wed, 17 Apr 2024 08:46:10 -0700 (PDT) MIME-Version: 1.0 References: <2E7CA21A-ADA7-49EA-89BF-784045D1F777@gmail.com> <87ttk5bads.fsf@localhost> In-Reply-To: From: Pedro Andres Aranda Gutierrez Date: Wed, 17 Apr 2024 17:45:43 +0200 Message-ID: Subject: Re: PATCH allow explicit style= in #+cite_export: biblatex To: Ihor Radchenko Cc: Org Mode List Content-Type: multipart/alternative; boundary="000000000000e93cd006164cc06f" Received-SPF: pass client-ip=2a00:1450:4864:20::530; envelope-from=paaguti@gmail.com; helo=mail-ed1-x530.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -9.68 X-Spam-Score: -9.68 X-Migadu-Queue-Id: 7DAA71EB4D X-Migadu-Scanner: mx12.migadu.com X-TUID: p/b2ldT8yEUL --000000000000e93cd006164cc06f Content-Type: text/plain; charset="UTF-8" BTW, I was thinking that maybe "\\`[^=]+=" may be better than matching style= anywhere in the options string... Open to discuss it... /PA On Wed, 17 Apr 2024 at 09:00, Pedro Andres Aranda Gutierrez < paaguti@gmail.com> wrote: > Stop the press... I discovered a small bug in the last patch. > Attached is a new version. > > /PA > > On Wed, 17 Apr 2024 at 08:22, Pedro Andres Aranda Gutierrez < > paaguti@gmail.com> wrote: > >> Hi again >> >> Rationale of the patch: >> Currently, when the options to biblatex are _not_ xxx/xxx format, a >> style= is prepended, because >> it is assumed that it will be a biblatex options string starting with a >> style. >> With the proposed patch, I add the possibility of using a biblatex >> options string where style= is stated >> explicitly (anywhere in the string). This adds congruency WRT >> the ~org-cite-biblatex-options~ variable. >> >> Best, /PA >> >> On Sun, 14 Apr 2024 at 09:16, Pedro Andres Aranda Gutierrez < >> paaguti@gmail.com> wrote: >> >>> HI, full answer... >>> >>> In the original code, that section prepends "style=" in some cases. I >>> have stumbled across >>> instances where the options started with style= because they were taken >>> directly from LaTeX >>> and the generated code ended by like: >>> \usepackage[style=style=numeric,backend=biber]{biblatex} >>> for >>> #+cite_export: biblatex style=numeric,backend=biber >>> which, BTW, is something someone used the LaTeX may parse as correct. >>> I was just trying to cater for this case. >>> >>> Best, /PA >>> >>> >>> On Sun, 14 Apr 2024 at 07:30, Pedro Andres Aranda Gutierrez < >>> paaguti@gmail.com> wrote: >>> >>>> Sorry... I was not right... You are right. I'll take a look at it again. >>>> /PA >>>> >>>> On Sun, 14 Apr 2024 at 07:22, Pedro Andres Aranda Gutierrez < >>>> paaguti@gmail.com> wrote: >>>> >>>>> Hi, >>>>> >>>>> Maybe not... because style= is a keyword for the biblatex package, >>>>> while bibstyle or citestyle aren't. >>>>> >>>>> Best, /PA >>>>> >>>>> On Sat, 13 Apr 2024 at 16:32, Ihor Radchenko >>>>> wrote: >>>>> >>>>>> Pedro Andres Aranda Gutierrez writes: >>>>>> >>>>>> > HI, >>>>>> > Attached is a small patch to allow explicitly adding style= in the >>>>>> biblatex export options, to increase consistency with >>>>>> > Customisation variables. >>>>>> >>>>>> Thanks! >>>>>> >>>>>> > (style-options >>>>>> > (cond >>>>>> > ((null style) nil) >>>>>> > + ;; allow the user to include "style=" anywhere in the >>>>>> style options >>>>>> > + ((string-match "\\(^s\\|,s\\)tyle=" style) (list style)) >>>>>> > ((not (string-match "/" style)) (list (concat "style=" >>>>>> style))) >>>>>> > (t >>>>>> > (list (concat "bibstyle=" (substring style nil >>>>>> (match-beginning 0))) >>>>>> >>>>>> If we allow style=..., may as well allow bibstyle= and citestyle=. >>>>>> >>>>>> -- >>>>>> Ihor Radchenko // yantar92, >>>>>> Org mode contributor, >>>>>> Learn more about Org mode at . >>>>>> Support Org development at , >>>>>> or support my work at >>>>>> >>>>> >>>>> >>>>> -- >>>>> Fragen sind nicht da, um beantwortet zu werden, >>>>> Fragen sind da um gestellt zu werden >>>>> Georg Kreisler >>>>> >>>>> Headaches with a Juju log: >>>>> unit-basic-16: 09:17:36 WARNING juju.worker.uniter.operation we should >>>>> run a leader-deposed hook here, but we can't yet >>>>> >>>>> >>>> >>>> -- >>>> Fragen sind nicht da, um beantwortet zu werden, >>>> Fragen sind da um gestellt zu werden >>>> Georg Kreisler >>>> >>>> Headaches with a Juju log: >>>> unit-basic-16: 09:17:36 WARNING juju.worker.uniter.operation we should >>>> run a leader-deposed hook here, but we can't yet >>>> >>>> >>> >>> -- >>> Fragen sind nicht da, um beantwortet zu werden, >>> Fragen sind da um gestellt zu werden >>> Georg Kreisler >>> >>> Headaches with a Juju log: >>> unit-basic-16: 09:17:36 WARNING juju.worker.uniter.operation we should >>> run a leader-deposed hook here, but we can't yet >>> >>> >> >> -- >> Fragen sind nicht da, um beantwortet zu werden, >> Fragen sind da um gestellt zu werden >> Georg Kreisler >> >> Headaches with a Juju log: >> unit-basic-16: 09:17:36 WARNING juju.worker.uniter.operation we should >> run a leader-deposed hook here, but we can't yet >> >> > > -- > Fragen sind nicht da, um beantwortet zu werden, > Fragen sind da um gestellt zu werden > Georg Kreisler > > Headaches with a Juju log: > unit-basic-16: 09:17:36 WARNING juju.worker.uniter.operation we should run > a leader-deposed hook here, but we can't yet > > -- Fragen sind nicht da, um beantwortet zu werden, Fragen sind da um gestellt zu werden Georg Kreisler Headaches with a Juju log: unit-basic-16: 09:17:36 WARNING juju.worker.uniter.operation we should run a leader-deposed hook here, but we can't yet --000000000000e93cd006164cc06f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
BTW, I was thinking that maybe "\\`[^=3D]+=3D" m= ay be better than matching style=3D anywhere in the options string...
O= pen to discuss it...
/PA

On Wed, 17 Apr 2024 at 09:00, Pedro= Andres Aranda Gutierrez <paaguti@g= mail.com> wrote:
Stop the press... I discovered a small bug in the = last patch.=C2=A0
Attached is a new version.

/= PA

On Wed, 17 Apr 2024 at 08:22, Pedro Andres Aranda Gutierrez <paaguti@gmail.com&g= t; wrote:
Hi again

Rationale=C2=A0of the patch:=C2=A0
Currently, when the options to biblatex are _not_ xxx/xxx format, = a style=3D is prepended, because
it is assumed that it will be a = biblatex options string starting with a style.=C2=A0
With the pro= posed patch, I add the possibility of using a biblatex options string where= style=3D is stated
explicitly (anywhere in the string). This add= s congruency=C2=A0WRT the=C2=A0~org-cite-biblatex-options~ variable.
<= div>
Best, /PA

On Sun, 14 Apr 2024 at 09:16, Pedro Andre= s Aranda Gutierrez <paaguti@gmail.com> wrote:
HI, full answer...=C2=A0

In the original code, that section prepends "style=3D" in s= ome cases. I have stumbled across
instances where the options sta= rted with style=3D because they were taken directly from LaTeX
an= d the generated code ended by like:
\usepackage[style=3Dstyle=3Dn= umeric,backend=3Dbiber]{biblatex}
for=C2=A0
#+cite_expo= rt: biblatex style=3Dnumeric,backend=3Dbiber
which, BTW, is somet= hing someone used the LaTeX may parse as correct.
I was just tryi= ng to cater for this case.

Best, /PA

On Sun, 14 Apr 2024 at 07:30, Pedro Andres Aranda Gutierrez <paaguti@gmail.com>= ; wrote:
Sorry... I was not right... You are right. I'll take a look a= t it again.
/PA

On Sun, 14 Apr 2024 at 07:22, Pedro Andres Aranda = Gutierrez <paagut= i@gmail.com> wrote:
Hi,

Maybe not... because sty= le=3D is a keyword for the biblatex package, while bibstyle or citestyle ar= en't.=C2=A0

Best, /PA

On Sat, 13 Apr 2024= at 16:32, Ihor Radchenko <yantar92@posteo.net> wrote:
Pedro Andres Aranda Gutierrez <paaguti@gmail.com> w= rites:

> HI,
> Attached is a small patch to allow explicitly adding style=3D in the b= iblatex export options, to increase consistency with
> Customisation variables.

Thanks!

>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (style-options
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(cond
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ((null style) nil)
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ;; allow the user to include "= ;style=3D" anywhere in the style options
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ((string-match "\\(^s\\|,s\\)= tyle=3D" style) (list style))
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ((not (string-match "/&q= uot; style)) (list (concat "style=3D" style)))
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (t
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(list (concat "bib= style=3D" (substring style nil (match-beginning 0)))

If we allow style=3D..., may as well allow bibstyle=3D and citestyle=3D.
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,=
or support my work at <https://liberapay.com/yantar92>


--
Fragen sind nicht da, um bea= ntwortet zu werden,
Fragen sind da um gestellt zu werden
= Georg Kreisler

Headaches with a Juju log:
unit-basic-16: 09:17:36 WARNING juju.worker.uniter.operation we should ru= n a leader-deposed hook here, but we can't yet



--
Fragen sind nicht da, um bea= ntwortet zu werden,
Fragen sind da um gestellt zu werden
= Georg Kreisler

Headaches with a Juju log:
unit-basic-16: 09:17:36 WARNING juju.worker.uniter.operation we should ru= n a leader-deposed hook here, but we can't yet



--
Fragen sind nicht da, um bea= ntwortet zu werden,
Fragen sind da um gestellt zu werden
= Georg Kreisler

Headaches with a Juju log:
unit-basic-16: 09:17:36 WARNING juju.worker.uniter.operation we should ru= n a leader-deposed hook here, but we can't yet



--
Fragen sind nicht da, um bea= ntwortet zu werden,
Fragen sind da um gestellt zu werden
= Georg Kreisler

Headaches with a Juju log:
unit-basic-16: 09:17:36 WARNING juju.worker.uniter.operation we should ru= n a leader-deposed hook here, but we can't yet



--
Fragen sind nicht da, um bea= ntwortet zu werden,
Fragen sind da um gestellt zu werden
= Georg Kreisler

Headaches with a Juju log:
unit-basic-16: 09:17:36 WARNING juju.worker.uniter.operation we should ru= n a leader-deposed hook here, but we can't yet



--
Fragen sind nicht da, um bea= ntwortet zu werden,
Fragen sind da um gestellt zu werden
= Georg Kreisler

Headaches with a Juju log:
unit-basic-16: 09:17:36 WARNING juju.worker.uniter.operation we should ru= n a leader-deposed hook here, but we can't yet

--000000000000e93cd006164cc06f--