public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: "T. Kurt Bond" <tkurtbond-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re: I suggest adding setupitemize and setupenumerate variables to the default context template
Date: Thu, 17 Jun 2021 13:10:56 -0400	[thread overview]
Message-ID: <CAN1EhV9ZzincsBYJLFe-AHoHW3_CYTr_bOeKMVZK=Wm7Ypp6fg@mail.gmail.com> (raw)
In-Reply-To: <CAN1EhV8R5d5+QZ+YhhTFdihL3GgOZnfD+hQn2VGZ+ZHFj0uJwg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>


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

  parent reply	other threads:[~2021-06-17 17:10 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-17 15:20 T. Kurt Bond
     [not found] ` <CAN1EhV8R5d5+QZ+YhhTFdihL3GgOZnfD+hQn2VGZ+ZHFj0uJwg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2021-06-17 17:10   ` T. Kurt Bond [this message]
     [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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAN1EhV9ZzincsBYJLFe-AHoHW3_CYTr_bOeKMVZK=Wm7Ypp6fg@mail.gmail.com' \
    --to=tkurtbond-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).