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 <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[+]\switcht

Re: [NTG-context] deprecated startMPenvironment

2016-04-04 Thread Meer, Hans van der
On 04 Apr 2016, at 00:12, Hans Hagen 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 \stopMPpage \stoptext \endinput

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 and in

[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 wrote: > I edit 1 file metafun with follow: > > \startMPenvironment > \usetypescript[times][texnansi] > \switchtobodyfont[times,10pt] > \stopMPenvironment > \startMPpage > fill fullcircle scaled 2cm withcolor red; >

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

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

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

[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 with a

[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] Asymptote in Context

2015-01-19 Thread Aditya Mahajan
0) -- (2,0), 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 be

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

2013-10-14 Thread Marco Patzer
stretching it to the path size. \useMPlibrary [txt] \unexpanded\def\followtokenscentred#1%% {\vbox\bgroup \forgetall \dontcomplain \startMPenvironment \doifundefined{RotFont}{\definefont[RotFont][RegularBold]} \stopMPenvironment \MPtoks\emptytoks \resetMPdrawing \startMPd

Re: [NTG-context] fontsize drawing in metapost

2013-05-06 Thread Meer, H. van der
size of fonts in labels drawn 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 [m

Re: [NTG-context] fontsize drawing in metapost

2013-05-06 Thread Meer, H. van der
>> 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: > >

Re: [NTG-context] fontsize drawing in metapost

2013-05-06 Thread Marco Patzer
On 2013–05–06 Meer, H. van der wrote: > What is the simplest way to change the size of fonts in labels drawn in > MetaPost? Probably a font switch directly in the label: label("\small foobar", origin); > \switchtobodyfont[size] can be done in \startMPenvironment and i

[NTG-context] fontsize drawing in metapost

2013-05-06 Thread Meer, H. van der
What is the simplest way to change the size of fonts in labels drawn in MetaPost? \switchtobodyfont[size] can be done in \startMPenvironment and inside each label. But is it possible to have: set-font-to-size1 draw labels set-font-to-size2 draw more labels Hans van der Meer

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 > > \

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] \sto

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-05 Thread Hans Hagen
ns") ; \stopMPcode Serif \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 styl

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

Re: [NTG-context] Font for MetaPost graphics

2012-05-04 Thread Mojca Miklavec
uested / needed to have a special setup for using 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 t

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] 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

[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

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: > > ····· > > > > \startMPenvironment %[global] > > \switchtobodyfont[sans] > > %\

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

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

[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] 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 !?!? ----

[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

[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
% References: % - Original design [http://www.ntg.nl/pipermail/ntg-context/attachments/20090312/3056772b/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[s

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

2009-09-21 Thread Hans Hagen
nd TeX does not like 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

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

2009-09-21 Thread Aditya Mahajan
ted #. Try replacing # 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

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] 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 Renaud Aubin
er: 2009.04.06 21:42 MKIV fmt: 2009.4.8 int: 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

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

2009-03-14 Thread Xan
F document % 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] \stopMPe

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

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 be

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.

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[postscri

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 Xan
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
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 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] exported figures from DIA to Metapost including in document

2008-11-24 Thread Jan-Erik Hägglöf
%s/btex\s*\(.\)\s*etex/\\sometxt\1/g > and then everything works fine. This above I didn't understood. 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 \startMPenv

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

2008-11-24 Thread Aditya Mahajan
p fonts in \startMPenvironment ... \stopMPenvironment. For most cases \sometxt is more convinient. Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://

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

2008-11-24 Thread Jan-Erik Hägglöf
d > > save x, y, t, p ; Added this line > > to include the figure multiple times (or to include multiple figures, I > would imagine). > > Aditya Thanks to all answers. I got it work, though a minor problem left, it seems that "calligraphy" is not workin

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

2008-11-24 Thread Peter Rolf
mplete . > > Should I place part of the code in some definitions? > > 3. To input textlabels in mathnotation optionally anywhere I want inside > the figure. > \startMPenvironment[global] ... global font defintions (esp. a math font), so metapost can also use them \stopMPenvironm

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

2008-10-29 Thread Wolfgang Schuster
t; >>>> Hi all, >>>> >>>> what is the best method to format MetaPost labels in MkII with >>>> \doattributes. >>> >>> \startMPenvironment[global] >>>> \setupcolors[state=start] >>>> >>>> \def

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

2008-10-28 Thread Aditya Mahajan
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-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] >

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] >

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 give

Re: [NTG-context] Some Metapost Problems

2008-10-06 Thread Mojca Miklavec
gt; What I am doing wrong here? You need \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) rema

[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] Lucida (from a newbie) question

2008-08-03 Thread Yue Wang
7;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[global] % use l

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

2008-08-03 Thread Renaud Aubin
using texfont... > > I had to had 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: >&g

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

2008-08-03 Thread Eric DÉTREZ
the texfont command used, I don't use texfont I compile files from texshop > - did your pfb files are in a single directory or not ? ... yes they are with names lbc.pfb and so on I had to had the line << \usetypescriptfile[type-buy] >> to the test > A good test is: > \star

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

2008-08-03 Thread Renaud Aubin
tory or not ? ... - ... A good test is: \startMPenvironment[global] % use lucida for metapost too \usetypescript[lucida][texnansi] \usetypescript[lucidabfm][texnansi] % for bold math \usetypescript[lucidaboldmath][texnansi] % for bold math \setupbodyfont[lucida,10pt] \definebodyfont[17.3pt,14.4pt,12pt,11

Re: [NTG-context] some more graphictext

2008-04-26 Thread Peter Rolf
ith the desired font (Arial, T1), as > mkiv 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=st

[NTG-context] some more graphictext

2008-04-22 Thread Peter Rolf
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] \usetypescript[palatino][texnansi] \setupbo

[NTG-context] graphictext broken

2008-04-19 Thread Peter Rolf
Hi, this doesn't work any more (mkii and mkiv). Same error on live.contextgarden. I use pstoedit3.45 (updated today from 3.44) and the latest context/luatex. % \useMPlibrary[txt] \setupcolors[state=start] \startMPenvironment[global] \definefont[ONEfont] [Sans at

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

2007-08-20 Thread Peter Rolf
off ... doesn't happen for the plain vanilla > color background on my machine. > > --- > > \enableregime[utf] > > \setupcolors[state=start] > > \usetypescript[palatino][\defaultencoding] > \setupbodyfont[palatino,30pt] > > \startMPenv

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

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

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

2007-08-20 Thread Oliver Buerschaper
Perfectly! Thanks to both of you. Oliver > Did this work for you > > \startMPenvironment > \usetypescript[palatino][texnansi] > \switchtobodyfont[palatino,20pt] > \stopMPenvironment > > \usetypescript[palatino][texnansi] > \setupbodyfont[palatino,

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

2007-08-20 Thread Wolfgang Schuster
ont[palatino,32pt] > > > \starttext > > \input ward > > \startuseMPgraphic{test} > draw unitsquare scaled BodyFontSize; > draw textext.rt("Test"); > draw btex \TeX etex xshifted 2*BodyFontSize; > \stopuseMPgraphic > \useMPgra

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 >

[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

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

2007-06-14 Thread Mojca Miklavec
iptonce [map] [times,helvetica,palatino] [texnansi] > \usetypescriptonce [serif][times][name,texnansi] > \usetypescriptonce [sans] [helvetica][name,texnansi] > \usetypescriptonce [palatino] [texnansi] > > \setupbodyfont [palatino,10pt

[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] drawarrowpath

2007-06-04 Thread David Arnold
[sans] [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
[name,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,tex

Re: [NTG-context] underbar in MP text

2006-11-13 Thread Peter Rolf
a \setupMPenvironment. The [global] simply uses the same settings > in the main text. > 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 us

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

2006-10-05 Thread Aditya Mahajan
nvironmentbuffer[#1]% > > {\expanded{\startMPenvironment\noexpand\readfile{\TEXbufferfile{\jobname}}{}{}}\stopMPenvironment} Shouldn't that be \readfile{\TEXbufferfile{#1}? > \useMPenvironmentbuffer[mp] > \startreusableMPgraphic{fig} > label(btex sun etex, origin); If you try l

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

2006-09-30 Thread Sanjoy Mahajan
tching (e.g. if I want 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 > \startM

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 tryi

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

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} &g

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

2006-09-29 Thread Hans Hagen
or staticMPfigure] is pass info from the mpenvironment" > > It works well, thanks for another instant improvement. The 2006.09.28 > beta passes the following test case (I will commit it to the contexttest > repository). It gives a 12pt "outside sometxt" and a 20pt &qu

[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] 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 \startreusableMPg

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

2006-09-28 Thread Sanjoy Mahajan
tory). 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);

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

2006-09-28 Thread Hans Hagen
ics (quick hack for independent graphics) we can spend a lot of time to make it more advanced but within a year from now we will have mp as a library in tex which willreduce runtime to nearly zero (at least that 's what experiments show) so what we can do is pass info from the mpenvironment

[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 Hans Hagen
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} > i

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} >

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 te

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 t

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 > >> &g

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 s

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

2006-08-03 Thread Hans Hagen
t; > \setupcolors[state=start] > \setuppagenumbering[state=stop] > > \startMPenvironment [global] > \usetypescript[palatino][ec] > \switchtobodyfont[palatino,12pt] > \stopMPenvironment > > \starttext > > The following example should be very interesting: > \

[NTG-context] \startMPenvironment : personal font weirdness

2006-08-03 Thread David Wooten
=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 = (3cm,1cm); z43 = (2c

Re: [NTG-context] staticMPfigure & fonts

2006-07-21 Thread Renaud AUBIN
ng here. Looks like a typescript 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.

Re: [NTG-context] staticMPfigure & fonts

2006-07-21 Thread Hans Hagen
need to figure out why >>> >> Something very strange is happening here. Looks like a typescript >> 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

Re: [NTG-context] staticMPfigure & fonts

2006-07-21 Thread Aditya Mahajan
> them by staticMPfigure ? >> the statics don't work well with text, i need to figure out why > > > Something very strange is happening here. Looks like a typescript > loading problem. The statics are working with the alpha. The maps seem to be correctly identified in th

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

2006-07-19 Thread WN
- first extend the math collection (use decimen, since there is a linesplit bug with " here) I will implement your suggestion, thanks - then load the times font - somehow display and inline math render differently; something for taco \startMPenvironment[global] \startmathcoll

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

2006-07-19 Thread Hans Hagen
> p := p scaled 0.15cm; > draw p; > \stopMPcode > \stoptext > make sure that mp knows about the definitions: - first extend the math collection (use decimen, since there is a linesplit bug with " here) - then load the times font - somehow display and inline math rend

  1   2   >