`alternative=text`를 사용하여 제목 뒤에 들여쓰기

`alternative=text`를 사용하여 제목 뒤에 들여쓰기

TeXLive 2018에서 ConTeXt 2018.04.04를 사용하고 있습니다. alternative=text에서 옵션을 사용하면 \setuphead제목 뒤의 두 번째 단락이 들여쓰기되지 않습니다. 들여쓰기하는 방법을 매뉴얼에서 찾을 수 없습니다.

다음은 최소한의 예입니다.

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

다음 옵션을 추가해도 아무 것도 변경되지 않습니다.

\setuphead[section][alternative=text,indentnext=yes]

이 예에서는 다음으로 시작하는 단락을 원합니다.

어떤 이별...

들여쓰기를 해야 하지만 그렇지 않습니다.

여기에 이미지 설명을 입력하세요

답변1

이 문제는 최신 베타에서도 나타납니다. 분명히 다른 버그를 수정할 때 문제가 발생한 것 같습니다.

\noindentation % recently added, was a bug

\strc_rendering_stop_placement문제를 해결합니다 . 이것은 메일링 리스트에 보고되었습니다:https://mailman.ntg.nl/pipermail/ntg-context/2019/094251.html

\unprotect

\def\strc_rendering_stop_placement
  {\n_strc_rendering_hang_lines\zerocount
   \ifconditional\headisdisplay
     \strc_rendering_initialize_line_hang
     % kind of special, we want to snap heads also according to local specs local
     \setbox\b_strc_rendering_head\hbox
       {\hskip\dimexpr\d_strc_rendering_local_leftoffset+\headparameter\c!margin\relax
        \box\b_strc_rendering_head
        \getheadsyncs % a latelua why not in the box
        }%
     \ifgridsnapping
       \applygridmethod
         {\headparameter\c!grid}%
         {\ifconditional\headisdisplay
            \strc_rendering_initialize_style_and_color_display\c!textstyle\c!textcolor
          \fi}%
         {\box\b_strc_rendering_head}
     \else
       \box\b_strc_rendering_head
     \fi
     \flushnotes % new, not really needed
     \endgraf
     \ifvmode
       \ifnum\n_strc_rendering_hang_lines>\zerocount
         \dorecurse\n_strc_rendering_hang_lines{\nointerlineskip\dosomebreak\nobreak\strut\endgraf}% to be checked
       \fi
       \nointerlineskip
       \dosomebreak\nobreak
     \fi
%      \getheadsyncs % a latelua why not in the box
   \else
     % somehow this goes ok even when we push in the margin probably because we gobble pars
     % in the process of collecting index entries etc
     \strut
     \flushnotes % new, here since we're in par mode
     \unhbox\b_strc_rendering_head
     \getheadsyncs % a latelua
     \ifconditional\headissomewhere
       \strc_sectioning_stay_on_this_line % test case: alternative=margintext and \startparagraph ..
     \else
      %\hskip\headnumberdistance\s!plus\headnumberdistance\s!minus.25\dimexpr\headnumberdistance\relax
       \hskip\headtextdistance\relax
       \strc_sectioning_inject_continuous_signal
     \fi
   \fi
   \ifconditional\headisdisplay
     \ifvmode
       \ifgridsnapping % important, font related depth, see comment
         \prevdepth\strutdp
       \else
         \prevdepth\d_strc_rendering_local_depth
       \fi
     \fi
   \fi
   \synctexpopline
   \egroup
   \egroup
   \ifconditional\headisdisplay
     \useindentnextparameter\headparameter
   \else
     \ignoreparskip
     % \noindentation % recently added, was a bug
   \fi}

\protect

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

여기에 이미지 설명을 입력하세요

관련 정보