From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28642 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: Thu, 17 Jun 2021 13:10:56 -0400 Message-ID: References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="000000000000fdf24105c4f94a26" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35146"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDJYFKFHUYHRBLEEV2DAMGQE6IVDO2Q-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Jun 17 19:11:12 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-pl1-f183.google.com ([209.85.214.183]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ltvXr-0008sx-6t for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 17 Jun 2021 19:11:11 +0200 Original-Received: by mail-pl1-f183.google.com with SMTP id t5-20020a170902e845b0290102b8314d05sf2056496plg.8 for ; Thu, 17 Jun 2021 10:11:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1623949870; cv=pass; d=google.com; s=arc-20160816; b=qULYQKiUSej982MTgCZCKL6O7wEgi4WEWXBA/hCiEeJmzNuC3xEGBY6sQHxk7yO6bT 2DIv7FLH6p68jlgKZplvVmdWD8jWfhboBS0V5tTN1FoRLEuHqDRAhHMHyCsaeGwHEKYP 4OX1wWEVd3JF8h7n5cwfkRpcGdYmEQH7oW/oyaZR5dEdBpWupB5n2rT1jjcXC1rbxFru W1FB/zvng29M2a9rJZb5rry4IfsLwZZK1N7AciNqvNmLxjHMHDgBuzEJ0hlDomLZxH2z 3MX9x8wxxGOi28FuR3Dilfh0rmJ9qACMt27TobKHXCfkBezhMSoFvpDwE9Vsp4a47i2h O9SQ== 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=KP2nr32J3PBNOvt/VUGa3e67iYCRQn4/aHEhWb0ysf8=; b=weCcfCNs0zcUFI72Txaf+TlxCib3sQ2Tze8Ypae1vk+8XDV5Fn8oExJhoybEQkkKOt 8/DrO3FZSnV2FYTr6l1MDvGjhx/l5sr/pydiOiGTn1D2fjaJiZkOsSjJZ/7lEBkeC4fB QShoZ8Dq2ml16jMwwHsoaaLFUmBhpAZGdKwTKGHiFCZvveAWJMu8KRiTd9/hfg6QoP9G wkvVRjBFWRC/I51oOUkuFB0NGsDj0T89KxZvSwgaHIshAiQg1QDE9RMtL9naLGiUQmmL m2wAijoQM6KtdejWlLWkyB8qEyfI8DEJjh9YrVTeqgQwnM5xP30N2IWOjxAcYWWRTROM LyEg== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=RizWAXjC; spf=pass (google.com: domain of tkurtbond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::12d 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=KP2nr32J3PBNOvt/VUGa3e67iYCRQn4/aHEhWb0ysf8=; b=R5tOopQ5fhBlhkf8mmNHT8zYkh/93Nx73qz/pL7963Ds5fOYq5koheCxfPgon6qCH0 Z+ucFJTgdUWcKIsV9hGcBfIa+edlLshplUOxFjsUq5mASYfpLtgC1n4EtStAQl1k+Fh5 Z2bT69DfkZ4j58wNbh75YMgDhTRzvE506829mrtQgC/df3/seeflXaAcKW3j4heqWMYQ b7xaIFISgaeGX3zlQpBIQ+gL2C7VB5yb3BgSvyDvpCV2AXmRQNhBPQ6QI4PfeFJMBi2y IYoeoRLFcsfsw8ISzPTuJxH/9dCeYgVIb3stSkkkAVkhr7eoDqoFBMt2XxYxRITZ6M+m 44oQ== 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=KP2nr32J3PBNOvt/VUGa3e67iYCRQn4/aHEhWb0ysf8=; b=Mk/zNC7xtZgtB6Q2FhsUbgIMinyvF72hfYS5eqIneXUXU0qceoeib8W/UsuTQ1kZEV Xcrn11lVA4o1ZeoJl/lnnZtV5JOeGbfHBthJr6WYyrAeeyPLxpi3682IwhDtMkPgqkBy HMBL78jEv93Rx42FIpW8hvIunx1hpV4kmAqcY5zvSuCc+1lMkGuBldUYXZNPYLQbIQFQ YxyMzqFw/gDO9WeMsmfgdw2aZaHRo5VmL0fl9Ki3yozMAs6lRRjbN6pe0CuMQU1A48dQ 1UNhoQAz4EbjZv7Prwlnk+NlQkgGDIZOTuBwBr1ZUVcSK7IKJ6Z44rvbWqp8paiyfLAc l2Mw== 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=KP2nr32J3PBNOvt/VUGa3e67iYCRQn4/aHEhWb0ysf8=; b=pw40+y7Y1JWLaV+qqv3h5ybcgT8Aq1kdSngA58CV7Ef8P4iYdFArPGoNrlZlBalqE0 tZOJ57hiALfmiBQ8cMhONJMmqG9sVBsE8sgggxCYHEhhJBLUZEYnyLrNZTyV5f837d8o /g6pP8fxIWLDqgaBxh8dliefjj59BLt6dxtF2LmeIJ8BvEcnma7mfnR0DOFHCUB05ng2 glQx+f8rcZE/BhA7dn0+Ci2zc4i6JLmp+7Zo2eAdvC4fhSKBeM4NcAT00KzQOFl/tdgy oN8aKG3wy7uZtho9Qeev/a4L48mMpcmqvtGHcgJ4VjT635b5WHmvKISHsHTSunZgQIOu wUKQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM530YbOwsieGu34pkKbthPJuGs54kUIlacBRXhRP+VRc9oLriqfnF TcG2gSvcoZv0CuSqOhOJglU= X-Google-Smtp-Source: ABdhPJzNPt6eASiyrwTdpuX0YJ/BxTw6sTWN5KtktfFAHDvKpMLywrUSAtE3REKMi/+AUhhFqwgMiw== X-Received: by 2002:a63:be45:: with SMTP id g5mr5804269pgo.311.1623949869899; Thu, 17 Jun 2021 10:11:09 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a17:902:b282:: with SMTP id u2ls3315664plr.10.gmail; Thu, 17 Jun 2021 10:11:08 -0700 (PDT) X-Received: by 2002:a17:90a:f317:: with SMTP id ca23mr6673531pjb.174.1623949868021; Thu, 17 Jun 2021 10:11:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623949868; cv=none; d=google.com; s=arc-20160816; b=yjnZXUoS/8wcl9gRicpcv076dqkrD6nYBat/DxOlU66rR3RLry8L/uETNrrc5YR7aN cfOxZEtRj2iNM9c1rHQg614JtNBx+If4VYTW/Xvd1yI8PjG++gDjI25RCCAoC8tRuUbQ 7x8moJl1cEoxS7Kp2QCj3bLpT6r6MqE8afPsToQnSM3V0er/IKymHPC8qWr84z5lQFsk IcnEthz1vAEII5xoZ0F+e7bn/Vh2TW45SfdkYvQMUKDSOOjyxOSuIwcbNeJfdEFZATU6 VjxAlJ/JLb0sj44dCZAF2A1i5A3zKYXj5vLr9NzJ1Uqwvep0WgDHbUEiz0wBGVbqa843 3KKg== 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=Of1Yzi8NyOQXu2eQx4S2QeU1wzVn2j95z3mgxoSGPx8=; b=qplGupZX1X9zl2mttHQNjVFyjCUvPm73aZ+xEEgiu7qorR1aAgJb3m0Budwi8WgYrm R8lvw+MZ9qJqMG4gPCDZuDXNN6sAPSaVTOfpOY+idn5xWbrKdjI4Evs1WKk3ekUjUOsb NvwkhzU5+0wqMsMA65FKaILY/4n5QLtHhWPCt3jjmAT82L8lFn6stcoQHk3ic7xoWOK2 nMeSXTARQp0cqw7tX0Y3tyUoaLh7A3EtTBs0IcSnIaNIQigZiedetJ0xlU9DP3UzBMFz EikOLS8EqK7qPyRxSbBsrYhXi/HlA4F+i5VYGLD7UVxA2010GoqtCFO/SnRJ/m1vBZ7Q 5IdA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=RizWAXjC; spf=pass (google.com: domain of tkurtbond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::12d 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-il1-x12d.google.com (mail-il1-x12d.google.com. [2607:f8b0:4864:20::12d]) by gmr-mx.google.com with ESMTPS id t15si427942plr.0.2021.06.17.10.11.08 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 17 Jun 2021 10:11:08 -0700 (PDT) Received-SPF: pass (google.com: domain of tkurtbond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::12d as permitted sender) client-ip=2607:f8b0:4864:20::12d; Original-Received: by mail-il1-x12d.google.com with SMTP id i13so6004915ilk.3 for ; Thu, 17 Jun 2021 10:11:07 -0700 (PDT) X-Received: by 2002:a92:660f:: with SMTP id a15mr4710636ilc.182.1623949867599; Thu, 17 Jun 2021 10:11:07 -0700 (PDT) In-Reply-To: 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=RizWAXjC; spf=pass (google.com: domain of tkurtbond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::12d 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:28642 Archived-At: --000000000000fdf24105c4f94a26 Content-Type: multipart/alternative; boundary="000000000000fdf23e05c4f94a24" --000000000000fdf23e05c4f94a24 Content-Type: text/plain; charset="UTF-8" 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=no] +$if(setupitemize)$ +\setupitemize[$setupitemize$] +$endif$ \defineitemgroup[enumerate] \setupenumerate[each][fit][itemalign=left,distance=.5em,style={\feature[+][default:tnum]}] +$if(setupenumerate)$ +\setupenumerate[$setupenumerate$] +$endif$ + +$if(setuplines)$ +\setuplines[$setuplines$] +$endif$ \setupfloat[figure][default={here,nonumber}] \setupfloat[table][default={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=no] > +$if(setupitemize)$ > +\setupitemize[$setupitemize$] > +$endif$ > > \defineitemgroup[enumerate] > \setupenumerate > [each][fit][itemalign=left,distance=.5em,style={\feature[+][default:tnum]}] > +$if(setupenumerate)$ > +\setupenumerate[$setupenumerate$] > +$endif$ > > \setupfloat[figure][default={here,nonumber}] > \setupfloat[table][default={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 > version 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 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/CAN1EhV9ZzincsBYJLFe-AHoHW3_CYTr_bOeKMVZK%3DWm7Ypp6fg%40mail.gmail.com. --000000000000fdf23e05c4f94a24 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
And you really need to be able to setup=C2=A0the lines env= ironment as well when you change the spacing between paragraphs with the whitespace template variable.

<= div>Here's a modified patch:

--- default.context 2021-06-17 11:01:32.458435275 -0400
+++ chan= ged.context 2021-06-17 13:09:13.773558143 -0400
@@ -97,9 +97,19 @@
= =C2=A0
=C2=A0\setupitemize[autointro] =C2=A0 =C2=A0% prevent orphan list= intro
=C2=A0\setupitemize[indentnext=3Dno]
+$if(setupitemize)$
+\= setupitemize[$setupitemize$]
+$endif$
=C2=A0
=C2=A0\defineitemgrou= p[enumerate]
=C2=A0\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
=C2=A0\setupfloat[figure= ][default=3D{here,nonumber}]
=C2=A0\setupfloat[table][default=3D{here,no= number}]


And I've attached it as we= ll, just in case.

On Thu, Jun 17, 2021 at 11:20 AM T. Kurt Bond <tkurtbond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
=
I&= #39;d like to be able to change the setup of the itemize and enumerate envi= ronments in pandoc's ConTeXt output.=C2=A0=C2=A0I suggest adding setupitemize and setupen= umerate variables to the default context template, like this:
--- default.context 2021-06-17 11:0= 1:32.458435275 -0400
+++ ch= anged.context 2021-06-17 11:11:53.961951947 -0400
@@ -97,9 +97,15 @@
=C2=A0
=C2= =A0\setupitemize[autoin= tro] =C2=A0 =C2=A0% prevent orphan li= st intro
=C2=A0\setu= pitemize[indentnext=3Dno]
<= span style=3D"font-family:monospace">+$if(setupitemize)$
= +\setupitemize[$setupitemize$]
+$endif$
=C2=A0<= br>=C2=A0\defineitemgroup[enumerate]
=C2=A0\setupenumerate[each][fit][itemalign=3Dleft,distance=3D.5em,style=3D{\feature[+][= default:tnum]}]
+$if(
setupenumerate)$
+\setupenumerate[$setupenumerate$]
<= span style=3D"font-family:monospace">+$endif$
=C2=A0
= =C2=A0\setupfloat[figure][defa= ult=3D{here,nonumber}]
=C2=A0\setup= float[table][default=3D{here,nonumber}]

This is often necessary if you change the spacing between paragraphs usin= g the existing whitespace variable.

I've attached a file with the above patch, which is a= gainst the default context template in=C2=A0pandoc 2.14.0.2, just in case m= ail messes the inline version up.
--


--

--
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/CAN1EhV9ZzincsBYJLFe-AHoHW3_CYTr_bOeKMV= ZK%3DWm7Ypp6fg%40mail.gmail.com.
--000000000000fdf23e05c4f94a24-- --000000000000fdf24105c4f94a26 Content-Type: application/octet-stream; name="setupitemize-and-setupenumerate.patch" Content-Disposition: attachment; filename="setupitemize-and-setupenumerate.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_kq15t1ub0 LS0tIGRlZmF1bHQuY29udGV4dAkyMDIxLTA2LTE3IDExOjAxOjMyLjQ1ODQzNTI3NSAtMDQwMAor KysgY2hhbmdlZC5jb250ZXh0CTIwMjEtMDYtMTcgMTE6MTE6NTMuOTYxOTUxOTQ3IC0wNDAwCkBA IC05Nyw5ICs5NywxNSBAQAogCiBcc2V0dXBpdGVtaXplW2F1dG9pbnRyb10gICAgJSBwcmV2ZW50 IG9ycGhhbiBsaXN0IGludHJvCiBcc2V0dXBpdGVtaXplW2luZGVudG5leHQ9bm9dCiskaWYoc2V0 dXBpdGVtaXplKSQKK1xzZXR1cGl0ZW1pemVbJHNldHVwaXRlbWl6ZSRdCiskZW5kaWYkCiAKIFxk ZWZpbmVpdGVtZ3JvdXBbZW51bWVyYXRlXQogXHNldHVwZW51bWVyYXRlW2VhY2hdW2ZpdF1baXRl bWFsaWduPWxlZnQsZGlzdGFuY2U9LjVlbSxzdHlsZT17XGZlYXR1cmVbK11bZGVmYXVsdDp0bnVt XX1dCiskaWYoc2V0dXBlbnVtZXJhdGUpJAorXHNldHVwZW51bWVyYXRlWyRzZXR1cGVudW1lcmF0 ZSRdCiskZW5kaWYkCiAKIFxzZXR1cGZsb2F0W2ZpZ3VyZV1bZGVmYXVsdD17aGVyZSxub251bWJl cn1dCiBcc2V0dXBmbG9hdFt0YWJsZV1bZGVmYXVsdD17aGVyZSxub251bWJlcn1dCg== --000000000000fdf24105c4f94a26--