From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/29191 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: issue with "see also" of same and different author Date: Mon, 06 Sep 2021 11:40:13 -0700 Message-ID: References: <56afe475-1c44-4a9d-9b48-8f6f30608030n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10656"; mail-complaints-to="usenet@ciao.gmane.io" To: 'Jan' via pandoc-discuss , pandoc-discuss Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBGWB3GEQMGQEKXJJH5Y-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Sep 06 20:40:32 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-pf1-f189.google.com ([209.85.210.189]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mNJXh-0002VQ-Sb for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 06 Sep 2021 20:40:29 +0200 Original-Received: by mail-pf1-f189.google.com with SMTP id h14-20020a62b40e0000b02903131bc4a1acsf3712470pfn.4 for ; Mon, 06 Sep 2021 11:40:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1630953628; cv=pass; d=google.com; s=arc-20160816; b=lwf4NByCHhJPmitbjmt4dw2CrpOXQJ5LZhjBMb7lI1LCZXVcoJYamS3L0s3D+XA6/Q lL7QsY68BLNZEXzwQrc6iH8ckWxhFGpeRl2NACmyvNNkbZYe8mrf6XR56TP0SwLzr6rB NE7wT6OPhMXeaUAM9eAoBXIMSWI8QQA8rQ5BSyQzYsCr4bWJ8SVzBPfZVhIMhE7B37jl M4SqVshpYqtHnqoa0WiTB4rf2xAn+j6AayPQ02v8LVpjRbuz9nD1aQQcPyCwo9a9uFBa WPTK0v9EwRWVnvrDxtE88S2WMYOXaXNUfOP/YfH/t4AWFOLD70XAuJnZU/UkaPm9uU+2 joCw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:mime-version:message-id :date:references:in-reply-to:subject:to:from:sender:dkim-signature; bh=9h1Rh3u0/qBhFpqSH3Yi7hhTZa0CC3eYu9uhQGp01pI=; b=UMENB6O5LzsYdxSk8w2JoQk3Pd7z1UJpWOLHmgJQZ5VEYw2qns6gczy3QcbJIZ7V9A aHNgTmjPicsz0Gu2Sqp03/8VyMG2+H6veNY6ppXZtuMOnRi+cEWfRgEo1UEX8EgqcaY3 IijfGTJ7g1EPzL6k11C6ixBg5QRGFjChfhxEw0jMWiuOmKgHyUh9HX3/WHf7rISbL/+G TF/Amu5i2iYKYWSpcVX6LkV802alS5H2Ad32pOVvsdfQU2l9B40y+hmlcX9l78FXwqpN lNd03BNSWZQKBKxcpYsU0bAJcVtmWpaIz9Lq60zL2OFJ18apW3KAOPOa0Jnw58HJuWso P0rw== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b="j+/gv8nB"; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::1036 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:from:to:subject:in-reply-to:references:date:message-id :mime-version:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=9h1Rh3u0/qBhFpqSH3Yi7hhTZa0CC3eYu9uhQGp01pI=; b=qKisPz4e/IvWffVoEimEkTcS+oTu3dtABo0xFqIq0esrfTx7DM9aQrmDwnNZQR7HL0 znXwhylGnip5V7ncaUr9hG6RDwcWzBuLSY2qF9FTSPl5VjN1NIFxOG/e4f7+EBxR78KM BvXEYHzoUiUUgrQyVnA1v7XF1upVXiATGtp8isktyxK7yWdybMZ+6kQTDvXgpZC+uBqX nOhVvpk2D59ajpxMVMeP4vVZsyvhsPChQMqZNyL2eGZ3fgyjzfyxx3f2dXQrY3BxAWvS TIbMW84SLBwGyy5LXwI9IM4g1blBwPBJKot1qFLzPBnW1jBVnISJz7MEfGcCrzlyA0rz /6jg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:subject:in-reply-to:references :date:message-id:mime-version:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=9h1Rh3u0/qBhFpqSH3Yi7hhTZa0CC3eYu9uhQGp01pI=; b=aYpuXw45M+nW7OLd801XZlN+hw7H4KdHJK7BjP2x6KVdIS+Vd2cn0Ks2qsZW60Rq/4 QriTjV9esdL9q37g4RJsAZ0kP/CQRrpqBboWWtjzTvEhbAlCPU3rWFQB1JFH4/8NAJQE Fd2XHBr4w2M3jSZE37/sRkdct4eZjt3xiu6Absum0A7HYGlu1WygN0L0FkXjJaWmfilu mLRXwE37iR9IpnA3QtjeWTiXgpHQbjrUh4CfiYip/EXCW3lObhgOMCELKy2RL7nWa5QH pI44CWlQVovweMxZgktbp4CcAhJK2le84xyZ/7mTUGTrh0NyGkCAZKDMFc9HoBW79Fxb fESg== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM533JiC8Jkv3HkJbe++Saf1kTorLxik8uLG+uj1mWPDXKHmpt8jSK CNmrCVeJN7+rjiMPweCAa5Y= X-Google-Smtp-Source: ABdhPJy2JlmXY24GSeHoO20pACztX8uTJJMAvXMhjN6LQuALgwdBWZsqavIi1VXxIsCRbAvzh71MjA== X-Received: by 2002:a63:dd46:: with SMTP id g6mr13465865pgj.347.1630953628116; Mon, 06 Sep 2021 11:40:28 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a62:30c3:: with SMTP id w186ls2982929pfw.6.gmail; Mon, 06 Sep 2021 11:40:26 -0700 (PDT) X-Received: by 2002:a63:b912:: with SMTP id z18mr11074808pge.59.1630953626059; Mon, 06 Sep 2021 11:40:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630953626; cv=none; d=google.com; s=arc-20160816; b=yeK+eSl1sAHOOsoK8+MfDdXUwZuIx8ztZfZHri/7LRCIS3qc+N1iVM4+k5aA/bygbp zGSULtL9ejBhGo3/jv1RO2/UciTTiZlKmYa2eS0qUYY4qlNsTmIEJMDAk3eCRJRYX959 uuTGr0Yzk0TGq7N7bJgHDp+P5zyeDh7gbzKZ9pnCreY+lFZGjedeZJbypfO/K2MISsD/ 1dkWWA7JVrcQuxHpeccXm+kdk9p4hnmyXukt+7qktPDlwb9qAi4YsYpJhlNEjCDw9lPS kMXNYArGit09Vx90EUKhuoWbij0J8aLXtjsq4693FSiQZFxNevzBYR5bERipXIlkueYM L7Jw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:message-id:date:references:in-reply-to:subject:to:from :dkim-signature; bh=coafLsjOAJN9dNRfZB8lsG8yxd+d1O8fsIyAPOnIcX4=; b=sH/UyuiOPS1haZDAb9hvN9/HcID2gCpWuK5YCtIXT3XWG6pwYKfONe9xUCqg1/1syY WMYJE32bykSqCJLKw03MdzyJ8RI5Ft/RIJAOLrrxIKc9gGf3tjZNyMb+4ga6WHaAn966 FNIVr0Cvv054V8A/fv+a/LQgTQuV0S1vR4GaamkTtlI1AF+JTTWCcgNHUBXULCg69hOH Kd18LJiyev4p+MKmLkTWnWIOtu2Wr0yGRqx433WvP7YarbkYz2YH5FhkT/AU5UJWJqb2 pw1AmeBriVkNtcaljvCq93rwGwVdH9oBdRbHSbXtOERX62U6mcupbCL/0mmAy5k9LViW rtEw== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b="j+/gv8nB"; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::1036 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com. [2607:f8b0:4864:20::1036]) by gmr-mx.google.com with ESMTPS id a14si19379pjg.2.2021.09.06.11.40.26 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 06 Sep 2021 11:40:26 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::1036 as permitted sender) client-ip=2607:f8b0:4864:20::1036; Original-Received: by mail-pj1-x1036.google.com with SMTP id ot2-20020a17090b3b4200b0019127f8ed87so389552pjb.1 for ; Mon, 06 Sep 2021 11:40:26 -0700 (PDT) X-Received: by 2002:a17:902:7e4d:b0:13a:8f:42d4 with SMTP id a13-20020a1709027e4d00b0013a008f42d4mr11886771pln.62.1630953624953; Mon, 06 Sep 2021 11:40:24 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id j14sm146025pjg.29.2021.09.06.11.40.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Sep 2021 11:40:24 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id 4212DA1A8; Mon, 6 Sep 2021 14:40:13 -0400 (EDT) In-Reply-To: <56afe475-1c44-4a9d-9b48-8f6f30608030n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b="j+/gv8nB"; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::1036 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:29191 Archived-At: I've just pushed a change to citeproc that allows reordering with collapsing, but not across the boundary of a citation with a prefix or suffix. This should give good results. "'Jan' via pandoc-discuss" writes: > Thanks so much for looking into this. > > I was thinking about another possibility: Is there perhaps a way to > disable sorting, but keep the collapsing? > So that in cases where in a string of citations the same author appears > with multiple consecutive citations, the repeated author names are omitted, > but if they appear in a string of citations but not consecutively, they are > kept? Does that make sense? > > > > > > > On Monday, September 6, 2021 at 9:37:00 AM UTC-7 John MacFarlane wrote: > >> >> As I noted on the issue, citeproc already does include code >> blocking sorting that rearranges prefixes, but this seems not >> to work in the case where there is also collapsing (of citations >> by same author). I have to look into why. Disabling collapsing >> in your style could thus be one workaround, though it would mean >> that you didn't get collapsing elsewhere. >> >> >> >> "'Jan' via pandoc-discuss" >> writes: >> >> > Thanks so much, John, I opened an issue on github. >> > >> > In the meanwhile, as a workaround, is there a way to disable sorting for >> > CMS? >> > >> > On Saturday, September 4, 2021 at 10:28:39 PM UTC-7 John MacFarlane >> wrote: >> > >> >> >> >> The issue won't arise if you use a style that doesn't sort >> >> citations, obviously, but that may not be an option here. >> >> >> >> I have a vague memory that this issue has come up before >> >> in pandoc-citeproc or in CSL, and that there was some solution. >> >> >> >> Yes: https://github.com/jgm/pandoc-citeproc/issues/292 >> >> >> >> Here is the fix I implemented in pandoc-citeproc: >> >> >> >> >> >> >> https://github.com/jgm/pandoc-citeproc/commit/31b463a939d4878d4c83c318976b66d723e70bf5 >> >> >> >> It's not in the CSL spec, so maybe it's not appropriate to >> >> modify citeproc to behave this way, but it sure is tempting. >> >> So if you feel like putting up a bug report on jgm/citeproc >> >> with links to the URLs mentioned above, please go ahead. >> >> >> >> >> >> "'Jan' via pandoc-discuss" >> >> writes: >> >> >> >> > Hi all, >> >> > >> >> > I have a quick question. >> >> > I'm processing for Chicago Manual of style author date format. >> >> > pandoc -t docx --csl=.pandoc/csl/chicago-author-date.csl >> >> > >> >> > I'm using the following syntax >> >> > [@Heller:2007i, 10; see also @Gal:1987; @Heller:1989]. >> >> > >> >> > for a citation that I want to render as >> >> > (Heller 2007, 10; see also Gal 1987; Heller 1989) >> >> > >> >> > what it does, it gives me: >> >> > (Heller 2007, 10, 1989; see also Gal 1987) >> >> > >> >> > So it moves the Heller 1989 up front to join the first citation of >> the >> >> same >> >> > author and then, obviously deletes the author last name. >> >> > Is there any way to prevent that (only for this citation)? >> >> > As the other Heller citation should come after the "see also". >> >> > >> >> > Help much appreciated! >> >> > >> >> > all best >> >> > >> >> > Jan >> >> > >> >> > >> >> > >> >> > -- >> >> > You received this message because you are subscribed to the Google >> >> Groups "pandoc-discuss" group. >> >> > To unsubscribe from this group and stop receiving emails from it, >> send >> >> an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> >> > To view this discussion on the web visit >> >> >> https://groups.google.com/d/msgid/pandoc-discuss/a4c90db8-d468-42c5-b7ac-2162ddc70492n%40googlegroups.com >> >> . >> >> >> > >> > -- >> > You received this message because you are subscribed to the Google >> Groups "pandoc-discuss" group. >> > To unsubscribe from this group and stop receiving emails from it, send >> an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> > To view this discussion on the web visit >> https://groups.google.com/d/msgid/pandoc-discuss/e721f4fa-f560-4ffc-a9a7-2749db068bc6n%40googlegroups.com >> . >> > > -- > You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/56afe475-1c44-4a9d-9b48-8f6f30608030n%40googlegroups.com.