* \definetext problem?
@ 2012-07-17 16:08 Alan Bowen
2012-07-17 16:23 ` Wolfgang Schuster
0 siblings, 1 reply; 5+ messages in thread
From: Alan Bowen @ 2012-07-17 16:08 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 457 bytes --]
This used to work in earlier versions of MKIV, but does no longer—the page
sets without complaint but the footer does not appear.
A minimal example:
\definehead[BookTitle][title]
\setuphead[BookTitle][header=high,footer=BookTitlePage]
\definetext[BookTitlePage][footer]
[\vbox{\tfx
\centerline{Some text}\par
}
]
\starttext
\BookTitle{Title}
\input knuth\footnote{\input ward}
\stoptext
Is there a problem with \definetext?
Alan
[-- Attachment #1.2: Type: text/html, Size: 1119 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: \definetext problem?
2012-07-17 16:08 \definetext problem? Alan Bowen
@ 2012-07-17 16:23 ` Wolfgang Schuster
2012-07-17 16:55 ` Alan Bowen
0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2012-07-17 16:23 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Hans Hagen
Am 17.07.2012 um 18:08 schrieb Alan Bowen:
> This used to work in earlier versions of MKIV, but does no longer—the page sets without complaint but the footer does not appear.
>
> A minimal example:
>
> \definehead[BookTitle][title]
> \setuphead[BookTitle][header=high,footer=BookTitlePage]
> \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!header][\c!state=\p_header]}}\donothing
\fi
\edef\p_text{\headparameter\c!text}%
\ifx\p_text\empty \else
\doifelselayouttextline\v!text {\normalexpanded{\setuplayouttext[\v!text ][\c!state=\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!footer][\c!state=\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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: \definetext problem?
2012-07-17 16:23 ` Wolfgang Schuster
@ 2012-07-17 16:55 ` Alan Bowen
2012-07-17 16:59 ` Wolfgang Schuster
0 siblings, 1 reply; 5+ messages in thread
From: Alan Bowen @ 2012-07-17 16:55 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 3927 bytes --]
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}{/Applications/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=high,footer=BookTitlePage]
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—the
> page sets without complaint but the footer does not appear.
> >
> > A minimal example:
> >
> > \definehead[BookTitle][title]
> > \setuphead[BookTitle][header=high,footer=BookTitlePage]
> > \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!header][\c!state=\p_header]}}\donothing
> \fi
> \edef\p_text{\headparameter\c!text}%
> \ifx\p_text\empty \else
> \doifelselayouttextline\v!text
> {\normalexpanded{\setuplayouttext[\v!text ][\c!state=\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!footer][\c!state=\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
>
> ___________________________________________________________________________________
>
[-- Attachment #1.2: Type: text/html, Size: 7720 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: \definetext problem?
2012-07-17 16:55 ` Alan Bowen
@ 2012-07-17 16:59 ` Wolfgang Schuster
2012-07-17 17:11 ` Alan Bowen
0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2012-07-17 16:59 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 17.07.2012 um 18:55 schrieb Alan Bowen:
> 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
I guess you did something wrong when you changed the command, the new definition of the command should be
\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!header][\c!state=\p_header]}}\donothing
\fi
\edef\p_text{\headparameter\c!text}%
\ifx\p_text\empty \else
\doifelselayouttextline\v!text {\normalexpanded{\setuplayouttext[\v!text ][\c!state=\p_text ]}}\donothing
\fi
\edef\p_footer{\headparameter\c!footer}%
\ifx\p_footer\empty \else
\doifelselayouttextline\v!footer{\normalexpanded{\setuplayouttext[\v!footer][\c!state=\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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: \definetext problem?
2012-07-17 16:59 ` Wolfgang Schuster
@ 2012-07-17 17:11 ` Alan Bowen
0 siblings, 0 replies; 5+ messages in thread
From: Alan Bowen @ 2012-07-17 17:11 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1801 bytes --]
My apologies. XCode slipped (or left in) some +'s and -'s that I failed to
catch. Anyway, it is working now.
Many thanks!
Alan
On Tue, Jul 17, 2012 at 12:59 PM, Wolfgang Schuster <
schuster.wolfgang@gmail.com> wrote:
>
> Am 17.07.2012 um 18:55 schrieb Alan Bowen:
>
> > 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
>
> I guess you did something wrong when you changed the command, the new
> definition of the command should be
>
> \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!header][\c!state=\p_header]}}\donothing
> \fi
> \edef\p_text{\headparameter\c!text}%
> \ifx\p_text\empty \else
> \doifelselayouttextline\v!text
> {\normalexpanded{\setuplayouttext[\v!text ][\c!state=\p_text
> ]}}\donothing
> \fi
> \edef\p_footer{\headparameter\c!footer}%
> \ifx\p_footer\empty \else
>
> \doifelselayouttextline\v!footer{\normalexpanded{\setuplayouttext[\v!footer][\c!state=\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
>
> ___________________________________________________________________________________
>
[-- Attachment #1.2: Type: text/html, Size: 2703 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-07-17 17:11 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-17 16:08 \definetext problem? Alan Bowen
2012-07-17 16:23 ` Wolfgang Schuster
2012-07-17 16:55 ` Alan Bowen
2012-07-17 16:59 ` Wolfgang Schuster
2012-07-17 17:11 ` Alan Bowen
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).