ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* noindent vs noindentation in strc-con
@ 2019-07-12 19:22 Aditya Mahajan
  0 siblings, 0 replies; only message in thread
From: Aditya Mahajan @ 2019-07-12 19:22 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-07-12 19:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-12 19:22 noindent vs noindentation in strc-con Aditya Mahajan

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