[texhax] typesetting source code (Funnelweb)
Tomas By
tomas at basun.net
Fri Jan 27 14:31:35 CET 2017
Hi all,
I posted this to the Texlive mailing list, but this seems to be a more
appropriate forum.
Am using the Funnelweb literate programming tool, producing Tex output.
In some code I have, I need to insert ASCII code 25 in the C source
code.
This works fine as far as producing the C code, but when I run Latex on
the .tex file, I get:
| ! Text line contains an invalid character.
| l.1573
...
| ^^Y
The relevant piece of the .tex file is:
| \fwbtx[
...
| ^Y
...
| ]
(in Emacs; the ^Y is one character, not two)
and the "fwbtx" macro is defined as:
| \def\fwbtx[{%
| \begingroup%
| \def\par{\leavevmode\endgraf}%
| \catcode`\`=\active%
| \obeylines%
| \def\do##1{\catcode`##1=12 }\dospecials%
| \obeyspaces
| \parskip=0pt%
| \tt%
| \fwverbatimgobble}
| \def\fwverbatimgobble#1]fwetx={#1\endgroup}
which, I believe, is supposed to escape all non-ASCII characters, so
that Tex does not complain.
Can anybody explain what goes wrong?
Is there some simple work-around? Replace the "fwbtx" macro with
something?
Any help appreciated.
/Tomas
More information about the texhax
mailing list