On 26 Jun 2009, at 15:30, Gerben Wierda wrote:
I need to use a macro like this:
\def\typeSQLfile#1{% \startsetups header:margin \framed [frame=off, orientation=90, width=2\leftmarginwidth, height=\textheight, align={top,middle}] {#1\hfil\pagenumber\hfil\IfSQprojectname} \stopsetups \typefile[SQL]{#1}}
In the following setting:
\starttext \typeSQLfile{Library-procedures/details.pls} \typeSQLfile{Library-procedures/hlx$requery.pls} \stoptext
This results in two problems; 1. The pagenumber is the same on each page for a file 2. The file name with the $ in it crashes the typefile argument (file not found), where \typefile itself handles the name OK.
Adding to this, it also crashes (not only file not found) the TeX job if there is a _ in the filename (missing $ inserted). G