From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28649 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Newsgroups: gmane.text.pandoc Subject: AW: I suggest adding setupitemize and setupenumerate variables to the default context template Date: Thu, 17 Jun 2021 22:02:31 +0000 Message-ID: References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_000_e26e45614f514bdeb867c9dd08c99652unibech_" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24832"; mail-complaints-to="usenet@ciao.gmane.io" To: Original-X-From: pandoc-discuss+bncBCZ27W53TUFBB6UMV6DAMGQEWIRIYOY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Jun 18 00:02:38 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-lf1-f56.google.com ([209.85.167.56]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lu05t-0006Hl-M5 for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 18 Jun 2021 00:02:37 +0200 Original-Received: by mail-lf1-f56.google.com with SMTP id z1-20020a195e410000b0290229c07c3305sf3225641lfi.11 for ; Thu, 17 Jun 2021 15:02:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1623967356; cv=pass; d=google.com; s=arc-20160816; b=ENNQf0mxwbkOp9LBKclFuG05YrTFm3KxJ4XKOPwHgRNNQLYziamAi73C/BhN40b7I9 GVYEPRdpnZKquRiSiNjFau44eg4BhyvrW78S/V53ZnLjLslttYqwX4NwPDJ6f8y7mwSz yJRduxVbJoL0ALMhWvxSzfo4Pvx/YE2N6xTzpFrpCegfPGrKNEGpHxUmLIfES/0MT2ls l3fH2kQi5gfZ8PBzUvrSSVNt9kOK69kU6JiYKLr5fUezXiFTTnMkZxUBZ0eFhodjYugN 7MrvXsNX0T1P5gdvafI1Kj2rLmVPHKC6819smhTixkujYdLOPaRTPBrhOrIIxldELYuE UAVg== 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=qJYKoO/scfOKj7l9Om967xukKFSN8Cd5ZcX0KQ/FIK4=; b=dz1b2dsfNezlhOhAc9p0PmA5F1POxODQqr6e80gjcgoDA53MM3rMrEzyQUR2+Qt79J 9LMeHvbns+MB1ovzDBb+PYXWXhuhFp/AVVgy/tGqoMtGSSJ1SmUfTmk46weLDJQ0kW/p BeBH8D9YYSzLlqs4UfKndp/CQZULpWfA0Rbhv2BHlVvPIRdJk6rR2aG0CYWdgEqZl7MF 4Vvz3fIOoe5rV7LcshluohV6rV3OiNxrbHQ28QLkq4jfBAZvHBmq6sPEpGljBkpz/K4g XOYiXOCShy2JkMVH+UxlIFqJxoPNdlAVNeuwYWYph2H67nnmSFIjwCS1eqw6CS0wCjdZ JrdA== 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.84 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=qJYKoO/scfOKj7l9Om967xukKFSN8Cd5ZcX0KQ/FIK4=; b=PErPjJiB5HJ4mQeYGhkpHSWyPHvbUQhtsF2NjJNEAbqQfY5l5gIrsq7raDjHEn9Yj2 B5delwzNcpAWFufKNBQ/tt6ME8A5QmCGwKZOmjJPFkBUg2ichABxb1VPQORWt/G5wB05 W+mY+8o8tRszMyvYBSgAmd7/mkWdPrxmiRUOSmVeyRf8Zw9dEw8pzqDX7hbiL92jfB4Z vIHAfLzCsmA/JkT1NwLlhhcdNhCGhudfm6BLm8p9qvTOHYKgQEhpwlOmhJA6Hd11MslR eC1pLHGu7Ol+8R+pUXlrwVK5O9ePfB7fsQ1mM1VfwrwX/5w1O2ktdEKAWp5osTv50oTg A8CQ== 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=qJYKoO/scfOKj7l9Om967xukKFSN8Cd5ZcX0KQ/FIK4=; b=ZGSAeD5LSUm6KQViMSR4fHnayoZpbKt8PfpmHFqwK2pgopVMjp3X+qfD7rYVlPiq1J EXp9anssG/Ce3U3Mn4V8SbBIuMDfIb/uqpJABW6EVJ5t7fAghv1UbzUZom02xWYQqx+1 5VJJUhVNAOjsNPlO0co6tIxA7Yfx1cP84/QiuwompJ+BeE6UW3k5bYjvuKPMGJ5GwWXM iOJWe59Lgn69TaAECRoowYBMdobzqxk9qJtnSybo8GBVFmeWUGKZLzgQdLxO6hHzTD1t XO3G0/tDVxB0fcIGQU9lWgBspliPlCr Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM533Get6IOoDMbFmURPM/HjqxRNjSbODIdgTR4Vgnt4V3llWt1bKJ qx1s58S8LMND2mkpan4aDkA= X-Google-Smtp-Source: ABdhPJwNQaQfMul8Q1edXqccnv9vH2TI+yzCsjHwHLfFUKw0jCnUY263a5JKm4oNoqLhCL+xValE1g== X-Received: by 2002:ac2:4c4f:: with SMTP id o15mr350334lfk.223.1623967356830; Thu, 17 Jun 2021 15:02:36 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a2e:8155:: with SMTP id t21ls1592280ljg.1.gmail; Thu, 17 Jun 2021 15:02:34 -0700 (PDT) X-Received: by 2002:a2e:8e2b:: with SMTP id r11mr1800403ljk.154.1623967354069; Thu, 17 Jun 2021 15:02:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623967354; cv=none; d=google.com; s=arc-20160816; b=R8zbUjTeU8BCF/d+XoVrxfNCdqJoJL+0DRmcu4RvEubsxIBR4OKQ9Pq0dVRvV+ulMg iXxR/bavIxc4oUuBh5jKSo2SvRL7YJlgI1JPJ2yz97U14gWyQAs9dAYjLOnKpJpD1nPr ngooI8KIJ/jS0JJa8rVYiJy80SqfP3WBcjAMk5+A/uOr9b0mi+esuptiemA5fmUMMzpk 6nqFJ9btMsL3LvaRc227snzvPOjiijTa5EqWHw/p/InxjGQ7nbfmRaBu1CIWZUEh2O1F hXJ7gG+rVVTAp6NAcS6cwlDFR8HcjSYvqr5UnP2qRsPY6Z0yhTGeBVJ9gLejr/JhjBa8 D3lw== 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=zPZOARgDeFgzUmoTJuqbRSM3Cfk6+DTxiT7SK+hKU9M=; b=VewC897BHqw3C8bMJbm2I4Sn1tFBax3TJXtN+aR2KNqRUeG6jUUPdS5gR4jslGsBoq +QvmeG4TtiNyrq7XvJ5eHPavb0x48/xogRjjIAiadcQFMlkBQFy6AZ0EJwOw4xrYoQ5M FuIHtgEpFF1F+l4rLr/f+1RoL2KG+kt1qGaCDTXXYlrd5wQOKTE4OX3EL8FuonhSaeGs Rpquj5dWIkor0UHqH0iNOUpTjVM16REqLRha3rc6rL/9CiJiWOm0d5u8+URs6xPX0cH8 kXI+3m98osqc8Vsa4RnG6hAxZ9lGracw4FlFKTaLyHdslZxKdo81tt5Gcz7zQ6XnCYk3 pyJA== 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.84 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-lb3.unibe.ch (mailhub-lb3.unibe.ch. [130.92.0.84]) by gmr-mx.google.com with ESMTPS id m18si125001lfl.1.2021.06.17.15.02.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Jun 2021 15:02:33 -0700 (PDT) Received-SPF: pass (google.com: domain of denis.maier-NSENcxR/0n0@public.gmane.org designates 130.92.0.84 as permitted sender) client-ip=130.92.0.84; 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-lb3.unibe.ch (Postfix) with ESMTPS id 69A2C50007E for ; Fri, 18 Jun 2021 00:02:32 +0200 (CEST) Thread-Topic: I suggest adding setupitemize and setupenumerate variables to the default context template Thread-Index: AQHXY4xiGd+kMHGZPEWCpTX3VADOMasYTtgAgABxuxA= In-Reply-To: Accept-Language: de-CH, en-US Content-Language: de-DE x-originating-ip: [130.92.13.161] 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.84 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:28649 Archived-At: --_000_e26e45614f514bdeb867c9dd08c99652unibech_ Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hmm, yes that should be configurable. But if you look at the current template the definition of enumerate consist= s of multiple parts : \setupenumerate[each][fit][itemalign=3Dleft,distance=3D.5em,style=3D{\feat= ure[+][default:tnum]}] So, I=E2=80=99m wary of adding a simple $if(setupenumerate)$ \setupenumerate[$setupenumerate$] $endif$ as I=E2=80=99m not sure this will do what is needed. I was actually thinking you can add these kind of customizations into `head= er-includes`. Am I missing something? WDYT? Denis Von: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Im A= uftrag von T. Kurt Bond Gesendet: Donnerstag, 17. Juni 2021 19:11 An: pandoc-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 vari= able. 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{\feat= ure[+][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 enviro= nments in pandoc's ConTeXt output. I suggest adding setupitemize and setup= enumerate 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{\feat= ure[+][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 con= text 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, https://tkur= tbond.github.io -- T. Kurt Bond, tkurtbond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, https://tkur= tbond.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 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/CAN1EhV9ZzincsBYJLFe-AHoHW3_CYTr_bOeKMVZK%3DWm7Ypp6fg%40mail= .gmail.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/e26e45614f514bdeb867c9dd08c99652%40unibe.ch. --_000_e26e45614f514bdeb867c9dd08c99652unibech_ Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Hmm, yes that should be configurable.

 

But if you look at the current template the definition of enumerate c= onsists of multiple parts :

 \setupenumerate[each][fit][itemalign=3Dleft,distance= =3D.5em,style=3D{\feature[+][default:tnum]}]

So, I=E2=80=99m wary of adding a simple

= $if(setupenumerate)$
\setupenumerate[$setupenumerate$]
$endif$
=

as I=E2= =80=99m not sure this will do what is needed.

&nbs= p;

I was act= ually thinking you can add these kind of customizations into `header-includ= es`.

&nbs= p;

Am I miss= ing something?

&nbs= p;

WDYT?

 

Denis

 

Von: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <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
Betreff: Re: I suggest adding setupitemize and setupenumerate variab= les to the default context template

 

And you really need to be able to setup the lin= es environment as well when you change the spacing between paragraphs with = the whitespace templ= ate 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{= \feature[+][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 <tkurtbond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:

I'd like to be able to change the setup of the itemi= ze and enumerate environments in pandoc's ConTeXt output.  I sugg= est adding setupitemize and= setupenumerate variables to the default context template, like this:=


--- default.context 202= 1-06-17 11:01:32.458435275 -0400
+++ changed= .context 2021-06-17 11:11:53.961951947 -0400
@@ -97,9 +97,15 @@<= /span>
 
 \setupitem= ize[autointro]    % prevent o= rphan list intro

 \setupitem= ize[indentnext=3Dno]
+$if(setupit= emize)$
+\setupitemize[$set= upitemize$]
+$endif$
 
 \defineite= mgroup[enumerate]
 \setupenum= erate[each][fit][itemal= ign=3Dleft,distance=3D.5em,style=3D{\feature[+][default:tnum]}]<= br> +$if(setupen= umerate)$
+\setupenumerate[$s= etupenumerate$]
+$endif$
 
 \setupfloa= t[figure][default=3D{he= re,nonumber}]

=  \setupfloat[table][default=3D{here,nonumber}]

 

This is often necessary if you change the spacing be= tween paragraphs using the existing whitespace varia= ble.

 

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.

--


 

--

--
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/CAN1EhV9ZzincsBYJLFe-AHoHW= 3_CYTr_bOeKMVZK%3DWm7Ypp6fg%40mail.gmail.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/e26e45614f514bdeb867c9dd08c99652%40unibe.ch.
--_000_e26e45614f514bdeb867c9dd08c99652unibech_--