---------- Forwarded message ---------
De: Jairo A. del Rio <jairoadelrio6@gmail.com>
Date: lun., 3 de ago. de 2020 a la(s) 23:05
Subject: Re: [NTG-context] \emph not working in LMTX (bug?)
To: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>


The following worked some days ago. Now it crashes:

\setuphead[chapter][alternative=middle,textstyle=\cap,numbercommand=\WORDS]
\setuphead[section][sectionsegments=section,align=middle,textstyle={\bf},conversion=R,numbercommand={\bf}]
\setuphead[subsection][numbercommand=,textstyle={\it},sectionsegments=subsection,conversion=n]
\starttext
\startchapter[title=Dummy chapter]
\startsection[title=Dummy section]
\startsubsection[title=Dummy subsection]
\input knuth
\stopsubsection
\stopsection
\stopchapter
\stoptext

The log says:

\endgroup

\22>:157>:middle ...headshownumber \strut \headnumbercontent \par \else \fakeheadnumbercontent \fi \begstrut \headtextcontent

\endstrut }

\strc_rendering_inject_number_and_text ...def \p_command {\headparameter \c!command }\ifx \p_command \empty \directsetup \currentheadrenderingsetup

\else \p_command \headnumbercontent \headtextcontent \fi

\strc_rendering_place_head_number_and_text ...}\useheadstyleparameter \c!style \setinlineheadreferenceattributes \strc_rendering_inject_number_and_text

}\fi \strc_rendering_stop_placement

\strc_sectioning_handle ...onditional \headshownumber \let \getheadnumber \fullheadnumber \strc_rendering_place_head_number_and_text

\else \strc_rendering_place_head_text \fi \dostoptagged \strc_sectioning_after_yes \else \ifconditional \c_strc_sectioning_hidden \strc_se...

\strc_sectioning_start_named_section ...de \currenthead \headparameter \c!beforesection \the \everybeforehead \strc_sectioning_handle {#1}{#2}{#3}

\headparameter \c!insidesection

...

I guess it's unrelated to Pablo's issue (\emph works again after the patch).


El lun., 3 de ago. de 2020 a la(s) 22:48, Wolfgang Schuster (wolfgang.schuster.lists@gmail.com) escribió:
Jairo A. del Rio schrieb am 04.08.2020 um 03:37:
> The following crashes with LMTX (current version: 2020.08.03 14:25):
>
>
> \starttext
> \emph{Hola}
> \stoptext
>
> Log:
>
>
> \emphasiscorrection ->\ifhmode \ifnum \currentgrouptype =\aligngroupcode
>
> \else \expandafter \expandafter \expandafter \font_emphasis_look \fi \fi
>
> <to be read again> \egroup
>
> \egroup
>
> l.2 \emph{Hola}
>
> Is it a bug? \emph worked for older versions. Thank you in advance.

Yes and it was already reported by Pablo but don't hesitate report
future bugs.

https://www.mail-archive.com/ntg-context@ntg.nl/msg95268.html

Wolfgang