ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] figure libs
@ 2002-10-16  9:31 Jens-Uwe Morawski
  2002-10-16 11:30 ` Hans Hagen
  0 siblings, 1 reply; 6+ messages in thread
From: Jens-Uwe Morawski @ 2002-10-16  9:31 UTC (permalink / raw)



Ahoi,

i have some questions about figure libs:

1) i can only access figures from a figure-lib if the
   file is in the same directory as the document that
   should embed the figures.
   For documents in different variants (screen, print)
   i would prefer that i can have the figure lib in the
   parent directory.

2) is the XML-file that describes the figure-lib really
   required to access the figures in the figure-lib:

  Suppose the following entry:
<figure>
	<file>Figures.1</file>
	<label>fig-one</label>
	<copyright>Jens-Uwe Morawski</copyright>
	<comment>first firgure</comment>
</figure>

  that can be accessed with \externalfigure[fig-one]

 The page of this figure can be found via:
 a) looking for the object that declares the destination
    "about: fig-one":
6 0 obj <<
/Type /Annot
/Subtype /Link /Border [0 0 0] /A <</S /GoTo /D (about: fig-one)>>
/Rect [0 0 333.797 108.797]
>> endobj

 b) looking for the /Page object that uses this object in /Annots:
8 0 obj <<
/Type /Page
/Contents 9 0 R
/Resources 7 0 R
/MediaBox [0 0 333.797 108.797]
/TrimBox [0.0 0.0 333.79617 108.7967]/CropBox [0.0 0.0 333.79617 108.7967]
/Parent 12 0 R
/Annots [ 6 0 R ]

 c) find out at which position this page is declared in the
    /Pages dictionary:
12 0 obj <<
/Type /Pages
/Count 5
/Kids [8 0 R 17 0 R 29 0 R 56 0 R 68 0 R]
>> endobj

Maybe this could be done once for all "about:" destinations
for every \usefigurebase[...]. Thus only the figure-lib-pdf
is required.

Btw, while looking in the PDF-file i found:
86 0 obj <<
/Type /Catalog
/Pages 12 0 R
/Names 85 0 R
/OpenAction <</S /GoTo /D (page:2)>>/PageMode /UseNone\relax 
/PTEX.Fullbanner (This is pdfTeX, Version 3.14159-1.00b-pretest-20020211)
>> endobj

The \relax after the page-mode looks very TeXish. Is this correct?

Thanks,
  Jens
_______________________________________________
ntg-context mailing list
ntg-context@ref.ntg.nl
http://ref.ntg.nl/mailman/listinfo/ntg-context


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2002-10-16 19:55 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-16  9:31 [NTG-context] figure libs Jens-Uwe Morawski
2002-10-16 11:30 ` Hans Hagen
2002-10-16 13:44   ` Jens-Uwe Morawski
2002-10-16 15:43     ` Hans Hagen
2002-10-16 19:55       ` Jens-Uwe Morawski
2002-10-16 13:55   ` Bruce D'Arcus

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).