ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* textext
@ 2003-03-11 17:03 Hans van der Meer
  2003-03-11 22:19 ` textext Patrick Gundlach
  0 siblings, 1 reply; 3+ messages in thread
From: Hans van der Meer @ 2003-03-11 17:03 UTC (permalink / raw)


Hi Hans

I am placing metapost figures in the text:

	\placefigure{}{\startMPgraphic
		......
		label.top(textext("\tfx \#3"),z0)
	\stopMPgraphic\loadcurrentMPgraphic{}\placeMPgraphic}

The \# macro disappears and nothing shows up in my figure.
The same with other characters as  \lbrace\rbrace.
How come? Do I misunderstand something?
It would be a pity if some characters could not be typeset in figures.
Thanks for looking into it.

Hans van der Meer

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

* Re: textext
  2003-03-11 17:03 textext Hans van der Meer
@ 2003-03-11 22:19 ` Patrick Gundlach
  2003-03-12 10:18   ` textext Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Patrick Gundlach @ 2003-03-11 22:19 UTC (permalink / raw)


Hans van der Meer <hansm@science.uva.nl> writes:

> Hi Hans

Well, I am not Hans, but perhaps I might add a comment:

> I am placing metapost figures in the text:

could you provide a small non-working example (that we can run thru
TeX)?

The following works fine here:

% interface=en output=pdf
\starttext

\def\mycommand#1{%
        \startuseMPgraphic{somegraphic}
        drawdot origin;
        label.top(textext("#1", origin);
        \stopuseMPgraphic
   \useMPgraphic{somegraphic}}

\mycommand{Hello Hans}
\stoptext


Patrick

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

* Re: Re: textext
  2003-03-11 22:19 ` textext Patrick Gundlach
@ 2003-03-12 10:18   ` Hans Hagen
  0 siblings, 0 replies; 3+ messages in thread
From: Hans Hagen @ 2003-03-12 10:18 UTC (permalink / raw)


At 11:19 PM 3/11/2003 +0100, Patrick Gundlach wrote:
>Hans van der Meer <hansm@science.uva.nl> writes:
>
> > Hi Hans
>
>Well, I am not Hans, but perhaps I might add a comment:
>
> > I am placing metapost figures in the text:
>
>could you provide a small non-working example (that we can run thru
>TeX)?
>
>The following works fine here:
>
>% interface=en output=pdf
>\starttext
>
>\def\mycommand#1{%
>         \startuseMPgraphic{somegraphic}
>         drawdot origin;
>         label.top(textext("#1", origin);
>         \stopuseMPgraphic
>    \useMPgraphic{somegraphic}}
>
>\mycommand{Hello Hans}
>\stoptext

\setMPtext{some tag}{some text}

\startMPcode draw textext(\MPstring{some tag}) ; \stopMPcode

For Patrick who reads sources:

%D To be documented:
%D
%D \starttyping
%D \setMPtext{identifier}{text}
%D
%D \MPtext  {identifier}
%D \MPstring{identifier}
%D \MPbetex {identifier}
%D \stoptyping

-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       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
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------

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

end of thread, other threads:[~2003-03-12 10:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-11 17:03 textext Hans van der Meer
2003-03-11 22:19 ` textext Patrick Gundlach
2003-03-12 10:18   ` textext 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).