ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
	Fabrice Couvreur <fabrice1.couvreur@gmail.com>
Subject: Re: Passing the parameters of a frame in an environment \startMPcode ... \stopMPcode
Date: Mon, 20 Apr 2020 11:19:28 +0200	[thread overview]
Message-ID: <bdfc7b5e-a2d0-4750-002a-949ddf44b93d@gmail.com> (raw)
In-Reply-To: <CACyK-erTbDRp90Si-Q9nyw=T__O9OCo5-ak4VxDOxkazqd0M1w@mail.gmail.com>

Fabrice Couvreur schrieb am 20.04.2020 um 11:00:
> Hi Wolfgang,
> Thank you very much ; as usual your explanations are always clear and 
> your approach to the problem intelligent and original. I would however 
> like to know the way in which we can use the command \frameletter except 
> for the rounded corners with outlinetext. For example, this doesn't work.
> 
> \startMPcode
> 
>       draw outlinetext.f
>           ("\frameletter{A}")
>           (withcolor darkred withpen pencircle scaled 1/10)
>            rotated 5 xsized 2cm ;
> 
> \stopMPcode

Take a look at the log-file and you should see a line like this:

%%%% begin error message
tex error       > tex error on line 8 in file ./test.tex: ! Undefined 
control sequence

<argument> \par draw outlinetext.f ("\frameletter
%%%% end error message

As the error message tells you the command \frameletter doesn't exist, 
you can fix this with \defineframed[frameletter]

%%%% begin example
\defineframed [frameletter]

\starttext

\startMPcode

     draw outlinetext.f
         ("\frameletter{A}")
         (withcolor darkred withpen pencircle scaled 1/10)
         rotated 5 xsized 2cm ;

\stopMPcode

\stoptext
%%%% end example

Wolfgang
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

      reply	other threads:[~2020-04-20  9:19 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-19 20:55 Fabrice Couvreur
2020-04-20  7:21 ` Wolfgang Schuster
2020-04-20  8:23   ` Rudolf Bahr
2020-04-20  8:36     ` Wolfgang Schuster
2020-04-20  9:00       ` Fabrice Couvreur
2020-04-20  9:19         ` Wolfgang Schuster [this message]

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=bdfc7b5e-a2d0-4750-002a-949ddf44b93d@gmail.com \
    --to=wolfgang.schuster.lists@gmail.com \
    --cc=fabrice1.couvreur@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).