[NTG-context] two issues with \sciteinlinebuffer

Pablo Rodriguez oinos at gmx.es
Fri Jul 8 19:51:17 CEST 2022


On 7/7/22 23:30, Hans Hagen via ntg-context wrote:
> On 7/7/2022 6:19 PM, Pablo Rodriguez via ntg-context wrote:
>> [...]
>> 1. Margin is applied to \sciteinlinebuffer.
>>
>> 2. An extra unwanted space is added after \sciteinlinebuffer.
>>
>> Isn’t it intended that \sciteinlinebuffer behaves in a similar way as
>> \typeinlinebuffer?
>>
> \unexpanded\def\module_scite_buffer[#1][#2]%
>    {\begingroup
>     \setcatcodetable\ctxcatcodes % needed in xml
>     \ifsecondargument
>       \clf_scitelexbuffer{#2}{#1}%
>     \else
>       \clf_scitelexbuffer{#1}{tex}%
>     \fi
>     \tt
>     \installscitecommandsdisplay
>     \module_scite_inherit_typing
>     \dontcomplain
>     \raggedright
>     \startscitelines
>     \getbuffer[lex]
>     \stopscitelines
>     \endgroup}

Many thanks for your code, Hans.

I’m afraid I cannot make it work for the inline buffer.

After checking m-scite.mkiv, the code above isn’t different from
"\module_scite_buffer" defined on lines 433-449 (checked with a visual
diff tool [https://meldmerge.org/]).

Sorry, but isn’t it "\module_scite_buffer_inline" (lines 454-468 from
m-scite.mkiv) the command that needs fixing?

Excuse my ignorance, but it is \sciteinlinebuffer the misbehaving
command in my code.

Many thanks for your help,

Pablo


More information about the ntg-context mailing list