From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>
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 8AAXAhm/JmaTFgAA62LTzQ:P1
	(envelope-from <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Mon, 22 Apr 2024 21:48:41 +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 8AAXAhm/JmaTFgAA62LTzQ
	(envelope-from <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Mon, 22 Apr 2024 21:48:41 +0200
X-Envelope-To: larch@yhetil.org
Authentication-Results: aspmx1.migadu.com;
	dkim=pass header.d=posteo.net header.s=2017 header.b=UJEZ9ung;
	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=posteo.net
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org;
	s=key1; t=1713815321;
	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=y+f1Fwux4dBcu9xWpzmhknFvk4YuHoupDCF/vJqkaAc=;
	b=bUfnOqoHNevOls+qPWAzvv7ifpYz3inY+zjTacDlxMlYuFdCA7pS6uDDXuTqVbx60Z3fS5
	/POUqIIRAp4EcCdNclpcyfQftKK3r0k7MeGi0Ztw3JGGTZYZtCfYR9GQ8LO4N9JpM28rSW
	QZ2DXDz7K0ioQjN+cg5h2e2qo6yTprmCiw2bBjt/jKTACheR/1TGUTf1HQe/zJYOfM77wG
	Gt9ddWPCZGE5ModuGCjOX4dysSGuuvSlg6U5eTYtqpHOrNza8V22ssI2dgnSETtIIni7Mx
	G/sGYSs1xfmmhTS1YJy+gD5j5dxcFgZOLUeXUedr7m7Rymc3XVxyQnKwDtV4cA==
ARC-Seal: i=1; s=key1; d=yhetil.org; t=1713815321; a=rsa-sha256; cv=none;
	b=MwKRf/CG5dDwjjf5FYYSwoRX/HIYirNHSatP6gJCJe4EAlONvaTW8SNjqmKBhIgHQnke1t
	3n4T23fB2xgW14oWzTDjobTrZEB0RQMgxTk366UoBk1phfjz1ENWO8/KEAU18vOjc4Ffy1
	5aPgquUv83tOvIE0TF7EVhLAveHAmB00Rx2FgHHxZQqKa2gIJIXp7JSpNUQ2zOtmPzmh6i
	wmNPMjBe02WdlxLaCU8xqPnzNQA1FWCoG1eJEpMvzsicGFddtL44pGJXB0ZiHKBJxT4csl
	HG3pzHTVkQdzC+AWlgOsq9+ekc5BuTiw4o1XdzK0GEbpUWJFFrooxQP5Xsu/xQ==
ARC-Authentication-Results: i=1;
	aspmx1.migadu.com;
	dkim=pass header.d=posteo.net header.s=2017 header.b=UJEZ9ung;
	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=posteo.net
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 A9F2B26D6B
	for <larch@yhetil.org>; Mon, 22 Apr 2024 21:48:40 +0200 (CEST)
Received: from localhost ([::1] helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <emacs-orgmode-bounces@gnu.org>)
	id 1ryzdx-0006Ib-M3; Mon, 22 Apr 2024 15:48:02 -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 <yantar92@posteo.net>)
 id 1ryzcD-0004lf-C9
 for emacs-orgmode@gnu.org; Mon, 22 Apr 2024 15:46:13 -0400
Received: from mout01.posteo.de ([185.67.36.65])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <yantar92@posteo.net>)
 id 1ryzc9-0000f2-BU
 for emacs-orgmode@gnu.org; Mon, 22 Apr 2024 15:46:11 -0400
Received: from submission (posteo.de [185.67.36.169]) 
 by mout01.posteo.de (Postfix) with ESMTPS id 100A3240029
 for <emacs-orgmode@gnu.org>; Mon, 22 Apr 2024 21:46:04 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017;
 t=1713815165; bh=eJeDY8DmCUHPP+bXatVBIlgLKnmCHyXXtj+BCEOqC30=;
 h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type:
 From;
 b=UJEZ9ung3F5J65rKgPv1JWNsJSv9ErCfTmYujvyNs9KE+6DdH7FVoUTQttIq6lNO0
 nHUT7g3CyUHxNKoOiIOMUsix9EVzlKB7j8/bnJ5954TpkCYF7lhtKmg08EP710k4wj
 u4Y50GElq0BY+0XV0uScjVVee1mKxughHpa7R+0vFcVZox1kyiMd3Bl4TvzZ1VVwbI
 tfdQIQ7zgo0zJfN4QYvHPp2TiR/KWcEgSATc2IV/DhTOGwlTuCoNB9c4EBM+MMFu3j
 wnTtRYhLdOD9fVAny3SWPBIEJ0Dev9INyD7+sVs8LfBR9G0kl8Bd6xGSPUh37n0JG0
 csdVhGstnN0bA==
Received: from customer (localhost [127.0.0.1])
 by submission (posteo.de) with ESMTPSA id 4VNbMv65zfz9rxG;
 Mon, 22 Apr 2024 21:46:03 +0200 (CEST)
From: Ihor Radchenko <yantar92@posteo.net>
To: Pedro Andres Aranda Gutierrez <paaguti@gmail.com>
Cc: Org Mode List <emacs-orgmode@gnu.org>
Subject: Re: PATCH allow explicit style= in #+cite_export: biblatex
In-Reply-To: <CAO48Bk93h1gtMg4fsDTQ8jtTsoH7r08_B1AX5ofxa1i3sYa4uw@mail.gmail.com>
References: <2E7CA21A-ADA7-49EA-89BF-784045D1F777@gmail.com>
 <87ttk5bads.fsf@localhost>
 <CAO48Bk8-+vzJKxvuOAnBsx5tY7MapZCtTHmRqSNgsUxdvKsqAg@mail.gmail.com>
 <CAO48Bk8TV75tkadhxZzG5md8Q6y+4OP9+BYHU8pAhdoYTv8U1w@mail.gmail.com>
 <CAO48Bk8yx_+=LCbRYN+htVAYoAutVa9xNBEnZU3sy40eRmcYvw@mail.gmail.com>
 <CAO48Bk84KpbAwh9NpZANshEeJVri4+=uB89SVwiGYSWLCETmSg@mail.gmail.com>
 <CAO48Bk8e=eXQwYpJ+OCzfQqhauyS_jWc8BgvgCjaJJ4Q=tHUVA@mail.gmail.com>
 <87pluiq2bj.fsf@localhost>
 <CAO48Bk93h1gtMg4fsDTQ8jtTsoH7r08_B1AX5ofxa1i3sYa4uw@mail.gmail.com>
Date: Mon, 22 Apr 2024 19:46:51 +0000
Message-ID: <87r0exrxhw.fsf@localhost>
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net;
 helo=mout01.posteo.de
X-Spam_score_int: -43
X-Spam_score: -4.4
X-Spam_bar: ----
X-Spam_report: (-4.4 / 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,
 RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001,
 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." <emacs-orgmode.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-orgmode>,
 <mailto:emacs-orgmode-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/emacs-orgmode>
List-Post: <mailto:emacs-orgmode@gnu.org>
List-Help: <mailto:emacs-orgmode-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-orgmode>,
 <mailto:emacs-orgmode-request@gnu.org?subject=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.11
X-Spam-Score: -9.11
X-Migadu-Queue-Id: A9F2B26D6B
X-Migadu-Scanner: mx12.migadu.com
X-TUID: DURsq04EfQV2

Pedro Andres Aranda Gutierrez <paaguti@gmail.com> writes:

>> What about something like
>>
>> #+cite_export: biblatex backend=bibtex,bibstyle=numeric
>>
> Just tested on a work document. It generates
> \usepackage[backend=bibtex,bibstyle=numeric]{biblatex}
> which is a perfectly valid options string for biblatex and yes,
> the PDF is generated without errors ;-)

Not for me.
With your latest patch, I tried to export the following to latex

#+cite_export: biblatex backend=bibtex,bibstyle=numeric
#+bibliography: bib.bib

Test [cite:@takemoto2006dissolution]

#+print_bibliography:

bib.bib:

@article{takemoto2006dissolution,
  title={Dissolution of stainless steels in molten lead-free solders},
  author={Takemoto, Tadashi and Takemoto, Masaharu},
  journal={Soldering \& surface mount technology},
  volume={18},
  number={3},
  pages={24--30},
  year={2006},
  publisher={Emerald Group Publishing Limited}
}

I am getting

\usepackage[style=backend=bibtex,bibstyle=numeric]{biblatex}

>> > BTW, I was thinking that maybe "\\`[^=]+=" may be better than matching
>> > style= anywhere in the options string...
>> > Open to discuss it...
>>
>> May you elaborate what exactly will be improved?
>>
>
> IMHO, the current solution of prepending "style=" forces the option string
> to be
> <style>,key=val,key=val,...
> I'm adding the possibility of a more general
> key=val,key=val,key=val,...
> option string, which matches the syntax for the options for the biblatex
> package.
> Go to the biblatex documentation, figure out the mix of options and use
> them in
> your document without needing to fix it.

Sounds reasonable.

> And BTW, without the patch, the options string generated in the example
> above is:
> style=backend=bibtex,bibstyle=numeric
> and that it obviously very wrong ;-)

I am seeing this with the patch as well. So, maybe you are using a
different patch?

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