[NTG-context] option=tex in setuptyping causes the background to be drawn twice

Wolfgang Schuster wolfgang.schuster.lists at gmail.com
Sun Apr 28 17:13:37 CEST 2019


The problem are these settings in buff-imp-default.mkiv:

\setupstartstop
   [DefaultSnippet]
   [\c!before={\typingparameter\c!before},
    \c!after={\typingparameter\c!after},
    \c!style={\typingparameter\c!style}]

In buff-imp-tex.mkiv these values are inherited:

\definestartstop
     [TexSnippet]
     [DefaultSnippet]

Wolfgang


Aditya Mahajan schrieb am 28.04.2019 um 17:00:
> Hi,
>
> The following minimal example:
>
> \definetextbackground
>     [EXAMPLE]
>     [
>           location=paragraph,
>      rulethickness=1pt,
>         leftoffset=5em,
>        rightoffset=0mm,
>     ]
>
> \setuptyping[option=tex, before=\startEXAMPLE, after=\stopEXAMPLE]
>
> \starttext
> \starttyping
>   A = B + C
> \stoptyping
> \stoptext
>
> gives the attached output where the background is repeated twice. The 
> bug is present with both mkiv and ltmx.
>
> Aditya
>
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
>
> maillist : ntg-context at 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
> ___________________________________________________________________________________

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20190428/3f5e2f6a/attachment.html>


More information about the ntg-context mailing list