ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* second problem
@ 2000-10-05 12:17 Denis B. Roegel
  2000-10-05 13:48 ` Tobias Burnus
  0 siblings, 1 reply; 7+ messages in thread
From: Denis B. Roegel @ 2000-10-05 12:17 UTC (permalink / raw)
  Cc: Denis B. Roegel

I am still using the example

\setupoutput[pdftex]
\starttext

\startMPpositiongraphic{mypos:line}
  path pa, pb, pab ; numeric na, nb;
  initialize_box(\MPpos{\MPvar{from}});
  na := nxy ; pa := llxy..lrxy..urxy..ulxy..cycle ;
  initialize_box(\MPpos{\MPvar{to}});
  nb := nxy ; pb := llxy..lrxy..urxy..ulxy..cycle ;
  if na=nb :
    pab := center pa -- center pb ;
    pab := pab cutbefore (pab intersectionpoint pa) ;
    pab := pab cutafter (pab intersectionpoint pb) ;
    pickup pencircle scaled 1pt;
    draw pab withcolor .625yellow;
    anchor_box(\MPanchor{\MPvar{from}});
  fi;
\stopMPpositiongraphic

\setMPpositiongraphic{X-1}{mypos:line}{to=X-2}
\setMPpositiongraphic{X-2}{mypos:line}{to=X-3}

In a previous section we saw that some \hpos {X-1} {words} were
\hpos {X-2} {circled} and connected by an \hpos {X-3} {arrow}.
As with most things in \CONTEXT, marking these words is separated
from declaring what to do with those words. 

\stoptext

When I launch cont-en, I immediately get an error with \pdflastxpos.
Is this because I have an old version of pdftex ?

Thanks,

Denis

This is pdfeTeX, Version 3.14159-13c-2.1 (Web2C 7.3)
(/usr/local/tex/texmf/pdftex/config/pdftex.cfg) (test2.tex

ConTeXt  ver: 2000.9.21  fmt: 2000.10.3  int: english  mes: english

language       : language en is active
system         : cont-new loaded
(/usr/local/tex/texmflocal/tex/context/base/cont-new.tex
systems        : beware: some patches loaded from cont-new.tex!
)
system         : cont-old loaded
(/usr/local/tex/texmflocal/tex/context/base/cont-old.tex
loading        : Context Old Macros
)
system         : cont-fil loaded
(/usr/local/tex/texmflocal/tex/context/base/cont-fil.tex
loading        : Context File Synonyms
)
bodyfont       : 12pt rm is loaded
language       : patterns 2-en-2 2-de-2 2-fr-2 2-nl-2 loaded
specials       : tex,postscript,rokicki loaded
specials       : tex,postscript,rokicki is reset
specials       : loading definition file tpd
(/usr/local/tex/texmflocal/tex/context/base/spec-tpd.tex
systems        : please update your pdfTeX binaries
specials       : loading definition file fdf
(/usr/local/tex/texmflocal/tex/context/base/spec-fdf.tex <unprotect 2>
<unprotect 3> <protect 3> <protect 2>)
specials       : fdf loaded
<unprotect 2> <protect 2>)
specials       : fdf,tpd loaded
systems        : begin file test2 at line 2
! Undefined control sequence.
<argument> ...io }{\noexpand \number \pdflastxpos 
                                                  }{\noexpand \number \pdfla...

\writeutilitycommand ...writeutility {c \string #1
                                                  }
\doTPDsetposition ...and \number \pdflastypos }#3}
                                                  }\pdfsavepos \doTPDsetposi...

\doonespecial ...\nextbox }{\number \dp \nextbox }
                                                  \relax 
\next1 #1,->\doonespecial {#1}
                              \doprocesscommaitem 
\doprocesscommalist ...item \gobbleoneargument #1,
                                                  ]\relax \global \advance \...
...
l.23 ...ction we saw that some \hpos {X-1} {words}
                                                   were
? 


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

* Re: second problem
  2000-10-05 12:17 second problem Denis B. Roegel
@ 2000-10-05 13:48 ` Tobias Burnus
  2000-10-05 18:37   ` Denis B. Roegel
  2000-10-07 21:42   ` Hans Hagen
  0 siblings, 2 replies; 7+ messages in thread
From: Tobias Burnus @ 2000-10-05 13:48 UTC (permalink / raw)


Salut Denis,

> I am still using the example
> \startMPpositiongraphic{mypos:line}
> \stopMPpositiongraphic
> \setMPpositiongraphic{X-1}{mypos:line}{to=X-2}
> \setMPpositiongraphic{X-2}{mypos:line}{to=X-3}
>
> When I launch cont-en, I immediately get an error with \pdflastxpos.
> Is this because I have an old version of pdftex ?
I think Han The Thanh added this positioning feature after 13c. Using
0.14g I have no problem with that file.
(This is not completely true: with shell_escape = f and no mpgraph.2
in this directory tex stops halfway and I have to create a .2 file
manually first [running `echo "end" | mpost mpgraph` was actually
enough].
I would like to see these problems disappearing since this makes batch
jobs impossible. The errormessage:
Randomizer initialized to 1112061263. [MP to PDF mpgraph.1]
! I can't find file `mpgraph.1'.
<to be read again>
[...]
Please type another input file name:)

Tobias


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

* Re: second problem
  2000-10-05 13:48 ` Tobias Burnus
@ 2000-10-05 18:37   ` Denis B. Roegel
  2000-10-15 22:58     ` Denis B. Roegel
  2000-10-07 21:42   ` Hans Hagen
  1 sibling, 1 reply; 7+ messages in thread
From: Denis B. Roegel @ 2000-10-05 18:37 UTC (permalink / raw)
  Cc: Denis B. Roegel, NTG-ConTeXt

Ok, I have now installed the TeXlive 5 distribution.
Things are going much better :-)

However, with the file below, I see only one circle,
around "arrow." 

Thanks again,

Denis

\starttext

\startMPpositiongraphic{mypos:circle}
  initialize_box(\MPpos{\MPvar{self}});
  path p; p:=llxy..lrxy..urxy..ulxy..cycle;
  pickup pencircle scaled 1pt;
  fill p withcolor .800white;
  draw p withcolor .625yellow;
  anchor_box(\MPanchor{\MPvar{self}});
\stopMPpositiongraphic

\startMPpositiongraphic{mypos:line}
  path pa, pb, pab ; numeric na, nb;
  initialize_box(\MPpos{\MPvar{from}});
  na := nxy ; pa := llxy..lrxy..urxy..ulxy..cycle ;
  initialize_box(\MPpos{\MPvar{to}});
  nb := nxy ; pb := llxy..lrxy..urxy..ulxy..cycle ;
  if na=nb :
    pab := center pa -- center pb ;
    pab := pab cutbefore (pab intersectionpoint pa) ;
    pab := pab cutafter (pab intersectionpoint pb) ;
    pickup pencircle scaled 1pt;
    draw pab withcolor .625yellow;
    anchor_box(\MPanchor{\MPvar{from}});
  fi;
\stopMPpositiongraphic

\setMPpositiongraphic{X-1}{mypos:circle}
\setMPpositiongraphic{X-2}{mypos:circle}
\setMPpositiongraphic{X-3}{mypos:circle}

\setMPpositiongraphic{X-1}{mypos:line}{to=X-2}
\setMPpositiongraphic{X-2}{mypos:line}{to=X-3}

In a previous section we saw that some \hpos {X-1} {words} were
\hpos {X-2} {circled} and connected by an \hpos {X-3} {arrow}.
As with most things in \CONTEXT, marking these words is separated
from declaring what to do with those words. 

\stoptext

=============================================================
russell test 1329 % texexec --pdf test2

 TeXExec 2.2 - ConTeXt / PRAGMA ADE 1997-2000

            executable : pdfetex
                format : cont-en
             inputfile : test2
                output : pdftex
             interface : en
          current mode : all
               TeX run : 1

This is pdfeTeX, Version 3.14159-14f-released-20000525-2.1 (Web2C 7.3.2x)
entering extended mode
(./test2.tex{/local/hugo/texlive5/texmf/pdftex/config/pdftex.cfg}

ConTeXt  ver: 2000.9.21  fmt: 2000.10.5  int: english  mes: english

language       : language en is active
system         : cont-new loaded
(/usr/local/tex/texmflocal/tex/context/base/cont-new.tex
systems        : beware: some patches loaded from cont-new.tex!
)
system         : cont-old loaded
(/usr/local/tex/texmflocal/tex/context/base/cont-old.tex
loading        : Context Old Macros
)
system         : cont-fil loaded
(/usr/local/tex/texmflocal/tex/context/base/cont-fil.tex
loading        : Context File Synonyms
)
bodyfont       : 12pt rm is loaded
language       : patterns 2-en-2 2-de-2 2-fr-2 2-nl-2 loaded
specials       : tex,postscript,rokicki loaded
system         : test2.top loaded
(./test2.top
specials       : tex,postscript,rokicki is reset
specials       : loading definition file tpd
(/usr/local/tex/texmflocal/tex/context/base/spec-tpd.tex <unprotect 2>
specials       : loading definition file fdf
(/usr/local/tex/texmflocal/tex/context/base/spec-fdf.tex <unprotect 3>
<unprotect 4> <protect 4> <protect 3>)
specials       : fdf loaded
<unprotect 3> <protect 3> <protect 2>)
specials       : fdf,tpd loaded
) (./test2.tuo) (./test2.tuo) (./test2.tuo) (./test2.tuo) (./test2.tuo)
(./test2.tuo) (./test2.tuo) (./test2.tuo) (./test2.tuo) (./test2.tuo)
(./test2.tuo) (./test2.tuo)
systems        : begin file test2 at line 2
Randomizer initialized to 1443408607.
figures        : dimensions of ./mpgraph.1 loaded from figurefile itself
[MP to PDF ./mpgraph.1] (./mpgraph.1)
figures        : dimensions of ./mpgraph.2 loaded from figurefile itself
[MP to PDF ./mpgraph.2] (./mpgraph.2)
figures        : dimensions of ./mpgraph.3 loaded from figurefile itself
[MP to PDF ./mpgraph.3] (./mpgraph.3) [1.1{/local/hugo/texlive5/texmf/pdftex/co
nfig/psfonts.map}{/local/hugo/texlive5/texmf/pdftex/config/lw35.map}{/local/hug
o/texlive5/texmf/pdftex/config/rawfonts.map}{/local/hugo/texlive5/texmf/dvips/c
spsfonts/csfontd.mapfile}]
systems        : end file test2 at line 43
[flush and process mpgraph.mp afterwards] )</local/hugo/texlive5/texmf/fonts/ty
pe1/bluesky/cm/cmr12.pfb>
Output written on test2.pdf (1 page, 9091 bytes).
Transcript written on test2.log.

              run time : 2 seconds
   generating graphics : metaposting mpgraph.mp

 TeXExec 2.2 - ConTeXt / PRAGMA ADE 1997-2000

              metapost : mpgraph
                format : metafun
This is MetaPost, Version 0.641 (Web2C 7.3.2x)
(mpgraph.mp [1] [2] [3] )
3 output files written: mpgraph.1 .. mpgraph.3
Transcript written on mpgraph.log.
  sorting and checking : running texutil

 TeXUtil 7.3 - ConTeXt / PRAGMA ADE 1992-2000

                action : processing commands, lists and registers 
                option : sorting IJ under Y 
                option : converting high ASCII values 
            input file : test2.tui 
           output file : test2.tuo 
       passed commands : 10 
         remapped keys : 0 
      register entries : 0 -> 0 entries 0 references 
       synonym entries : 0 -> 0 entries 
        embedded files : 1 
russell test 1330 %


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

* Re: second problem
  2000-10-05 13:48 ` Tobias Burnus
  2000-10-05 18:37   ` Denis B. Roegel
@ 2000-10-07 21:42   ` Hans Hagen
  1 sibling, 0 replies; 7+ messages in thread
From: Hans Hagen @ 2000-10-07 21:42 UTC (permalink / raw)
  Cc: Denis B. Roegel, NTG-ConTeXt

At 03:48 PM 10/5/00 +0200, Tobias Burnus wrote:
>Salut Denis,
>
>> I am still using the example
>> \startMPpositiongraphic{mypos:line}
>> \stopMPpositiongraphic
>> \setMPpositiongraphic{X-1}{mypos:line}{to=X-2}
>> \setMPpositiongraphic{X-2}{mypos:line}{to=X-3}
>>
>> When I launch cont-en, I immediately get an error with \pdflastxpos.
>> Is this because I have an old version of pdftex ?
>I think Han The Thanh added this positioning feature after 13c. Using
>0.14g I have no problem with that file.
>(This is not completely true: with shell_escape = f and no mpgraph.2
>in this directory tex stops halfway and I have to create a .2 file
>manually first [running `echo "end" | mpost mpgraph` was actually
>enough].
>I would like to see these problems disappearing since this makes batch
>jobs impossible. The errormessage:

You have to change (in cont-new.tex): 

\def\insertMPfile#1#2%
  {\ifx\pdfoutput\undefined
     \doinsertMPfile{#1}%
   \else\ifcase\pdfoutput
     \doinsertMPfile{#1}%
   \else
     \doiffileelse{#1}
       {\convertMPtoPDF{#1}{1}{1}}
       {\doinsertMPfile{#1}}%
   \fi\fi}

I hadn't tested it with the inbetween run alternative. This experimental
def of \insertMPfile is slightly faster that the old one since it directly
calls the converter, bypassing the fig mechanism, but the converted does no
file check [since it is supposed to work with latex too I cannot use low
level context file testing]

>Randomizer initialized to 1112061263. [MP to PDF mpgraph.1]
>! I can't find file `mpgraph.1'.
><to be read again>
>[...]
>Please type another input file name:)

There is, for those who want more speed the texexec --batch option, which
also baches mpost, 

Hans 
-------------------------------------------------------------------------
                                                  Hans Hagen | PRAGMA ADE
                      Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------


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

* Re: second problem
  2000-10-05 18:37   ` Denis B. Roegel
@ 2000-10-15 22:58     ` Denis B. Roegel
  2000-10-16  2:01       ` Mr. Wang Lei
  2000-10-16  8:18       ` Hans Hagen
  0 siblings, 2 replies; 7+ messages in thread
From: Denis B. Roegel @ 2000-10-15 22:58 UTC (permalink / raw)
  Cc: Tobias Burnus, Denis B. Roegel, NTG-ConTeXt

Hello,

I am not sure that there was a reply for the problem below,
so please forgive me the repost.

I have now the TeXlive 5 CD installed + context from September 21
I think.

There are two problems with the example below:

  1) I have to do 

     texexec --pdf --color test2

     *twice* in order to see a circle and lines

  2) I see only one circle and not three as I expected

The input file and the first execution log are given below.

Thanks,

Denis

\starttext

\startMPpositiongraphic{mypos:circle}
  initialize_box(\MPpos{\MPvar{self}});
  path p; p:=llxy..lrxy..urxy..ulxy..cycle;
  pickup pencircle scaled 1pt;
  fill p withcolor .800white;
  draw p withcolor .625yellow;
  anchor_box(\MPanchor{\MPvar{self}});
\stopMPpositiongraphic

\startMPpositiongraphic{mypos:line}
  path pa, pb, pab ; numeric na, nb;
  initialize_box(\MPpos{\MPvar{from}});
  na := nxy ; pa := llxy..lrxy..urxy..ulxy..cycle ;
  initialize_box(\MPpos{\MPvar{to}});
  nb := nxy ; pb := llxy..lrxy..urxy..ulxy..cycle ;
  if na=nb :
    pab := center pa -- center pb ;
    pab := pab cutbefore (pab intersectionpoint pa) ;
    pab := pab cutafter (pab intersectionpoint pb) ;
    pickup pencircle scaled 1pt;
    draw pab withcolor .625yellow;
    anchor_box(\MPanchor{\MPvar{from}});
  fi;
\stopMPpositiongraphic

\setMPpositiongraphic{X-1}{mypos:circle}
\setMPpositiongraphic{X-2}{mypos:circle}
\setMPpositiongraphic{X-3}{mypos:circle}

\setMPpositiongraphic{X-1}{mypos:line}{to=X-2}
\setMPpositiongraphic{X-2}{mypos:line}{to=X-3}

In a previous section we saw that some \hpos {X-1} {words} were
\hpos {X-2} {circled} and connected by an \hpos {X-3} {arrow}.
As with most things in \CONTEXT, marking these words is separated
from declaring what to do with those words. 

\stoptext

bar test5 256 % texexec --pdf --color test2

 TeXExec 2.2 - ConTeXt / PRAGMA ADE 1997-2000

            executable : pdfetex
                format : cont-en
             inputfile : test2
                output : pdftex
             interface : en
               options : color
          current mode : all
               TeX run : 1

This is pdfeTeX, Version 3.14159-14f-released-20000525-2.1 (Web2C 7.3.2x)
entering extended mode
(./test2.tex{/local/hugo/texlive5/texmf/pdftex/config/pdftex.cfg}

ConTeXt  ver: 2000.9.21  fmt: 2000.10.5  int: english  mes: english

language       : language en is active
system         : cont-new loaded
(/usr/local/tex/texmflocal/tex/context/base/cont-new.tex
systems        : beware: some patches loaded from cont-new.tex!
)
system         : cont-old loaded
(/usr/local/tex/texmflocal/tex/context/base/cont-old.tex
loading        : Context Old Macros
)
system         : cont-fil loaded
(/usr/local/tex/texmflocal/tex/context/base/cont-fil.tex
loading        : Context File Synonyms
)
bodyfont       : 12pt rm is loaded
language       : patterns 2-en-2 2-de-2 2-fr-2 2-nl-2 loaded
specials       : tex,postscript,rokicki loaded
system         : test2.top loaded
(./test2.top
specials       : tex,postscript,rokicki is reset
specials       : loading definition file tpd
(/usr/local/tex/texmflocal/tex/context/base/spec-tpd.tex <unprotect 2>
specials       : loading definition file fdf
(/usr/local/tex/texmflocal/tex/context/base/spec-fdf.tex <unprotect 3>
<unprotect 4> <protect 4> <protect 3>)
specials       : fdf loaded
<unprotect 3> <protect 3> <protect 2>)
specials       : fdf,tpd loaded
color          : rgb color space is supported
color          : cmyk color space is supported
color          : system rgb is global activated
)
systems        : begin file test2 at line 1
Randomizer initialized to 72518374.
figures        : figure mpgraph can not be found
figures        : figure mpgraph can not be found
figures        : figure mpgraph can not be found
[1.1{/local/hugo/texlive5/texmf/pdftex/config/psfonts.map}{/local/hugo/texlive5
/texmf/pdftex/config/lw35.map}{/local/hugo/texlive5/texmf/pdftex/config/rawfont
s.map}{/local/hugo/texlive5/texmf/dvips/cspsfonts/csfontd.mapfile}]
systems        : end file test2 at line 42
[flush and process mpgraph.mp afterwards] )</local/hugo/texlive5/texmf/fonts/ty
pe1/bluesky/cm/cmtt10.pfb></local/hugo/texlive5/texmf/fonts/type1/bluesky/cm/cm
r12.pfb>
Output written on test2.pdf (1 page, 15437 bytes).
Transcript written on test2.log.

              run time : 2 seconds
   generating graphics : metaposting mpgraph.mp

 TeXExec 2.2 - ConTeXt / PRAGMA ADE 1997-2000

              metapost : mpgraph
                format : metafun
This is MetaPost, Version 0.641 (Web2C 7.3.2x)
(mpgraph.mp [1] [2] [3] )
3 output files written: mpgraph.1 .. mpgraph.3
Transcript written on mpgraph.log.
  sorting and checking : running texutil

 TeXUtil 7.3 - ConTeXt / PRAGMA ADE 1992-2000

                action : processing commands, lists and registers 
                option : sorting IJ under Y 
                option : converting high ASCII values 
            input file : test2.tui 
           output file : test2.tuo 
       passed commands : 10 
         remapped keys : 0 
      register entries : 0 -> 0 entries 0 references 
       synonym entries : 0 -> 0 entries 
        embedded files : 1 

 utility file analysis : another run needed
               TeX run : 2

This is pdfeTeX, Version 3.14159-14f-released-20000525-2.1 (Web2C 7.3.2x)
entering extended mode
(./test2.tex{/local/hugo/texlive5/texmf/pdftex/config/pdftex.cfg}

ConTeXt  ver: 2000.9.21  fmt: 2000.10.5  int: english  mes: english

language       : language en is active
system         : cont-new loaded
(/usr/local/tex/texmflocal/tex/context/base/cont-new.tex
systems        : beware: some patches loaded from cont-new.tex!
)
system         : cont-old loaded
(/usr/local/tex/texmflocal/tex/context/base/cont-old.tex
loading        : Context Old Macros
)
system         : cont-fil loaded
(/usr/local/tex/texmflocal/tex/context/base/cont-fil.tex
loading        : Context File Synonyms
)
bodyfont       : 12pt rm is loaded
language       : patterns 2-en-2 2-de-2 2-fr-2 2-nl-2 loaded
specials       : tex,postscript,rokicki loaded
system         : test2.top loaded
(./test2.top
specials       : tex,postscript,rokicki is reset
specials       : loading definition file tpd
(/usr/local/tex/texmflocal/tex/context/base/spec-tpd.tex <unprotect 2>
specials       : loading definition file fdf
(/usr/local/tex/texmflocal/tex/context/base/spec-fdf.tex <unprotect 3>
<unprotect 4> <protect 4> <protect 3>)
specials       : fdf loaded
<unprotect 3> <protect 3> <protect 2>)
specials       : fdf,tpd loaded
color          : rgb color space is supported
color          : cmyk color space is supported
color          : system rgb is global activated
) (./test2.tuo) (./test2.tuo) (./test2.tuo) (./test2.tuo) (./test2.tuo)
(./test2.tuo) (./test2.tuo) (./test2.tuo) (./test2.tuo) (./test2.tuo)
(./test2.tuo) (./test2.tuo)
systems        : begin file test2 at line 1
Randomizer initialized to 72518374.
figures        : dimensions of ./mpgraph.1 loaded from figurefile itself
[MP to PDF ./mpgraph.1] (./mpgraph.1)
figures        : dimensions of ./mpgraph.2 loaded from figurefile itself
[MP to PDF ./mpgraph.2] (./mpgraph.2)
figures        : dimensions of ./mpgraph.3 loaded from figurefile itself
[MP to PDF ./mpgraph.3] (./mpgraph.3) [1.1{/local/hugo/texlive5/texmf/pdftex/co
nfig/psfonts.map}{/local/hugo/texlive5/texmf/pdftex/config/lw35.map}{/local/hug
o/texlive5/texmf/pdftex/config/rawfonts.map}{/local/hugo/texlive5/texmf/dvips/c
spsfonts/csfontd.mapfile}]
systems        : end file test2 at line 42
[flush and process mpgraph.mp afterwards] )</local/hugo/texlive5/texmf/fonts/ty
pe1/bluesky/cm/cmr12.pfb>
Output written on test2.pdf (1 page, 8945 bytes).
Transcript written on test2.log.

              run time : 2 seconds
   generating graphics : metaposting mpgraph.mp

 TeXExec 2.2 - ConTeXt / PRAGMA ADE 1997-2000

              metapost : mpgraph
                format : metafun
This is MetaPost, Version 0.641 (Web2C 7.3.2x)
(mpgraph.mp [1] [2] [3] )
3 output files written: mpgraph.1 .. mpgraph.3
Transcript written on mpgraph.log.
  sorting and checking : running texutil

 TeXUtil 7.3 - ConTeXt / PRAGMA ADE 1992-2000

                action : processing commands, lists and registers 
                option : sorting IJ under Y 
                option : converting high ASCII values 
            input file : test2.tui 
           output file : test2.tuo 
       passed commands : 10 
         remapped keys : 0 
      register entries : 0 -> 0 entries 0 references 
       synonym entries : 0 -> 0 entries 
        embedded files : 1 
bar test5 257 %


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

* Re: second problem
  2000-10-15 22:58     ` Denis B. Roegel
@ 2000-10-16  2:01       ` Mr. Wang Lei
  2000-10-16  8:18       ` Hans Hagen
  1 sibling, 0 replies; 7+ messages in thread
From: Mr. Wang Lei @ 2000-10-16  2:01 UTC (permalink / raw)
  Cc: Tobias Burnus, NTG-ConTeXt

On Mon, 16 Oct 2000, Denis B. Roegel wrote:

I use the way introduced in metafun document and it works.
Although the line seems not smoothly. 

\startpositionoverly{backgraphics} 
> \setMPpositiongraphic{X-1}{mypos:circle}
> \setMPpositiongraphic{X-2}{mypos:circle}
> \setMPpositiongraphic{X-3}{mypos:circle}
\stoppositionoverlay
\startpositionoverlay{foregraphics}
> \setMPpositiongraphic{X-1}{mypos:line}{to=X-2}
> \setMPpositiongraphic{X-2}{mypos:line}{to=X-3}
\stoppositionoverlay

\defineoverlay [foregraphics] [\positionoverlay{foregraphics}]
\defineoverlay [backgraphics] [\positionoverlay{backgraphics}]

\setupbackgrounds
    [page]
    [background={backgraphics,foreground,foregraphics}]

Wang

------------------------------------------------------------------------
Mr. Wang Lei                      Phone: 86-10-62541687 
Institute of Applied Mathematics  Email: lwang@amath8.amt.ac.cn
Chinese Academy of Science        Address: P.O.Box 2734, Beijing, 100080  
------------------------------------------------------------------------                                                 


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

* Re: second problem
  2000-10-15 22:58     ` Denis B. Roegel
  2000-10-16  2:01       ` Mr. Wang Lei
@ 2000-10-16  8:18       ` Hans Hagen
  1 sibling, 0 replies; 7+ messages in thread
From: Hans Hagen @ 2000-10-16  8:18 UTC (permalink / raw)
  Cc: NTG-ConTeXt

At 12:58 AM 10/16/00 +0200, Denis B. Roegel wrote:
>Hello,
>
>I am not sure that there was a reply for the problem below,
>so please forgive me the repost.
>
>I have now the TeXlive 5 CD installed + context from September 21
>I think.
>
>There are two problems with the example below:
>
>  1) I have to do 
>
>     texexec --pdf --color test2
>
>     *twice* in order to see a circle and lines

You probably don't generate the graphic at runtime [write18] so indeed you
need an extra run then. If you generate them runtime, youi get them in one
run. 

Hans
-------------------------------------------------------------------------
                                                  Hans Hagen | PRAGMA ADE
                      Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------


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

end of thread, other threads:[~2000-10-16  8:18 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-10-05 12:17 second problem Denis B. Roegel
2000-10-05 13:48 ` Tobias Burnus
2000-10-05 18:37   ` Denis B. Roegel
2000-10-15 22:58     ` Denis B. Roegel
2000-10-16  2:01       ` Mr. Wang Lei
2000-10-16  8:18       ` Hans Hagen
2000-10-07 21:42   ` 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).