ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Charles P. Schaum" <verbo.solo@sbcglobal.net>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: hiding content
Date: Thu, 24 Jul 2008 10:26:15 -0500	[thread overview]
Message-ID: <1216913175.19133.20.camel@elbereth> (raw)
In-Reply-To: <326847810807240621s33ee5555gc4e6024e00528cd2@mail.gmail.com>

Why not, if all else fails, do a run of the completed matter to see what
the pagination would be, then do something like:

\newif\ifhidden

% Uncomment this if you want to hide content.
% \hiddentrue

\ifhidden
 % . . . preferrably use ConTeXt-friendly pagination
 % commands; this was taken from a plain old TeX file.
 % Shove in white space or \phantom{} boxes with dummy text of
 % equivalent length; ConTeXt likes its own \blank{} macro.
 % Raw TeX stuff can mess up pagination and spacing.
 %
 % I'm not sure if a \vbox to <dimen> {} works well or not here.
 % Just try a few ways to see.
\else
 % Put all your usual content here.
\fi

It's a kludge, but it should work in a pinch.

Charles

On Thu, 2008-07-24 at 15:21 +0200, Alan Stone wrote:
> >And you want to hide part of the content for ...
> 
> Enabling people to view the pdf preview version (limited, containing
> excerpts) before acquiring the full version.
> 
> Alan
> 
> On Thu, Jul 24, 2008 at 3:03 PM, Wolfgang Schuster
> <schuster.wolfgang@googlemail.com> wrote:
>         On Thu, Jul 24, 2008 at 2:34 PM, Alan Stone
>         <software.list.1es9s@gmail.com> wrote:
>         
>         > I understood from this post
>         >
>         http://archive.contextgarden.net/message/20050708.105010.33153980.en.html
>         > there were issues with the different solutions offered.
>         
>         
>         You should give it a try, a few of the points concerned
>         security reasons and
>         old version of Acrobat Reader, there is also a wiki page about
>         this topic.
>         
>         http://wiki.contextgarden.net/Hiding_Content
>         
>         >>Do you want to hide only text or also figures, tables,
>         formulae etc.
>         >
>         > For the time being there's only text, however in a later
>         stage there will be
>         > figures/pics too.
>         >
>         >>do you need a solution that
>         >>will work also over page breaks.
>         >
>         > Yes, to make a preview version of a book.
>         
>         
>         And you want to hide part of the content for ...
>         
>         
>         
>         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  : https://foundry.supelec.fr/projects/contextrev/
>         wiki     : http://contextgarden.net
>         ___________________________________________________________________________________
>         
> 
> 
> ___________________________________________________________________________________
> 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  : https://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________

___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


  parent reply	other threads:[~2008-07-24 15:26 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-24 10:51 Alan Stone
2008-07-24 11:39 ` Wolfgang Schuster
2008-07-24 12:34 ` Alan Stone
2008-07-24 13:03   ` Wolfgang Schuster
2008-07-24 13:21     ` Alan Stone
2008-07-24 13:32       ` Wolfgang Schuster
2008-07-24 19:22         ` Mojca Miklavec
2008-07-24 19:43         ` Peter Münster
2008-07-25  6:29           ` Wolfgang Schuster
2008-07-25 11:53           ` Wolfgang Schuster
2008-07-25 14:40             ` Alan Stone
2008-07-27 12:26           ` Taco Hoekwater
2008-07-24 15:26       ` Charles P. Schaum [this message]
2008-07-24 17:47         ` Alan Stone
2008-07-24 18:02           ` Alan Stone
2008-07-25  7:46         ` Alan Stone

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=1216913175.19133.20.camel@elbereth \
    --to=verbo.solo@sbcglobal.net \
    --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).