public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* I suggest adding setupitemize and setupenumerate variables to the default context template
@ 2021-06-17 15:20 T. Kurt Bond
       [not found] ` <CAN1EhV8R5d5+QZ+YhhTFdihL3GgOZnfD+hQn2VGZ+ZHFj0uJwg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: T. Kurt Bond @ 2021-06-17 15:20 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw


[-- Attachment #1.1: Type: text/plain, Size: 1571 bytes --]

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

-- 
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/CAN1EhV8R5d5%2BQZ%2BYhhTFdihL3GgOZnfD%2BhQn2VGZ%2BZHFj0uJwg%40mail.gmail.com.

[-- Attachment #1.2: Type: text/html, Size: 3548 bytes --]

[-- Attachment #2: setupitemize-and-setupenumerate.patch --]
[-- Type: application/octet-stream, Size: 562 bytes --]

--- 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}]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: I suggest adding setupitemize and setupenumerate variables to the default context template
       [not found] ` <CAN1EhV8R5d5+QZ+YhhTFdihL3GgOZnfD+hQn2VGZ+ZHFj0uJwg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2021-06-17 17:10   ` T. Kurt Bond
       [not found]     ` <CAN1EhV9ZzincsBYJLFe-AHoHW3_CYTr_bOeKMVZK=Wm7Ypp6fg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: T. Kurt Bond @ 2021-06-17 17:10 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw


[-- Attachment #1.1: Type: text/plain, Size: 2673 bytes --]

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 <tkurtbond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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.

[-- Attachment #1.2: Type: text/html, Size: 5349 bytes --]

[-- Attachment #2: setupitemize-and-setupenumerate.patch --]
[-- Type: application/octet-stream, Size: 562 bytes --]

--- 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}]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* AW: I suggest adding setupitemize and setupenumerate variables to the default context template
       [not found]     ` <CAN1EhV9ZzincsBYJLFe-AHoHW3_CYTr_bOeKMVZK=Wm7Ypp6fg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2021-06-17 22:02       ` denis.maier-NSENcxR/0n0
       [not found]         ` <e26e45614f514bdeb867c9dd08c99652-NSENcxR/0n0@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: denis.maier-NSENcxR/0n0 @ 2021-06-17 22:02 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

[-- Attachment #1: Type: text/plain, Size: 4349 bytes --]

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=left,distance=.5em,style={\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 <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 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=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 <tkurtbond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org<mailto:tkurtbond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>> 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<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 Groups "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<mailto: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://groups.google.com/d/msgid/pandoc-discuss/CAN1EhV9ZzincsBYJLFe-AHoHW3_CYTr_bOeKMVZK%3DWm7Ypp6fg%40mail.gmail.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-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.

[-- Attachment #2: Type: text/html, Size: 11639 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: I suggest adding setupitemize and setupenumerate variables to the default context template
       [not found]         ` <e26e45614f514bdeb867c9dd08c99652-NSENcxR/0n0@public.gmane.org>
@ 2021-06-18 17:08           ` T. Kurt Bond
       [not found]             ` <CAN1EhV_U99iAUUTY3_60ESsueFOTehMGR5u9zWLbU0QShJwiVg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: T. Kurt Bond @ 2021-06-18 17:08 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

[-- Attachment #1: Type: text/plain, Size: 5436 bytes --]

Hmm.  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.  I retract my suggestion.

On Thu, Jun 17, 2021 at 6:02 PM <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
> consists of multiple parts :
>
>
>  \setupenumerate[each][fit][itemalign=left,distance=.5em,style={\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 <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 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=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 <tkurtbond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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
> <https://groups.google.com/d/msgid/pandoc-discuss/CAN1EhV9ZzincsBYJLFe-AHoHW3_CYTr_bOeKMVZK%3DWm7Ypp6fg%40mail.gmail.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-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
> <https://groups.google.com/d/msgid/pandoc-discuss/e26e45614f514bdeb867c9dd08c99652%40unibe.ch?utm_medium=email&utm_source=footer>
> .
>


-- 
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/CAN1EhV_U99iAUUTY3_60ESsueFOTehMGR5u9zWLbU0QShJwiVg%40mail.gmail.com.

[-- Attachment #2: Type: text/html, Size: 12067 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* AW: I suggest adding setupitemize and setupenumerate variables to the default context template
       [not found]             ` <CAN1EhV_U99iAUUTY3_60ESsueFOTehMGR5u9zWLbU0QShJwiVg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2021-06-18 17:49               ` denis.maier-NSENcxR/0n0
       [not found]                 ` <b3c7594de0004db4a04b1c08e306bf18-NSENcxR/0n0@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: denis.maier-NSENcxR/0n0 @ 2021-06-18 17:49 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

Not so quick. I may have an idea. I need to test, but I think I can make it work.

________________________________________
Von: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> im Auftrag von T. Kurt Bond <tkurtbond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
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 in 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 <denis.maier-NSENcxR/0n0@public.gmane.org<mailto:denis.maier@unibe.ch>> 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=left,distance=.5em,style={\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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<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-/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=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 <tkurtbond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org<mailto:tkurtbond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>> 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<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 Groups "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<mailto: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://groups.google.com/d/msgid/pandoc-discuss/CAN1EhV9ZzincsBYJLFe-AHoHW3_CYTr_bOeKMVZK%3DWm7Ypp6fg%40mail.gmail.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-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto: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.google.com/d/msgid/pandoc-discuss/e26e45614f514bdeb867c9dd08c99652%40unibe.ch?utm_medium=email&utm_source=footer>.


--
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 Groups "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<mailto: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/msgid/pandoc-discuss/CAN1EhV_U99iAUUTY3_60ESsueFOTehMGR5u9zWLbU0QShJwiVg%40mail.gmail.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-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/b3c7594de0004db4a04b1c08e306bf18%40unibe.ch.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* AW: I suggest adding setupitemize and setupenumerate variables to the default context template
       [not found]                 ` <b3c7594de0004db4a04b1c08e306bf18-NSENcxR/0n0@public.gmane.org>
@ 2021-06-19 11:01                   ` denis.maier-NSENcxR/0n0
       [not found]                     ` <3ed3e1c40e2040db86789428aa9e68d4-NSENcxR/0n0@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: denis.maier-NSENcxR/0n0 @ 2021-06-19 11:01 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

Ok: this here should work:

```
\defineitemgroup[enumerate]
$if(setupenumerate)$
$for(setupenumerate)$
\setupitemgroup[$setupenumerate.level$][$for(setupenumerate.options)$$setupenumerate.options$$sep$, $endfor$]
$endfor$
$else$
\setupitemgroup[enumerate][option=fit,itemalign=left,distance=.5em,style={\feature[+][default:tnum]}]
$endif$
```

Input:

```md
---
setupenumerate:
- level: enumerate
  options:
  - option=fit
  - itemalign=left
- level: 'enumerate:1'
  options: 'options=fit, itemalign=left'
---

bla
```

Result:

```tex
\defineitemgroup[enumerate]

\setupitemgroup[enumerate][option=fit, itemalign=left]
\setupitemgroup[enumerate:1][options=fit, itemalign=left]
```

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üngliche 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 make it work.
> 
> ________________________________________
> Von: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc-
> discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> im Auftrag von T. Kurt Bond
> <tkurtbond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
> 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 in
> 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
> <denis.maier-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 consists
> of multiple parts :
> 
> \setupenumerate[each][fit][itemalign=left,distance=.5em,style={\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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> <pandoc-
> discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<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-/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=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
> <tkurtbond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org<mailto:tkurtbond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>> 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<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 Groups
> "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<mailto: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-discuss/CAN1EhV9ZzincsBYJLFe-
> AHoHW3_CYTr_bOeKMVZK%3DWm7Ypp6fg%40mail.gmail.com?utm_mediu
> m=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-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto: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=e
> mail&utm_source=footer>.
> 
> 
> --
> 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 Groups
> "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<mailto: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/msgid/pandoc-
> discuss/CAN1EhV_U99iAUUTY3_60ESsueFOTehMGR5u9zWLbU0QShJwiVg%
> 40mail.gmail.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-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/3ed3e1c40e2040db86789428aa9e68d4%40unibe.ch.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: I suggest adding setupitemize and setupenumerate variables to the default context template
       [not found]                     ` <3ed3e1c40e2040db86789428aa9e68d4-NSENcxR/0n0@public.gmane.org>
@ 2021-06-19 16:48                       ` T. Kurt Bond
       [not found]                         ` <CAN1EhV9u6AB=bfDamRjb5fvO_coy3237Xw2EyJtqm_ZQB-aNRQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: T. Kurt Bond @ 2021-06-19 16:48 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

[-- Attachment #1: Type: text/plain, Size: 9653 bytes --]

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 <denis.maier-NSENcxR/0n0@public.gmane.org> wrote:

> Ok: this here should work:
>
> ```
> \defineitemgroup[enumerate]
> $if(setupenumerate)$
> $for(setupenumerate)$
> \setupitemgroup[$setupenumerate.level$][$for(setupenumerate.options)$$setupenumerate.options$$sep$,
> $endfor$]
> $endfor$
> $else$
>
> \setupitemgroup[enumerate][option=fit,itemalign=left,distance=.5em,style={\feature[+][default:tnum]}]
> $endif$
> ```
>
> Input:
>
> ```md
> ---
> setupenumerate:
> - level: enumerate
>   options:
>   - option=fit
>   - itemalign=left
> - level: 'enumerate:1'
>   options: 'options=fit, itemalign=left'
> ---
>
> bla
> ```
>
> Result:
>
> ```tex
> \defineitemgroup[enumerate]
>
> \setupitemgroup[enumerate][option=fit, itemalign=left]
> \setupitemgroup[enumerate:1][options=fit, itemalign=left]
> ```
>
> 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üngliche 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 make
> it work.
> >
> > ________________________________________
> > Von: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc-
> > discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> im Auftrag von T. Kurt Bond
> > <tkurtbond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
> > 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 in
> > 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
> > <denis.maier-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
> consists
> > of multiple parts :
> >
> > \setupenumerate[each][fit][itemalign=left,distance=.5em,style={\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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> <pandoc-
> > discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<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-/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=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
> > <tkurtbond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org<mailto:tkurtbond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>> 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<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 Groups
> > "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<mailto: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-discuss/CAN1EhV9ZzincsBYJLFe-
> > AHoHW3_CYTr_bOeKMVZK%3DWm7Ypp6fg%40mail.gmail.com?utm_mediu
> > m=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-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto: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=e
> > mail&utm_source=footer>.
> >
> >
> > --
> > 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 Groups
> > "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<mailto: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/msgid/pandoc-
> > discuss/CAN1EhV_U99iAUUTY3_60ESsueFOTehMGR5u9zWLbU0QShJwiVg%
> > 40mail.gmail.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-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/pandoc-discuss/3ed3e1c40e2040db86789428aa9e68d4%40unibe.ch
> .
>


-- 
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/CAN1EhV9u6AB%3DbfDamRjb5fvO_coy3237Xw2EyJtqm_ZQB-aNRQ%40mail.gmail.com.

[-- Attachment #2: Type: text/html, Size: 15743 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* AW: I suggest adding setupitemize and setupenumerate variables to the default context template
       [not found]                         ` <CAN1EhV9u6AB=bfDamRjb5fvO_coy3237Xw2EyJtqm_ZQB-aNRQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2021-06-21 15:02                           ` denis.maier-NSENcxR/0n0
  0 siblings, 0 replies; 8+ messages in thread
From: denis.maier-NSENcxR/0n0 @ 2021-06-21 15:02 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

[-- Attachment #1: Type: text/plain, Size: 12364 bytes --]

Hmmm, I guess it should be possible to make this work as well, but I fear it won’t be smooth. It’s perhaps better to have to distinct options.

Any other comments? Should I open a PR?

Denis

Von: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> Im Auftrag von T. Kurt Bond
Gesendet: Samstag, 19. Juni 2021 18:48
An: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Betreff: Re: I suggest adding setupitemize and setupenumerate variables to the default context template

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 <denis.maier-NSENcxR/0n0@public.gmane.org<mailto:denis.maier@unibe.ch>> wrote:
Ok: this here should work:

```
\defineitemgroup[enumerate]
$if(setupenumerate)$
$for(setupenumerate)$
\setupitemgroup[$setupenumerate.level$][$for(setupenumerate.options)$$setupenumerate.options$$sep$, $endfor$]
$endfor$
$else$
\setupitemgroup[enumerate][option=fit,itemalign=left,distance=.5em,style={\feature[+][default:tnum]}]
$endif$
```

Input:

```md
---
setupenumerate:
- level: enumerate
  options:
  - option=fit
  - itemalign=left
- level: 'enumerate:1'
  options: 'options=fit, itemalign=left'
---

bla
```

Result:

```tex
\defineitemgroup[enumerate]

\setupitemgroup[enumerate][option=fit, itemalign=left]
\setupitemgroup[enumerate:1][options=fit, itemalign=left]
```

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üngliche Nachricht-----
> Von: Maier, Denis Christian (UB)
> Gesendet: Freitag, 18. Juni 2021 19:50
> An: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:pandoc-discuss-/JYPxA39Uh4Ykp1iOSErHA@public.gmane.orgm>
> 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 make it work.
>
> ________________________________________
> Von: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:pandoc-discuss@googlegroups.com> <pandoc-
> discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>> im Auftrag von T. Kurt Bond
> <tkurtbond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org<mailto:tkurtbond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>>
> Gesendet: Freitag, 18. Juni 2021 19:08:27
> An: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:pandoc-discuss-/JYPxA39Uh4Ykp1iOSErHA@public.gmane.orgm>
> 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 in
> 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
> <denis.maier-NSENcxR/0n0@public.gmane.org<mailto:denis.maier-NSENcxR/0n0@public.gmane.org><mailto:denis.maier@unibe.ch<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 consists
> of multiple parts :
>
> \setupenumerate[each][fit][itemalign=left,distance=.5em,style={\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><mailto:pandoc-<mailto:pandoc->
> discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>> <pandoc-
> discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org><mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<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-/JYPxA39Uh4Ykp1iOSErHA@public.gmane.orgm><mailto:pandoc-<mailto:pandoc->
> discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto: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=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
> <tkurtbond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org<mailto:tkurtbond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org><mailto:tkurtbond@gmail.com<mailto:tkurtbond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>>> 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<mailto:tkurtbond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org><mailto: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><mailto: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 Groups
> "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<mailto:pandoc-discuss%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org><mailto:pandoc-<mailto:pandoc->
> discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:discuss%2Bunsubscribe@googlegroups.com>>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/pandoc-
> discuss/CAN1EhV9ZzincsBYJLFe-
> AHoHW3_CYTr_bOeKMVZK%3DWm7Ypp6fg%40mail.gmail.com<http://40mail.gmail.com><https://grou
> ps.google.com/d/msgid/pandoc-discuss/CAN1EhV9ZzincsBYJLFe-<http://ps.google.com/d/msgid/pandoc-discuss/CAN1EhV9ZzincsBYJLFe->
> AHoHW3_CYTr_bOeKMVZK%3DWm7Ypp6fg%40mail.gmail.com?utm_mediu<http://40mail.gmail.com?utm_mediu>
> m=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-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:pandoc-discuss%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org><mailto:pandoc-<mailto:pandoc->
> discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:discuss%2Bunsubscribe@googlegroups.com>>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/pandoc-
> discuss/e26e45614f514bdeb867c9dd08c99652%40unibe.ch<http://40unibe.ch><https://groups.g
> oogle.com/d/msgid/pandoc-<http://oogle.com/d/msgid/pandoc->
> discuss/e26e45614f514bdeb867c9dd08c99652%40unibe.ch?utm_medium=e<http://40unibe.ch?utm_medium=e>
> mail&utm_source=footer>.
>
>
> --
> T. Kurt Bond, tkurtbond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org<mailto:tkurtbond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org><mailto: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 Groups
> "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<mailto:pandoc-discuss%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org><mailto:pandoc-<mailto:pandoc->
> discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:discuss%2Bunsubscribe@googlegroups.com>>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/pandoc-
> discuss/CAN1EhV_U99iAUUTY3_60ESsueFOTehMGR5u9zWLbU0QShJwiVg%
> 40mail.gmail.com<http://40mail.gmail.com><https://groups.google.com/d/msgid/pandoc-
> discuss/CAN1EhV_U99iAUUTY3_60ESsueFOTehMGR5u9zWLbU0QShJwiVg%
> 40mail.gmail.com?utm_medium=email&utm_source=footer<http://40mail.gmail.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-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:pandoc-discuss%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/3ed3e1c40e2040db86789428aa9e68d4%40unibe.ch.


--
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 Groups "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<mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@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<https://groups.google.com/d/msgid/pandoc-discuss/CAN1EhV9u6AB%3DbfDamRjb5fvO_coy3237Xw2EyJtqm_ZQB-aNRQ%40mail.gmail.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-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/ae59265511394a88b77e647090e3b368%40unibe.ch.

[-- Attachment #2: Type: text/html, Size: 19473 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-06-21 15:02 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-17 15:20 I suggest adding setupitemize and setupenumerate variables to the default context template T. Kurt Bond
     [not found] ` <CAN1EhV8R5d5+QZ+YhhTFdihL3GgOZnfD+hQn2VGZ+ZHFj0uJwg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2021-06-17 17:10   ` T. Kurt Bond
     [not found]     ` <CAN1EhV9ZzincsBYJLFe-AHoHW3_CYTr_bOeKMVZK=Wm7Ypp6fg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2021-06-17 22:02       ` AW: " denis.maier-NSENcxR/0n0
     [not found]         ` <e26e45614f514bdeb867c9dd08c99652-NSENcxR/0n0@public.gmane.org>
2021-06-18 17:08           ` T. Kurt Bond
     [not found]             ` <CAN1EhV_U99iAUUTY3_60ESsueFOTehMGR5u9zWLbU0QShJwiVg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2021-06-18 17:49               ` AW: " denis.maier-NSENcxR/0n0
     [not found]                 ` <b3c7594de0004db4a04b1c08e306bf18-NSENcxR/0n0@public.gmane.org>
2021-06-19 11:01                   ` denis.maier-NSENcxR/0n0
     [not found]                     ` <3ed3e1c40e2040db86789428aa9e68d4-NSENcxR/0n0@public.gmane.org>
2021-06-19 16:48                       ` T. Kurt Bond
     [not found]                         ` <CAN1EhV9u6AB=bfDamRjb5fvO_coy3237Xw2EyJtqm_ZQB-aNRQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2021-06-21 15:02                           ` AW: " denis.maier-NSENcxR/0n0

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).