From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/71729 Path: news.gmane.org!not-for-mail From: Mojca Miklavec Newsgroups: gmane.comp.tex.context Subject: bug: wrong subject name in headertext Date: Thu, 13 Oct 2011 22:10:38 +0200 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1318536664 30677 80.91.229.12 (13 Oct 2011 20:11:04 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 13 Oct 2011 20:11:04 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Oct 13 22:10:58 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RERcG-0007zw-87 for gctc-ntg-context-518@m.gmane.org; Thu, 13 Oct 2011 22:10:56 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5F26FCB04D; Thu, 13 Oct 2011 22:10:55 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Z1L74hgM6acz; Thu, 13 Oct 2011 22:10:52 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3171CCB046; Thu, 13 Oct 2011 22:10:52 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4E85FCB046 for ; Thu, 13 Oct 2011 22:10:51 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id oYoMw0uOu0BJ for ; Thu, 13 Oct 2011 22:10:40 +0200 (CEST) Original-Received: from filter4-nij.mf.surf.net (filter4-nij.mf.surf.net [195.169.124.155]) by balder.ntg.nl (Postfix) with ESMTP id 6ACECCB045 for ; Thu, 13 Oct 2011 22:10:40 +0200 (CEST) Original-Received: from mail-qw0-f41.google.com (mail-qw0-f41.google.com [209.85.216.41]) by filter4-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p9DKAdkh023631 for ; Thu, 13 Oct 2011 22:10:39 +0200 Original-Received: by qadb17 with SMTP id b17so540134qad.14 for ; Thu, 13 Oct 2011 13:10:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=nvjBn42X+eTeIiWNa4O72xoRRbHommHN1kLsxajxYjU=; b=afwBfO9rAl4cGSUKiMqZHpKzwkGxS9Mzy3H9F1LpbpSYxRkIaq50lcj0GH66Keu+Pp DwuOUVyxVXyX1Sv185g1QBFvO99wzix3NJP18twtcwwE+3/t0hmSRU6+dqziJnXYnArR YKX1YOJNWtAx/95sy13Wcpw7AILQjd5TzWeCY= Original-Received: by 10.229.109.200 with SMTP id k8mr1155617qcp.262.1318536638715; Thu, 13 Oct 2011 13:10:38 -0700 (PDT) Original-Received: by 10.229.105.12 with HTTP; Thu, 13 Oct 2011 13:10:38 -0700 (PDT) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.216.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 04FIkaDAH - caaaadcdb5c3 - 20111013 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.155 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:71729 Archived-At: Hello, the following example might not be the most minimal possible example, but I hope that it is short enough. I'm using \setupheadertexts [] [subject] to print subject into header, but the headers are screwed up in some very weird way. My real document behaves differently that this minimal example, but even here one can notice that headers say: - This is first heading - This is fourth heading - This is second heading - This is fourth heading instead of getting the second heading. Does anyone have any idea what is going on? Thank you, Mojca \startbuffer[test1]

This is first heading

some text

This is second heading

some text

\stopbuffer \startbuffer[test2]

This is third heading

some text

This is fourth heading

some text

\stopbuffer \startxmlsetups all:html \xmlsetsetup{main}{h1}{*} \stopxmlsetups \startxmlsetups h1 \subject{\ignorespaces\xmlflush{#1}} \stopxmlsetups \xmlregistersetup{all:html} \setuphead [subject] [style=\bfa, page=odd] \setupheadertexts [] [subject] \starttext I have some text first \xmlprocessbuffer{main}{test1}{} \xmlprocessbuffer{main}{test2}{} \stoptext ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________