[NTG-context] noindent vs noindentation in strc-con

2019-07-12 Thread Aditya Mahajan

Hi,

Why do all the rendering setups in strc-con.mkvi use \noindent? Can the 
\noindet be replaced by \noindentation?


\noindent has some side effects. For example, consider this recent 
question on TeX.SE:


https://tex.stackexchange.com/questions/499464/context-empty-line-in-enumeration

which basically boils down to the difference between:

\showboxes
\starttext
\noindent
\inmargin{Example 1}
\startitemize
  \item This is how enumeration works.
\stopitemize


\inmargin{Example 2}
\startitemize
  \item This works correctly
\stopitemize
\stoptext

Note that the first example has an extra space before the itemize.

In principle, replacing \noindent by \noindentation fixes the extra line 
break, but it does not work with enumerations because it uses 
\inmargin[scope=local]:


\showboxes
\starttext
\noindentation
\inmargin[scope=local]{Example 1}
\startitemize
  \item This is how enumeration works.
\stopitemize


\inmargin[scope=local]{Example 2}
\startitemize
  \item This works correctly
\stopitemize
\stoptext

where the box containing "noindentation" is misgligned.

So, two questions:

* Why is \noindent used instead of \noidentation?
* Is there a bug with scope=local?

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


Re: [NTG-context] reference containing parentheses causes trouble

2019-07-12 Thread Hans Hagen

On 7/11/2019 5:27 PM, Alan Braslau wrote:

This is why it is always a good idea to preface references with a
(personal) identifier. However, perhaps Hans, Wolfgang, or someone else
can explain the use of colons (:) and double colons (::) in references
and in other tags in general (they have to do with namespaces,
instances, etc.).

grep for :::

mag-1103-mkiv.tex


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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
___


[NTG-context] registers: subentry indentation different from word--number gap?

2019-07-12 Thread Sanjoy Mahajan
I don't think the current behavior is a bug, so the following is a
feature request:

With the following fairly minimal example

  \setupregister[index][indicator=no, distance=0.5em]

  \starttext

  ABC\index{x}DEF\index{x+yyz}

  \blank
  \placeindex
  \stoptext

the distance parameter sets (1) the hanging indentation of the 'yyz'
subentry and also (2) the distance between an entry and its pagenumber.
(That's what a look at strc-reg.mkiv shows too.)

It's a matter of taste, but my eye thinks that 0.5em is right for no. 2,
but too small for no. 1 -- whereas the default (1em) is just right for
no. 1 but too large for no. 2.

Thus, could the two dimensions be decoupled and bcome settable
indepently?  Perhaps keep 'distance' for the entry--pagenumber distance
(no. 2), which is its meaning on the wiki, and invent 'subdistance' for
the hanging indent (no. 1)?

I've just realized a cheap hack to do the same, so maybe it's not worth
messing with backward compatability by adding a new parameter.  The hack:

  \def\blah#1{#1\hskip-0.5em}
  \setupregister[index][indicator=no, distance=1em, textcommand=\blah]

-- 
-Sanjoy


Save Long Wharf Park in Boston Harbor!


Six reasoning tools to make hard problems easy.
___
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
___