* labelling in embedded MP
@ 2001-05-08 7:33 Johannes Huesing
2001-05-08 8:36 ` Hans Hagen
0 siblings, 1 reply; 3+ messages in thread
From: Johannes Huesing @ 2001-05-08 7:33 UTC (permalink / raw)
Hi,
the \languagespecifics of German seem to interfere with the embedded
Metapost code. The " in the code below is understood if
\mainlanguage[de] is not activated. How does one get around that?
Groetjes
Johannes
%%% ---8-<--------- %%%
\runMPgraphicstrue
\mainlanguage[de]
\setupoutput[pdftex]
\starttext
\startuseMPgraphic{nikolaus}
path haus;
numeric u;
u:=40pt;
haus := (0u,0u)--(0u,2u)--(1u,3.5u)--(2u,2u)
--(2u,0u)--(0u,2u)--(2u,2u)--(0u,0u)--(2u,0u);
draw haus;
label.lft("Das", point 0.5 of haus);
label.lft("ist", point 1.5 of haus);
label.rt("das", point 2.5 of haus);
label.lft("Haus", point 3.5 of haus);
label.top("vom", point 4.3 of haus);
label.top("Ni", point 5.5 of haus);
label.bot("ko", point 6.3 of haus);
label.top("laus", point 7.5 of haus);
\stopuseMPgraphic
\placefigure[right]{none}{\useMPgraphic{nikolaus}}
\stoptext
--3MwIy2ne0vdjdPXF--
----- End forwarded message -----
--
Johannes Hüsing | Domain: Adresse im Internet. Besteht aus einem
hannes@ruhrau.de| technischen Teil (http://www.), einem Namen
| (erwin_meier) und einer Endung (zum Beispiel
| .de für Deutschland) [J. Albrecht, "Zeit" 12/2001]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: labelling in embedded MP
2001-05-08 7:33 labelling in embedded MP Johannes Huesing
@ 2001-05-08 8:36 ` Hans Hagen
2001-05-08 16:57 ` Johannes Huesing
0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2001-05-08 8:36 UTC (permalink / raw)
Cc: ntg-context
At 09:33 AM 5/8/01 +0200, Johannes Huesing wrote:
>Hi,
>
>the \languagespecifics of German seem to interfere with the embedded
>Metapost code. The " in the code below is understood if
>\mainlanguage[de] is not activated. How does one get around that?
Ah, you're being punished for not using pdf e tex. You can add the line:
\appendtoks \let\handlecompoundcharacter\string \to \everyMPgraphic
[i will add it to meta-ini.tex so next releases will be ok]
Hans
-------------------------------------------------------------------------
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
-------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: labelling in embedded MP
2001-05-08 8:36 ` Hans Hagen
@ 2001-05-08 16:57 ` Johannes Huesing
0 siblings, 0 replies; 3+ messages in thread
From: Johannes Huesing @ 2001-05-08 16:57 UTC (permalink / raw)
On Tue, May 08, 2001 at 10:36:49AM +0200, Hans Hagen wrote:
> At 09:33 AM 5/8/01 +0200, Johannes Huesing wrote:
> >Hi,
> >
> >the \languagespecifics of German seem to interfere with the embedded
> >Metapost code. The " in the code below is understood if
> >\mainlanguage[de] is not activated. How does one get around that?
>
> Ah, you're being punished for not using pdf e tex. You can add the line:
When I start texexec ... I get the message:
This is pdfeTeX, Version 3.14159-13h-pretest-20010126-2.1 (Web2C 7.3.3.1) (format=cont-en 2001.3.31) 8 MAY 2001 17:34
>
> \appendtoks \let\handlecompoundcharacter\string \to \everyMPgraphic
>
after adding this to the preamble it works. Thank you very much!
Groetjes
Johannes
--
Johannes Hüsing | Domain: Adresse im Internet. Besteht aus einem
hannes@ruhrau.de| technischen Teil (http://www.), einem Namen
| (erwin_meier) und einer Endung (zum Beispiel
| .de für Deutschland) [J. Albrecht, "Zeit" 12/2001]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2001-05-08 16:57 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-05-08 7:33 labelling in embedded MP Johannes Huesing
2001-05-08 8:36 ` Hans Hagen
2001-05-08 16:57 ` Johannes Huesing
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).