From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28662 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "T. Kurt Bond" Newsgroups: gmane.text.pandoc Subject: Re: I suggest adding setupitemize and setupenumerate variables to the default context template Date: Sat, 19 Jun 2021 12:48:07 -0400 Message-ID: References: <3ed3e1c40e2040db86789428aa9e68d4@unibe.ch> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000010129e05c5213524" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11789"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDJYFKFHUYHRBU57XCDAMGQEMGVZVCI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sat Jun 19 18:48:22 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-pj1-f64.google.com ([209.85.216.64]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lue8s-0002t1-56 for gtp-pandoc-discuss@m.gmane-mx.org; Sat, 19 Jun 2021 18:48:22 +0200 Original-Received: by mail-pj1-f64.google.com with SMTP id t5-20020a17090a4485b029016f7fcb8a3dsf1246545pjg.2 for ; Sat, 19 Jun 2021 09:48:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1624121301; cv=pass; d=google.com; s=arc-20160816; b=TdWch6Ty64/Imcbpjb2jR12Q/rdAKDZMIRRUbRp3xUmn+VBum/NI4JOMqD5Aork+2u KB5442iXw4G7p8bWRAtbN+7ScLYHlVOWbpPWfINweQRpdcxbI4KE/Onb2K2pYdx/nE3C KMZzpJEgLIOLSV0D7olRa89kSPy7Z2zzSkXzGW+BAjbTKDb6UwqjcbljSiW5fRNncvsc VJFNjM3LtfLkXoeboJEpdC/xXwyNxqU9Kmmjg8Qx0974l0pH1P55et5JPJgLMHS0kg8o tmlje5F7XHPnChPEmZKYdydFwJYQAC1KIns3ARAMjlutr/e5p0V0WtzwYrtm2b3NwxM0 4Kvg== 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:to:subject:message-id:date :from:in-reply-to:references:mime-version:sender:dkim-signature :dkim-signature; bh=0W9yCunLlOD+q+6m3fA/Y2mD6IcAl1fq9i617qtsQpw=; b=IshYMIEULyAa9qnGHVFEwb26cS3c1fH0G4Ac4T/93F2r7sWvXORP+jchvBD6kpvY48 9HOso/DtxOcOWm9JYleIEwwJKmm5RR1JrCCLeFERGcVSk3vT11Fi+FAm0Zqaq+Tv3Ag0 Vq5epWB9Oit71r1jlrRDzw61lKro9suJjsxN3Tlq5YRUrC6ON31YoFBGwbCI31VvZtgw h8xlqi2MLlpMvHmo9nC5atOOQOr8RGFkDv8fPtlwYo0vskvA94A2hfwt8Hws0WOvOAMj TBEDwx0wFb9gKrsr6hrZt9hwKjRsX43XGsukNH7/PhZdaySX+EsyDYuAw50P7RWZI8+H jcBQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="gm3/qaMK"; spf=pass (google.com: domain of tkurtbond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::d2d as permitted sender) smtp.mailfrom=tkurtbond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:mime-version:references:in-reply-to:from:date:message-id :subject:to: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=0W9yCunLlOD+q+6m3fA/Y2mD6IcAl1fq9i617qtsQpw=; b=bg6nIB+Ccds2UkQXc2k6mYvreyqIPEg7knnUqIjcgaTGs0VcztDoRaI7pWRUzKpUPd r8/t+MKpHRgfEx6p1tuJWxQp42YiB1oDCIjZhdt0ed0EPGlJhRTrprzKNfTdyfmssnHq 9jr1dzQakvQBJQgRbHtJSxbM7048/6W2kDfg50DZaFOi1wxbjkRp6SA0RZbYqbZu2GWx K1Zp8LRMf+LgQ4jeXnPJJYZ4KuR2+6wIDXtXo1oRRkDkl7wFXDEkjisNCFn+kgbZmB19 q4g/dfbcFWu2fOeyl7PKnX7tJFYa4EVR4H1OhM52v9MDvRRZrQDph85rqWJiIVa5HRdj Iblw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :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=0W9yCunLlOD+q+6m3fA/Y2mD6IcAl1fq9i617qtsQpw=; b=a/0pB2qNmTIZHv8NqkKXnQrbjAKq6VTApvHEDJFFaYm41sw69gBftEaGa5sI30F0NC fp2M9ff1GbQCi01dL+jVDFfmfHPvtqUzi1gC4V4284FvUODp2dDn4WrXPyOU0u28TvAc 493Ne3ZknH0osiULcxulsrM1XuxLNkBHHZxf0p2yhTnfr2A/AJJgUccc+RNYHvj5G/ab YBm+fID5Rwt1v34P3mOIw8ta13bhX2M5dTGGgq+wChy+vOB3EeNRN2m4QcNt0f9/sUc1 qnuDquBSKJ+1/r9GpzqUreiZSDuh+OBipYnTAGYiyj3+Ox3yJsKT3HWhVcqyydRJF2Qi 4kaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:mime-version:references:in-reply-to:from :date:message-id:subject:to: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=0W9yCunLlOD+q+6m3fA/Y2mD6IcAl1fq9i617qtsQpw=; b=H534WDqCF/ILbtopZXk9YmKSztrnGu3g5/CzyMA+91VB3ICbxoSK51zW1ZKkl0Mrjv gQtOhev7wYFkuCFeznaFJK/YrsQkQmFACz0BDvp5ObQ6tGoIcPvEiHT2kYuEMr+63DOi fODNS6ZGE7HQ8FeSAdAXu/pIke9ZiaX0KX5ybbcA8ZzNAxaz9jA2hOf3/vREZC4YhUpc MFsrQbT+wQ1yoo4qCTEf4Mbys5yxxyapOf787WxYtKqnGNTfOphheE1q/u/LrHb20kLz fEhHGBcE+YYeT400MfjsrOFt9poDnPu340pn6zX86gFRc9rX8KgkFfAY7sTSFqEcAFwl b2eA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM530MSP9NYB6i8uYgUB6EsGnkuO7XC3mpdRdPYInPIJwm3Sa87S40 Qj2Hyg/C9IatODCJg2Ru4OM= X-Google-Smtp-Source: ABdhPJyOI1xhre81QMwupZnJxmQsDOS75osoov6XH5d2nmQZvFR5/t0HJppIQqqbCiniIEvImhvLZQ== X-Received: by 2002:a17:90a:4cc2:: with SMTP id k60mr5577977pjh.83.1624121300893; Sat, 19 Jun 2021 09:48:20 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a63:211e:: with SMTP id h30ls6059077pgh.1.gmail; Sat, 19 Jun 2021 09:48:19 -0700 (PDT) X-Received: by 2002:a05:6a00:7ca:b029:2fc:daf6:d0f0 with SMTP id n10-20020a056a0007cab02902fcdaf6d0f0mr10974643pfu.15.1624121299170; Sat, 19 Jun 2021 09:48:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624121299; cv=none; d=google.com; s=arc-20160816; b=yqqTwuHBUZVSr/IUzCa9dmh42Fe2QvVThf3NViUAtF0VDXyQO69Bc+2QrowLNSfTVZ rifTW6Wdqtay9Ijj1Lx1RwrOPTXHBq7Zdzr7z/7x4W5eXSDfoBGF49RvuESgziTVdDvZ Etnd0SXxc9d53U8QKkJi2gT/GtU5Qe99BUEJO0ja8ibTU8W1kQWTIwCecjk+XnvP7SkL I6R/ChmyaS/0Gnh1ReWrdcXA0k0vXfj4ZdbqTiSuG4O9//u/CesuYVTMyMoASDR8hPhM X/QFygvYCsurPaZMPjUvOk8hG9/OAv/3LTTf7YZ9Q90r/LDY0VryPmlpKmQIHnZ5kW6V lLTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=t10bp/Ao4oSG/21cTzIrOJf76bYj8H5Wx1TFQHjZdwE=; b=cEnJiPS8VZdUnVKF6TWOvBrE0/dYq129wif9o9KxFTEKWO5vRPT54IgOF8EoxCiru8 teOG5iwgladBbhjOpLEI+aDTG8i/NN/o+EfqxIrrREz3nSXHUoxdFvBXExlquL6/kdmv RNmdfNbvS+7o+qm6mITTuPyz28FtJalr4coikiF2kOBWtSgkglRAhJc8avXlRYZIykJK gYPzJMiuKka5kq3WK5gy1gsCzdwjz2J+yxxPJDEMxna3pDo+QaB3XQEtrVqXnmblH6Uf oIzgboNxGTGHPtAy3MdJhVMaodegxMS66dPwmFNsAsjOR88qTK1Lf2foqfKXRqdoBmKJ VH5g== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="gm3/qaMK"; spf=pass (google.com: domain of tkurtbond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::d2d as permitted sender) smtp.mailfrom=tkurtbond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-io1-xd2d.google.com (mail-io1-xd2d.google.com. [2607:f8b0:4864:20::d2d]) by gmr-mx.google.com with ESMTPS id z10si677818pfk.4.2021.06.19.09.48.19 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 19 Jun 2021 09:48:19 -0700 (PDT) Received-SPF: pass (google.com: domain of tkurtbond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::d2d as permitted sender) client-ip=2607:f8b0:4864:20::d2d; Original-Received: by mail-io1-xd2d.google.com with SMTP id f10so4982246iok.6 for ; Sat, 19 Jun 2021 09:48:19 -0700 (PDT) X-Received: by 2002:a6b:103:: with SMTP id 3mr12945424iob.156.1624121298390; Sat, 19 Jun 2021 09:48:18 -0700 (PDT) In-Reply-To: <3ed3e1c40e2040db86789428aa9e68d4-NSENcxR/0n0@public.gmane.org> X-Original-Sender: tkurtbond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="gm3/qaMK"; spf=pass (google.com: domain of tkurtbond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::d2d as permitted sender) smtp.mailfrom=tkurtbond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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:28662 Archived-At: --00000000000010129e05c5213524 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Would using setupitemgroup as the option still allow setting the values differently for enumerate and itemize? On Sat, Jun 19, 2021 at 7:02 AM wrote: > Ok: this here should work: > > ``` > \defineitemgroup[enumerate] > $if(setupenumerate)$ > $for(setupenumerate)$ > \setupitemgroup[$setupenumerate.level$][$for(setupenumerate.options)$$set= upenumerate.options$$sep$, > $endfor$] > $endfor$ > $else$ > > \setupitemgroup[enumerate][option=3Dfit,itemalign=3Dleft,distance=3D.5em,= style=3D{\feature[+][default:tnum]}] > $endif$ > ``` > > Input: > > ```md > --- > setupenumerate: > - level: enumerate > options: > - option=3Dfit > - itemalign=3Dleft > - level: 'enumerate:1' > options: 'options=3Dfit, itemalign=3Dleft' > --- > > bla > ``` > > Result: > > ```tex > \defineitemgroup[enumerate] > > \setupitemgroup[enumerate][option=3Dfit, itemalign=3Dleft] > \setupitemgroup[enumerate:1][options=3Dfit, itemalign=3Dleft] > ``` > > I guess we can make this even more generic by calling the yaml metadata > variable `setupitemgroup` instead. Then, the same parameter could be used > for customizing `itemize` blocks as well. > > WDYT? > > Denis > > > > > > -----Urspr=C3=BCngliche Nachricht----- > > Von: Maier, Denis Christian (UB) > > Gesendet: Freitag, 18. Juni 2021 19:50 > > An: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > > Betreff: AW: I suggest adding setupitemize and setupenumerate variables > to > > the default context template > > > > Not so quick. I may have an idea. I need to test, but I think I can mak= e > it work. > > > > ________________________________________ > > Von: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> im Auftrag von T. Kurt Bond > > > > Gesendet: Freitag, 18. Juni 2021 19:08:27 > > An: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > > Betreff: Re: I suggest adding setupitemize and setupenumerate variables > to > > the default context template > > > > Hmm. After considering, I think you are right: these are better done i= n > > header-includes, if only because these itemgroup based setups are more > > complicated than changing the whitespace. I retract my suggestion. > > > > On Thu, Jun 17, 2021 at 6:02 PM > > > wrote: > > Hmm, yes that should be configurable. > > > > But if you look at the current template the definition of enumerate > consists > > of multiple parts : > > > > \setupenumerate[each][fit][itemalign=3Dleft,distance=3D.5em,style=3D{\f= eature[+ > > ][default:tnum]}] > > > > So, I'm wary of adding a simple > > $if(setupenumerate)$ > > \setupenumerate[$setupenumerate$] > > $endif$ > > as I'm not sure this will do what is needed. > > > > I was actually thinking you can add these kind of customizations into > `header- > > includes`. > > > > Am I missing something? > > > > WDYT? > > > > Denis > > > > Von: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > > Im Auftrag von T. Kurt Bond > > Gesendet: Donnerstag, 17. Juni 2021 19:11 > > An: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > > Betreff: Re: I suggest adding setupitemize and setupenumerate variables > to > > the default context template > > > > And you really need to be able to setup the lines environment as well > when > > you change the spacing between paragraphs with the whitespace template > > variable. > > > > Here's a modified patch: > > > > --- default.context 2021-06-17 11:01:32.458435275 -0400 > > +++ changed.context 2021-06-17 13:09:13.773558143 -0400 > > @@ -97,9 +97,19 @@ > > > > \setupitemize[autointro] % prevent orphan list intro > > \setupitemize[indentnext=3Dno] > > +$if(setupitemize)$ > > +\setupitemize[$setupitemize$] > > +$endif$ > > > > \defineitemgroup[enumerate] > > > > \setupenumerate[each][fit][itemalign=3Dleft,distance=3D.5em,style=3D{\f= eature[+ > > ][default:tnum]}] > > +$if(setupenumerate)$ > > +\setupenumerate[$setupenumerate$] > > +$endif$ > > + > > +$if(setuplines)$ > > +\setuplines[$setuplines$] > > +$endif$ > > > > \setupfloat[figure][default=3D{here,nonumber}] > > \setupfloat[table][default=3D{here,nonumber}] > > > > And I've attached it as well, just in case. > > > > On Thu, Jun 17, 2021 at 11:20 AM T. Kurt Bond > > > wrote: > > I'd like to be able to change the setup of the itemize and enumerate > > environments in pandoc's ConTeXt output. I suggest adding setupitemize > > and setupenumerate variables to the default context template, like this= : > > > > --- default.context 2021-06-17 11:01:32.458435275 -0400 > > +++ changed.context 2021-06-17 11:11:53.961951947 -0400 > > @@ -97,9 +97,15 @@ > > > > \setupitemize[autointro] % prevent orphan list intro > > \setupitemize[indentnext=3Dno] > > +$if(setupitemize)$ > > +\setupitemize[$setupitemize$] > > +$endif$ > > > > \defineitemgroup[enumerate] > > > > \setupenumerate[each][fit][itemalign=3Dleft,distance=3D.5em,style=3D{\f= eature[+ > > ][default:tnum]}] > > +$if(setupenumerate)$ > > +\setupenumerate[$setupenumerate$] > > +$endif$ > > > > \setupfloat[figure][default=3D{here,nonumber}] > > \setupfloat[table][default=3D{here,nonumber}] > > > > This is often necessary if you change the spacing between paragraphs > using > > the existing whitespace variable. > > > > I've attached a file with the above patch, which is against the default > context > > template in pandoc 2.14.0.2, just in case mail messes the inline versio= n > up. > > -- > > T. Kurt Bond, tkurtbond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, > > https://tkurtbond.github.io > > > > > > -- > > T. Kurt Bond, tkurtbond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, > > https://tkurtbond.github.io > > -- > > You received this message because you are subscribed to the Google Grou= ps > > "pandoc-discuss" group. > > To unsubscribe from this group and stop receiving emails from it, send = an > > email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>. > > To view this discussion on the web visit > > https://groups.google.com/d/msgid/pandoc- > > discuss/CAN1EhV9ZzincsBYJLFe- > > AHoHW3_CYTr_bOeKMVZK%3DWm7Ypp6fg%40mail.gmail.com > ps.google.com/d/msgid/pandoc-discuss/CAN1EhV9ZzincsBYJLFe- > > AHoHW3_CYTr_bOeKMVZK%3DWm7Ypp6fg%40mail.gmail.com?utm_mediu > > m=3Demail&utm_source=3Dfooter>. > > > > -- > > You received this message because you are subscribed to the Google Grou= ps > > "pandoc-discuss" group. > > To unsubscribe from this group and stop receiving emails from it, send = an > > email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>. > > To view this discussion on the web visit > > https://groups.google.com/d/msgid/pandoc- > > discuss/e26e45614f514bdeb867c9dd08c99652%40unibe.ch > oogle.com/d/msgid/pandoc- > > discuss/e26e45614f514bdeb867c9dd08c99652%40unibe.ch?utm_medium=3De > > mail&utm_source=3Dfooter>. > > > > > > -- > > T. Kurt Bond, tkurtbond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, > > https://tkurtbond.github.io > > > > -- > > You received this message because you are subscribed to the Google Grou= ps > > "pandoc-discuss" group. > > To unsubscribe from this group and stop receiving emails from it, send = an > > email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>. > > To view this discussion on the web visit > > https://groups.google.com/d/msgid/pandoc- > > discuss/CAN1EhV_U99iAUUTY3_60ESsueFOTehMGR5u9zWLbU0QShJwiVg% > > 40mail.gmail.com > discuss/CAN1EhV_U99iAUUTY3_60ESsueFOTehMGR5u9zWLbU0QShJwiVg% > > 40mail.gmail.com?utm_medium=3Demail&utm_source=3Dfooter>. > > -- > 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/3ed3e1c40e2040db86789428= aa9e68d4%40unibe.ch > . > --=20 T. Kurt Bond, tkurtbond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, https://tkurtbond.github.io --=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/CAN1EhV9u6AB%3DbfDamRjb5fvO_coy3237Xw2EyJtqm_ZQB-aNRQ%40mail= .gmail.com. --00000000000010129e05c5213524 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Would using setupitemgroup=C2=A0as the option still allow = setting the values differently for enumerate and itemize?

On Sat, Jun 19, 20= 21 at 7:02 AM <denis.maier@unibe= .ch> wrote:
Ok: this here should work:

```
\defineitemgroup[enumerate]
$if(setupenumerate)$
$for(setupenumerate)$
\setupitemgroup[$setupenumerate.level$][$for(setupenumerate.options)$$setup= enumerate.options$$sep$, $endfor$]
$endfor$
$else$
\setupitemgroup[enumerate][option=3Dfit,itemalign=3Dleft,distance=3D.5em,st= yle=3D{\feature[+][default:tnum]}]
$endif$
```

Input:

```md
---
setupenumerate:
- level: enumerate
=C2=A0 options:
=C2=A0 - option=3Dfit
=C2=A0 - itemalign=3Dleft
- level: 'enumerate:1'
=C2=A0 options: 'options=3Dfit, itemalign=3Dleft'
---

bla
```

Result:

```tex
\defineitemgroup[enumerate]

\setupitemgroup[enumerate][option=3Dfit, itemalign=3Dleft]
\setupitemgroup[enumerate:1][options=3Dfit, itemalign=3Dleft]
```

I guess we can make this even more generic by calling the yaml metadata var= iable `setupitemgroup` instead. Then, the same parameter could be used for = customizing `itemize` blocks as well.

WDYT?

Denis




> -----Urspr=C3=BCngliche Nachricht-----
> Von: Maier, Denis Christian (UB)
> Gesendet: Freitag, 18. Juni 2021 19:50
> An: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> Betreff: AW: I suggest adding setupitemize and setupenumerate variable= s to
> the default context template
>
> Not so quick. I may have an idea. I need to test, but I think I can ma= ke it work.
>
> ________________________________________
> Von: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc-
> discuss@= googlegroups.com> im Auftrag von T. Kurt Bond
> <tkurtbond= @gmail.com>
> Gesendet: Freitag, 18. Juni 2021 19:08:27
> An: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> Betreff: Re: I suggest adding setupitemize and setupenumerate variable= s to
> the default context template
>
> Hmm.=C2=A0 After considering, I think you are right: these are better = done in
> header-includes, if only because these itemgroup based setups are more=
> complicated than changing the whitespace.=C2=A0 I retract my suggestio= n.
>
> On Thu, Jun 17, 2021 at 6:02 PM
> <denis.ma= ier-NSENcxR/0n0@public.gmane.org<mailto:denis.maier-NSENcxR/0n0@public.gmane.org>> wrote:
> Hmm, yes that should be configurable.
>
> But if you look at the current template the definition of enumerate co= nsists
> of multiple parts :
>
> \setupenumerate[each][fit][itemalign=3Dleft,distance=3D.5em,style=3D{\= feature[+
> ][default:tnum]}]
>
> So, I'm wary of adding a simple
> $if(setupenumerate)$
> \setupenumerate[$setupenumerate$]
> $endif$
> as I'm not sure this will do what is needed.
>
> I was actually thinking you can add these kind of customizations into = `header-
> includes`.
>
> Am I missing something?
>
> WDYT?
>
> Denis
>
> Von: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:pandoc-
> discuss@= googlegroups.com> <pandoc-
> discuss@= googlegroups.com<mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>>
> Im Auftrag von T. Kurt Bond
> Gesendet: Donnerstag, 17. Juni 2021 19:11
> An: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:pandoc-
> discuss@= googlegroups.com>
> Betreff: Re: I suggest adding setupitemize and setupenumerate variable= s to
> the default context template
>
> And you really need to be able to setup the lines environment as well = when
> you change the spacing between paragraphs with the whitespace template=
> variable.
>
> Here's a modified patch:
>
> --- default.context 2021-06-17 11:01:32.458435275 -0400
> +++ changed.context 2021-06-17 13:09:13.773558143 -0400
> @@ -97,9 +97,19 @@
>
>=C2=A0 \setupitemize[autointro]=C2=A0 =C2=A0 % prevent orphan list intr= o
>=C2=A0 \setupitemize[indentnext=3Dno]
> +$if(setupitemize)$
> +\setupitemize[$setupitemize$]
> +$endif$
>
>=C2=A0 \defineitemgroup[enumerate]
>
> \setupenumerate[each][fit][itemalign=3Dleft,distance=3D.5em,style=3D{\= feature[+
> ][default:tnum]}]
> +$if(setupenumerate)$
> +\setupenumerate[$setupenumerate$]
> +$endif$
> +
> +$if(setuplines)$
> +\setuplines[$setuplines$]
> +$endif$
>
>=C2=A0 \setupfloat[figure][default=3D{here,nonumber}]
>=C2=A0 \setupfloat[table][default=3D{here,nonumber}]
>
> And I've attached it as well, just in case.
>
> On Thu, Jun 17, 2021 at 11:20 AM T. Kurt Bond
> <tkurtbond= @gmail.com<mailto:tkurtbond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>> wrote:
> I'd like to be able to change the setup of the itemize and enumera= te
> environments in pandoc's ConTeXt output.=C2=A0 I suggest adding se= tupitemize
> and setupenumerate variables to the default context template, like thi= s:
>
> --- default.context 2021-06-17 11:01:32.458435275 -0400
> +++ changed.context 2021-06-17 11:11:53.961951947 -0400
> @@ -97,9 +97,15 @@
>
>=C2=A0 \setupitemize[autointro]=C2=A0 =C2=A0 % prevent orphan list intr= o
>=C2=A0 \setupitemize[indentnext=3Dno]
> +$if(setupitemize)$
> +\setupitemize[$setupitemize$]
> +$endif$
>
>=C2=A0 \defineitemgroup[enumerate]
>
> \setupenumerate[each][fit][itemalign=3Dleft,distance=3D.5em,style=3D{\= feature[+
> ][default:tnum]}]
> +$if(setupenumerate)$
> +\setupenumerate[$setupenumerate$]
> +$endif$
>
>=C2=A0 \setupfloat[figure][default=3D{here,nonumber}]
>=C2=A0 \setupfloat[table][default=3D{here,nonumber}]
>
> This is often necessary if you change the spacing between paragraphs u= sing
> the existing whitespace variable.
>
> I've attached a file with the above patch, which is against the de= fault context
> template in pandoc 2.14.0.2, just in case mail messes the inline versi= on up.
> --
> T. Kurt Bond, tkurtbond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org<mailto:tkurtbond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
> https://tkurtbond.github.io
>
>
> --
> T. Kurt Bond, tkurtbond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org<mailto:tkurtbond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
> https://tkurtbond.github.io
> --
> You received this message because you are subscribed to the Google Gro= ups
> "pandoc-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send= an
> email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<ma= ilto:pandoc-
> discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/pandoc-
> discuss/CAN1EhV9ZzincsBYJLFe-
> AHoHW3_CYTr_bOeKMVZK%3DWm7Ypp6fg%40mail.gmail.com<https://grou
> ps.google.com/d/msgid/pandoc-d= iscuss/CAN1EhV9ZzincsBYJLFe-
> AHoHW3_CYTr_bOeKMVZK%3DWm7Ypp6fg%40mail.gmail.com?utm_mediu
> m=3Demail&utm_source=3Dfooter>.
>
> --
> You received this message because you are subscribed to the Google Gro= ups
> "pandoc-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send= an
> email to
pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<ma= ilto:pandoc-
> discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/pandoc-
> discuss/e26e45614f514bdeb867c9dd08c99652%40unibe.ch<https://groups.g
> oogle.com/d/msgid/pandoc-
> discuss/e26e45614f514bdeb867c9dd08c99652%40unibe.ch?utm_medium= =3De
> mail&utm_source=3Dfooter>.
>
>
> --
> T. Kurt Bond, tkurtbond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org<mailto:tkurtbond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
> https://tkurtbond.github.io
>
> --
> You received this message because you are subscribed to the Google Gro= ups
> "pandoc-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send= an
> email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<ma= ilto:pandoc-
> discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/pandoc-
> discuss/CAN1EhV_U99iAUUTY3_60ESsueFOTehMGR5u9zWLbU0QShJwiVg%
> 40mail.gmail.com<https://groups.google.com/d/msgi= d/pandoc-
> discuss/CAN1EhV_U99iAUUTY3_60ESsueFOTehMGR5u9zWLbU0QShJwiVg%
> 40mail.gmail.com?utm_medium= =3Demail&utm_source=3Dfooter>.

--
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-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-= discuss/3ed3e1c40e2040db86789428aa9e68d4%40unibe.ch.


--

--
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://group= s.google.com/d/msgid/pandoc-discuss/CAN1EhV9u6AB%3DbfDamRjb5fvO_coy3237Xw2E= yJtqm_ZQB-aNRQ%40mail.gmail.com.
--00000000000010129e05c5213524--