Bill Page wrote:
> Thanks, Norman. I think we figured it out. There is really no
> mangling - just an "innocent" change with unexpected behaviour.
> Your FAQ is very useful:
>
> http://www.eecs.harvard.edu/nr/noweb/FAQ.html
>
> Q. How do I get an output file (root chunk) with an underscore
> in its name? LaTeX complains about the underscore.
>
> A. All chunk names are set in ordinary TeX mode. This means
> that underscore is a subscript character. Rather than use special
> hacks, I just avoid underscores in file names, since I prefer to
> use hyphens anyway. However, you can write a simple sed script to
> filter the underscores for use by noweave:
>
> noweave -filter "sed '/[EMAIL PROTECTED] /s/_/\\_/g;/[EMAIL PROTECTED]
> /s/_/\\_/g'"
>
> and the filter will change _ to \_ before TeX sees it.
>
The filter from the FAQ does not work. I had to use:
noweave -filter 'sed "/[EMAIL PROTECTED] /s/_/\\\\_/g;/[EMAIL PROTECTED]
/s/_/\\\\_/g"'
(apstrophes inside filter interacted with quoting inside noweave).
--
Waldek Hebisch
[EMAIL PROTECTED]
_______________________________________________
Axiom-developer mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/axiom-developer