axiom-developer
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Axiom-developer] build-improvements and latex


From: Waldek Hebisch
Subject: Re: [Axiom-developer] build-improvements and latex
Date: Mon, 23 Oct 2006 03:19:56 +0200 (CEST)

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 '/address@hidden /s/_/\\_/g;/address@hidden 
> /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 "/address@hidden /s/_/\\\\_/g;/address@hidden 
/s/_/\\\\_/g"'

(apstrophes inside filter interacted with quoting inside noweave).


-- 
                              Waldek Hebisch
address@hidden 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]