ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: thelabel problem
@ 2012-05-28 18:38 Alfredo Catalina
  0 siblings, 0 replies; 16+ messages in thread
From: Alfredo Catalina @ 2012-05-28 18:38 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 1348 bytes --]

I tried your code but I got an error. No idea of what is happening. Thanks.

--------------

! terminal: >> picture
! Isolated expression.
<to be read again>
                   ;
<*> ...3u yscaled 60.09u shifted (69.85u,20.30u) ;
                                                   ;
.
system          > tex > error on line 17 in file kk.tex: terminal: >>
picture
! Isolated expression.
<to be read again>
                   ;
<*> ...3u yscaled 60.09u shifted (69.85u,20.30u) ;
                                                   ;
 ...
 7     numeric u;
 8     u:=1;
 9     textX:=87.51u;
10     textY:=96.31u;
11     pic:=thelabel.urt(btex {Test} etex scaled 1.00,(0,0));
12     draw pic shifted (textX, textY);
13     externalfigure "mill.png" xscaled 80.13u yscaled 60.09u shifted
14     (69.85u,20.30u) ;
15     \stopuseMPgraphic
16
17 >>  \useMPgraphic{gh}
18
19     \stoptext
20
<inserted text> ...re.mp ; fi ; ;;;;]===], false)}

\processMPgraphic ...e ;\!!es , \MPaskedfigure )}}
                                                  \egroup \placeMPgraphic
\d...
\handleuseMPgraphic ...hics \processMPgraphic {#3}
                                                  \endgroup
\douseMPgraphic ...{\@@MPG \currentMPgraphicname }
                                                  \empty \endMPgraphicgroup
<to be read again>

l.17 \useMPgraphic{gh}

[-- Attachment #1.2: Type: text/html, Size: 1744 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 16+ messages in thread
* Re: thelabel problem
@ 2012-05-28 18:50 Alfredo Catalina
  2012-05-28 18:54 ` Alfredo Catalina
  0 siblings, 1 reply; 16+ messages in thread
From: Alfredo Catalina @ 2012-05-28 18:50 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 253 bytes --]

I checked that I have

shell_escape = t
shell_escape.context          = t
shell_escape_commands.context = mtxrun,luatools,texmfstart,texexec,mpost

in C:\context\tex\texmf\web2c\texmf.cnf

Please find attached the file log (kk.log).

Thanks in advance.

[-- Attachment #1.2: Type: text/html, Size: 366 bytes --]

[-- Attachment #2: kk.log --]
[-- Type: application/octet-stream, Size: 4885 bytes --]

(kk.tex

ConTeXt  ver: 2011.05.18 18:04 MKIV  fmt: 2012.5.28  int: english/english

system          > cont-new.mkiv loaded
(C:/context/tex/texmf-context/tex/context/base/cont-new.mkiv
system          > beware: some patches loaded from cont-new.mkiv
)
system          > kk.top loaded
system          > options > begin of optionfile
system          > options >
system          > options > % runtime options files (command line driven)
system          > options > \unprotect
system          > options > % feedback and basic job control
system          > options > % handy for special styles
system          > options > \startluacode
system          > options > document = document or { }
system          > options > document.arguments={
system          > options >  ["autopdf"]=true,
system          > options > }
system          > options > document.files={
system          > options >  "kk.tex",
system          > options > }
system          > options > \stopluacode
system          > options > % process info
system          > options > \setupsystem[inputfile=kk.tex]
system          > options > \setupsystem[\c!n=1,\c!m=1]
system          > options > % modes
system          > options > % options (not that important)
system          > options > \startsetups *runtime:options
system          > options > \stopsetups
system          > options > % styles and modules
system          > options > \startsetups *runtime:modules
system          > options > \stopsetups
system          > options > % done
system          > options > \protect \endinput
system          > options >
system          > options > end of optionfile
(kk.top)
fonts           > latin modern fonts are not preloaded
languages       > language en is active
{C:/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
fonts           > preloading latin modern fonts (second stage)
(C:/context/tex/texmf-context/tex/context/base/type-siz.mkiv) (C:/context/tex/texmf-context/tex/context/base/type-otf.mkiv){C:/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{C:/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map}
fonts           > virtual math > unable to resolve name mapsfromchar
fonts           > fallback modern rm 12pt is loaded
system          > begin file kk.tex at line 1
metapost        > initializing instance 'metafun' using format 'metafun'
metapost        > loading 'metafun.mp' (experimental metapost version two)
! terminal: >> picture
! Isolated expression.
<to be read again> 
                   ;
<*> ...3u yscaled 60.09u shifted (69.85u,20.30u) ;
                                                   ;

.

system          > tex > error on line 17 in file kk.tex: terminal: >> picture
! Isolated expression.
<to be read again> 
                   ;
<*> ...3u yscaled 60.09u shifted (69.85u,20.30u) ;
                                                   ;

 ...

 7     numeric u;
 8     u:=1;
 9     textX:=87.51u;
10     textY:=96.31u;
11     pic:=thelabel.urt(btex {Test} etex scaled 1.00,(0,0));
12     draw pic shifted (textX, textY);
13     externalfigure "mill.png" xscaled 80.13u yscaled 60.09u shifted
14     (69.85u,20.30u) ;
15     \stopuseMPgraphic
16     
17 >>  \useMPgraphic{gh}
18     
19     \stoptext
20     

<inserted text> ...re.mp ; fi ; ;;;;]===], false)}
                                                  
\processMPgraphic ...e ;\!!es , \MPaskedfigure )}}
                                                  \egroup \placeMPgraphic \d...
\handleuseMPgraphic ...hics \processMPgraphic {#3}
                                                  \endgroup 
\douseMPgraphic ...{\@@MPG \currentMPgraphicname }
                                                  \empty \endMPgraphicgroup 
<to be read again> 
                    
l.17 \useMPgraphic{gh}
                      
? 
! Emergency stop.

system          > tex > error on line 17 in file kk.tex: Emergency stop ...

 7     numeric u;
 8     u:=1;
 9     textX:=87.51u;
10     textY:=96.31u;
11     pic:=thelabel.urt(btex {Test} etex scaled 1.00,(0,0));
12     draw pic shifted (textX, textY);
13     externalfigure "mill.png" xscaled 80.13u yscaled 60.09u shifted
14     (69.85u,20.30u) ;
15     \stopuseMPgraphic
16     
17 >>  \useMPgraphic{gh}
18     
19     \stoptext
20     

<inserted text> ...re.mp ; fi ; ;;;;]===], false)}
                                                  
\processMPgraphic ...e ;\!!es , \MPaskedfigure )}}
                                                  \egroup \placeMPgraphic \d...
\handleuseMPgraphic ...hics \processMPgraphic {#3}
                                                  \endgroup 
\douseMPgraphic ...{\@@MPG \currentMPgraphicname }
                                                  \empty \endMPgraphicgroup 
<to be read again> 
                    
l.17 \useMPgraphic{gh}
                      
End of file on the terminal!

!  ==> Fatal error occurred, no output PDF file produced!

[-- Attachment #3: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 16+ messages in thread
* thelabel problem
@ 2012-05-28 12:43 Alfredo Catalina
  2012-05-28 12:51 ` luigi scarso
  2012-05-28 13:35 ` Alfredo Catalina
  0 siblings, 2 replies; 16+ messages in thread
From: Alfredo Catalina @ 2012-05-28 12:43 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 1312 bytes --]

I installed ConTeXt in 2009 in my laptop and wrote some documents. Now I
have installed ConTeXt in other computer and tried to process some of those
documents but it doesn't work.

It looks that there is something wrong with Metapost/Metafun. I have tried
a simple program like

\starttext

Testing

\startuseMPgraphic{gh}
draw thelabel.rt("the right way",a) withcolor .625red ;
\stopuseMPgraphic

\useMPgraphic{gh}

\stoptext

Then I get:

system          > begin file kk2.tex at line 1
metapost        > initializing instance 'metafun' using format 'metafun'
metapost        > loading 'metafun.mp' (experimental metapost version two)
! terminal: >> a
>> (3,0)
! Not implemented: (unknown numeric)+(pair).
<to be read again>
                   -
thelabel->...((EXPR4)+labeloffset*laboff(SUFFIX2)-

(labxf(SUFFIX2)*lrcorner.p...
<*>  draw thelabel.rt("the right way",a)
                                         withcolor .625red ; ;
.
system          > tex > error on line 10 in file kk2.tex: terminal: >> a
>> (3,0)
! Not implemented: (unknown numeric)+(pair).
<to be read again>
                   -
thelabel->...((EXPR4)+labeloffset*laboff(SUFFIX2)-

(labxf(SUFFIX2)*lrcorner.p...
<*>  draw thelabel.rt("the right way",a)
                                         withcolor .625red ; ;


Any ideas? Thank you.

[-- Attachment #1.2: Type: text/html, Size: 1919 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2012-05-28 21:16 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-28 18:38 thelabel problem Alfredo Catalina
  -- strict thread matches above, loose matches on Subject: below --
2012-05-28 18:50 Alfredo Catalina
2012-05-28 18:54 ` Alfredo Catalina
2012-05-28 19:06   ` luigi scarso
2012-05-28 19:16     ` luigi scarso
2012-05-28 19:20   ` Alfredo Catalina
     [not found]     ` <CAG5iGsAr=AYGbwcn0osdEhCoQCAJ6ynXCEEQua_Cs6dVWfL+EQ@mail.gmail.com>
2012-05-28 21:16       ` Alfredo Catalina
2012-05-28 12:43 Alfredo Catalina
2012-05-28 12:51 ` luigi scarso
2012-05-28 13:35 ` Alfredo Catalina
2012-05-28 13:38   ` Hans Hagen
     [not found]     ` <CAJ0n9edKzheEAU6QL7z019HrJUvEL6q8NgBVXLeq=jKM5CUwHA@mail.gmail.com>
2012-05-28 15:36       ` Alfredo Catalina
2012-05-28 15:55         ` luigi scarso
2012-05-28 16:11         ` Alfredo Catalina
2012-05-28 18:38           ` luigi scarso
2012-05-28 13:41   ` luigi scarso

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