ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Problems with getmarking
@ 2010-11-22 14:47 luigi scarso
  2010-11-23 10:14 ` luigi scarso
  0 siblings, 1 reply; 7+ messages in thread
From: luigi scarso @ 2010-11-22 14:47 UTC (permalink / raw)
  To: mailing list for ConTeXt users

With this code mkii and mkiv make differents pdf :
mkiv doesn't show the header after the second \part.
Perhaps \getmarking is obsolete ?

\setuppagenumbering[way=bytext,partnumber=no,location={margin},alternative=doublesided]

\setupcolors[state=start]
\setupinteraction[state=start]

\setupbodyfont[ss]
\setuppapersize[A4][A4]



\setuphead[part]
          [placehead=yes,
 	  page=right]
\setuphead[chapter]
          [placehead=yes,page=yes,before=,after=,]
\setuphead[section]
          [placehead=yes,page=yes,before=,after=,]
\setuphead[subsection]
          [placehead=yes,before=,after=,]


\def\ChapterId#1{\setupheadertexts[text]
[{}]
[{\getmarking[chapter][first]---\getmarking[section][first]}]
[{\getmarking[chapter][first]---\getmarking[section][first]}]
[{}]}


\starttext
\part{Part}
\chapter{Chapter}
\ChapterId{}
\section{Section}
foo

\chapter{Chapter}
\ChapterId{}
\section{Section}
goo

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\part{Part}
\chapter{Chapter}
\ChapterId{}
\section{Section}
foo

\chapter{Chapter}
\ChapterId{}
\section{Section}
goo


\stoptext




-- 
luigi
___________________________________________________________________________________
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] 7+ messages in thread

end of thread, other threads:[~2010-11-26 16:15 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-22 14:47 Problems with getmarking luigi scarso
2010-11-23 10:14 ` luigi scarso
2010-11-23 11:32   ` Wolfgang Schuster
2010-11-23 12:29     ` luigi scarso
2010-11-26 10:49       ` luigi scarso
2010-11-26 16:11     ` Hans Hagen
2010-11-26 16:15       ` luigi scarso

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).