ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Testing a sample in details.pdf
@ 2003-02-19  5:30 Cho, Jin-Hwan
  2003-02-19 11:02 ` Hans Hagen
  0 siblings, 1 reply; 2+ messages in thread
From: Cho, Jin-Hwan @ 2003-02-19  5:30 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 2149 bytes --]

While I'm testing some examples in details.pdf (http://www.pragma-ade.com/temp/details.pdf),
a curious thing happened.

Let me assume that I have the following test file (test.tex) which was extracted
from details.pdf (p.13) I generated two PDF files, test-1.pdf and test-2.pdf,
by the following ways, respectively.

1. The first way

Just ran "texexec --pdf test", and got the attached PDF file, test-1.pdf.
(Please see the attached file test-1.log too.)

2. The second way (step by step)

   (a) "texexec --pdf --once test"
   (b) "texutil --references test"
   (c) "texexec --pdf --once test"
   (d) "mpost mpgraph"
   (e) "texexec --pdf --once test"

The curious thing was that the two PDF files were different, especially
the embedded MetaPost graphics were different. In my opinion, test-2.pdf
seemed to be the right result.

=== BEGIN test.tex ===

\setupcolors[state=start]

\definecolor[infogray][darkgray]
\definecolor[textgray][lightgray]

\definetextbackground[intro]
  [backgroundcolor=infogray,
   backgroundoffset=.25cm,
   offset=.5cm,
   frame=off,
   location=paragraph,
   color=white]

\definetextbackground[subintro]
  [backgroundcolor=textgray,
   backgroundoffset=0pt,
   offset=0pt,
   frame=off,
   location=text,
   color=blue]

\starttext
\starttextbackground[intro]
A rather common way to draw attention to a passage, is to add
a background. In this chapter we will therefore discuss how
to enhance your document with \starttextbackground [subintro]
colorful areas that either or not follow the shape of your
paragraph. \stoptextbackground\ Be warned: this chapter has
so many backgrounds that you should consider wearing sunglasses.
\stoptextbackground
\stoptext

=== END test.tex ===

Best, ChoF.
-- 
  ***  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ***
  ^ ^  |  ChoF  :=  Jin-Hwan Cho  | *^ ^*
   o   |   chofchof@ktug.or.kr    | * o *
  ***  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ***
 *^ ^* |    Project Manager of    |  ^ ^
 * O * | DVIPDFMx and MiKTeX-KTUG |   O
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Research Fellow, School of Mathematics |
|   Korea Institute for Advanced Study   |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

[-- Attachment #2: test-1.pdf --]
[-- Type: application/pdf, Size: 8772 bytes --]

[-- Attachment #3: test-2.pdf --]
[-- Type: application/pdf, Size: 8776 bytes --]

[-- Attachment #4: test-1.log --]
[-- Type: application/x-unknown-content-type-txtfile, Size: 9246 bytes --]

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

end of thread, other threads:[~2003-02-19 11:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-19  5:30 Testing a sample in details.pdf Cho, Jin-Hwan
2003-02-19 11:02 ` Hans Hagen

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