From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id +J4iBZ62o2HskQAAgWs5BA (envelope-from ) for ; Sun, 28 Nov 2021 18:04:30 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id QLG4AJ62o2ETJgAAB5/wlQ (envelope-from ) for ; Sun, 28 Nov 2021 17:04:30 +0000 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 B9114E05E for ; Sun, 28 Nov 2021 18:04:29 +0100 (CET) Received: from localhost ([::1]:50570 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mrNbI-00013R-VL for larch@yhetil.org; Sun, 28 Nov 2021 12:04:28 -0500 Received: from eggs.gnu.org ([209.51.188.92]:55314) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mrNYg-0005tg-Re for emacs-orgmode@gnu.org; Sun, 28 Nov 2021 12:01:46 -0500 Received: from ciao.gmane.io ([116.202.254.214]:49138) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mrNYb-0002aY-VD for emacs-orgmode@gnu.org; Sun, 28 Nov 2021 12:01:46 -0500 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1mrNYQ-00063J-I2 for emacs-orgmode@gnu.org; Sun, 28 Nov 2021 18:01:30 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Rasmus Subject: oc-biblatex too aggressive in replacing styles Date: Sun, 28 Nov 2021 18:01:25 +0100 Message-ID: <87r1b0usd6.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit User-Agent: Emacs Gnus Cancel-Lock: sha1:cSmhpcHVbWIqMXyeg3pKhQ7R7oI= Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1638119069; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=deI0Wc8kN82WgGziox/RwGEvJzpFyH2X/qMcYKW027s=; b=pptwmz7CMRoMMalg1bSGACjmontmGARq3g5D+QylbH8jyTPkep8NP3atmxG1ETy4o3+VNS 7zQ+RO4iwAZKK46FeN0XK0FlLrZIrMCm37n4XVXfW1CCv5cc/P21YoUvGMMnyf1lMIUpNo 8RFE2LY8ggE7mcePlvzJHiuQKfPxFtOmg29VJZ4WysKJKAPVQPnl5p7Oc0hqGMMgkHRaYC Sc5gBbgs0hg7Z0f/Q+zHvmLs+7MiqqICMxyOGLQnMzIt3bNCcYYPWq0epCLzfCLiENp1eH OhhDkVk1lsaXtJZDlbGsWwV/AuM6VepvQa3MI+VghRP0XCFU3636+RWBmpO9+Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1638119069; a=rsa-sha256; cv=none; b=pGXu+KeuFActJu9BOIHb8SihizBGwixhl4Ny2tMSdRnAW8+8Nc5cFr9zAwLIWIjFtyzLzT bzGC8b8y6qY/zXTMxg5TygrMezoaLhs48iD05KVC70dDwQT4BYaCqwRA682oCn8G7sgYS/ ZLEe3PVcXroobmHUC2qcYM1MLzcAVYTol7Lrxiphfk0dfHDqkUkQO+bNJJfQ9CvtCF+7Yp ggq05jlnlh71UDlUcEM+0kZcIRfDPeYJurLA6DH72JC0iIopfZjW7a92YnU8cToA6vN9Bm Pn3T2Q3SfP/E0om8oSz07xsHrPLEefxpSiaCDahDoBRWgFWEcqNB30ouNX7Rhg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -2.30 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmx.us (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: B9114E05E X-Spam-Score: -2.30 X-Migadu-Scanner: scn1.migadu.com X-TUID: Wd5Jwdk1f6hG 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!