ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* textbackground > bug
@ 2005-12-17 20:29 Hans van der Meer
  2005-12-18 10:40 ` Taco Hoekwater
  2005-12-18 21:10 ` Hans Hagen
  0 siblings, 2 replies; 4+ messages in thread
From: Hans van der Meer @ 2005-12-17 20:29 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-12-18 21:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-17 20:29 textbackground > bug Hans van der Meer
2005-12-18 10:40 ` Taco Hoekwater
2005-12-18 19:11   ` Hans van der Meer
2005-12-18 21:10 ` Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).