ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Pablo Rodriguez <oinos@gmx.es>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Hidden chapter header? ... was: Change counter of chapters
Date: Sat, 18 Apr 2015 09:23:51 +0200	[thread overview]
Message-ID: <55320687.1040102@gmx.es> (raw)
In-Reply-To: <NMZLKQ$9734DE4C725703A1FEA40D05B74CBE5D@gyza.cz>

On 04/18/2015 07:22 AM, Jaroslav Hajtmar wrote:
> Hello ConTeXist
> My last Subject contribution maybe  so misleading that it nobody react.
> I'll try therefore to bring different view:
> Exist any possibility of creating some kind of hidden chapters
> (sections, subsections)?  
> The command would increase the counter of chapters (sections,
> subsections). Maybe it seems as rape of ConTeXt, but in certain moments
> this option would help me. 
> In my case it is the integration of practical part of project (worked in
> ConTeXt) into Word project:-(...
> 
> For example I need to start writing any text from 53 page and such from
> the 5th chapter (or section). 
> It is possible in a similar way as I set the start page number set also
> the counter of chapters (sections)?

Hi Jaroslav,

adding the following commands before \startext does the work:

  \definehead[hiddenchapter][chapter]
  \setuphead[hiddenchapter][placehead=no]

But there is a proper way to set the chapter number:

  \setupheadnumber[chapter][56] % +2 or -5 also accepted

By the way, going from ConTeXt to Word you know you are on the road to
perdition, don’t you? ;-)

I hope it helps,


Pablo



> Here is my minimal example:
> 
> \starttext
> %\hiddenchapter{Fictive chapter}
> %\hiddenchapter{Fictive chapter}
> %\hiddenchapter{Fictive chapter}
> %\hiddenchapter{Fictive chapter}
> 
> \page
> 
> \setcounter[userpage][53]
> 
> \chapter{Fifth (actually first) nonfictive chapter}
> 
> blablabla
> 
> \stoptext


-- 
http://www.ousia.tk
___________________________________________________________________________________
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
___________________________________________________________________________________

  reply	other threads:[~2015-04-18  7:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-18  5:22 Jaroslav Hajtmar
2015-04-18  7:23 ` Pablo Rodriguez [this message]
2015-04-18 10:34   ` Jaroslav Hajtmar
2015-04-18 16:18     ` Pablo Rodriguez

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=55320687.1040102@gmx.es \
    --to=oinos@gmx.es \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).