ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Change font in \startuseMPgraphic
@ 2012-06-10 14:25 Alfredo Catalina
  2012-06-10 15:25 ` Wolfgang Schuster
  0 siblings, 1 reply; 14+ messages in thread
From: Alfredo Catalina @ 2012-06-10 14:25 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 125 bytes --]

How can I setup a font -name, size, etc- inside a startuseMPgraphic
environment?

\startuseMPgraphic{map}

\stopuseMPgraphic

[-- Attachment #1.2: Type: text/html, Size: 179 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Change font in \startuseMPgraphic
  2012-06-10 14:25 Change font in \startuseMPgraphic Alfredo Catalina
@ 2012-06-10 15:25 ` Wolfgang Schuster
  2012-06-10 16:23   ` Meer, H. van der
  2012-06-10 16:40   ` Alfredo Catalina
  0 siblings, 2 replies; 14+ messages in thread
From: Wolfgang Schuster @ 2012-06-10 15:25 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 10.06.2012 um 16:25 schrieb Alfredo Catalina:

> How can I setup a font -name, size, etc- inside a startuseMPgraphic environment?
>  
> \startuseMPgraphic{map}
>  
> \stopuseMPgraphic

- http://wiki.contextgarden.net/Command/defineMPinstance
- http://wiki.contextgarden.net/Command/setupMPinstance

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: Change font in \startuseMPgraphic
  2012-06-10 15:25 ` Wolfgang Schuster
@ 2012-06-10 16:23   ` Meer, H. van der
  2012-06-10 16:33     ` Wolfgang Schuster
  2012-06-10 16:40   ` Alfredo Catalina
  1 sibling, 1 reply; 14+ messages in thread
From: Meer, H. van der @ 2012-06-10 16:23 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1267 bytes --]

Being interested I looked up these links in the garden.
The information given there is scarce, however.
The parameters 'extensions' and 'initializations' with values yes/no especially. What are they for? What is the effect of yes/no? What exactly are these extensions and initializations?
Is there documentation somewhere?

Thanks in advance,
Hans van der Meer



On 10 jun. 2012, at 17:25, Wolfgang Schuster wrote:


Am 10.06.2012 um 16:25 schrieb Alfredo Catalina:

How can I setup a font -name, size, etc- inside a startuseMPgraphic environment?

\startuseMPgraphic{map}

\stopuseMPgraphic

- http://wiki.contextgarden.net/Command/defineMPinstance
- http://wiki.contextgarden.net/Command/setupMPinstance

Wolfgang

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl<mailto:ntg-context@ntg.nl> / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


[-- Attachment #1.2: Type: text/html, Size: 2976 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Change font in \startuseMPgraphic
  2012-06-10 16:23   ` Meer, H. van der
@ 2012-06-10 16:33     ` Wolfgang Schuster
  0 siblings, 0 replies; 14+ messages in thread
From: Wolfgang Schuster @ 2012-06-10 16:33 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 10.06.2012 um 18:23 schrieb Meer, H. van der:

> Being interested I looked up these links in the garden.
> The information given there is scarce, however.
> The parameters 'extensions' and 'initializations' with values yes/no especially. What are they for? What is the effect of yes/no? What exactly are these extensions and initializations?

You can control whether the content of the \startMPextensions and \startMPinitializations environment is used or ignored in the metapost code.

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: Change font in \startuseMPgraphic
  2012-06-10 15:25 ` Wolfgang Schuster
  2012-06-10 16:23   ` Meer, H. van der
@ 2012-06-10 16:40   ` Alfredo Catalina
  2012-06-10 16:46     ` Wolfgang Schuster
  1 sibling, 1 reply; 14+ messages in thread
From: Alfredo Catalina @ 2012-06-10 16:40 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1297 bytes --]

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 the font size but the font type is not "palatino".

thanks
On Sun, Jun 10, 2012 at 5:25 PM, Wolfgang Schuster <
schuster.wolfgang@googlemail.com> wrote:

>
> Am 10.06.2012 um 16:25 schrieb Alfredo Catalina:
>
> > How can I setup a font -name, size, etc- inside a startuseMPgraphic
> environment?
> >
> > \startuseMPgraphic{map}
> >
> > \stopuseMPgraphic
>
> - http://wiki.contextgarden.net/Command/defineMPinstance
> - http://wiki.contextgarden.net/Command/setupMPinstance
>
> 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://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
>
> ___________________________________________________________________________________
>

[-- Attachment #1.2: Type: text/html, Size: 3125 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Change font in \startuseMPgraphic
  2012-06-10 16:40   ` Alfredo Catalina
@ 2012-06-10 16:46     ` Wolfgang Schuster
  2012-06-10 16:56       ` Alfredo Catalina
  0 siblings, 1 reply; 14+ messages in thread
From: Wolfgang Schuster @ 2012-06-10 16:46 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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]
>     \switchtobodyfont[palatino,7pt]
> \stopMPenvironment
>  
> and it changed the font size but the font type is not "palatino".

1. Do you use MkII or MkIV?

2. Do you want Palatino only for the metapost labels or also for the main font in the document?

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: Change font in \startuseMPgraphic
  2012-06-10 16:46     ` Wolfgang Schuster
@ 2012-06-10 16:56       ` Alfredo Catalina
  2012-06-10 17:04         ` Wolfgang Schuster
  0 siblings, 1 reply; 14+ messages in thread
From: Alfredo Catalina @ 2012-06-10 16:56 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 243 bytes --]

>
> 1. Do you use MkII or MkIV?
>
> 2. Do you want Palatino only for the metapost labels or also for the main
> font in the document?
>
>
>

I am using MkIV. Whether it is possible I would like to use a different
font for the metapost labels.

[-- Attachment #1.2: Type: text/html, Size: 508 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Change font in \startuseMPgraphic
  2012-06-10 16:56       ` Alfredo Catalina
@ 2012-06-10 17:04         ` Wolfgang Schuster
  2012-06-10 17:11           ` Alfredo Catalina
  0 siblings, 1 reply; 14+ messages in thread
From: Wolfgang Schuster @ 2012-06-10 17:04 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 568 bytes --]


Am 10.06.2012 um 18:56 schrieb Alfredo Catalina:

> 1. Do you use MkII or MkIV?
> 
> 2. Do you want Palatino only for the metapost labels or also for the main font in the document? 
> 
>  I am using MkIV. Whether it is possible I would like to use a different font for the metapost labels.

\setupbodyfont[pagella,11pt]

%\setupMPinstance[metafun][textstyle=sans]
\setupMPinstance[metafun][textstyle={\switchtobodyfont[termes,14pt]}]

\starttext

\input knuth

\startMPcode
draw textext("I’m different!") ;
\stopMPcode

\stoptext

Wolfgang


[-- Attachment #1.2: Type: text/html, Size: 1330 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Change font in \startuseMPgraphic
  2012-06-10 17:04         ` Wolfgang Schuster
@ 2012-06-10 17:11           ` Alfredo Catalina
  2012-06-10 17:14             ` Aditya Mahajan
  0 siblings, 1 reply; 14+ messages in thread
From: Alfredo Catalina @ 2012-06-10 17:11 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 745 bytes --]

> \setupbodyfont[pagella,11pt]
>
> %\setupMPinstance[metafun][textstyle=sans]
> \setupMPinstance[metafun][textstyle={\switchtobodyfont[termes,14pt]}]
>
> \starttext
>
> \input knuth
>
> \startMPcode
> draw textext("I’m different!") ;
> \stopMPcode
>
> \stoptext
>
>
>

It gives an error:

! Undefined control sequence.
system          > tex > error on line 1 in file GeneraMapa.tex: Undefined
control sequence ...
1 >>  \setupMPinstance[metafun][textstyle={\switchtobodyfont[termes,14pt]}]
2
3     \setuppagenumbering[location=]
4     \starttext
5     \input ./mapa.tex
6     \useMPgraphic{mapa}
7     \stoptext
8
l.1 \setupMPinstance
                    [metafun][textstyle={\switchtobodyfont[termes,14pt]}]
?

[-- Attachment #1.2: Type: text/html, Size: 1393 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Change font in \startuseMPgraphic
  2012-06-10 17:11           ` Alfredo Catalina
@ 2012-06-10 17:14             ` Aditya Mahajan
  2012-06-10 18:07               ` Alfredo Catalina
  0 siblings, 1 reply; 14+ messages in thread
From: Aditya Mahajan @ 2012-06-10 17:14 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: TEXT/PLAIN, Size: 899 bytes --]

On Sun, 10 Jun 2012, Alfredo Catalina wrote:

>> \setupbodyfont[pagella,11pt]
>>
>> %\setupMPinstance[metafun][textstyle=sans]
>> \setupMPinstance[metafun][textstyle={\switchtobodyfont[termes,14pt]}]
>>
>> \starttext
>>
>> \input knuth
>>
>> \startMPcode
>> draw textext("I’m different!") ;
>> \stopMPcode
>>
>> \stoptext
>>
>>
>>
>
> It gives an error:
>
> ! Undefined control sequence.
> system          > tex > error on line 1 in file GeneraMapa.tex: Undefined
> control sequence ...
> 1 >>  \setupMPinstance[metafun][textstyle={\switchtobodyfont[termes,14pt]}]
> 2
> 3     \setuppagenumbering[location=]
> 4     \starttext
> 5     \input ./mapa.tex
> 6     \useMPgraphic{mapa}
> 7     \stoptext
> 8
> l.1 \setupMPinstance
>                    [metafun][textstyle={\switchtobodyfont[termes,14pt]}]
> ?

You need to upgrade your ConTeXt installation.

Aditya

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Change font in \startuseMPgraphic
  2012-06-10 17:14             ` Aditya Mahajan
@ 2012-06-10 18:07               ` Alfredo Catalina
  2012-06-10 19:29                 ` Wolfgang Schuster
  0 siblings, 1 reply; 14+ messages in thread
From: Alfredo Catalina @ 2012-06-10 18:07 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 297 bytes --]

On Sun, Jun 10, 2012 at 7:14 PM, Aditya Mahajan <adityam@umich.edu> wrote
>
>
> You need to upgrade your ConTeXt installation.
>
>
>

I installed context two weeks ago. I've just run

mtxrun --selfupdate
mtxrun --generate
luatools --generate
context --make
and I've got the same error. Any ideas?

[-- Attachment #1.2: Type: text/html, Size: 776 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Change font in \startuseMPgraphic
  2012-06-10 18:07               ` Alfredo Catalina
@ 2012-06-10 19:29                 ` Wolfgang Schuster
  2012-06-10 20:18                   ` Alfredo Catalina
  0 siblings, 1 reply; 14+ messages in thread
From: Wolfgang Schuster @ 2012-06-10 19:29 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 460 bytes --]


Am 10.06.2012 um 20:07 schrieb Alfredo Catalina:

> 
> 
> On Sun, Jun 10, 2012 at 7:14 PM, Aditya Mahajan <adityam@umich.edu> wrote
> 
> You need to upgrade your ConTeXt installation.
> 
>  
> I installed context two weeks ago. I've just run
>  
> mtxrun --selfupdate
> mtxrun --generate
> luatools --generate
> context --make
> and I've got the same error. Any ideas?

Do you use TeXLive or the ConTeXt Suite (installation from the context wiki)?

Wolfgang


[-- Attachment #1.2: Type: text/html, Size: 1192 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Change font in \startuseMPgraphic
  2012-06-10 19:29                 ` Wolfgang Schuster
@ 2012-06-10 20:18                   ` Alfredo Catalina
  2012-06-11 15:56                     ` Alfredo Catalina
  0 siblings, 1 reply; 14+ messages in thread
From: Alfredo Catalina @ 2012-06-10 20:18 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 198 bytes --]

On Sun, Jun 10, 2012 at 9:29 PM, Wolfgang Schuster <
schuster.wolfgang@googlemail.com> wrote:

>
> Do you use TeXLive or the ConTeXt Suite (installation from the context
> wiki)?
>
>

ConTeXt Suite

[-- Attachment #1.2: Type: text/html, Size: 658 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Change font in \startuseMPgraphic
  2012-06-10 20:18                   ` Alfredo Catalina
@ 2012-06-11 15:56                     ` Alfredo Catalina
  0 siblings, 0 replies; 14+ messages in thread
From: Alfredo Catalina @ 2012-06-11 15:56 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 88 bytes --]

I've run

first-setup.bat --modules=all

and now it works. Thanks Wolfgang and Aditya!!

[-- Attachment #1.2: Type: text/html, Size: 183 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2012-06-11 15:56 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-10 14:25 Change font in \startuseMPgraphic Alfredo Catalina
2012-06-10 15:25 ` Wolfgang Schuster
2012-06-10 16:23   ` Meer, H. van der
2012-06-10 16:33     ` Wolfgang Schuster
2012-06-10 16:40   ` Alfredo Catalina
2012-06-10 16:46     ` Wolfgang Schuster
2012-06-10 16:56       ` Alfredo Catalina
2012-06-10 17:04         ` Wolfgang Schuster
2012-06-10 17:11           ` Alfredo Catalina
2012-06-10 17:14             ` Aditya Mahajan
2012-06-10 18:07               ` Alfredo Catalina
2012-06-10 19:29                 ` Wolfgang Schuster
2012-06-10 20:18                   ` Alfredo Catalina
2012-06-11 15:56                     ` Alfredo Catalina

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).