From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/24417 Path: news.gmane.org!not-for-mail From: Hans van der Meer Newsgroups: gmane.comp.tex.context Subject: textbackground > bug Date: Sat, 17 Dec 2005 21:29:38 +0100 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v746.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1134851550 7131 80.91.229.2 (17 Dec 2005 20:32:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 17 Dec 2005 20:32:30 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sat Dec 17 21:32:26 2005 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1Enih3-0003kG-Jt for gctc-ntg-context-518@m.gmane.org; Sat, 17 Dec 2005 21:30:13 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 01256127D6; Sat, 17 Dec 2005 21:30:12 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 05831-03; Sat, 17 Dec 2005 21:30:06 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5C5AB127BE; Sat, 17 Dec 2005 21:30:06 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 105D7127BE for ; Sat, 17 Dec 2005 21:30:05 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 05757-04 for ; Sat, 17 Dec 2005 21:30:04 +0100 (CET) Original-Received: from smtp.science.uva.nl (smtp.science.uva.nl [146.50.4.84]) by ronja.ntg.nl (Postfix) with ESMTP id 09316127B2 for ; Sat, 17 Dec 2005 21:30:03 +0100 (CET) Original-Received: from 118-151.uva.surfnetthuis.nl [145.98.118.151] by smtp.science.uva.nl with ESMTP (sendmail 8.11.6p2/config 11.36). id jBHKU0q05446; Sat, 17 Dec 2005 21:30:00 +0100 X-Organisation: Faculty of Science, University of Amsterdam, The Netherlands X-URL: http://www.science.uva.nl/ Original-To: NTG ConTeXt X-Mailer: Apple Mail (2.746.2) X-Virus-Scanned: by amavisd-new X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:24417 Archived-At: 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