![](https://secure.gravatar.com/avatar/516973c78d7ff05105bd89fa0bc1d57d.jpg?s=120&d=mm&r=g)
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 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
At 02:30 PM 2/19/2003 +0900, you wrote:
While I'm testing some examples in details.pdf (http://www.pragma-ade.com/temp/details.pdf), a curious thing happened.
using --once here is a bit tricky, multi pass info may itself lead to more multipass info, so omitting a tuo generation can be a problem; just compare the tuo files between jobs and you'll notice this effect; it's the same with some pdf features: pass one determines the need for resources, pass two now knows that they need to be added, while the thord pass know the way they are referenced. keep in mind that backgrounds are still a bit evolving; actually, the last few days i patched some of the mp code; i will upload a new version later Hams
participants (2)
-
Cho, Jin-Hwan
-
Hans Hagen