ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Jean-Philippe Rey <jean-philippe.rey@ecp.fr>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Placing arbitrary pdf bookmarks
Date: Sat, 22 Mar 2014 19:11:14 +0100	[thread overview]
Message-ID: <0C35D60C-4456-4244-BE1B-2A055A409317@ecp.fr> (raw)
In-Reply-To: <532DBAE6.5000701@gmx.es>

Hi Pablo,

Le 22 mars 2014 à 17:31, Pablo Rodriguez <oinos@gmx.es> a écrit :

> On 03/22/2014 04:35 PM, Jean-Philippe Rey wrote:
>> Hello all,
>> 
>> I am willing to use ConTeXt to produce a bunch of stickers. My
>> stickers are grouped into categories but I don't want any headers or
>> titles to interfere with the layout of the stickers, so I didn't use
>> \startchapter and the likes.
> 
> I think there is workaround for your case: not placing heads in document.

Very good hint, thank you. It works perfectly fine with MkII. With MkIV, although the head is not printed, some whitespace is added that disturbs the layout. I tried

	\setuphead[chapter,section][placehead=hidden]

and got rid of the spurious whitespace ... but also of the pdf bookmarks :-(

	\setuphead[chapter,section][placehead=no,page=no,before=,after=]

don't work either.

Here is an example to demonstrate the problem (again, it works fine with MkII, unfortunately I am using lua to compose my stickers).


 		\setupinteraction[state=start]
		\placebookmarks[chapter,section]
		\setuphead[chapter,section][placehead=no]
		\starttext
		
		\chapter{B1}
		\section{A1}
		
		Sticker 1
		
		Sticker 2
		
		\page
		
		Sticker 3
		
		\section{A2}
		
		Sticker 4
		
		\page
		\chapter{B2}
		
		Sticker 5
		
		\section{A3}
		
		Sticker 6
		
		\stoptext




-- 
Jean-Philippe Rey                 Professeur - École Centrale Paris
jean-philippe.rey@ecp.fr          92295 Châtenay-Malabry Cedex - France
Empreinte PGP : 807A 5B2C 69E4 D4B5 783A 428A 1B5E E83E 261B BF51

___________________________________________________________________________________
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:[~2014-03-22 18:11 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-22 15:35 Jean-Philippe Rey
2014-03-22 16:31 ` Pablo Rodriguez
2014-03-22 18:11   ` Jean-Philippe Rey [this message]
2014-03-22 19:00     ` Pablo Rodriguez
2014-03-22 21:07       ` Jean-Philippe Rey

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=0C35D60C-4456-4244-BE1B-2A055A409317@ecp.fr \
    --to=jean-philippe.rey@ecp.fr \
    --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).