From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/29870 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: Use {@x} to End a Numbered Example List, where x is identifier for this specific list Date: Wed, 29 Dec 2021 16:09:27 -0800 Message-ID: References: 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="13035"; mail-complaints-to="usenet@ciao.gmane.io" To: Hossam Ghorab , pandoc-discuss Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBYXRWOHAMGQEOEG7CKA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Dec 30 01:10:12 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-qk1-f183.google.com ([209.85.222.183]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1n2j1I-0003Ct-Ox for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 30 Dec 2021 01:10:12 +0100 Original-Received: by mail-qk1-f183.google.com with SMTP id x3-20020a05620a01e300b0047672880035sf8212909qkn.19 for ; Wed, 29 Dec 2021 16:10:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1640823011; cv=pass; d=google.com; s=arc-20160816; b=ELtVfIv0Ka+7jrtH+u8zd/LJ+puK/y2adgYIKrCFfkwq7nOEozBbRc0bIcY1f72FRY MbbQQPmMzwYoOYOTpM1VpKwOhc39KowRcxa8ga8Nu0AP3dhfg1nHk0m4AP0np7vKJQp6 7pkOg9CRsGa/E3zWC9EMjh+olXrKPNxY7lTs9h7q653Haw7EeJVW0WnWKcw1244rDf/j YNC4mf6r/uBtpV6rzYcElfRLtKcVaYTaf4vvk+UB3st3Mefuk/OdRKrx9d1wqZHIQFG0 3Bb0xRKbrh4W71U+KhyJPSYqVYzOzMWnI2oAgrTfw4QKDs5212SgaXNLkuiQuBaMfV04 Nm3Q== 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=3dtmfGtqXzcMDbfq7XmuzJ7a36vpInA5kZ/eljQLZIg=; b=hSNv3EBO+0uodVgwUNBdrlKomwzi7Hyqyvy1RIaobBUrLvOyvTiBlJmxMFg49uqYmn aLoGANXA5fgZ9SD1dNcLAeHkvoxWDlzCIg5wGXlzaB3wVz/krAPOZ04Jssl5TwZN5Oy8 cXCnOb48e2AHFIa+ChMIGSQ8oSeewWU8OF53FJ+VLYrX2D9gsAOXgAl97ev5hvWR1Eh8 WzdYAK2L3AwggmaNdLTDuIsZzm2KVnqqtY/2Frt8AL+KrCV9hlnw7ZGtu5FXCqEHXOyp Hk3xFoTpeuUQzkEmyuopc8hgy8556JuziESFs1c5sId4E3FTwnRopqlVQBq2swKmaHpA gKAg== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20210112.gappssmtp.com header.s=20210112 header.b=yyKDFJxE; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::52f 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=3dtmfGtqXzcMDbfq7XmuzJ7a36vpInA5kZ/eljQLZIg=; b=LPQn8ffpP5VV2xxXpQ81a9yNEaXkJT95kRC5i2f3zDd9mkmi9DhdgDWb8io+j8gGax V50gGYYZCXQ8lgaY+0G/iCo9/Wju+3PhkuBLUEtni2pOdTjOqvMLd2CJBs+xbfs7Qw23 iA7xnM6rnNNnOZnAPQux2wRSjlXtCf4tzvY1Cz13fsbmvH9Ow+q16VHv/4mkADAGPoKg mEKuGvEh77yd7kGTW2YnhFFIxoS5r01fLYEfpyqYinDXCPFyXW48FYvyV1Sk8XNTMGN9 kyPPyjmhx3MFHCCLz+mnpGJpX6Kxtnb6Q1X4PstDBmOZd77b5F+bH+lFjqS3BlXforTj xjLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=3dtmfGtqXzcMDbfq7XmuzJ7a36vpInA5kZ/eljQLZIg=; b=6SdUIpIEw+P3ZgwmwzG45QHoiQdMRrHZK5CHOUDtdBJTtKRqhm8OY8hmljYwz/USDt JG8jmAAUGsFX6UfDVpvHMLwNOFUj4t3t4ohb28y1vbJaUoMxC+W7CP+uwTNom4sKcpAn CpdROUawDJoDfRGF7lIoF6/bUgsyaKFHHbGzg7giuTFk8/ZFEr+e1kAYHM3jRj0DX7qV xP4On3fx3uYoQ3PsDZ2cIcJXQVaPq0MbwZ0G0ce2xeVzOszIAdiFrDYo0w3XmA6Pirkw 3wJAUyawQeayptSokt/qAk3kz4/b6KlvJUcr3GzHvznHdWYgZj0bUNUNVKrhKTcgGo65 7EJA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM533xBxex0GVBwSh895EHipXeBvjwLVU/cfqueQKHXClWkLPc7AhG n0KEq3L/F7ptK8aA54y3OTA= X-Google-Smtp-Source: ABdhPJzHMptpVEmWFHipbUgcvvULKRmtDKd7OXkhWqx2YH1eCR+nrhubOTEZLPdJ5wDZA5snKzSh6g== X-Received: by 2002:a05:622a:291:: with SMTP id z17mr25167395qtw.138.1640823011500; Wed, 29 Dec 2021 16:10:11 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:ac8:7e88:: with SMTP id w8ls12132467qtj.3.gmail; Wed, 29 Dec 2021 16:10:10 -0800 (PST) X-Received: by 2002:ac8:7f06:: with SMTP id f6mr25303477qtk.258.1640823009985; Wed, 29 Dec 2021 16:10:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1640823009; cv=none; d=google.com; s=arc-20160816; b=aOA7E5WVmfi03r/Tv0udFfImEZLS78nxyPF+lbHfQr4HitXPOImZbjikC0tLKYAAlm vB64JglnClKAB2zCNIk4rciW2KGanM2guErLRVHpP2uh7M8OvFGz+5zGj5DZvKb5Hs0C s6qeV8V01PJEywmVE5znAQh2rhrfK3FPfcl2Ex+LDLhOuuC9QE3xY5tArKwFbW2r8NaI JhdNZoEj0mVp7Ydd90HcdQPm2ITt5OeglXwsnmEXTSX1BXcQ8QGeL09qCDB0xyhOqugr VHIQ7hXp5tLPjlCIuPrDagVAfxX2sTD6IZ4dH7BdleF8xHZ/RnWU1RqfqWWtd6IKK8C4 d3+g== 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=dR0Ommh/wRirygBnDv3H1Kzon2zJriyzdJcRSPUb8+c=; b=R0liHh6Z8B0saDCxGKoeSTbK5L31p0rnBymiaaOGIHIarp5m4ILZtMij6BhSfjN9QZ ETLlwyh0Zlqs7wTrhlrW8qGmGwEFkub53ewIbQlNxkpOQiNcE/5/aSXpuUxrq7l1FFJ0 BdBkzIRNNp8vWpLFHEiERl+c4L8chhtTXFFwOUVwLXWGskvQGE2Zism+LlX3hYCEJdvZ eASYvOSDrLjYHkPFuMvfZouYsVQn1aeyP6Vug4MMGf4dfh+noY1BiP+IeUs9K00lqZar YGacRHtEpq/kXF8wOktd0R0t5s7QKYGfczCKb/LYekI4WmUOfLSQ0jXXG2oSpSTqFTWK uIZQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20210112.gappssmtp.com header.s=20210112 header.b=yyKDFJxE; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::52f as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pg1-x52f.google.com (mail-pg1-x52f.google.com. [2607:f8b0:4864:20::52f]) by gmr-mx.google.com with ESMTPS id bs32si1863028qkb.7.2021.12.29.16.10.09 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 29 Dec 2021 16:10:09 -0800 (PST) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::52f as permitted sender) client-ip=2607:f8b0:4864:20::52f; Original-Received: by mail-pg1-x52f.google.com with SMTP id l10so19736285pgm.7 for ; Wed, 29 Dec 2021 16:10:09 -0800 (PST) X-Received: by 2002:a05:6a00:1a03:b0:4ba:c23e:df67 with SMTP id g3-20020a056a001a0300b004bac23edf67mr28872219pfv.63.1640823009091; Wed, 29 Dec 2021 16:10:09 -0800 (PST) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id o22sm24984161pfu.89.2021.12.29.16.10.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Dec 2021 16:10:08 -0800 (PST) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id 34DCAA29D; Wed, 29 Dec 2021 19:09:27 -0500 (EST) In-Reply-To: X-Original-Sender: jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20210112.gappssmtp.com header.s=20210112 header.b=yyKDFJxE; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::52f 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:29870 Archived-At: No, you can't have two separate example lists in a document. If you use (@foo1) and (@foo2) in example lists, it simply gives you a way to refer back to these list items later, e.g. "see item (@foo2)." LaTeX has a sophisticated mechanism of counters which allow you to have multiple automatically numbered lists, with different numbering styles etc. Pandoc's markdown is much simpler, and I'm not convinced that we should try to do everything you can do in more complex formats. Hossam Ghorab writes: > Sorry for the bad wording. I really admire your work and didn't mean to > underestimate your kind efforts. > > I'm aware of the numbered example list > , the thing is if I > want to use 2 lists, I intuitively give them different identifiers e.g > '(@foo1)' and '(@foo2)'. However, they are parsed as a single list. I still > can't make make multiple different lists, it's a single list throughout the > document. Please enumerate us, is it possible to have more than a single > list of this type in a single document? If yes, is the suggested syntax > applicable? > > > > On Wednesday, December 29, 2021 at 9:36:18 PM UTC+2 John MacFarlane wrote: > >> Hossam Ghorab writes: >> >> > Thanks for sharing your idea. Maybe we can post our suggestions >> somewhere >> > where core Pandoc developers can see? They don't seem very active here. >> >> Really? I've posted here 320 times in the last year. >> >> Note that the syntax `(@foo)` is already used for regular example >> lists; `foo` identifies the specific list number, not a list >> series. >> >> >> >> This has come up before, and it wouldn't surprise me if there is >> already >> >> an issue for it, although I can't find one at the moment. (For all that >> I >> >> know I might even have opened such an issue myself but don't remember >> it.) >> >> I have a file with a proposal, but I don't remember if I ever posted >> it. My >> >> idea was to use curly brackets to distinguish counters from citations >> so >> >> `(@{foo})` would be the counter named `foo` and then optionally a colon >> and >> >> a number/letter which gives the numbering type and the start number as >> for >> >> regular lists so `@{foo:10}` = the counter `foo` starting at 10 with >> >> decimal numbers, `@{bar:x}` = the counter `bar` starting at 10 with >> >> lowercase roman numbers, `@{baz:J}` = the counter `baz` starting at 10 >> with >> >> upper alpha numbers, with the `:N` bit being ignored except at the >> first >> >> occurrence of the counter, or maybe resetting the counter, as I imagine >> >> that one of the main usea of this feature might be to have a separate >> count >> >> for each chapter, and then resetting the same counter makes sense. >> >> >> >> Den ons 22 dec. 2021 21:17Hossam Ghorab skrev: >> >> >> >>> Dear all, >> >>> >> >>> Regarding the [continued numbered example lists]( >> >>> https://pandoc.org/MANUAL.html#numbered-example-lists). A problem is >> >>> that we can only define a single list that gets continued along the >> >>> document. Why don't we use `(@x)` where we can simply call the >> identifier >> >>> of this list, x, whenever we want to continue it's numbering? The list >> >>> identifier may be any character not just a number. Something like: >> >>> >> >>> ``` (@1) element 1 of list 1 (@1) element 2 of list 1 >> >>> --interruption---- List 2: (@2) element 1 of list 2 (@2) element 2 of >> >>> list 2 ---- interruption---- List 1 continuous: (@1) element 3 of list >> 1 >> >>> (@1) element 4 of list 1 >> >>> ``` >> >>> This is a primary suggestion open to all kinds of arguments. And many >> >>> thanks to [@cderv](https://github.com/cderv) who has been a great >> help >> >>> regarding Pandoc issues facing Rmarkdown users. >> >>> >> >>> -- >> >>> 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/bae691bb-767f-4d26-9e6e-21886fea9bd2n%40googlegroups.com >> >>> < >> https://groups.google.com/d/msgid/pandoc-discuss/bae691bb-767f-4d26-9e6e-21886fea9bd2n%40googlegroups.com?utm_medium=email&utm_source=footer >> > >> >>> . >> >>> >> >> >> > >> > -- >> > 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/febfa13f-00aa-4526-875e-5e33c024d02dn%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/f60b6c88-99e5-4d3f-881d-63c5063f47d5n%40googlegroups.com.