From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id UAMkKYaChmBVqAAAgWs5BA (envelope-from ) for ; Mon, 26 Apr 2021 11:06:14 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id aOitJIaChmA0RAAAbx9fmQ (envelope-from ) for ; Mon, 26 Apr 2021 09:06:14 +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 DA3DC24EB0 for ; Mon, 26 Apr 2021 11:06:13 +0200 (CEST) Received: from localhost ([::1]:40474 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1laxBz-0008J9-Sk for larch@yhetil.org; Mon, 26 Apr 2021 05:06:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34462) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1laxBR-0008Hn-9B for emacs-orgmode@gnu.org; Mon, 26 Apr 2021 05:05:37 -0400 Received: from mout-p-102.mailbox.org ([2001:67c:2050::465:102]:21144) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1laxBM-0000x2-1K for emacs-orgmode@gnu.org; Mon, 26 Apr 2021 05:05:36 -0400 Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:105:465:1:2:0]) (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-102.mailbox.org (Postfix) with ESMTPS id 4FTJrm1nd6zQk1B; Mon, 26 Apr 2021 11:05:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mailbox.org; h= content-transfer-encoding:content-type:content-type:in-reply-to :mime-version:date:date:message-id:references:from:from:subject :subject:received; s=mail20150812; t=1619427922; bh=EfOy02S3fKLo SYrR3WLHT43h6FaHLrQtLxelSt39UJQ=; b=GjGjYKTGKnC4UCGCKIFPQ7cThQk2 IRgfntcwlMpBiMXOs0+R4qc/Z2ZgfzNkUd6N7LTuehuLTpNgIFKy4tZx08NEey+W 2e4O6w3PRZJQkEhdvA5FC2o48UiRpvlBN8UQ1jeOO/sEShRSS7L8VJxLA2hSwG27 m0ARiq1KXl88QCpQncFwrxS5b4mxi/uuC17lPfdxZfwCV/ycUZtqx6dtBiyiKLNf tvfR4EiFQU3DsjEViteD0df1s/Pny89Jw0Z77eMkRa6U8y+sF+U6DhVrbVe4OihW K25Etj8ofdNRT17+JIEmjLC3od0uuqk4uPzFKmw9PViksg6st7ERuamt9g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1619427926; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=y7D+IEM/2PKGjFm1qf2V+LzmKvfv/xyd97ZARQWCCwY=; b=YF71CLILZTSjeC03wZ2DVYOrz2VVehBzr3gPVIazm0ExQsswmtTR1rGaSvryOi4cOMxSnD s4qr3mQ+FUkF21xsMSwlGeln0hxNY6CoQd8zU/ygetz9PHX5IHLP7QIJ+qzuTcofBw9HB8 2KeXNu6+T34Ei2VsZO2bb6tXrGftBhKHKsJUtStieoQDF9Gz0juLm4R7uAYFXuwpfKobsr +HHJ35u+/WfxYjTw6NymzuPn5BdGmxgpwYG/zXKho57XzgEzS2GA2zmGX2JbaE8UNfzHAv MzNpjC3ZYe3pGAakbAudYsoXuGoPDslDmIpuxy/MKhDFIzBhDQF7kK8lwNm6jQ== X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp2.mailbox.org ([80.241.60.241]) by spamfilter01.heinlein-hosting.de (spamfilter01.heinlein-hosting.de [80.241.56.115]) (amavisd-new, port 10030) with ESMTP id DTsrYkiV0jcX; Mon, 26 Apr 2021 11:05:22 +0200 (CEST) Subject: Re: org-cite: make 'suppress-author' a citation 'style' From: Denis Maier To: Bruce D'Arcus , =?UTF-8?Q?Andr=c3=a1s_Simonyi?= Cc: org-mode-email References: <87k0orfw4y.fsf@nicolasgoaziou.fr> <8735vffnra.fsf@nicolasgoaziou.fr> <936a4d73-6d16-cb91-f897-1b8037a9cc3a@mailbox.org> Message-ID: <066b9ded-2b4a-c201-2e29-75f5630856e3@mailbox.org> Date: Mon, 26 Apr 2021 11:05:24 +0200 MIME-Version: 1.0 In-Reply-To: <936a4d73-6d16-cb91-f897-1b8037a9cc3a@mailbox.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-MBO-SPAM-Probability: X-Rspamd-Score: -4.86 / 15.00 / 15.00 X-Rspamd-Queue-Id: 0F08417FC X-Rspamd-UID: 540432 Received-SPF: pass client-ip=2001:67c:2050::465:102; envelope-from=denismaier@mailbox.org; helo=mout-p-102.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.23 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=1619427974; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=y7D+IEM/2PKGjFm1qf2V+LzmKvfv/xyd97ZARQWCCwY=; b=mgC9XD3ozhBWK2oQ8iYy0JKja5N6qWCGq9fZnGNfzMkQhqgL3R/uqSjNSuqiN7/j6IOdP3 kccHAevBYHkVvC1AD3rTGmx0Ldi+ZGM5LGlQSb6KvVjUVE71WhBytoz0CxzqOw2IA1GLH7 ks2or+0uYO/Ap/3YOw0ov/bRR1LJ7kKzQGKq9+1xSIsIwLiHMlfgI3oo1AOEYY5w5Ck2Z/ 4GMQZ7ylnkkMhHwBYdKsdZzoEZKk4CTesfCJ8waQEbCRKr3SU4joD5kAFia+F/a2WLs2Tj 3h+w4Um0wkH58PwDJPvW3yX/hNx+cCqpu5WCQDcFq2TlyViEeZVb0Croom5tZA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1619427974; a=rsa-sha256; cv=none; b=cM7oEc6vmyyDJi1ldVtM/0jjDUP+FakmJJbjSnB+XWAtAhkCNHi0cyL3Oa+PYAwg8JDJuK YqLkDxTEBIiH4EJPOMTo/gb2gjJvbF6Oqep1YGjIsMk1giCQj3yGMJBZRxxVCxWM1OQUvL PPgFPkM6L0ThezWVSB13qaFfJmiCkyaikJlqaYt+o2sjnn5gp9V+/vFtnx+UmqIqTRdGuI cqt04zxSzCjnnvSBdSSkptQDp23l5C3euhew9AjHT94HCuNH80lSg2+347UfhWgbivaQdl EMTvvbpoM6Ucur7gNDNE2X7OWa++jLOJ5NDtPbKJc9hQSLVx03p4TqUa/vVXDg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=mailbox.org header.s=mail20150812 header.b=GjGjYKTG; dkim=pass header.d=mailbox.org header.s=mail20150812 header.b=YF71CLIL; 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: -3.15 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=mailbox.org header.s=mail20150812 header.b=GjGjYKTG; dkim=pass header.d=mailbox.org header.s=mail20150812 header.b=YF71CLIL; dmarc=pass (policy=reject) header.from=mailbox.org; 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: DA3DC24EB0 X-Spam-Score: -3.15 X-Migadu-Scanner: scn0.migadu.com X-TUID: 9kcCSNoJ6PUE Am 26.04.2021 um 09:53 schrieb Denis Maier: > Hi, > > just some general remarks on that issue: I tend to think that treating > "suppress-author" as a mode/style/command would indeed be appropriate. > As the minus shorthand is inherited from pandoc, it might be worth > pointing out that pandoc's syntax owes quite a lot to the markdown > philosophy, which is also emphasized by pandoc: > >> Markdown is intended to be as easy-to-read and easy-to-write as is > feasible. >> >> Readability, however, is emphasized above all else > (https://daringfireball.net/projects/markdown/syntax#philosophy) > > That is, markdown tries to use a syntax as concise as possible, without > verbose commands and such. See e.g. this discussion: > https://groups.google.com/g/pandoc-discuss/c/ydG9CI_XEEU/m/3LHxvp23BAAJ > > The price for this is a certain opaqueness, and, to a certain degree, a > loss of precision, expressiveness and extensibility. > > Anyway, back to the modes question: > > #+begin_example > [@doe] > > [-@doe] > > @doe > > @doe [34] > > -@doe [34] > #+end_example > > gives us in pandos AST: > > #+begin_pandoc_ast > [Para [Cite [Citation {citationId = "doe", citationPrefix = [], > citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 1, > citationHash = 0}] [Str "[@doe]"]] > ,Para [Cite [Citation {citationId = "doe", citationPrefix = [], > citationSuffix = [], citationMode = SuppressAuthor, citationNoteNum = 2, > citationHash = 0}] [Str "[-@doe]"]] > ,Para [Cite [Citation {citationId = "doe", citationPrefix = [], > citationSuffix = [], citationMode = AuthorInText, citationNoteNum = 3, > citationHash = 0}] [Str "@doe"]] > ,Para [Cite [Citation {citationId = "doe", citationPrefix = [], > citationSuffix = [Str "34"], citationMode = AuthorInText, > citationNoteNum = 4, citationHash = 0}] [Str "@doe",Space,Str "[34]"]] > ,Para [Cite [Citation {citationId = "doe", citationPrefix = [], > citationSuffix = [Str "34"], citationMode = SuppressAuthor, > citationNoteNum = 5, citationHash = 0}] [Str "@doe",Space,Str "[34]"]]] > #+end_pandoc_ast > > So, suppress author is essentially a mode here. Addendum: [@doe; -@foo] gives us: [Para [Cite [Citation {citationId = "doe", citationPrefix = [], citationSuffix = [], citationMode = NormalCitation, citationNoteNum = 1, citationHash = 0},Citation {citationId = "foo", citationPrefix = [], citationSuffix = [], citationMode = SuppressAuthor, citationNoteNum = 1, citationHash = 0}] [Str "[@doe;",Space,Str "-@foo]"]] So, each citation in that cite has an individual mode, which goes in the direction indicated by Richard Lawrence in his earlier message. Maybe that speaks for two levels of styles, one pertaining to the whole citation group, one to the individual citations. Does that make sense? > > FWIW, it might also be interesting to look at biblatex: > biblatex has a textcite command: > \textcite{doe2021} => Doe (2021) > > Now, if you want to cite multiple entries, each with prefix and suffix, > you'll need a special variant \textcites! > \textcites[12]{foo}[34]{bar} argue ... > => Foo (2021, p. 12) and Bar (2021, p. 34) argue ... > > I'm not sure how that fits into the org context. Interestingly, I > couldn't find an easy way to get "Doe (2021, p.34; see also Smith 2020) > ... argues". You'd probably have to resort to lower level commands such > as \citeauthor in combination with other commands. > \citeauthor{doe} \parencites*[34]{doe}{smith} > > Denis > > Am 25.04.2021 um 22:12 schrieb Bruce D'Arcus: >> On Sun, Apr 25, 2021 at 3:48 PM AndrĂ¡s Simonyi >> wrote: >>> >>> Dear All, >>> >>> On Sun, 25 Apr 2021 at 14:50, Bruce D'Arcus wrote: >>>> How would you deal with these? >>>> >>>> #+begin_example >>>> [cite/-:@doe20; @doe21] >>>> [cite/-:@doe20; see also @smith19] >>>> [cite/text:@doe20; see also @smith19] >>>> #+end_example >>>> >>>> My thought is you want to treat the author of the first listed cite as >>>> suppressed, or placed in-text in the last case, but that you wouldn't >>>> touch the other author? >>> >>> yes, exactly -- since it's difficult to see (at least for me) how the >>> context could supply the author information for the subsequent cites. >> >> So the output for the first one would be: >> >> (2020, 2021) >> >> ..., and not: >> >> (2020, Doe 2021) >> >> As in, you would suppress the author not on the first cite (what you >> wrote in the original reply), but the author of the first cite? >> >> To me, that's the only wrinkle of having this a citation-level style; >> that a processor would need to be smart enough to handle cases like >> that, for output styles that require it. >> >> But otherwise it's easier and more efficient for the user. >> >> Bruce >> >> > > >