ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Henri Menke <henrimenke@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Nested itemize horizontal/column problem
Date: Sun, 18 Sep 2016 21:56:33 +0200	[thread overview]
Message-ID: <fdba8c20-ef5f-c33f-0b9b-cd8fed5b2a78@gmail.com> (raw)
In-Reply-To: <CAHy-LL9rZ4Ne2rLcnk8s2PcfeGPDb4+Etea-4DRHw=X2KzWCVQ@mail.gmail.com>

You can start itemize only in vertical mode.  To switch to vertical mode use \blank.  To kill the empty line which is inserted use \blank[-line].

\starttext
\startitemize[n]
\item \blank[-line]
\startitemize[a,horizontal,three]
\startitem First \stopitem
\startitem Second \stopitem
\startitem Third \stopitem
\startitem Fourth \stopitem
\stopitemize
\item On the outer level
\stopitemize
\stoptext

On 09/18/2016 10:54 AM, Mikael P. Sundqvist wrote:
> Hi
> 
> 1) the following code
> 
> \starttext
> \startitemize[n]
> \item
> \startitemize[a,horizontal,three]
> \startitem First \stopitem
> \startitem Second \stopitem
> \startitem Third \stopitem
> \startitem Fourth \stopitem
> \stopitemize
> \item On the outer level
> \stopitemize
> \stoptext
> 
> generates the error
> 
> tex error       > tex error on line 9 in file
> /home/mickep/tmp/ctx-listexample14.tex: ! You can't use `\prevdepth'
> in restricted horizontal mode
> 
> Isn't it possible to have nested itemize with key horizontal?
> 
> 2) If I change the horizontal key to columns, then there is an extra
> line (the extra line in nested itemization has been discussed before,
> but not with these keys given, as far as I could see). I.e. the file
> 
> \starttext
> \startitemize[n]
> \item
> \startitemize[a,columns,three]
> \startitem First \stopitem
> \startitem Second \stopitem
> \startitem Third \stopitem
> \startitem Fourth \stopitem
> \stopitemize
> \item On the outer level
> \stopitemize
> \stoptext
> 
> gives the attached pdf file, where I would have exptected the first a.
> in the inner itemize to be on the same line as the 1. in the outer
> itemize.
> 
> Anyone has an idea on what is going on here?
> 
> 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
> ___________________________________________________________________________________
> 

___________________________________________________________________________________
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-18 19:56 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-18  8:54 Mikael P. Sundqvist
2016-09-18 19:56 ` Henri Menke [this message]
2016-09-19 11:27   ` Mikael P. Sundqvist
2016-09-19 13:37     ` Otared Kavian
2016-09-19 13:50       ` Mikael P. Sundqvist
2016-09-19 11:32   ` Wolfgang Schuster

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=fdba8c20-ef5f-c33f-0b9b-cd8fed5b2a78@gmail.com \
    --to=henrimenke@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).