Re: [NTG-context] two different outputs.

2019-01-01 Thread Jeong Dal
2. Is there a way to remove a pagenumber from the title page? Thank you again. Best regards, Dalyoung Here is the simplified code: %\startMPenvironment %\stopMPenvironment %\environment defCommon %\environment defBook %\usemodule[m-matrix] %\startluacode %mtx = moduledata.matrix

Re: [NTG-context] deprecated startMPenvironment

2016-04-04 Thread Wolfgang Schuster
Meer, Hans van der <mailto:h.vanderm...@uva.nl> 4. April 2016 um 11:48 On 04 Apr 2016, at 00:12, Hans Hagen <pra...@wxs.nl <mailto:pra...@wxs.nl>> wrote: On 4/3/2016 4:07 PM, Meer, Hans van der wrote: Previously I could do the following \starttext \startMPenvironment[+

Re: [NTG-context] deprecated startMPenvironment

2016-04-04 Thread Meer, Hans van der
On 04 Apr 2016, at 00:12, Hans Hagen <pra...@wxs.nl<mailto:pra...@wxs.nl>> wrote: On 4/3/2016 4:07 PM, Meer, Hans van der wrote: Previously I could do the following \starttext \startMPenvironment[+]\switchtobodyfont[small]\stopMPenvironment \startMPpage % metafont code \stopMPpa

Re: [NTG-context] deprecated startMPenvironment

2016-04-03 Thread Hans Hagen
On 4/3/2016 4:07 PM, Meer, Hans van der wrote: Previously I could do the following \starttext \startMPenvironment[+]\switchtobodyfont[small]\stopMPenvironment \startMPpage % metafont code \stopMPpage \stoptext \endinput This is called by context --run --once etc. producing the figure

[NTG-context] deprecated startMPenvironment

2016-04-03 Thread Meer, Hans van der
Previously I could do the following \starttext \startMPenvironment[+]\switchtobodyfont[small]\stopMPenvironment \startMPpage % metafont code \stopMPpage \stoptext \endinput This is called by context --run --once etc. producing the figure and in this case modifying the font to a smaller size

Re: [NTG-context] Where is error in my code?

2015-01-28 Thread Mojca Miklavec
On Wed, Jan 28, 2015 at 5:49 AM, Van Dung Tang nguyen...@gmail.com wrote: I edit 1 file metafun with follow: \startMPenvironment \usetypescript[times][texnansi] \switchtobodyfont[times,10pt] \stopMPenvironment \startMPpage fill fullcircle scaled 2cm withcolor red; label(\sometxt{Cn

[NTG-context] Where is error in my code?

2015-01-28 Thread Van Dung Tang
I edit 1 file metafun with follow: \startMPenvironment \usetypescript[times][texnansi] \switchtobodyfont[times,10pt] \stopMPenvironment \startMPpage fill fullcircle scaled 2cm withcolor red; label(\sometxt{Cn},origin) withcolor white; \stopMPpage After run context and recieve 1 picture

[NTG-context] Where is error in my code?

2015-01-28 Thread Van Dung Tang
I edit 1 file metafun follow: \startMPenvironment \usetypescript[times][texnansi] \switchtobodyfont[times,10pt] \stopMPenvironment \startMPpage fill fullcircle scaled 2cm withcolor red; label(\sometxt{Cn},origin) withcolor white; \stopMPpage Ngu-Hanh.pdf Description: Adobe PDF document

Re: [NTG-context] Where is error in my code?

2015-01-28 Thread Hans Hagen
On 1/28/2015 5:49 AM, Van Dung Tang wrote: I edit 1 file metafun with follow: \startMPenvironment \usetypescript[times][texnansi] \switchtobodyfont[times,10pt] \stopMPenvironment \startMPpage fill fullcircle scaled 2cm withcolor red; label(\sometxt{Cn},origin) withcolor white; \stopMPpage

Re: [NTG-context] Where is error in my code?

2015-01-28 Thread Keith Schultz
to set font use \definefontfamily and \setbodyfont commands. regards Keith. Am 28.01.2015 um 05:45 schrieb Van Dung Tang nguyen...@gmail.com: I edit 1 file metafun follow: \startMPenvironment \usetypescript[times][texnansi] \switchtobodyfont[times,10pt] \stopMPenvironment

Re: [NTG-context] Asymptote in Context

2015-01-19 Thread Aditya Mahajan
), arrow=Arrow(TeXHead)); draw((0,-.1) -- (0,2), arrow=Arrow(TeXHead)); draw((0,0) .. (1,1) .. (2,sqrt(2))); \stopASY \stopplacefigure \stoptext Here \startASY behaves similar to \startMPcode. To get something similar to \startMPenvironment in mkii, you can use beforebuffer

Re: [NTG-context] Calling \followtokens from with in metapost

2013-10-14 Thread Marco Patzer
%% {\vbox\bgroup \forgetall \dontcomplain \startMPenvironment \doifundefined{RotFont}{\definefont[RotFont][RegularBold]} \stopMPenvironment \MPtoks\emptytoks \resetMPdrawing \startMPdrawing \includeMPgraphic{followtokenscentred} ; picture pic[] ; numeric len[], n ; n

Re: [NTG-context] fontsize drawing in metapost

2013-05-06 Thread Meer, H. van der
in MetaPost? Probably a font switch directly in the label: label(\small foobar, origin); \switchtobodyfont[size] can be done in \startMPenvironment and inside each label. Better use setupMPinstance: \setupMPinstance [metafun] [textstyle=\small] Marco

Re: [NTG-context] fontsize drawing in metapost

2013-05-06 Thread Meer, H. van der
); \switchtobodyfont[size] can be done in \startMPenvironment and inside each label. Better use setupMPinstance: \setupMPinstance [metafun] [textstyle=\small] Marco _ dimexpr.pdf Description: dimexpr.pdf

Re: [NTG-context] Change font in \startuseMPgraphic

2012-06-10 Thread Alfredo Catalina
I'm sorry but I don't know how to use them. I've tried \setupMPinstance [metafun] [textcolor=red] and got an undefined control sequence error. I've also tried \startMPenvironment [global] \usetypescript[palatino][ec] \switchtobodyfont[palatino,7pt] \stopMPenvironment and it changed

Re: [NTG-context] Change font in \startuseMPgraphic

2012-06-10 Thread Wolfgang Schuster
Am 10.06.2012 um 18:40 schrieb Alfredo Catalina: I'm sorry but I don't know how to use them. I've tried \setupMPinstance [metafun] [textcolor=red] and got an undefined control sequence error. I've also tried \startMPenvironment [global] \usetypescript[palatino][ec

Re: [NTG-context] Font for MetaPost graphics

2012-05-05 Thread Hans Hagen
\startMPenvironment \ss \stopMPenvironment \startMPcode draw textext(Sans) ; \stopMPcode Serif \stoptext A better alternative would to define \setupMPtext [ style=..., color=..., setups=..., ] that can be used to set the style for metapost text

Re: [NTG-context] Font for MetaPost graphics

2012-05-05 Thread Hans Hagen
On 4-5-2012 09:13, Aditya Mahajan wrote: On Fri, 4 May 2012, Mojca Miklavec wrote: I can think of many workarounds to this, but I agree that there is a valid reason why \startMPenvironment (or some other command) should be able to change the font inside metapost labels only. A better

Re: [NTG-context] Font for MetaPost graphics

2012-05-04 Thread Mojca Miklavec
different font for MetaPost labels. I can think of many workarounds to this, but I agree that there is a valid reason why \startMPenvironment (or some other command) should be able to change the font inside metapost labels only. Mojca

Re: [NTG-context] Font for MetaPost graphics

2012-05-04 Thread Aditya Mahajan
On Fri, 4 May 2012, Mojca Miklavec wrote: I can think of many workarounds to this, but I agree that there is a valid reason why \startMPenvironment (or some other command) should be able to change the font inside metapost labels only. A better alternative would to define \setupMPtext

[NTG-context] Font for MetaPost graphics

2012-05-02 Thread Marco
The wiki claims setting up an MPenvironment is enough to change the font in MetaPost graphics: \startMPenvironment%[global] \switchtobodyfont [sans] \stopMPenvironment \starttext This should be serif. \startMPcode draw textext(This should be in sans

Re: [NTG-context] Font for MetaPost graphics

2012-05-02 Thread Aditya Mahajan
On Thu, 3 May 2012, Marco wrote: The wiki claims setting up an MPenvironment is enough to change the font in MetaPost graphics: \startMPenvironment%[global] \switchtobodyfont [sans] \stopMPenvironment \starttext This should be serif. \startMPcode draw

[NTG-context] Tracking in MKII and MKIV

2011-08-15 Thread Raymond LeClair
][width=9.3in,height=6.87in] \definepapersize[LP1][width=9.55in,height=7.12in] \setuppapersize[LG1][LP1] \setuplayout[location=middle,marking=off] \setuppagenumber[state=stop] \startMPenvironment \usetypescript[modern][ec] \switchtotypeface[modern][7.0pt] \setupinterlinespace \def

[NTG-context] [metafun] MPenvironment / font switching

2011-06-09 Thread Philipp Gesang
font should be left untouched (serif). · \startMPenvironment %[global] \switchtobodyfont[sans] %\setupbodyfont[sans] \stopMPenvironment %\start\setupbodyfont[sans] \startuseMPgraphic{bg} verbatimtex \setupbodyfont[sans] etex

Re: [NTG-context] [metafun] MPenvironment / font switching

2011-06-09 Thread Wolfgang Schuster
should be typeset (drawn) as lm sans, whereas the main font should be left untouched (serif). · \startMPenvironment %[global] \switchtobodyfont[sans] %\setupbodyfont[sans] \stopMPenvironment %\start\setupbodyfont[sans

Re: [NTG-context] [metafun] MPenvironment / font switching

2011-06-09 Thread Philipp Gesang
On 2011-06-09 23:31:49, Wolfgang Schuster wrote: Am 09.06.2011 um 23:20 schrieb Philipp Gesang: snip/ · \startMPenvironment %[global] \switchtobodyfont[sans] %\setupbodyfont[sans] \stopMPenvironment %\start

[NTG-context] MPenvironment

2010-10-04 Thread Patrick Gundlach
Hi, I would like to get the Metapost Abcd to be bigger then the TeX Abcd (for all Metapost graphics). I thought that the command is \startMPenvironment .. \stopMPenvironment !?!? \startMPenvironment \switchtobodyfont[16pt] \stopMPenvironment

Re: [NTG-context] MPenvironment

2010-10-04 Thread Hans Hagen
On 4-10-2010 12:41, Patrick Gundlach wrote: Hi, I would like to get the Metapost Abcd to be bigger then the TeX Abcd (for all Metapost graphics). I thought that the command is \startMPenvironment .. \stopMPenvironment !?!? \startMPenvironment

[NTG-context] change affecting MPgraphic?

2010-09-24 Thread Marko Schütz Schmuck
=0in, header=0.5in, footer=0.5in, headerdistace=0in, footerdistance=0in ] \setupwhitespace [small] \setupblank [medium] %\startMPenvironment[global] %\definetypeface % [MyFace] [rm] [serif] [palatino] [default] [encoding=ec

Re: [NTG-context] Renaming file breaks texexec

2010-08-30 Thread Cecil Westerhof
/attachment.zip ] % - Thread discussion related to that [http://www.ntg.nl/pipermail/ntg-context/2009/038851.html] % This file should be processed with ConTeXt (texexec file) \setupcolors[state=start,textcolor=white] \startMPenvironment[global] \usetypescript[postscript][ec] \setupbodyfont[postscript,ss

Re: [NTG-context] vardef with @# not working within context

2009-09-21 Thread Aditya Mahajan
# with \# or \string# Hans, does it make sense to parse all MP environments (ironically except \startMPenvironment, but that is almost redundant in MKIV) with a separate catcode regime where # has catcode other. After all, it is highly unlikely that anyone will define a TeX maco inside \startMPcode

Re: [NTG-context] vardef with @# not working within context

2009-09-21 Thread Hans Hagen
isolated #. Try replacing # with \# or \string# it's more that tex likes to duplicate the # internally Hans, does it make sense to parse all MP environments (ironically except \startMPenvironment, but that is almost redundant in MKIV) with a separate catcode regime where # has catcode other

Re: [NTG-context] TikZ, MKIV and font switching

2009-04-08 Thread Renaud Aubin
: english/english) and latest t-tikz the result is good with palatino. I have processed the test file with \startMPenvironment[global] \usetypescript[postscript] \setupbodyfont[postscript,ss,12pt] \stopMPenvironment and the mindmap labels are in Termes... Any idea about a workaround to obtain

Re: [NTG-context] TikZ, MKIV and font switching

2009-04-08 Thread Wolfgang Schuster
Am 08.04.2009 um 20:25 schrieb Renaud Aubin: I have processed the test file with \startMPenvironment[global] \usetypescript[postscript] \setupbodyfont[postscript,ss,12pt] \stopMPenvironment what happens with \definetypeface[helvetica][ss][sans][heros][default] \setupbodyfont[helvetica

Re: [NTG-context] TikZ, MKIV and font switching

2009-04-08 Thread Wolfgang Schuster
Am 08.04.2009 um 20:25 schrieb Renaud Aubin: I have processed the test file with \startMPenvironment[global] \usetypescript[postscript] \setupbodyfont[postscript,ss,12pt] \stopMPenvironment and the mindmap labels are in Termes... Any idea about a workaround to obtain my labels in Heros

Re: [NTG-context] ConTeXt T-shirts?

2009-03-14 Thread Xan
En/na Xan ha escrit: En/na Wolfgang Schuster ha escrit: \startMPenvironment[global] \usetypescript[postscript][ec] \setupbodyfont[postscript,ss,144pt]\bf \stopMPenvironment Wolfgang Without \bf at the end, I get letters more bold. Is it not the contrary of natural behaviour? 8-| Thanks

Re: [NTG-context] Context logo (was ConTeXt T-shirts?)

2009-03-14 Thread Xan
% logo.mp: creates a blue traffic sign-style context logo % Copyright 2008 Taco Hoekwater % You are free to use this code any way you can \setupcolors[state=start,textcolor=white] \startMPenvironment[global] \usetypescript[postscript][ec] \setupbodyfont[postscript,ss,144pt] \stopMPenvironment

Re: [NTG-context] ConTeXt T-shirts?

2009-03-13 Thread Xan
En/na Wolfgang Schuster ha escrit: \startMPenvironment[global] \usetypescript[postscript][ec] \setupbodyfont[postscript,ss,144pt]\bf \stopMPenvironment Wolfgang Without \bf at the end, I get letters more bold. Is it not the contrary of natural behaviour? 8-| Thanks, Xan. % logo.mp

Re: [NTG-context] ConTeXt T-shirts?

2009-03-13 Thread Wolfgang Schuster
Am 13.03.2009 um 14:18 schrieb Xan: En/na Wolfgang Schuster ha escrit: \startMPenvironment[global] \usetypescript[postscript][ec] \setupbodyfont[postscript,ss,144pt]\bf \stopMPenvironment Without \bf at the end, I get letters more bold. Is it not the contrary of natural behaviour? 8

Re: [NTG-context] ConTeXt T-shirts?

2009-03-12 Thread Wolfgang Schuster
can \setupcolors[state=start,textcolor=white] \startMPenvironment \usetypescript[postscript][ec] \setupbodyfont[postscript,ss,120pt] \stopMPenvironment \usetypescript[postscript][ec] \setupbodyfont[postscript,ss,120pt] \starttext \startMPpage[offset=0pt] color darkblue,textcolor; darkblue

Re: [NTG-context] ConTeXt T-shirts?

2009-03-12 Thread Xan
are free to use this code any way you can \setupcolors[state=start,textcolor=white] \startMPenvironment \usetypescript[postscript][ec] \setupbodyfont[postscript,ss,120pt] \stopMPenvironment \usetypescript[postscript][ec] \setupbodyfont[postscript,ss,120pt] \starttext \startMPpage[offset=0pt] color

Re: [NTG-context] ConTeXt T-shirts?

2009-03-12 Thread Xan
are free to use this code any way you can \setupcolors[state=start,textcolor=white] \startMPenvironment \usetypescript[postscript][ec] \setupbodyfont[postscript,ss,120pt] \stopMPenvironment \usetypescript[postscript][ec] \setupbodyfont[postscript,ss,120pt] \starttext \startMPpage[offset=0pt] color

Re: [NTG-context] ConTeXt T-shirts?

2009-03-12 Thread Aditya Mahajan
Hoekwater % You are free to use this code any way you can \setupcolors[state=start,textcolor=white] Ha, there is a trick that I know but Wolfgang does not ;) \startMPenvironment You can use \startMPenvironment[global] \usetypescript[postscript][ec] \setupbodyfont[postscript,ss,120pt

Re: [NTG-context] ConTeXt T-shirts?

2009-03-12 Thread Wolfgang Schuster
Am 12.03.2009 um 20:56 schrieb Aditya Mahajan: Ha, there is a trick that I know but Wolfgang does not ;) What do you expect, I don't use ConTeXt as long as you do ;-) \startMPenvironment You can use \startMPenvironment[global] \usetypescript[postscript][ec] \setupbodyfont[postscript,ss

Re: [NTG-context] exported figures from DIA to Metapost including in document

2008-11-24 Thread Peter Rolf
. \startMPenvironment[global] ... global font defintions (esp. a math font), so metapost can also use them \stopMPenvironment Hope that helps... Best wishes, Peter And also do something like \placefigure[][fig:metapostfigure]{Here is the figure I made in DIA converted to metapost}{\usestaticMPfigure

Re: [NTG-context] exported figures from DIA to Metapost including in document

2008-11-24 Thread Jan-Erik Hägglöf
' when using XeTeX/luaTeX \setupbodyfont[Adventor,14.4pt,ss] \startMPenvironment \usetypescript[Adventor] % leave out 'ec' when using XeTeX/luaTeX \setupbodyfont[Adventor,14.4pt,ss] \stopMPenvironment \startuseMPgraphic{mag2} % Define macro for horizontal centering. vardef hcentered primary P = P

Re: [NTG-context] exported figures from DIA to Metapost including in document

2008-11-24 Thread Aditya Mahajan
filename), then do not use btex ... etex.[1] Use \sometxt{...} instead. I just used the following regex on your file %s/btex\s*\(.\)\s*etex/\\sometxt\1/g and then everything works fine. [1] It is possible to get correct fonts using btex ... etex also. You need to set up fonts in \startMPenvironment

Re: [NTG-context] exported figures from DIA to Metapost including in document

2008-11-24 Thread Jan-Erik Hägglöf
. I did though replace with \sometxt{\vec{\cal B}} but no effect. [1] It is possible to get correct fonts using btex ... etex also. You need to set up fonts in \startMPenvironment ... \stopMPenvironment. For most cases \sometxt is more convinient. Aditya I tried to do some fontsettings

Re: [NTG-context] Colored labels with MetaPost in MkII

2008-10-29 Thread Wolfgang Schuster
labels in MkII with \doattributes. \startMPenvironment[global] \setupcolors[state=start] \def\labelstyle{bold} \def\labelcolor{red} \stopMPenvironment This gives you only bold label. \starttext \startMPcode label(textext(\doattributes{label}{style}{color}{Label}),origin) ; \stopMPcode

Re: [NTG-context] Colored labels with MetaPost in MkII

2008-10-28 Thread Aditya Mahajan
On Mon, 27 Oct 2008, Wolfgang Schuster wrote: On Fri, Oct 24, 2008 at 2:15 PM, Aditya Mahajan [EMAIL PROTECTED] wrote: On Fri, 24 Oct 2008, Wolfgang Schuster wrote: Hi all, what is the best method to format MetaPost labels in MkII with \doattributes. \startMPenvironment[global

Re: [NTG-context] Colored labels with MetaPost in MkII

2008-10-27 Thread Wolfgang Schuster
On Fri, Oct 24, 2008 at 2:15 PM, Aditya Mahajan [EMAIL PROTECTED] wrote: On Fri, 24 Oct 2008, Wolfgang Schuster wrote: Hi all, what is the best method to format MetaPost labels in MkII with \doattributes. \startMPenvironment[global] \setupcolors[state=start] \def\labelstyle{bold} \def

Re: [NTG-context] Colored labels with MetaPost in MkII

2008-10-24 Thread Aditya Mahajan
On Fri, 24 Oct 2008, Wolfgang Schuster wrote: Hi all, what is the best method to format MetaPost labels in MkII with \doattributes. \startMPenvironment[global] \setupcolors[state=start] \def\labelstyle{bold} \def\labelcolor{red} \stopMPenvironment This gives you only bold label

Re: [NTG-context] Colored labels with MetaPost in MkII

2008-10-24 Thread Wolfgang Schuster
On Fri, Oct 24, 2008 at 3:15 PM, Aditya Mahajan [EMAIL PROTECTED] wrote: On Fri, 24 Oct 2008, Wolfgang Schuster wrote: Hi all, what is the best method to format MetaPost labels in MkII with \doattributes. \startMPenvironment[global] \setupcolors[state=start] \def\labelstyle{bold} \def

[NTG-context] Some Metapost Problems

2008-10-06 Thread Wolfgang Werners-Lucchini
Hallo, I have a lot of problems with the following example: \usetypescriptfile[type-exa] \usetypescript[iwona][ec] \setupbodyfont[iwona,11pt] \startMPenvironment%[global] \usetypescript[iwona][ec] \setupbodyfont[iwona,8pt] \stopMPenvironment

[NTG-context] Some Metapost Problems

2008-10-06 Thread Wolfgang Werners-Lucchini
Hallo, I have a lot of problems with the following example: \usetypescriptfile[type-exa] \usetypescript[iwona][ec] \setupbodyfont[iwona,11pt] \startMPenvironment%[global] \usetypescript[iwona][ec] \setupbodyfont[iwona,8pt] \stopMPenvironment

Re: [NTG-context] Some Metapost Problems

2008-10-06 Thread Mojca Miklavec
\runMPgraphicstrue This seems to be ok with luatex. LuaTeX is a story on its own. It works differentrly anyway. 2. The settings in \startMPenvironment do not use the smaller font size [8pt] without [global]. And the outside Text (Bla) remains not big [11pt] with [global]. How can I toggle

Re: [NTG-context] Lucida (from a newbie) question

2008-08-03 Thread Renaud Aubin
Compilation says ! I can't find file `texnansi-raw-lbf' It's better than before : it didn't do anything :-) Hi Eric, It may help us if you give us more details: - the texfont command used, - did your pfb files are in a single directory or not ? ... - ... A good test is: \startMPenvironment

Re: [NTG-context] Lucida (from a newbie) question

2008-08-03 Thread Renaud Aubin
the line \usetypescriptfile[type-buy] to the test Ok (as you may already know), you can modify (your TeX root)/tex/texmf-context/tex/context/user/cont-sys.tex to add \usetypescriptfile[type-buy] permanently A good test is: \startMPenvironment[global] % use lucida for metapost too [couic

Re: [NTG-context] Lucida (from a newbie) question

2008-08-03 Thread Yue Wang
, It may help us if you give us more details: - the texfont command used, - did your pfb files are in a single directory or not ? ... - ... A good test is: \startMPenvironment[global] % use lucida for metapost too \usetypescript[lucida][texnansi] \usetypescript[lucidabfm][texnansi] % for bold

Re: [NTG-context] some more graphictext

2008-04-26 Thread Peter Rolf
creates a broken pdf here (mtxrun is aborted, when calling pstoedit). Looks like a different problem, but one step after the other. Greetings, Peter % \useMPlibrary[txt] \setupcolors[state=start] \startMPenvironment[global] \usetypescriptfile[type-gyr

[NTG-context] some more graphictext

2008-04-22 Thread Peter Rolf
is aborted, when calling pstoedit). Looks like a different problem, but one step after the other. Greetings, Peter % \useMPlibrary[txt] \setupcolors[state=start] \startMPenvironment[global] \usetypescriptfile[type-gyr] \usetypescript[palatino][texnansi] \setupbodyfont[palatino

Re: [NTG-context] MetaFun and different body font size

2007-08-20 Thread Wolfgang Schuster
\startuseMPgraphic{test} draw unitsquare scaled BodyFontSize; draw textext.rt(Test); draw btex \TeX etex xshifted 2*BodyFontSize; \stopuseMPgraphic \useMPgraphic{test} \stoptext Did this work for you \startMPenvironment \usetypescript[palatino][texnansi] \switchtobodyfont

[NTG-context] Mysterious clipping for shaded MetaFun page background

2007-08-20 Thread Oliver Buerschaper
machine. --- \enableregime[utf] \setupcolors[state=start] \usetypescript[palatino][\defaultencoding] \setupbodyfont[palatino,30pt] \startMPenvironment \usetypescript[palatino][\defaultencoding] \switchtobodyfont[palatino,30pt] \stopMPenvironment \startuseMPgraphic

Re: [NTG-context] Mysterious clipping for shaded MetaFun page background

2007-08-20 Thread Peter Rolf
vanilla color background on my machine. --- \enableregime[utf] \setupcolors[state=start] del \usetypescript[palatino][\defaultencoding] \setupbodyfont[palatino,30pt] /del \startMPenvironment [global] \usetypescript[palatino][\defaultencoding] \switchtobodyfont

Re: [NTG-context] metafun/label: utf8 and spaces

2007-06-29 Thread Mojca Miklavec
On 6/28/07, Patrick Gundlach wrote: Hi, is there any way to get utf-8 labels and without the 'strange' space glyph? -- \startMPenvironment[+] \enableregime[utf] \stopMPenvironment \starttext foobar baz äöß % -- OK

[NTG-context] metafun/label: utf8 and spaces

2007-06-28 Thread Patrick Gundlach
Hi, is there any way to get utf-8 labels and without the 'strange' space glyph? -- \startMPenvironment[+] \enableregime[utf] \stopMPenvironment \starttext foobar baz äöß % -- OK \startuniqueMPgraphic{bla} label(foobar baz äöß,(3cm,3cm

Re: [NTG-context] z0---z1---z2---z3---cycle strange effect

2007-06-14 Thread Mojca Miklavec
][name,texnansi] \usetypescriptonce [sans] [helvetica][name,texnansi] \usetypescriptonce [palatino] [texnansi] \setupbodyfont [palatino,10pt] \startbuffer[mpenv] \startMPenvironment \usetypescriptonce[map][times,helvetica,palatino][texnansi

[NTG-context] Back to Metafun Manual

2007-06-06 Thread David Arnold
] [helvetica][name,texnansi] \usetypescriptonce [palatino] [texnansi] \setupbodyfont [palatino,10pt] \startbuffer[mpenv] \startMPenvironment \usetypescriptonce[map][times,helvetica,palatino][texnansi] \usetypescriptonce[serif][times][name,texnansi] \usetypescriptonce

[NTG-context] z0---z1---z2---z3---cycle strange effect

2007-06-04 Thread David Arnold
,texnansi] \usetypescriptonce [palatino] [texnansi] \setupbodyfont [palatino,10pt] \startbuffer[mpenv] \startMPenvironment \usetypescriptonce[map][times,helvetica,palatino][texnansi] \usetypescriptonce[serif][times][name,texnansi] \usetypescriptonce[sans][helvetica][name,texnansi

[NTG-context] drawarrowpath

2007-06-04 Thread David Arnold
] [helvetica][name,texnansi] \usetypescriptonce [palatino] [texnansi] \setupbodyfont [palatino,10pt] \startbuffer[mpenv] \startMPenvironment \usetypescriptonce[map][times,helvetica,palatino][texnansi] \usetypescriptonce[serif][times][name,texnansi] \usetypescriptonce[sans

Re: [NTG-context] underbar in MP text

2006-11-13 Thread Peter Rolf
. this works for the example code, but sadly not in my complex graphic. I have to look deeper into this, as soon as I have the time (but there is only one MP environment and no setup of underbar is used elsewhere). \startMPenvironment[global] \setupunderbar[rulethickness=2pt]% \stopMPenvironment Anyhow

Re: [NTG-context] MPenvironment \def gives Parameters must be numbered consecutively

2006-09-30 Thread Sanjoy Mahajan
the figures to be in a smaller font). I wikified a small example of converting to \sometxt: http://wiki.contextgarden.net/Mpgraphic#startMPenvironment. It's probably not in the right place on the wiki though. \def\a{abc} \starttext \startMPcode label(\sometxt{\a},origin); \stopMPcode \stoptext

Re: [NTG-context] \sometxt bodyfontsize in staticMPfigure (2006.09.27 beta)

2006-09-29 Thread Hans Hagen
). It gives a 12pt outside sometxt and a 20pt in sometxt: = with-static.tex \startMPenvironment \setupbodyfont[20pt] \stopMPenvironment \starttext \startstaticMPfigure{fig} label(\sometxt{in sometxt},origin); \stopstaticMPfigure outside

Re: [NTG-context] MPenvironment \def gives Parameters must be numbered consecutively

2006-09-29 Thread Hans Hagen
Sanjoy Mahajan wrote: This test file (beta 2006.09.28): 1.tex \starttext \startMPenvironment \def\2#1#2{\vbox{\halign{\hfil##\hfil\cr #1\cr #2\cr}}} \stopMPenvironment \startreusableMPgraphic{fig} label(btex sun etex, origin

Re: [NTG-context] MPenvironment ignored for btex..etex (or should I use sometxt)?

2006-09-29 Thread Hans Hagen
Sanjoy Mahajan wrote: Oh, wait, if metapost is fine with the file but ConTeXt isn't, then the error above must be from ConTeXt parsing the metapost code and seeing the \2, then complaining. So am I supposed to use the global option to \startMPenvironment? If it's needed in this case, I think

Re: [NTG-context] MPenvironment \def gives Parameters must be numbered consecutively

2006-09-29 Thread Mojca Miklavec
On 9/29/06, Sanjoy Mahajan wrote: This test file (beta 2006.09.28): 1.tex \starttext \startMPenvironment \def\2#1#2{\vbox{\halign{\hfil##\hfil\cr #1\cr #2\cr}}} \stopMPenvironment A lesson that I learned while trying to implement a few functions

Re: [NTG-context] \sometxt bodyfontsize in staticMPfigure (2006.09.27 beta)

2006-09-28 Thread Hans Hagen
experiments show) so what we can do is pass info from the mpenvironment \startMPenvironment[global] \setupbodyfont[20pt] \stopMPenvironment \starttext \long\def\startstaticMPgraphic#1#2\stopstaticMPgraphic {\blabelgroup \def\MPgraphicfile{#1}% no \jobname here \let\MPwrite

Re: [NTG-context] \sometxt bodyfontsize in staticMPfigure (2006.09.27 beta)

2006-09-28 Thread Sanjoy Mahajan
in sometxt: = with-static.tex \startMPenvironment \setupbodyfont[20pt] \stopMPenvironment \starttext \startstaticMPfigure{fig} label(\sometxt{in sometxt},origin); \stopstaticMPfigure outside sometxt\quad \usestaticMPfigure[fig] \stoptext

[NTG-context] MPenvironment ignored for btex..etex (or should I use sometxt)?

2006-09-28 Thread Sanjoy Mahajan
I'm not sure what's going on here, but this file fails (2006.09.28 beta): [well I have a better idea now after writing out the whole email, see the end...] === 3.tex = \starttext \startMPenvironment \def\2{hello} \stopMPenvironment \startreusableMPgraphic{fig

[NTG-context] MPenvironment \def gives Parameters must be numbered consecutively

2006-09-28 Thread Sanjoy Mahajan
This test file (beta 2006.09.28): 1.tex \starttext \startMPenvironment \def\2#1#2{\vbox{\halign{\hfil##\hfil\cr #1\cr #2\cr}}} \stopMPenvironment \startreusableMPgraphic{fig} label(btex sun etex, origin); \stopreusableMPgraphic \reuseMPgraphic{fig

[NTG-context] metafun: verbatimtex coming too late?

2006-09-24 Thread Sanjoy Mahajan
In this file, I intended that all labels would come out in 7pt: === cut here \starttext \startMPenvironment \setupbodyfont[7pt] \stopMPenvironment \startMPinclusions def drawtext = label(btex In drawtext() macro. etex, origin); enddef

Re: [NTG-context] \startMPenvironment : personal font weirdness

2006-08-04 Thread Mojca Miklavec
On 8/4/06, David Wooten wrote: Hans Hagen wrote: what is the label font then? probably defaultfont so you need to set that as well also, label does not use tex, use label(\textext(very),z46) should be \textext{very} That's it, indeed (though without the back-slash for textext):

Re: [NTG-context] \startMPenvironment : personal font weirdness

2006-08-04 Thread Hans van der Meer
On Aug 4, 2006, at 10:46, Mojca Miklavec wrote: On 8/4/06, David Wooten wrote: Hans Hagen wrote: what is the label font then? probably defaultfont so you need to set that as well also, label does not use tex, use label(\textext(very),z46) should be \textext{very} That's it, indeed

[NTG-context] \startMPenvironment : personal font weirdness

2006-08-03 Thread David Wooten
] \startMPenvironment [global] \usetypescript[palatino][ec] \switchtobodyfont[palatino,12pt] \stopMPenvironment \starttext The following example should be very interesting: \blank \startuseMPgraphic{very-interesting} z40 = (2cm,0cm); z41 = (3cm,0cm) ; z42 = (3cm,1cm); z43 = (2cm,1cm

Re: [NTG-context] \startMPenvironment : personal font weirdness

2006-08-03 Thread Hans Hagen
] \setuppagenumbering[state=stop] \startMPenvironment [global] \usetypescript[palatino][ec] \switchtobodyfont[palatino,12pt] \stopMPenvironment \starttext The following example should be very interesting: \blank \startuseMPgraphic{very-interesting} z40 = (2cm,0cm); z41 = (3cm,0cm) ; z42

Re: [NTG-context] \startMPenvironment : personal font weirdness

2006-08-03 Thread David Wooten
Hans Hagen wrote: \startMPenvironment [global] \usetypescriptfile[minionpro-diss] \usetypescript[Minion] \switchtobodyfont[Minion,12pt] \stopMPenvironment dangerous to use such a upper/lowercase mix (typos) I see what you mean. hm, looks like a bronwser

Re: [NTG-context] \startMPenvironment : personal font weirdness

2006-08-03 Thread Hans Hagen
David Wooten wrote: Hans Hagen wrote: \startMPenvironment [global] \usetypescriptfile[minionpro-diss] \usetypescript[Minion] \switchtobodyfont[Minion,12pt] \stopMPenvironment dangerous to use such a upper/lowercase mix (typos) I see what you mean

Re: [NTG-context] \startMPenvironment : personal font weirdness

2006-08-03 Thread David Wooten
Hans Hagen wrote: what is the label font then? probably defaultfont so you need to set that as well also, label does not use tex, use label(\textext(very),z46) That's it, indeed (though without the back-slash for textext): label(textext(very),z46) and friends Hans Many thanks! David

Re: [NTG-context] staticMPfigure fonts

2006-07-21 Thread Aditya Mahajan
) but the same problem appears with palatino also. This does not work \startMPenvironment \usetypescript[palatino][ec] \setupbodyfont[palatino,10pt] \stopMPenvironment This still does not work, but as Hans explained, one should have a [global] with MPenvironments anyway. \starttext

Re: [NTG-context] staticMPfigure fonts

2006-07-21 Thread Hans Hagen
in the tests taht I made. I can not test with lucida (do not have them) but the same problem appears with palatino also. This does not work \startMPenvironment \usetypescript[palatino][ec] \setupbodyfont[palatino,10pt] \stopMPenvironment This still does not work, but as Hans

Re: [NTG-context] staticMPfigure fonts

2006-07-21 Thread Renaud AUBIN
pt loading problem. The statics are working with the alpha. The maps seem to be correctly identified in the tests taht I made. I can not test with lucida (do not have them) but the same problem appears with palatino also. This does not work \startMPe

Re: [NTG-context] Metapost/Metafun/Tex/Context question

2006-07-19 Thread Hans Hagen
(use decimen, since there is a linesplit bug with here) - then load the times font - somehow display and inline math render differently; something for taco \startMPenvironment[global] \startmathcollection [default] \definemathsymbol [varointctrclockwise] [op] [mc] [43] [mc] [44

Re: [NTG-context] staticMPfigure fonts

2006-07-18 Thread Aditya Mahajan
to figure out why Something very strange is happening here. Looks like a typescript loading problem. I can not test with lucida (do not have them) but the same problem appears with palatino also. This does not work \startMPenvironment \usetypescript[palatino][ec] \setupbodyfont[palatino,10pt

Re: [NTG-context] staticMPfigure fonts

2006-07-18 Thread Hans Hagen
: \startMPenvironment[global] \usetypescriptfile[type-buy] \loadmapfile[texnansi-bh-lucida.map] \usetypescript[lucida][texnansi] \setupbodyfont[lucida,10pt] \stopMPenvironment the global directive makes the env transparent for the doc anyhow, the problem is that in a mp to pdf

Re: [NTG-context] Metapost label alignment etc.

2006-07-05 Thread Aditya Mahajan
] \setuppagenumbering[state=stop] \def\AXIS#1#2#3{(#1) Axis #2: {\bf #3}} \forceMPTEXcheck{LABELL} \forceMPTEXcheck{LABELR} \forceMPTEXcheck{LABELM} \startMPenvironment \ssxx\setupinterlinespace \stopMPenvironment \startMPinclusions vardef [EMAIL PROTECTED](expr s, p)= [EMAIL PROTECTED](textext

[NTG-context] More Metapost alignment

2006-06-30 Thread Idris Samawi Hamid
Dear syndicate, Ok, here is a challenge: The following works (I thank Aditya for his help) == \forceMPTEXcheck{LABEL} \startMPenvironment \ssxx\setupinterlinespace \stopMPenvironment \startMPinclusions vardef [EMAIL PROTECTED](expr s, p)= [EMAIL PROTECTED

Re: [NTG-context] Metapost label alignment etc.

2006-06-30 Thread Idris Samawi Hamid
: {\bf #3}} \forceMPTEXcheck{LABELL} \forceMPTEXcheck{LABELR} \forceMPTEXcheck{LABELM} \startMPenvironment \ssxx\setupinterlinespace \stopMPenvironment \startMPinclusions vardef [EMAIL PROTECTED](expr s, p)= [EMAIL PROTECTED](textext(% \framed[width=1.5cm,align=left,frame=off,autowidth=force

Re: [NTG-context] Metapost label alignment etc.

2006-06-30 Thread Mojca Miklavec
On 7/1/06, Idris Samawi Hamid wrote: A question for Hans first: how can something similar be used for \sometxt? \startMPenvironment \ssxx\setupinterlinespace \stopMPenvironment (\setupsometxt[before=,after=] ?) Wow... Ok, following is my present, still naive code. What I would like

Re: [NTG-context] Metafun - Metapost capacity exceeded

2006-04-05 Thread Thomas Engel
\startproduct prd_mcc_a3 \project pro_mcc_a3 \setuppapersize[A3, landscape][A3, landscape] \startMPenvironment \setupbodyfont[pos] \stopMPenvironment \startuseMPgraphic{fra} StartPage ; u:=10mm; draw Page enlarged -1cm; draw Page enlarged -0.80cm; draw (1u,2u)--(41u,2u

Re: [NTG-context] chinese labels

2006-03-17 Thread Hans Hagen
\startMPenvironment \enableregime[utf] \usemodule[chi-00] \stopMPenvironment \startMPpage label(btex ÆÇæà etex,(0,0)); \stopMPpage \stoptext instead. Hans - Hans Hagen | PRAGMA ADE

  1   2   >