From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/42726 Path: news.gmane.org!not-for-mail From: "Alan Stone" Newsgroups: gmane.comp.tex.context Subject: Re: hiding content Date: Thu, 24 Jul 2008 19:47:06 +0200 Message-ID: <326847810807241047k5a0290c7l263fd768a9330cbe@mail.gmail.com> References: <326847810807240351g5ad3fb5bs630f893ff3d73cc9@mail.gmail.com> <326847810807240534t3033b46bhc728e49c9402e8da@mail.gmail.com> <115224fb0807240603j6dd8a4e0rdf361e5b33d74c83@mail.gmail.com> <326847810807240621s33ee5555gc4e6024e00528cd2@mail.gmail.com> <1216913175.19133.20.camel@elbereth> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1380473097==" X-Trace: ger.gmane.org 1216921736 6171 80.91.229.12 (24 Jul 2008 17:48:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 24 Jul 2008 17:48:56 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Thu Jul 24 19:49:45 2008 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1KM4wh-0003zd-Mh for gctc-ntg-context-518@m.gmane.org; Thu, 24 Jul 2008 19:49:43 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5756C1FCEC; Thu, 24 Jul 2008 19:48:44 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 32461-04-3; Thu, 24 Jul 2008 19:48:04 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 70BAC1FCCA; Thu, 24 Jul 2008 19:47:51 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 498751FCCA for ; Thu, 24 Jul 2008 19:47:45 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 02026-01-2 for ; Thu, 24 Jul 2008 19:47:08 +0200 (CEST) Original-Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.185]) by ronja.ntg.nl (Postfix) with ESMTP id BB43C1FC74 for ; Thu, 24 Jul 2008 19:47:06 +0200 (CEST) Original-Received: by nf-out-0910.google.com with SMTP id c10so916828nfd.44 for ; Thu, 24 Jul 2008 10:47:06 -0700 (PDT) Original-Received: by 10.210.75.6 with SMTP id x6mr663559eba.120.1216921626166; Thu, 24 Jul 2008 10:47:06 -0700 (PDT) Original-Received: by 10.210.136.3 with HTTP; Thu, 24 Jul 2008 10:47:06 -0700 (PDT) In-Reply-To: <1216913175.19133.20.camel@elbereth> X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:42726 Archived-At: --===============1380473097== Content-Type: multipart/alternative; boundary="----=_Part_72973_12051667.1216921626149" ------=_Part_72973_12051667.1216921626149 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline What do you mean by "do a run of the completed matter to see what the pagination would be" ? Alan On Thu, Jul 24, 2008 at 5:26 PM, Charles P. Schaum wrote: > 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 {} 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 > > wrote: > > On Thu, Jul 24, 2008 at 2:34 PM, Alan Stone > > 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 > > ___________________________________________________________________________________ > ------=_Part_72973_12051667.1216921626149 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
What do you mean by "do a run of the completed matter to see what
the pagination would be" ?

Alan

On Thu, Jul 24, 2008 at 5:26 PM, Charles P. Schaum <verbo.solo@sbcglobal.net> wrote:
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
___________________________________________________________________________________

------=_Part_72973_12051667.1216921626149-- --===============1380473097== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============1380473097==--