From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/77385 Path: news.gmane.org!not-for-mail From: Alan Bowen Newsgroups: gmane.comp.tex.context Subject: Re: \definetext problem? Date: Tue, 17 Jul 2012 12:55:47 -0400 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0531020003==" X-Trace: dough.gmane.org 1342544161 13179 80.91.229.3 (17 Jul 2012 16:56:01 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 17 Jul 2012 16:56:01 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Jul 17 18:56:01 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SrB3z-0007VE-PQ for gctc-ntg-context-518@m.gmane.org; Tue, 17 Jul 2012 18:55:55 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7D82A10278; Tue, 17 Jul 2012 18:55:54 +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 k6nHOUF-yZg6; Tue, 17 Jul 2012 18:55:51 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id A85A810251; Tue, 17 Jul 2012 18:55:51 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 29EA910251 for ; Tue, 17 Jul 2012 18:55: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 4o-OxLTQyoI6 for ; Tue, 17 Jul 2012 18:55:49 +0200 (CEST) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by balder.ntg.nl (Postfix) with ESMTP id 1E76610250 for ; Tue, 17 Jul 2012 18:55:49 +0200 (CEST) Original-Received: from mail-bk0-f41.google.com (mail-bk0-f41.google.com [209.85.214.41]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q6HGtlXS025300 for ; Tue, 17 Jul 2012 18:55:48 +0200 Original-Received: by bkcjc3 with SMTP id jc3so708089bkc.14 for ; Tue, 17 Jul 2012 09:55:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=pDGF4a3HYIiit72YQINJhzWS3foe5RXsa2kftx9Q4Ks=; b=XSbI4e8F2nnK/tf9kF2xzuHrL0ILmFANbtfChXvvBnRPuggwuJQ5vvp4NPEQhcABXw t2a7F+MQWIiBQwDgG/96w03ksM2IMIr6isnkllaOxHwhQ1Ya+8oSO8bqbX4YE98IgEjU c2f0zG5DgvqkdsCSc8TH85SnHfEE5y5MhKl5VuLA4ZmQ7ilvbPe0Qbjs1MsmXwwaA3Z7 Z38VboO3Fwe0P+dgbxLcaW4H6UTMt2HNUR/afKUb7BZec5rTEXm4s/x8sZabXTO1Ytho ftapqWLKvWTQcbzqNU1BPDYn33NYd9zRWc7OOy5gixQuDw69g4jjQTsDBXo61/O6NPwd G6RQ== Original-Received: by 10.152.136.18 with SMTP id pw18mr3468167lab.17.1342544147561; Tue, 17 Jul 2012 09:55:47 -0700 (PDT) Original-Received: by 10.114.17.166 with HTTP; Tue, 17 Jul 2012 09:55:47 -0700 (PDT) In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.214.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: 0RHzsTL39 - 29c2279ea7c2 - 20120717 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:77385 Archived-At: --===============0531020003== Content-Type: multipart/alternative; boundary=f46d042f927a02be4a04c5096bdf --f46d042f927a02be4a04c5096bdf Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Thanks, Wolfgang. I replaced the lines in strc-sec.mkiv with the one that you supplied and regenerated the formats. Now, I get the error message ConTeXt ver: 2012.07.17 16:42 MKIV fmt: 2012.7.17 int: english/english system > cont-new.mkiv loaded (/Applications/ConTeXt/tex/texmf-context/tex/context/base/cont-new.mkiv system > beware: some patches loaded from cont-new.mkiv ) fonts > latin modern fonts are not preloaded languages > language en is active (Test.tex{/Applications/ConTeXt/tex/texmf-context/fonts/map/pdftex/context/= mkiv-base.map} fonts > preloading latin modern fonts (second stage) fonts > typescripts > unknown: library 'loc' {/Applications/ConTeXt/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/Applicati= ons/ConTeXt/tex/texmf/fonts/map/dvips/lm/lm-rm.map} fonts > virtual math > unable to resolve name mapsfromchar fonts > fallback modern rm 12pt is loaded structure > sectioning > BookTitle @ level 2 : 0.0 -> Title ! Extra \else. system > tex > error on line 11 in file Test.tex: Extra ... 1 \definehead[BookTitle][title] 2 \setuphead[BookTitle][header=3Dhigh,footer=3DBookTitlePage] 3 \definetext[BookTitlePage][footer] 4 [\vbox{\tfx 5 \centerline{Some text}\par 6 } 7 ] 8 9 10 \starttext 11 >> \BookTitle{Title} 12 \input knuth\footnote{\input ward} 13 \stoptext 14 15 \strc_sectioning_handle ...ioning_after_yes \else \ifconditional \c_strc_sec... l.11 \BookTitle{Title} ? Alan On Tue, Jul 17, 2012 at 12:23 PM, Wolfgang Schuster < schuster.wolfgang@gmail.com> wrote: > > Am 17.07.2012 um 18:08 schrieb Alan Bowen: > > > This used to work in earlier versions of MKIV, but does no longer=97the > page sets without complaint but the footer does not appear. > > > > A minimal example: > > > > \definehead[BookTitle][title] > > \setuphead[BookTitle][header=3Dhigh,footer=3DBookTitlePag= e] > > \definetext[BookTitlePage][footer] > > [\vbox{\tfx > > \centerline{Some text}\par > > } > > ] > > > > > > \starttext > > \BookTitle{Title} > > \input knuth\footnote{\input ward} > > \stoptext > > > > Is there a problem with \definetext? > > strc-sec.mkiv: > > \def\strc_sectioning_check_layout_yes > {\page[\p_page]% > \expandcheckedcsname\??headmarkyes{\headparameter\c!marking}\s!unknown > \edef\p_header{\headparameter\c!header}% > \ifx\p_header\empty \else > > \doifelselayouttextline\v!header{\normalexpanded{\setuplayouttext[\v!hea= der][\c!state=3D\p_header]}}\donothing > \fi > \edef\p_text{\headparameter\c!text}% > \ifx\p_text\empty \else > \doifelselayouttextline\v!text > {\normalexpanded{\setuplayouttext[\v!text ][\c!state=3D\p_text > ]}}\donothing > \fi > - \edef\p_header{\headparameter\c!footer}% > - \ifx\p_header\empty \else > + \edef\p_footer{\headparameter\c!footer}% > + \ifx\p_footer\empty \else > > \doifelselayouttextline\v!footer{\normalexpanded{\setuplayouttext[\v!foo= ter][\c!state=3D\p_footer]}}\donothing > \fi} > > Wolfgang > > > _________________________________________________________________________= __________ > 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 > > _________________________________________________________________________= __________ > --f46d042f927a02be4a04c5096bdf Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Thanks, Wolfgang. I replaced the lines in strc-sec.mkiv with the one that y= ou supplied and regenerated the formats. Now, I get the error message
<= br>

ConTe= Xt=A0 ver: 2012.07.17 16:42 MKIV=A0 fmt: 2012.7.17=A0 int: english/english<= /p>

<= br>

system=A0 =A0 =A0 = =A0 =A0 > cont-new.mkiv loaded

(/Applications/ConT= eXt/tex/texmf-context/tex/context/base/cont-new.mkiv

system=A0 =A0 =A0 = =A0 =A0 > beware: some patches loaded from cont-new.mkiv

)

fonts =A0 =A0 =A0 = =A0 =A0 > latin modern fonts are not preloaded

languages =A0 =A0 = =A0 > language en is active

(Test.tex{/Applicat= ions/ConTeXt/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}

fonts =A0 =A0 =A0 = =A0 =A0 > preloading latin modern fonts (second stage)

fonts =A0 =A0 =A0 = =A0 =A0 > typescripts > unknown: library 'loc'

{/Applications/ConT= eXt/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/Applications/ConTeXt/tex/tex= mf/fonts/map/dvips/lm/lm-rm.map}

fonts =A0 =A0 =A0 = =A0 =A0 > virtual math > unable to resolve name mapsfromchar

fonts =A0 =A0 =A0 = =A0 =A0 > fallback modern rm 12pt is loaded

structure =A0 =A0 = =A0 > sectioning > BookTitle @ level 2 : 0.0 -> Title

! Extra \else.

<= br>

system=A0 =A0 =A0 = =A0 =A0 > tex > error on line 11 in file Test.tex: Extra=A0 ...

<= br>

=A01 =A0 =A0 \definehead[Boo= kTitle][title]

=A02 =A0 =A0 \setuphead[Book= Title][header=3Dhigh,footer=3DBookTitlePage]

=A03 =A0 =A0 \definetext[Boo= kTitlePage][footer]

=A04 =A0 =A0 [\vbox{\tfx

=A05 =A0 =A0 \centerline{So= me text}\par

=A06 =A0 =A0 }

=A07 =A0 =A0 ]

=A08=A0 =A0 =A0

=A09=A0 =A0 =A0

10 =A0 =A0 \startte= xt

11 >>=A0 \Boo= kTitle{Title}

12 =A0 =A0 \input k= nuth\footnote{\input ward}

13 =A0 =A0 \stoptex= t

14=A0 =A0 =A0

15=A0 =A0 =A0

<= br>

<= br>

\strc_sectioning_ha= ndle ...ioning_after_yes \else=A0

=A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 \ifconditional \c_strc_sec...

l.11 \BookTitle{Tit= le}

= =A0=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0

?=A0

Alan
On Tue, Jul 17, 2012 at 12:23 PM, Wolfga= ng Schuster <schuster.wolfgang@gmail.com> wrote:

Am 17.07.2012 um 18:08 schrieb Alan Bowen:

> This used to work in earlier versions of MKIV, but does no longer=97th= e page sets without complaint but the footer does not appear.
>
> A minimal example:
>
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 \definehead[BookTitle][title]
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 \setuphead[BookTitle][header=3Dhigh,footer= =3DBookTitlePage]
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 \definetext[BookTitlePage][footer]
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 [\vbox{\tfx
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 \centerline{Some text}\par=
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 }
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ]
>
>
> \starttext
> \BookTitle{Title}
> \input knuth\footnote{\input ward}
> \stoptext
>
> Is there a problem with \definetext?

strc-sec.mkiv:

\def\strc_sectioning_check_layout_yes
=A0 {\page[\p_page]%
=A0 =A0\expandcheckedcsname\??headmarkyes{\headparameter\c!marking}\s!unkno= wn
=A0 =A0\edef\p_header{\headparameter\c!header}%
=A0 =A0\ifx\p_header\empty \else
=A0 =A0 =A0\doifelselayouttextline\v!header{\normalexpanded{\setuplayouttex= t[\v!header][\c!state=3D\p_header]}}\donothing
=A0 =A0\fi
=A0 =A0\edef\p_text{\headparameter\c!text}%
=A0 =A0\ifx\p_text\empty \else
=A0 =A0 =A0\doifelselayouttextline\v!text =A0{\normalexpanded{\setuplayoutt= ext[\v!text =A0][\c!state=3D\p_text =A0]}}\donothing
=A0 =A0\fi
- =A0\edef\p_header{\headparameter\c!footer}%
- =A0\ifx\p_header\empty \else
+ =A0\edef\p_footer{\headparameter\c!footer}%
+ =A0\ifx\p_footer\empty \else
=A0 =A0 =A0\doifelselayouttextline\v!footer{\normalexpanded{\setuplayouttex= t[\v!footer][\c!state=3D\p_footer]}}\donothing
=A0 =A0\fi}

Wolfgang

___________________________________________________________________________= ________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-context@ntg.nl / <= a href=3D"http://www.ntg.nl/mailman/listinfo/ntg-context" target=3D"_blank"= >http://www.ntg.nl/mailman/listinfo/ntg-context
webpage =A0: http://= www.pragma-ade.nl / http://tex.aanhet.net
archive =A0: http://foundry.supelec.fr/projects/contextrev/
wiki =A0 =A0 : http:= //contextgarden.net
___________________________________________________________________________= ________

--f46d042f927a02be4a04c5096bdf-- --===============0531020003== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============0531020003==--