btex ... etex within MP with 1 letter ignored?
Hello, I encountered a weird thing - words of 1 letter inside btex ... etex within MP are not shown - check: ---- \setuplayout[page] \startluacode context.setMPtext("Pare", "1") context.setMPtext("Pare2", "22") context.setMPtext("Pare3", "333") \stopluacode % \startuseMPgraphic{Pare} draw thelabel(btex \switchtobodyfont[20mm]\sans\bold TTT etex, (0, 150)) withcolor red ; draw thelabel(btex \switchtobodyfont[20mm]\sans\bold U etex, (0, 100)) withcolor magenta ; draw thelabel(btex \switchtobodyfont[20mm]\sans\bold \MPtext{Pare} etex, (0, 50)) withcolor green ; draw thelabel(btex \switchtobodyfont[20mm]\sans\bold \MPtext{Pare2} etex, (0, 0)) withcolor blue ; draw thelabel(btex \switchtobodyfont[20mm]\sans\bold \MPtext{Pare3} etex, (0, -50)) withcolor yellow ; \stopuseMPgraphic % Overlays \defineoverlay[Pare][\useMPgraphic{Pare}] \setupbackgrounds[page][background={foreground,Pare}] \starttext \startTEXpage[width=210mm,height=297mm] Aaa \stopTEXpage \stoptext ---- Here, texts "1" and "U" are not rendered; if you change them to e.g. "11" and "UU", all works fine. Am I missing something? Bug? Best regards, Lukas -- Ing. Lukáš Procházka | mailto:LPr@pontex.cz Pontex s. r. o. | mailto:pontex@pontex.cz | http://www.pontex.cz | IDDS:nrpt3sn Bezová 1658 147 14 Praha 4 Mob.: +420 702 033 396
On 7/17/2018 3:40 PM, Procházka Lukáš Ing. wrote:
Hello,
I encountered a weird thing - words of 1 letter inside btex ... etex within MP are not shown - check:
---- \setuplayout[page]
\startluacode context.setMPtext("Pare", "1") context.setMPtext("Pare2", "22") context.setMPtext("Pare3", "333") \stopluacode
%
\startuseMPgraphic{Pare} draw thelabel(btex \switchtobodyfont[20mm]\sans\bold TTT etex, (0, 150)) withcolor red ; draw thelabel(btex \switchtobodyfont[20mm]\sans\bold U etex, (0, 100)) withcolor magenta ; draw thelabel(btex \switchtobodyfont[20mm]\sans\bold \MPtext{Pare} etex, (0, 50)) withcolor green ; draw thelabel(btex \switchtobodyfont[20mm]\sans\bold \MPtext{Pare2} etex, (0, 0)) withcolor blue ; draw thelabel(btex \switchtobodyfont[20mm]\sans\bold \MPtext{Pare3} etex, (0, -50)) withcolor yellow ;
\stopuseMPgraphic
% Overlays
\defineoverlay[Pare][\useMPgraphic{Pare}]
\setupbackgrounds[page][background={foreground,Pare}]
\starttext \startTEXpage[width=210mm,height=297mm] Aaa \stopTEXpage \stoptext ----
Here, texts "1" and "U" are not rendered; if you change them to e.g. "11" and "UU", all works fine.
Am I missing something? Bug? {\switchtobodyfont[20mm]\sans\bold \MPtext{Pare}}
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
participants (2)
-
Hans Hagen
-
Procházka Lukáš Ing.