From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28431 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: `auto_identifiers` causing duplicate identifiers Date: Mon, 24 May 2021 11:32:24 -0700 Message-ID: References: <099f0289-7ff2-4f84-b983-8af49f257915n@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="20685"; mail-complaints-to="usenet@ciao.gmane.io" To: Shir , pandoc-discuss Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBSHCV6CQMGQEHJ25TSA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon May 24 20:32:42 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-vs1-f63.google.com ([209.85.217.63]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1llFNa-0005B9-N9 for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 24 May 2021 20:32:42 +0200 Original-Received: by mail-vs1-f63.google.com with SMTP id h23-20020a67c1970000b029022a88436f30sf8620875vsj.11 for ; Mon, 24 May 2021 11:32:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1621881161; cv=pass; d=google.com; s=arc-20160816; b=EiLNjSNb5ZuMjxsCVulFq9HGgeOSs5a2/pHFFEBeo0Gl7V2CMhA5V4o9tmzWfEZR+9 4WDdUfatNZUV4iVaQZ2v8KrzlQNeKBMPR10E3BwUSTHKNw5mCbIm0t2a/4sCoRshERe8 w/TJ5ShWYoiIwPtx9InLLLfL746rbw2zgQnZLFMRhlkg2QNEf45fQLFrPFQGF9nhQREK zl+XxT3BkgeIYs0zJdlNk1b8IjKTSAegvueNHNXIdz51lJFkHUT4FYdEp2VNKtswHzNm GLDCYiA5iPJXOFutxQZHkOm4b0Ktb9gejx3zts1SfT3XU+AToBgZ0eMbz4kmauvvjYg/ gchw== 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=qoMPnXNzkrgSFxeC2I4zxMxlNDcJXxXd9FNnTg3Zcuk=; b=q6SJfjUtpctH6OGdQIsq8jW/ZQqxAJN+XHaFF2BdoBHTiNZQqNJVWSDGj2yWAIAO3i HEPF/nh42OQbxetAje1QANxLuD8CwiCaQt9evdaKh3KlAn1mBXti3y3bdC7aSdVAZ1kV w1u+Mx60wkg06JSiTV0FXarYqHSnnGp/TTKk4kRkQ0sAmtjLsevpAPAOMwIGph8H+DIf hjAfO+/Ze8zA03bBnh+4OGUSvuvP5b1YfoFwVovf2Ez9gXtK9I3od4PXhiLIXpl8xBYk E4dDy3ZydqHWrVE0RDCvA22crycWQHyIkgUu+RPMYBRuhR3MzNAEtjE6reR0TRs+q+h7 82pA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=Lf39prJ5; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::102e 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=20161025; 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=qoMPnXNzkrgSFxeC2I4zxMxlNDcJXxXd9FNnTg3Zcuk=; b=X9grczkbID7cZUOCCwXwowznXBHjoIfvO4DS3ulcssOkNDswZoKjpAVvx4DywUjyv4 IVjPcXAxTH1KUxhHUQv7x/b9utkFZy57ePgrt73w2kYb+1f4khW1rPCk2VldoyWZBAv0 CN8uoSzf714cqd3vEMoQqK+uHRTtgKqX7Bg4y45SzEpTNzpEcQWbN+YJGD7sNWw12ksA kkLc5FPVlg7meEihyRnK/CV14elgtaeBRS4rEJnHJL+wzCWzvT/o+wwa262KCHKlGtpH RbEZ4CUW4gcQ/vdsgg73pfFHN6KDA+DUo58rwnINADc2Y0sS9Flb2EqcIwSuzTZrsYK2 /TAg== 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=qoMPnXNzkrgSFxeC2I4zxMxlNDcJXxXd9FNnTg3Zcuk=; b=oN+3zRSuPrLUMeFcOEHgq7Qf9CX0/NGOJrnxRzul7cKLh89p9aJKbf3pSkqHxolAhA ARfDW/BpcMS762LS6FCR83lOWp8wBtBFuXBGUjXLBQsqJbavYEPqI/UNeAGOmRsO1JlQ Z9v3s3shtmDJ7Aqlpq/JurEXZA++LSmtkENlsYH5mCEjWNJds7Q9lldjxxlhLHBeUciN 0ttvHjdYAAnfkUFhjJMb2rPshkB3vpKxI1AbUKDYqGeDzD/iGjnhvS8lo+BMmg3UATyq e9rgmIt1OoJ30RZMWBb1Tzs8aRcum3h7YB5WKBRFCkX/WnU6rzkmcxVDgBaWi6SgHd5M pIfQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM53052W/B9PNjE2+2SAkMfYqh8LIKHFwRbp55C2OETlCvsUso6Fe8 Nw4vY9AyMtI24CrWj+PCk7k= X-Google-Smtp-Source: ABdhPJzrlYU72/ROqhTUAgZvXGtJ3dVddcYGpSazhEggVI/V4oYZ5VdrgLIryVEwnUkWCLajmdLILA== X-Received: by 2002:a67:ec58:: with SMTP id z24mr22916436vso.24.1621881161746; Mon, 24 May 2021 11:32:41 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6102:b02:: with SMTP id b2ls2763740vst.6.gmail; Mon, 24 May 2021 11:32:37 -0700 (PDT) X-Received: by 2002:a05:6102:18a:: with SMTP id r10mr14159155vsq.44.1621881157026; Mon, 24 May 2021 11:32:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621881157; cv=none; d=google.com; s=arc-20160816; b=YFftwsQQ3+EadXMPNEaQAZx2XvgELIGQT/TQUfc7vEES5u4glOzlPxQ3DqDd84ZEV6 Yy8dMOlXnf5QuSuWNWDAvFHQcp5C8O28j5NCPdn3UqrujT1SIRJYc0cNY8x6/4zBdoVP TFVFBAjtycvyHxXrWyzLXzd/NFu4kz8sVMZpt6RoKvfumxN89OYO0WARbiuhjm+hibwO 6ilE3JU80rm6rRylo51VtfG/+W0BW3DorW+juwfxRmeaJ/7hbGqeUWPRPms/Emr2W+bC pMdBDKUbcX6MEUCwRVbjzM3oLS0nJ5R3l1k831valg15D13Suv8osA7X+gda0f7kIsFH khjA== 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=qwriHhF9sVOApdQ7sSg0Qv2+fsbt9hMvDHpqNlfqUWU=; b=TMcFqpae6gDoAKx9Dl9V+aaa11DLTG2ZRWS0ZVu14dPXq/kpZ0fWuCkgbbUZTlgUPp sBEgPfoy12yV72CrMIzDfQvDJnLFknRuE+WjfNcc8Oh5qrEK2xb5tsp5U+AzQbU3nKaA g2uj9uaREO4qxk8yAg5j+jHhitm4Sd/LDz7gmidNOVbXz+anfbGG1ihF4PC/lk1WfQ3x 4vyB/AWhT/bcAf3cQoF0iHXEpIkhdb8RKFMthbvKJNCKqFTGGHz3WSdUgdHfd6NMNatM 28ybyi4xK09Btbt6MeVZ2vjDB0yxAHqYrMS5EBCBckBMgFPQJ7HfG9YU2XielDVs2P7v GIUA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=Lf39prJ5; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::102e as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com. [2607:f8b0:4864:20::102e]) by gmr-mx.google.com with ESMTPS id t11si1112292vsm.2.2021.05.24.11.32.37 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 24 May 2021 11:32:37 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::102e as permitted sender) client-ip=2607:f8b0:4864:20::102e; Original-Received: by mail-pj1-x102e.google.com with SMTP id cu11-20020a17090afa8bb029015d5d5d2175so11732466pjb.3 for ; Mon, 24 May 2021 11:32:36 -0700 (PDT) X-Received: by 2002:a17:902:6b02:b029:e9:8e2:d107 with SMTP id o2-20020a1709026b02b02900e908e2d107mr26732324plk.61.1621881155876; Mon, 24 May 2021 11:32:35 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id c71sm11690472pfc.148.2021.05.24.11.32.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 May 2021 11:32:35 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id A004CA2A1; Mon, 24 May 2021 14:32:24 -0400 (EDT) In-Reply-To: <099f0289-7ff2-4f84-b983-8af49f257915n-/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=Lf39prJ5; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::102e 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:28431 Archived-At: The current design expects that, either you're going to manually specify identifiers when you need them, or you'll use auto_identifiers. The mix can be problematic. The problem is that auto_identifiers is enabled by default, and using explicit identifiers doesn't turn it off. Why don't you submit this as a bug report on GitHub? Shir writes: > I have a `test.md` that looks like this: > > ``` > # test > > # test {#test} > ``` > > I ran `pandoc test.md --to latex --from markdown` and expected to get the > following: > > ``` > \hypertarget{test}{% > \section{test}\label{test-1}} > > \hypertarget{test}{% > \section{test}\label{test}} > ``` > > Instead, I got: > > ``` > [WARNING] Duplicate identifier 'test' at line 6 column 1 > \hypertarget{test}{% > \section{test}\label{test}} > > \hypertarget{test}{% > \section{test}\label{test}} > ``` > > Turning `auto_identifiers` off "fixes" this by not giving the first > instance a label. But shouldn't `auto_identifiers` be able to automatically > label headings while taking into account existing IDs? > > -- > 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/099f0289-7ff2-4f84-b983-8af49f257915n%40googlegroups.com.