ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: luigi scarso <luigi.scarso@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: thelabel problem
Date: Mon, 28 May 2012 17:55:37 +0200	[thread overview]
Message-ID: <CAG5iGsBcFSzZ6zUnJgsC_zi-37PWOzod_sKimcOfVZr2VggZaQ@mail.gmail.com> (raw)
In-Reply-To: <CAJ0n9ee3wFFooLDq_Kb4yO0XXC0xk-4eNoohU7w=ZKcdbzzgmQ@mail.gmail.com>

On Mon, May 28, 2012 at 5:36 PM, Alfredo Catalina
<alfredo.catalina@gmail.com> wrote:
> Thank you. I check it, and you are right. I forgot to include the
> definitions when I cut and paste that part of the code. I thought the
> problem was related to the btex command, but it's not.
>
> The first line is:
>
> u=1.000mm; linecap:=butt; linejoin:=mitered; path pp; picture pic;
> labeloffset:=0;
>
> I compared it with your code. The "numeric u;" definition is missing in my
> file. I have included it and now it works!!
>
> It's really weird since I compiled it in 2009 and it worked as is. I still
> have the pdf output file...??
>
> Finally I have a problem in this line:
>
> externalfigure "aciddrops1.png" xscaled 80.13u yscaled 60.09u shifted
> (69.85u,20.30u) ;
>
> Then I got:
>
>  terminal: >> picture
> ! Isolated expression.
> <to be read again>
>                    ;
> <*> ...3u yscaled 60.09u shifted (69.85u,20.30u) ;
>                                                    ;
> .
> system          > tex > error on line 99 in file kk2.tex: terminal: >>
> picture

This is ok here
(mill.png is in tex/texmf-context/tex/context/sample)

\starttext

Testing

\startuseMPgraphic{gh}
picture pic;
numeric u;
u:=1;
textX:=87.51u;
textY:=96.31u;
pic:=thelabel.urt(btex {Test} etex scaled 1.00,(0,0));
draw pic shifted (textX, textY);
externalfigure "mill.png" xscaled 80.13u yscaled 60.09u shifted
(69.85u,20.30u) ;
\stopuseMPgraphic

\useMPgraphic{gh}

\stoptext

-- 
luigi
___________________________________________________________________________________
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
___________________________________________________________________________________

  reply	other threads:[~2012-05-28 15:55 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2012-05-28 16:11         ` Alfredo Catalina
2012-05-28 18:38           ` luigi scarso
2012-05-28 13:41   ` luigi scarso
2012-05-28 18:38 Alfredo Catalina
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAG5iGsBcFSzZ6zUnJgsC_zi-37PWOzod_sKimcOfVZr2VggZaQ@mail.gmail.com \
    --to=luigi.scarso@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).