Something strange happens with textbackground (again, I am afraid).
I defined:
% Java typesetting with background.
\definetyping[JAVA]
\setuptyping[JAVA][option=JV,
before={\bgroup\setupinterlinespace[line=2.2ex]%
\testpage[1]\starttextbackground[code]},
after={\stoptextbackground\egroup}]
Then I typeset some text:
\startJAVA
public void setUserManager( UserManager um ) {
......
\stopJava
If this falls precisely at the start of a new page I get the
following error:
! Undefined control sequence.
l.17 \s
tartpdffontresource[ec]
Forcing the typesetting to run further the output contains the rest
of the source of macro \startpdffontresource[ec] .
I.e. the output then shows (the \s has disappeared):
tartpdffontresource[ec]
/CIDInit /ProcSet findresource begin
...
--------- and goes on until (the last part of the macro "end end
\stoppdffontresource" not appearing)
... CMapName currentdict /CMap defineresource pop
Hereafter typesetting is resumed.
>>>Introducing something that puts another line of text at the top
of the page results in normal typesetting.<<<
Further experiment
replacing "\startJava" by "\starttextbackground[somecolor]" leads to
the same error.
Therefore I suspect it has something to do with the output routine
where \s is taken as the next macro.
A simpe experiment (\def\s{something}) shows that indeed a macro \s
is executed.
Is someone here messing up the catcode's of the letters?
It is of cource very annoying if one constantly has to shift
textmaterial up and down to move it away from page breaks!
yours sincerely,
dr. H. van der Meer
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context