From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28579 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "tri...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" Newsgroups: gmane.text.pandoc Subject: Dealing with non-unique footnote numbers in markdown Date: Thu, 10 Jun 2021 20:53:39 -0700 (PDT) Message-ID: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_1554_1352361745.1623383619206" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17823"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBD4N5VPWTMERBRF4RODAMGQEG7SDKAY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Jun 11 05:53:43 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oo1-f60.google.com ([209.85.161.60]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lrYEp-0004S2-BL for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 11 Jun 2021 05:53:43 +0200 Original-Received: by mail-oo1-f60.google.com with SMTP id n62-20020a4a53410000b0290246a4799849sf807862oob.8 for ; Thu, 10 Jun 2021 20:53:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=WmuTBvbhjf2Il6cwl5LjhkS4Z7KxP87+rkRhByJG9hA=; b=fAl6ASIIuvsROWvCwXmCKc8uwXJD5nKtklbrrrnAgdNURl46dnMvHgeBk5GgQYj6ZN WMIkky7F+2/kXlB5tyGFo5JtE2xOzwJTFcdRbEQRdBpE3QqB96pZLu3n9iwdOXNkaDs9 g/xEYdzMJ70nvCjlxMRXlnLJpH8hiV+e5jp0aXQBje+HARpjOtg1D5+PbeA5P2z0/RzZ FBezhbkNFexTbytDO9/yF/wGcdMpWgYPPNbxWYKP+6AmCYahYaiJneZJds1J3yZtUmE6 6ujdNhQOjOiO7siTOI7pkQqXykbuDeEJ34GVzkmAEbjrhmv49s/YzMXtYMW4okzLjw83 fRtA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:subject:mime-version:x-original-sender :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=WmuTBvbhjf2Il6cwl5LjhkS4Z7KxP87+rkRhByJG9hA=; b=blK+30ZqqhAiahSq6YfHm0LghzhK6RguC1C9qQldp4tUfbhs9vOvr4TNnavxVkomBu fq8YNyJA279T8mM5pzKIXqaIIYEjI0IDJRVeO9p/QtkHk8DDghwgdDsPiLHNPhnmmrbr w2gPYfKx17sdAo/OHZBDdOqL9It/qlDQf8V07g3kAPJLvxt8HUqBHvVHR/bDE6J1/Y1A I+p0nI+dlGq4urAPE7qJHDj2ZVwYKHxDwB70afMMkS2uvc0gLwET8cLC1Ul0ZEFVjtq2 xaZJ9IyftUvdnJjKLYL9rjuMQg2vQU8nz9SdY7jovdSHFivCvHyjNFwW88m+EFpBxU43 5/nw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:date:from:to:message-id:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=WmuTBvbhjf2Il6cwl5LjhkS4Z7KxP87+rkRhByJG9hA=; b=EYnLudCLnRnthvalPPxtzYfDZFbEZXYgr7gRH6bstw/h0glMxCT/Zi53Hnns5kt8Av cyeTjRWGLbetQ72MAWn0SHwt8NrJnZTTH5tHyNSyTA88ehkf+/oM19Iuia5H6OPPOWTI g73jq7i2aHV/ZzRlTf/ZfEwLoRHMuZk4sEHMjBMj/NcjJURgnbDqMrw/NiJQ0qylWMHr bgyFCDwZupK0gm92ceaWNQnoghNF1UR2TfGJPMpS98GBW9IOdvkc9IoRij5qSrBiyZPo xsalsUuxvIU96d/+9pgfGxas0cgU7BDpcDujh4fDa09tVkVZpPslmihpkHif9LHvfcbt DLMw== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM530cvtX5E8pFCIcKZgMmg9h9fXoB2OU5U25PCK9QecLJR61gqBz5 7bEHpNoWcyUKB7f9MLuytxc= X-Google-Smtp-Source: ABdhPJziEYbBwKEMzU9L1446pOMHjIBaiw1UY62FZvpeUkRlVy0DX6W3+hBf762bgjf1ih3wAc8NzQ== X-Received: by 2002:aca:bc41:: with SMTP id m62mr1091167oif.19.1623383621691; Thu, 10 Jun 2021 20:53:41 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a54:449a:: with SMTP id v26ls2471750oiv.8.gmail; Thu, 10 Jun 2021 20:53:40 -0700 (PDT) X-Received: by 2002:a54:4e82:: with SMTP id c2mr12371755oiy.137.1623383619861; Thu, 10 Jun 2021 20:53:39 -0700 (PDT) X-Original-Sender: tridral-Re5JQEeQqe8AvxtiuMwx3w@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:28579 Archived-At: ------=_Part_1554_1352361745.1623383619206 Content-Type: multipart/alternative; boundary="----=_Part_1555_630710759.1623383619206" ------=_Part_1555_630710759.1623383619206 Content-Type: text/plain; charset="UTF-8" I have a markdown file where the footnote numbers restart for every chapter giving me non-unique footnote numbers and therefore warnings when processing MD->EPUB I would like to know whether anyone has a simple method of renumbering the footnotes so that they are unique. I'm using Ubuntu, and what I've done so far is to use 'csplit' to break the file into chapters, then 'sed' to find and prefix each footnote and 'cat' to append the whole thing back together again. Does anyone know of a simpler method for renumbering non-unique footnote numbers? Many thanks for any help. -- 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/e2f77b9d-ca57-47eb-9b29-111501019059n%40googlegroups.com. ------=_Part_1555_630710759.1623383619206 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I have a markdown file where the footnote numbers restart for every ch= apter giving me non-unique footnote numbers and therefore warnings when pro= cessing MD->EPUB

I would like to know whether a= nyone has a simple method of renumbering the footnotes so that they are uni= que.

I'm using Ubuntu, and what I've done so far i= s to use 'csplit' to break the file into chapters, then 'sed' to find and p= refix each footnote and 'cat' to append the whole thing back together again= .

Does anyone know of a simpler method for re= numbering non-unique footnote numbers?

Many thanks= for any help.

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d= /msgid/pandoc-discuss/e2f77b9d-ca57-47eb-9b29-111501019059n%40googlegroups.= com.
------=_Part_1555_630710759.1623383619206-- ------=_Part_1554_1352361745.1623383619206--