ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Mikael P. Sundqvist" <mickep@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: itemize columns transposed
Date: Thu, 22 Sep 2016 08:44:04 +0200	[thread overview]
Message-ID: <CAHy-LL_+cEqU8kjc=HXGcXBi+b8_dcH0sXVQ=whDcR2hBaQy_g@mail.gmail.com> (raw)
In-Reply-To: <CAHy-LL_EJpzCBM0DtCaM5knc8_0=fL-v495Lnh8UtMmSdrUKgA@mail.gmail.com>

On Sun, Sep 18, 2016 at 8:27 AM, Mikael P. Sundqvist <mickep@gmail.com> wrote:
> On Sat, Sep 17, 2016 at 11:07 PM, Aditya Mahajan <adityam@umich.edu> wrote:
>> On Sat, 17 Sep 2016, Mikael P. Sundqvist wrote:
>>>
>>>
>>> Is there a reason why the above does not work using \item, like
>>>
>>> \startitemize[a,horizontal,three]
>>> \item $\int_0^2 1+2x\,dx$
>>> \item $\int_0^{\ln 2} e^s\,ds$
>>> \item $\int_0^{\ln 2} e^{2s}\,ds$
>>> \item $\int_0^{\pi} \sin t\,dt$
>>> \item $\int_0^{2\pi}\sin t\,dt$
>>> \item $\int_0^1\frac{1}{1+x^2}\,dx$
>>> \stopitemize
>>>
>>> but only with \startitem ... \stopitem? It is not that I have anything
>>> against using the \start...\stop... mechanism, but just curiosity.
>>
>>
>> I haven't looked at the code, but most likely reason is that it uses a two
>> pass mechanism. It is easier to grab the content of a \start-stop pair
>> rather than a command that could be terminated by either an \item or a
>> \stopitem
>>
>> At least, that is the reason why random option only works with \startitem ..
>> \stopitem
>>
>> Aditya
>>
>> ___________________________________________________________________________________
>> If your question is of interest to others as well, please add an entry to
>> the Wiki!
>>
>> maillist : ntg-context@ntg.nl /
>> http://www.ntg.nl/mailman/listinfo/ntg-context
>> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
>> archive  : http://foundry.supelec.fr/projects/contextrev/
>> wiki     : http://contextgarden.net
>> ___________________________________________________________________________________
>
> Thanks Aditya, I'll accept that there is a reason.
>
> Another related thing (sorry if I make this thread a bit difficult to read):
>
> Does the horizontal keyword force the list to be packed (and
> joinedup)? I tried to add unpacked, but with no luck
>
> \starttext
> Some text before.
> \startitemize[a,horizontal,three,unpacked]
> \startitem $\int_0^2 1+2x\,dx$ \stopitem
> \startitem $\int_0^{\ln 2} e^s\,ds$ \stopitem
> \startitem $\int_0^{\ln 2} e^{2s}\,ds$ \stopitem
> \startitem $\int_0^{\pi} \sin t\,dt$ \stopitem
> \startitem $\int_0^{2\pi}\sin t\,dt$ \stopitem
> \startitem $\int_0^1\frac{1}{1+x^2}\,dx$ \stopitem
> \stopitemize
> some text after.
> \stoptext
>
> I also tried to add some space before/after, like
>
> \starttext
> Some text before.
> \startitemize[a,horizontal,three][before={\blank[big]},after={\blank[big]}]
> \startitem $\int_0^2 1+2x\,dx$ \stopitem
> \startitem $\int_0^{\ln 2} e^s\,ds$ \stopitem
> \startitem $\int_0^{\ln 2} e^{2s}\,ds$ \stopitem
> \startitem $\int_0^{\pi} \sin t\,dt$ \stopitem
> \startitem $\int_0^{2\pi}\sin t\,dt$ \stopitem
> \startitem $\int_0^1\frac{1}{1+x^2}\,dx$ \stopitem
> \stopitemize
> some text after.
> \stoptext
>
> /Mikael

Dear list,

a shameless bump.

(Or should I interpret the silence as it is currently not possible to
change space before/after/between when one uses horizontal key?)

Best regards, Mikael
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2016-09-22  6:44 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-17  6:14 Mikael P. Sundqvist
2016-09-17 11:51 ` Wolfgang Schuster
2016-09-17 12:12   ` Mikael P. Sundqvist
2016-09-17 14:48     ` Mikael P. Sundqvist
2016-09-17 21:07       ` Aditya Mahajan
2016-09-18  6:27         ` Mikael P. Sundqvist
2016-09-22  6:44           ` Mikael P. Sundqvist [this message]
2016-10-02 18:08             ` Mikael P. Sundqvist
2016-10-10  8:24               ` Hans Hagen
2016-10-10  8:28                 ` Hans Hagen
2016-10-11  9:21                   ` Mikael P. Sundqvist
2016-10-11  9:37                     ` Wolfgang Schuster
2016-10-11 10:35                       ` Mikael P. Sundqvist

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='CAHy-LL_+cEqU8kjc=HXGcXBi+b8_dcH0sXVQ=whDcR2hBaQy_g@mail.gmail.com' \
    --to=mickep@gmail.com \
    --cc=ntg-context@ntg.nl \
    /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).