Formatting problem in WEAVE
Andreas Scherer
andreas_tex at freenet.de
Fri May 1 16:45:15 CEST 2020
> I have no idea how to change WEAVE's grammar to achieve this effect.
It seems to be related to scraps 'math' and 'terminator'. If we remove
the semicolon at the end of the Pascal code
@{@!screen_pixel:array[screen_row,screen_col] of pixel_color@}
the result is
\Y\P\4$\B\\{screen\_pixel}$: \37\&{array} $[\\{screen\_row},\39\\{screen%
\_col}]$ \1\&{of}\5
$\\{pixel\_color}\T$\2\par
\fi
as desired. Note that even a 'soft' terminator '@;' breaks this again.
If you want to get the print "right", add an extra semicolon in TeX:
@{@!screen_pixel:array[screen_row,screen_col] of pixel_color at t;@>@}
Note that the tangled Pascal code would be incomplete (inside the comment).
Good luck,
Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot_20200501_164306.png
Type: image/png
Size: 19766 bytes
Desc: not available
URL: <https://tug.org/pipermail/texhax/attachments/20200501/97e59e6e/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://tug.org/pipermail/texhax/attachments/20200501/97e59e6e/attachment-0001.sig>
More information about the texhax
mailing list.