From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id mBTcDSGDG2ZfNAEAqHPOHw:P1 (envelope-from ) for ; Sun, 14 Apr 2024 09:17:53 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id mBTcDSGDG2ZfNAEAqHPOHw (envelope-from ) for ; Sun, 14 Apr 2024 09:17:53 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=IOMAlCUA; dmarc=pass (policy=none) header.from=gmail.com; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1713079073; a=rsa-sha256; cv=none; b=QxLVNijICzNtQ9T/fmkHDspc3hxEjTB2qXrVvoU+Ljo9lkBMM1/hyJPANdhtLHZ9M027rz UYPn0j/dTEhOZiVZv2pJPKhMYuKEmWwsyd/mg0x9LExboHSlcMm7maeNXwgpOZxCdUeA21 sgJWrIPcMdAbBgTBbtPT/xzIAT84OZeMxAjoNhwBi+QJhFas0eEVw/Fj+U6Xg0VcfmqfXI myeCiJH4auG/yuyctLI/oX5GBjCRKFqAIjukCeuZz1OltJeehq1Ug6t4DfT6UB6UXJ1/Kb wfzZDX+PYbiLw2t04NOB3WYFUz3SP1FQXpxfjDZb6V+q8kbChU5eCHnXsA1xzw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=IOMAlCUA; dmarc=pass (policy=none) header.from=gmail.com; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1713079073; 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=puxzwxzrVgnybdbGKB04VROyFXZpPYWjwEQSc0t75Kg=; b=hQJMxrWSTLuyjPLjKgNR0v8ZbpjMpoZQ35PmO8+Z65+vqHfOMZpIukZU3tqVNMoc2MwW43 wq7hTrEXR+5H1DR+9VRm3IdsZndx8n+OsKCN7339SBjQBZVQ7+iX1pnQlUDa8PcWFA41Ry mfsRciA+M5UcHH+kBPNlyyIxum38BZ72qcb23d7X+Ofp7yTA6yXkcKzPvy175mnS/LN1u1 wOiygrwOtGzz8n7xrFhfqE5GphCyX6WOkfO5lsP9Xoi4HXFmNAxRWYzUdCgA/LIDG1vRSK JFv7Sk7kBSEjbC73IjHZXPXrT5k4BnZv6XEI7tcMgMoEJHRGv+TboDIjPAlLVQ== 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 D93CDCF2E for ; Sun, 14 Apr 2024 09:17:52 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rvu6h-0002hD-Rc; Sun, 14 Apr 2024 03:16:55 -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 1rvu6f-0002gn-Lf for emacs-orgmode@gnu.org; Sun, 14 Apr 2024 03:16:53 -0400 Received: from mail-ed1-x531.google.com ([2a00:1450:4864:20::531]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rvu6d-0005o4-J7 for emacs-orgmode@gnu.org; Sun, 14 Apr 2024 03:16:53 -0400 Received: by mail-ed1-x531.google.com with SMTP id 4fb4d7f45d1cf-56c5d05128dso2043572a12.0 for ; Sun, 14 Apr 2024 00:16:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713079009; x=1713683809; 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=puxzwxzrVgnybdbGKB04VROyFXZpPYWjwEQSc0t75Kg=; b=IOMAlCUAa3Hg/ST5+6fjXcye3mJjx4TEvmwPPWH94hwSofgPDw7VahqUt3IE9nsHxt W7sgu/5KmJCvfLFEklkQXqGm4pbI1T+Ssyp7HY+U2aOaLbfzFPOl8uRmRizyo2Cx2klE aIyHCoHk3oQc7pt60QikMsPhJSrFluEHujC9UqhB1jEGx20i2HMrQYWiZjT6kIXlUydT b4Y+0ykZIP0pjbGVt7fW4X57DCb5ior4N4GyJsJlOHq4a8sVlreao9HTY7Pa8UtYGGg5 qJHj0VhX0KbWaUQbBxsmEOJj9R9Iy9/DJ+gSgoDmhw+4TTHuAF5ui7YDqCjS6tiriO3d WN0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713079009; x=1713683809; 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=puxzwxzrVgnybdbGKB04VROyFXZpPYWjwEQSc0t75Kg=; b=KSjXtErqauNrfakbGH0170HHiKr7ltAvNTNBdYbBXe4xqx8Q2IVOnl8nxQEHKn1rWw PaUUWxwq2lskUr6w0bYMem35hZDotHqkDkwW8YaV15xbzyNYMJvbb/rCy0uvIyPHEjpG iszqRvSxB5Ay9yT4KktuU8wi80WrMcLx20bEWJUrxs21YZbK+mvnitTdHdG7kij1vwhx suo86EuK5Q1yfDOH2W4zx5Tc7wxawSjshweqHhg5qn2zQzwXzzIKSawHIXFCzGwLcyPy ehHtLD09Ej80BvnJbjtSiK1vmn3qbs+InHQsFKcYSZjGjKEV+PJyKIN6yEz0F4m+tFhM XqzA== X-Gm-Message-State: AOJu0YymCDmSMz3ycAspa4vkMEbrggxXX/SK8VtQepLOSLlpys5Z3U/+ mVQKtbyyozIsvfGP3YAha+6pBJSolXBtW9sEe/ku+XpkdUpHp5TqPyz+C7zu547rSpoLdtUh3lh 9TpkM9rYtlgW4DkYtyPoHzIyLGeNPgg== X-Google-Smtp-Source: AGHT+IGgLTZkGrSQzVu8mZrITNbuGRT03rVsn8TzgCj6NATY4YFMlfwhfEnxKlWaOcoOJNvRcB0g/w+paSwTHXLqUHE= X-Received: by 2002:a50:d78f:0:b0:568:d757:f7d2 with SMTP id w15-20020a50d78f000000b00568d757f7d2mr4713512edi.10.1713079009099; Sun, 14 Apr 2024 00:16:49 -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: Sun, 14 Apr 2024 09:16:23 +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="000000000000cf474e06160949c8" Received-SPF: pass client-ip=2a00:1450:4864:20::531; envelope-from=paaguti@gmail.com; helo=mail-ed1-x531.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-Spam-Score: -9.68 X-Migadu-Queue-Id: D93CDCF2E X-Migadu-Spam-Score: -9.68 X-Migadu-Scanner: mx10.migadu.com X-TUID: QcikDUj5+gTo --000000000000cf474e06160949c8 Content-Type: text/plain; charset="UTF-8" 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 --000000000000cf474e06160949c8 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
HI, full answer...=C2=A0

In the origina= l code, that section prepends "style=3D" in some cases. I have st= umbled across
instances where the options started with style=3D b= ecause they were taken directly from LaTeX
and the generated code= ended by like:
\usepackage[style=3Dstyle=3Dnumeric,backend=3Dbib= er]{biblatex}
for=C2=A0
#+cite_export: biblatex style= =3Dnumeric,backend=3Dbiber
which, BTW, is something someone used = the LaTeX may parse as correct.
I was just trying to cater for th= is case.

Best, /PA


<= div class=3D"gmail_quote">
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=3D is a keyword for the biblatex= package, while bibstyle or citestyle aren't.=C2=A0

Best, /PA

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

> 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

--000000000000cf474e06160949c8--