ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* test on front/body/backmatter
@ 2017-07-14  8:42 Meer, Hans van der
  2017-07-14  8:54 ` Hans Hagen
  0 siblings, 1 reply; 2+ messages in thread
From: Meer, Hans van der @ 2017-07-14  8:42 UTC (permalink / raw)
  To: NTG ConTeXt

Is there a test usable in a macro to determine if one is inside frontmatter, bodymatter, backmatter?

Hans van der Meer




___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: test on front/body/backmatter
  2017-07-14  8:42 test on front/body/backmatter Meer, Hans van der
@ 2017-07-14  8:54 ` Hans Hagen
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2017-07-14  8:54 UTC (permalink / raw)
  To: ntg-context

On 7/14/2017 10:42 AM, Meer, Hans van der wrote:
> Is there a test usable in a macro to determine if one is inside frontmatter, bodymatter, backmatter?
\starttext

\startfrontmatter

     \doifelsemode{*frontpart}{yes}{no}
     \doifelsemode{*backpart} {yes}{no}

\stopfrontmatter

\startbackmatter

     \doifelsemode{*frontpart}{yes}{no}
     \doifelsemode{*backpart} {yes}{no}

\stopbackmatter

\stoptext



-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-07-14  8:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-14  8:42 test on front/body/backmatter Meer, Hans van der
2017-07-14  8:54 ` Hans Hagen

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