From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28580 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Newsgroups: gmane.text.pandoc Subject: AW: Dealing with non-unique footnote numbers in markdown Date: Fri, 11 Jun 2021 11:19:43 +0000 Message-ID: References: <57737b2565d348a0b319e7c186c9e2dd@unibe.ch> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_000_ca1ea08b7c2b426d988c7588691140f7unibech_" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30158"; mail-complaints-to="usenet@ciao.gmane.io" To: Original-X-From: pandoc-discuss+bncBCZ27W53TUFBBUMNRWDAMGQEBCAH7LI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Jun 11 13:19:49 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-lj1-f192.google.com ([209.85.208.192]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lrfCW-0007iD-C3 for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 11 Jun 2021 13:19:48 +0200 Original-Received: by mail-lj1-f192.google.com with SMTP id b17-20020a2ebc110000b029015364cb3628sf1038579ljf.21 for ; Fri, 11 Jun 2021 04:19:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1623410387; cv=pass; d=google.com; s=arc-20160816; b=BR4d6X2E8V10FFYARskHWL+AeG7jL/GV0zHWJn133NvimRbuYdjgnxNhDl8NeOuz2j 3aq3GFl3JGL8I+53fJsv8MSUj4eB3aTifVfm9Kvf5YjCPnO1uLI1ZzSdpbh4+3KyIFsu 4DaL51I+8aSfT4ts1HTMUHzFmNLBPgm3GnxOXFSjUV82Xwhf7B25bLGLJHybYcXNQRTE vk7DNYMDvXo5Bh35ElfH8W+FifVXQwMNE+rg8+UAVBSTbiLWN2DfR/ao8oKG7z1poqs/ LMqnFjignx3rr1oc6qE6loK7vGXHLH0Q1lb8A3R++DRFS1YTRLvMYoQb8OfkGGRLOv5k hO6g== 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 :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:to:from:sender :dkim-signature; bh=lF7mk2PZS0/Q9vAnzKcHNkwaxzRLjASM9eDlbQh4tx4=; b=g9gvYNGjmVMu50YiLniUtwK4x/uDvvZnjK6QZkwLO0dU+TljHIEANtvYxCYOv27yHf r38OeeGdC7OAMET1wOG3KQtiPkvVDpR13EE7CDDCG40kpI4iJjvVxwOqP8eTOFppzHrc i/yXpytJ6G1EdTXzizT2x5TmH5q8V5GTdd3YAUCafKXGB6Rru46AQyFgOblR6nt+3zYW 5ANXPIx6lllloM4xbeNQ2HJURvpg5kBKQamsuU8FI4C1YkxoqKVYXu/ifdT9Zdlj5NWg u8S0HUO/vvnLN+wMfRlgnPgU/tuV779wVbDobFfcwSl+1+1AVGliZ44u5tM98cWss1Sb W34w== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of denis.maier-NSENcxR/0n0@public.gmane.org designates 130.92.0.83 as permitted sender) smtp.mailfrom=denis.maier-NSENcxR/0n0@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=unibe.ch DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:subject:thread-topic:thread-index:date:message-id :references:in-reply-to:accept-language:content-language :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=lF7mk2PZS0/Q9vAnzKcHNkwaxzRLjASM9eDlbQh4tx4=; b=jYn+x8qZZ2RlMa2vfDYXzuHFZWQMvlBYgpaLqAset4JZRz6tcCmyl8+yIF1k8mg2sh WwO/EouuA8sFppQm4lY9KRlr4ZKKwDVdBLDKVKv9sKHLLPZ63miDNnvqU761wPkUelJa xOk+CrxannLxTS9pd4LlPXO6bspWNgzXV9saKSjdbdcooBatnFfD1UoehPBNm2GE9Nno py1697CtAVWrhv8tvYGqYkmi8mTcJCcfZnbxiRinLwhZeAQlfDY59arZsiJ6MU5QAX5k Jy/IIYD08thbqo1Tb8oa4TiS7L7xaQ+4XX9Ry5+0SeYaAUnAsNcOzQ0VnTGKPCXTbPER ec7w== 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:thread-topic:thread-index :date:message-id:references:in-reply-to:accept-language :content-language: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=lF7mk2PZS0/Q9vAnzKcHNkwaxzRLjASM9eDlbQh4tx4=; b=H4qwI3hMamxKVCjxmX93WCRbQ8liJ3868PglVVM4CVBrhciZZkOi9z2pmTAY37Pppe CqO4iAELzbEyAgbknCvHB53uDGKrfdncS7503pzlxHCrPfe7KVe+OjchK5zzt8quHeXR aKPao9O4X+ymXrKQ2EF36H8rxTlSHYbJwMDO+nYSECDJiQ7GKd/PEC+hv8uEsR+93gSx 5Dm8zVjwewM/ZJQiXGCVRJm3cd7gryHyicYxi0Wc93MvFOIUlp/7xV1eHZYokMndFe6K 6OIPPtkDHQjCxxZRRlCUWRDrCmaY7ym Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM5310/73z+Tf+zmcdIJGEKWoW2ruLLYilQQpQLsxWgCtVxZhAFAt6 moyDFLX88/sJP8VQD6TXSzI= X-Google-Smtp-Source: ABdhPJwNM3Ujj2KNNFYmdd+M24S7dRzgLCB4hgerB2AEJWES0R6UJUmzlDYDwG0CNEnQfHBG/3du3A== X-Received: by 2002:a2e:b0c6:: with SMTP id g6mr2658165ljl.345.1623410387850; Fri, 11 Jun 2021 04:19:47 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6512:3b0e:: with SMTP id f14ls632059lfv.3.gmail; Fri, 11 Jun 2021 04:19:45 -0700 (PDT) X-Received: by 2002:a05:6512:3d08:: with SMTP id d8mr2372223lfv.393.1623410385023; Fri, 11 Jun 2021 04:19:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623410385; cv=none; d=google.com; s=arc-20160816; b=PzTEtweOYG4xuYB/ysY5EJALp2/ktFJR3kxmbPSAJQCZLL5h/CP3XdnH6G9Lrr+XK2 1ySwNAsaBxOwNZaBL1FuprtobgK+wmB7CSaq4d/Z4MwZiXYhb66pb7TIauR/vs7vLdnt 81w99CDFEof/2urB+LMed21ZVkWhAqzS3+sRvAcC0HXcKFYxKktvL28YXFXVrAiEtT4I 1OE+kXDdLKtAGqAk0ktIn/YBFwUxPGdIuLKHAfpHrOmPmarw5JNtx7erPH4MOv45AGtL TutqMlMlnTZXBXoo6g6pZ9dRFuGDRKpkSm7WpJpY6AQcAGKEIcblrxjwm/myh4C4880f jbXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:content-language:accept-language:in-reply-to :references:message-id:date:thread-index:thread-topic:subject:to :from; bh=nku6eYpFo7xulF6sTWEVnuJgNVYTABp4/Hf89BHakoA=; b=Et0SGaYZkgjci8nQPyM9ww7kyYCh8RdcSx5zeSSwTYlY9+FQgG2ljOlTUO2T00Itam 64aOF+nph2t6CJDtKjPfKVKm93bKS0/ihisWde/q7g+EOBQAYKmkrhqXwSbnqhWk/XDh GelC4u/3ZPMkWY7/s5uWb1nvElsL5yyoTJ2kZ/FghlZYvhA412h7S9KqbzHYPHPmfqvE 7rlHXSmMLe6dYV6arJ6mfKQZaBJcQPWP0uvfmaLUv6qYlz7qJHidUsVquDECKvXqQVyC /aR6B4FvS/SgirbfjssVJx6eFbkeFvYJfIB8PE3NnPHmK4s0V4NoTIKtRqdyeDm1UUEY tXMg== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of denis.maier-NSENcxR/0n0@public.gmane.org designates 130.92.0.83 as permitted sender) smtp.mailfrom=denis.maier-NSENcxR/0n0@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=unibe.ch Original-Received: from mailhub-lb2.unibe.ch (mailhub-lb2.unibe.ch. [130.92.0.83]) by gmr-mx.google.com with ESMTPS id r78si301997lff.6.2021.06.11.04.19.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Jun 2021 04:19:45 -0700 (PDT) Received-SPF: pass (google.com: domain of denis.maier-NSENcxR/0n0@public.gmane.org designates 130.92.0.83 as permitted sender) client-ip=130.92.0.83; X-Virus-Scanned: By University of Bern - MGW Original-Received: from mail.campus.unibe.ch (aai-edge-04.campus.unibe.ch [130.92.13.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mailhub-lb2.unibe.ch (Postfix) with ESMTPS id 87A7A50009E for ; Fri, 11 Jun 2021 13:19:43 +0200 (CEST) Thread-Topic: Dealing with non-unique footnote numbers in markdown Thread-Index: AQHXXnVf46smsnSqsEel1CdN612c0KsOqBiAgAAA0wCAAAF2IA== In-Reply-To: <57737b2565d348a0b319e7c186c9e2dd-NSENcxR/0n0@public.gmane.org> Accept-Language: de-CH, en-US Content-Language: de-DE x-originating-ip: [172.18.72.2] X-Original-Sender: denis.maier-NSENcxR/0n0@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of denis.maier-NSENcxR/0n0@public.gmane.org designates 130.92.0.83 as permitted sender) smtp.mailfrom=denis.maier-NSENcxR/0n0@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=unibe.ch 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:28580 Archived-At: --_000_ca1ea08b7c2b426d988c7588691140f7unibech_ Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable If you split the file into distinct files per chapter you can also invoke p= andoc with the =E2=80=93file-scope switch, see https://pandoc.org/MANUAL.ht= ml#option--file-scope. (So, no need for sed and cat). Best, Denis Von: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org >= Im Auftrag von tri...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Gesendet: Freitag, 11. Juni 2021 05:54 An: pandoc-discuss > Betreff: Dealing with non-unique footnote numbers in markdown I have a markdown file where the footnote numbers restart for every chapter= giving me non-unique footnote numbers and therefore warnings when processi= ng 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 nu= mbers? 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 e= mail to pandoc-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. --=20 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 e= mail 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/ca1ea08b7c2b426d988c7588691140f7%40unibe.ch. --_000_ca1ea08b7c2b426d988c7588691140f7unibech_ Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

If you split the file into distinct files per chapter you can also in= voke pandoc with the =E2=80=93file-scope switch, see https://pando= c.org/MANUAL.html#option--file-scope. (So, no need for sed and = cat).

Best,

Denis

&nbs= p;

&nbs= p;

 

I have a markdown file where the footnote numbers re= start 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 met= hod of renumbering the footnotes so that they are unique.

 

I'm using Ubuntu, and what I've done so far is to us= e 'csplit' to break the file into chapters, then 'sed' to find and prefix e= ach 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 &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pandoc-d= iscuss+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-11= 1501019059n%40googlegroups.com.

--
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/ca1ea08b7c2b426d988c7588691140f7%40unibe.ch.
--_000_ca1ea08b7c2b426d988c7588691140f7unibech_--