ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Cc: Context List <ntg-context@ntg.nl>
Subject: Re: Splitting documents
Date: Tue, 22 Jun 1999 12:48:12 +0200	[thread overview]
Message-ID: <376F69EC.29CE957D@wxs.nl> (raw)
In-Reply-To: <Pine.SGI.4.04.9906221033350.98828-100000@urizen>

Matthew Baker wrote:

> Is it possible to split documents into several parts AND keep links
> working?  I guess that using texexec's --pages option will break links.
> The idea is to put one page per file of 5 pages per file or something so
> that users don't have to download 10Mb when viewing something online.

When you optimize a file first (using acrobat exchange) only the
relevant part of the file is fetched, so there you will not gain so
much, especially because when skipping to another subdoc all fonts
(probably another subset) will be downloaded.  

One way of speeding up as well as bringing down file size is saying: 

 \setupinteraction [page=yes]

because from that moment no named destinations will be used but page
ones (which is btw one reason why context can produce pdf with huge
amounts of links without stressing the viewer). 

Splitting up is kind of tricky, because all refs automatically must
become file based ones and page refs should be recalculated. Given the
way context is set up, I only have to adapt a few macros to handle this
and for convenience texexec would indeed handle the splitting (something
like: split this up in 10 page documents). Again, not that difficult,
because the ingredients are there already.

I'll think it over -)

Another approach is to split up a document in logical entyties from the
start, using cross document references, 

\useexternaldocument[explanation][doc-21]

... \in{figure}[explanation::reference] ... 

etc etc. Cross document referencing *is* already part of context,
including cross document reference checking.   

Hans

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.nl
-----------------------------------------------------------------


      reply	other threads:[~1999-06-22 10:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-06-22  8:40 Matthew Baker
1999-06-22 10:48 ` Hans Hagen [this message]

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=376F69EC.29CE957D@wxs.nl \
    --to=pragma@wxs.nl \
    --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).