[dev-context] strc-ren.mkiv

Wolfgang Schuster wolfgang.schuster.lists at gmail.com
Wed Feb 27 17:45:34 CET 2019


Hi Hans,

when you use “text” alternative for \setuphead and enable text 
indentation the paragraph after the section title isn’t indented.


\setupindenting[yes,big]
\setuphead[section][alternative=text]
\starttext
\section{Introduction}
\input knuth
\stoptext


This is caused by the \noindentation (needed for the “margintext” 
alternative) in \strc_rendering_stop_placement, adding a check for 
\headissomewhere fixes it.


\def\strc_rendering_stop_placement
   {\n_strc_rendering_hang_lines\zerocount
    ...
    \ifconditional\headisdisplay
      \useindentnextparameter\headparameter
    \else
-    \ignoreparskip
-    \noindentation % recently added, was a bug
+    \ifconditional\headissomewhere
+      \ignoreparskip
+      \noindentation
+    \else
+      \ignoreparskip
+    \fi
    \fi}


Wolfgang



More information about the dev-context mailing list