From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id aMR/A77MS2OpPgAAbAwnHQ (envelope-from ) for ; Sun, 16 Oct 2022 11:19:58 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id OJJfA77MS2OGNgAAauVa8A (envelope-from ) for ; Sun, 16 Oct 2022 11:19:58 +0200 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 A47FE5A2A for ; Sun, 16 Oct 2022 11:19:57 +0200 (CEST) Received: from localhost ([::1]:54026 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ojzoJ-0003gR-ML for larch@yhetil.org; Sun, 16 Oct 2022 05:19:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43654) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ojzmX-00039h-V2 for emacs-orgmode@gnu.org; Sun, 16 Oct 2022 05:18:12 -0400 Received: from mout-p-101.mailbox.org ([2001:67c:2050:0:465::101]:41234) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1ojzmV-0004eh-M0 for emacs-orgmode@gnu.org; Sun, 16 Oct 2022 05:18:05 -0400 Received: from smtp2.mailbox.org (smtp2.mailbox.org [10.196.197.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4Mqvfq2SfFz9sRm for ; Sun, 16 Oct 2022 11:17:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=guelker.eu; s=MBO0001; t=1665911875; h=from:from: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; bh=rC2v0YC3tpiEPMMDLDpaN5CPuYnGZmAlkLY6+ZOPapE=; b=yEWUJBVSXrJ7fkfH74iCNIOJOCV33z2xSn9H8+PCnTxmXSxsjpt5dqTxBzKcFLxV1UGszt d1decb91ZIFuUaznoDxqQKL71RKkknDLHTZLqvsKnNBItFg5s0ZJsQsxmrIeDhekxSWVx0 QmT5iuIX1mEZ6+lgPVsbX0oUrgfaS2s6j2fyTYgdM68zzdxPM1c+RXbMm+7pOdMzV/Wqdp z9epY9sEJG3ujWQmmmC46m7tI4x9uzY0GCNMl47dKwXvtUTD8QZDhJ6oJPyv4NOSWNNsVB +EK3q039fcoeBK/yteQorweZubWvW99ILS53oFlJBUk4KXLqxepG0ciYw+HHvA== From: M. =?utf-8?B?4oCYcXVpbnR1c+KAmSBHw7xsa2Vy?= To: emacs-orgmode@gnu.org Subject: [bug] Macro in citation not expanded Date: Sun, 16 Oct 2022 11:07:49 +0200 Mail-Followup-To: emacs-orgmode@gnu.org Message-ID: <8735bot9dp.fsf@guelker.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2001:67c:2050:0:465::101; envelope-from=post+orgmodeml@guelker.eu; helo=mout-p-101.mailbox.org X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, 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" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1665911997; 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:dkim-signature; bh=rC2v0YC3tpiEPMMDLDpaN5CPuYnGZmAlkLY6+ZOPapE=; b=JJFkDqYunB1+PX7CeCPRcFnaS04FjBSm17ei3zDziUjFclw7yxAmAWl1WwI2fgQ7wp5I3S MOxL+9L9evBZfJRd/4W+9bbNPwqbnEpufCJMjXRQyDBYNObSAt0oY9R01++NDpyk33vnX1 /4wHYhVe+h8VPhfkxKbQI6KzrgmW5palmADyY9WV0XV4cpC88oQTZ57CsCDJam+UmCXG6h jM+jj0dkvYM8hMUjTdmFnTZSOuIWL2aIp4mQdnykhM88aakYQalMc5DtzS5EEPMtfaK3xw Zq/G0MgC9bXuJDOHHC11b8X3HkbBMkmfy1SACt9twxii/0w8uU6ixiKgDcf/sA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1665911997; a=rsa-sha256; cv=none; b=t2Dw9szXNsBjMG5YdarSUzh3EOAs/TuM4/DEjYQXUXMq1TZRbz4SBdTR3Y1CLsauUdSJ1J hHqUzitWgYaDneaxYq/MrRRuD3f5lHUjcugZMNK5986Ix/hdMntyzoqwIy0VVvWrZgJ3V6 bTea+yjzUuXAMsCSmPqEhHjtuOmHg9zxrhHHERN+0E2hkNTcvnVwNgOBTYW6/CGmLQd19J 0JoIUFJ3LtQjOb7ujTBrJspZARKDjGk+wzq13VWGasrJYaBWgOu7DKFQBy4theZ/IYA4+y 8Ltin1b64/L8xdLWPyIwFjDWOFfueO57t/REWGvadyxFSWZvJHwsna8Oz/KLHQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=guelker.eu header.s=MBO0001 header.b=yEWUJBVS; dmarc=none; 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" X-Migadu-Spam-Score: -2.00 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=guelker.eu header.s=MBO0001 header.b=yEWUJBVS; dmarc=none; 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" X-Migadu-Queue-Id: A47FE5A2A X-Spam-Score: -2.00 X-Migadu-Scanner: scn1.migadu.com X-TUID: Zz6WLccXur5k Dear list, it turns out that macros in citation commands are not expanded. Minimal working example: /tmp/mwe.org: #+TITLE: Test #+LANGUAGE: de #+bibliography: /tmp/mwe.bib #+cite_export: csl /tmp/juristische-schulung.csl #+MACRO: name @@latex:\textsc{$1}@@ =20=20=20=20 Dies {{{name(Foo)}}} ist ein Test. [cite:@doe2022nothing p. 55,, zum v= orgenannten Argument {{{name(Doe)}}} aaO.] /tmp/mwe.bib is: @Book{doe2022nothing, author =3D {John Doe}, title =3D {Nothing Important}, year =3D {2022}, edition =3D {2}, publisher =3D {Some Publisher}, location =3D {Nowhere}, langid =3D {english}} /tmp/juristische-schulung.csl is . Exporting this to LaTeX yields: Dies \textsc{Foo} ist ein Test.\footnote{\textit{Doe}, Nothing importa= nt, 2. Aufl. (2022), 55, zum vorgenannten Argument \{\{\{name(Doe)\}\}\} aa= O.} This replaces the first call to the `name' macro properly, but it does not replace the call to the `name' macro inside the `cite:' construct. Instead, it copies the macro construct verbatim into the LaTeX footnote. The correct output should have been: Dies \textsc{Foo} ist ein Test.\footnote{\textit{Doe}, Nothing importa= nt, 2. Aufl. (2022), 55, zum vorgenannten Argument \textsc{Doe} aaO.} Version information: Org mode version 9.6-pre (release_9.5-1162-g15b3aa @ /home/quintus/.emacs.d= /org-mode/lisp/) citeproc.el @ ba49516265fa24b138346c4918d39d19b4de8a62 GNU Emacs 27.2 (build 1, x86_64-suse-linux-gnu, GTK+ Version 3.24.31, cairo= version 1.16.0) -quintus --=20 Dipl.-Jur. M. G=C3=BClker | https://mg.guelker.eu | PGP: Siehe Webseite Passau, Deutschland | kontakt@guelker.eu | O<