ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Works and Doesn't Work
@ 2019-01-16  7:18 jdh
  2019-01-18 11:56 ` Wolfgang Schuster
  0 siblings, 1 reply; 2+ messages in thread
From: jdh @ 2019-01-16  7:18 UTC (permalink / raw)
  To: ntg-context


Here is my small sample ConTeXt sample:  I want to be able to control the blank gap between the end of an item and the next item.  It has to be fine tuned at times.  Any advice would be appreciated.


NOTE: Two cases with inbetween attempting use use two variations of the \blank  command which
      causes 'context' run to hang.  The comment escape on them has to be removed to test them.


The rightmost column contains result comments.

Note that inbetween=\blank[.5mm]  and \blank[small] cause context to hang .
But, underbar'd command with a text string works as advertised.

Regards
     dh

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% start of contxt source

\definesymbol[5][$\diamond$]

\starttext
    \setupitemgroup[itemize][each][packed][before=\underbar{mae-da },after=\underbar{ato-da}] % WORKS
    \setupitemgroup[itemize][each][      ][symbol=5]                        % WORKS
    \setupitemgroup[itemize][each][      ][left=\underbar{lefttxt}]  	    % NO EFFECT
    \setupitemgroup[itemize][each][      ][right=\underbar{rhttxt}]  	    % NO EFFECT
    \setupitemgroup[itemize][each][      ][inbetween=\underbar{inbetween} ] % WORKS
    %\setupitemgroup[itemize][each][     ][inbetween=\blank[small]] 	    % !!! HANGS WONT COMPILE !!!
    %\setupitemgroup[itemize][each][     ][inbetween=\blank[2mm]]	    % !!! HANGS WONT COMPILE !!!
    \setupitemgroup[itemize][each][      ][beforehead=\underbar{befhead}]   % NO EFFECT      
    \setupitemgroup[itemize][each][      ][afterhead=\underbar{AHEAD}]      % NO EFFECT      
    \setupitemgroup[itemize][each][      ][itemalign=right]		    % NO EFFECT
    \setupitemgroup[itemize][each][      ][textdistance=3cm]      	    % NO EFFECT      
    \startitemize[]
	\item \input knuth 
	\item \input knuth
	\item \input knuth
    \stopitemize

\stoptext
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  end of sample context source



___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Works and Doesn't Work
  2019-01-16  7:18 Works and Doesn't Work jdh
@ 2019-01-18 11:56 ` Wolfgang Schuster
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2019-01-18 11:56 UTC (permalink / raw)
  To: mailing list for ConTeXt users, jdh

jdh schrieb am 16.01.19 um 08:18:
> Here is my small sample ConTeXt sample:  I want to be able to control the blank gap between the end of an item and the next item.  It has to be fine tuned at times.  Any advice would be appreciated.
>
>
> NOTE: Two cases with inbetween attempting use use two variations of the \blank  command which
>        causes 'context' run to hang.  The comment escape on them has to be removed to test them.
>
>
> The rightmost column contains result comments.
>
> Note that inbetween=\blank[.5mm]  and \blank[small] cause context to hang .
> But, underbar'd command with a text string works as advertised.
>
> Regards
>       dh
>
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% start of contxt source
>
> \definesymbol[5][$\diamond$]
>
> \starttext
>      \setupitemgroup[itemize][each][packed][before=\underbar{mae-da },after=\underbar{ato-da}] % WORKS
>      \setupitemgroup[itemize][each][      ][symbol=5]                        % WORKS

Don’t use empty arguments when they aren’t necessary, skipping the 
argument is enough in most cases.

\setupitemgroup[itemize][each][symbol=5]

>      \setupitemgroup[itemize][each][      ][left=\underbar{lefttxt}]  	    % NO EFFECT
>      \setupitemgroup[itemize][each][      ][right=\underbar{rhttxt}]  	    % NO EFFECT
The left and right keys are only used for numbered items.
>      \setupitemgroup[itemize][each][      ][inbetween=\underbar{inbetween} ] % WORKS
>      %\setupitemgroup[itemize][each][     ][inbetween=\blank[small]] 	    % !!! HANGS WONT COMPILE !!!
>      %\setupitemgroup[itemize][each][     ][inbetween=\blank[2mm]]	    % !!! HANGS WONT COMPILE !!!
You needs braces around the blank setting, e.g. \setupitemgroup 
[itemize] [each] [inbetween={\blank[...]}|
>      \setupitemgroup[itemize][each][      ][beforehead=\underbar{befhead}]   % NO EFFECT
>      \setupitemgroup[itemize][each][      ][afterhead=\underbar{AHEAD}]      % NO EFFECT
The beforehead and afterhead keys are only used when you use \head or 
\starthead.
>      \setupitemgroup[itemize][each][      ][itemalign=right]		    % NO EFFECT
This works only when you use a fixed width for the item symbol.
>      \setupitemgroup[itemize][each][      ][textdistance=3cm]      	    % NO EFFECT
The textdistance keys controls the horizontal space between inline items 
(all items appears in single paragraph).

Wolfgang

___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2019-01-18 11:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-16  7:18 Works and Doesn't Work jdh
2019-01-18 11:56 ` Wolfgang Schuster

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).