* small problem with minimals
@ 2008-11-10 16:08 Thomas A. Schmitz
2008-11-10 16:16 ` Hans Hagen
0 siblings, 1 reply; 11+ messages in thread
From: Thomas A. Schmitz @ 2008-11-10 16:08 UTC (permalink / raw)
To: mailing ConTeXt users list for
Hi all, esp. Mojca,
I have encountered a small problem with the minimals: some metafun
stuff that Aditya and I use in our presentation module stopped working
recently (sorry, I can't tell when exactly). The error message is
!luaTeX error (file lm-rmtt.enc): cannot find encoding file for reading
==> Fatal error occurred, no output PDF file produced!
MtxRun | fatal error, code: 70
which is a bit bizarre (I thought luatex didn't use any enc files?).
Anyway, the same file compiles fine with the same version of ConTeXt
and luatex under texlive 2008 because there, the enc file is present:
luatools lm-rmtt.enc
/usr/local/texlive/2008/texmf-dist/fonts/enc/dvips/lm/lm-rmtt.enc
Should this file be added to the minimals or is there a different
problem somewhere down the line? If absolutely necessary, I can make a
minimal example, but it would take a lot of work...
All best
Thomas
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: small problem with minimals
2008-11-10 16:08 small problem with minimals Thomas A. Schmitz
@ 2008-11-10 16:16 ` Hans Hagen
2008-11-10 16:55 ` Thomas A. Schmitz
0 siblings, 1 reply; 11+ messages in thread
From: Hans Hagen @ 2008-11-10 16:16 UTC (permalink / raw)
To: mailing list for ConTeXt users
Thomas A. Schmitz wrote:
> Should this file be added to the minimals or is there a different
> problem somewhere down the line? If absolutely necessary, I can make a
> minimal example, but it would take a lot of work...
it's probably the fallback font ... how is it used?
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: small problem with minimals
2008-11-10 16:16 ` Hans Hagen
@ 2008-11-10 16:55 ` Thomas A. Schmitz
2008-11-10 17:12 ` Hans Hagen
0 siblings, 1 reply; 11+ messages in thread
From: Thomas A. Schmitz @ 2008-11-10 16:55 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Nov 10, 2008, at 5:16 PM, Hans Hagen wrote:
> it's probably the fallback font ... how is it used?
>
> Hans
In a metafun label (which I can't replace with \sometxt):
label.top(decimal value,origin) ;
Thomas
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: small problem with minimals
2008-11-10 16:55 ` Thomas A. Schmitz
@ 2008-11-10 17:12 ` Hans Hagen
2008-11-10 17:26 ` Mojca Miklavec
` (2 more replies)
0 siblings, 3 replies; 11+ messages in thread
From: Hans Hagen @ 2008-11-10 17:12 UTC (permalink / raw)
To: mailing list for ConTeXt users
Thomas A. Schmitz wrote:
> On Nov 10, 2008, at 5:16 PM, Hans Hagen wrote:
>
>> it's probably the fallback font ... how is it used?
>>
>> Hans
>
> In a metafun label (which I can't replace with \sometxt):
>
> label.top(decimal value,origin) ;
forget about sometxt ... that's mojca's personal hack
\starttext
\startMPpage
numeric value ; value = 123 ;
label.top(textext(decimal value),origin) ;
\stopMPpage
\stoptext
maybe i should patch the label macro
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: small problem with minimals
2008-11-10 17:12 ` Hans Hagen
@ 2008-11-10 17:26 ` Mojca Miklavec
2008-11-10 17:33 ` Aditya Mahajan
2008-11-11 14:25 ` Wolfgang Schuster
2 siblings, 0 replies; 11+ messages in thread
From: Mojca Miklavec @ 2008-11-10 17:26 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Mon, Nov 10, 2008 at 6:12 PM, Hans Hagen wrote:
> Thomas A. Schmitz wrote:
>> On Nov 10, 2008, at 5:16 PM, Hans Hagen wrote:
>>
>>> it's probably the fallback font ... how is it used?
>>>
>>> Hans
>>
>> In a metafun label (which I can't replace with \sometxt):
>>
>> label.top(decimal value,origin) ;
> label.top(textext(decimal value),origin) ;
Maybe that's the reason ...
decimal value
will be typeset with metapost, while textext will be typeset with TeX.
I have a feeling that Hans defined "lmtt" as default (fallback) font
somewhere in metafun code, so that one gets used.
font-ini.mkii:% [texnansi-lmtt10]
font-ini.mkii:% [ec-lmtt10]
font-ini.mkii:% [texnansi-lmtt10]
font-ini.mkiv:% [texnansi-lmtt10]
meta-ini.mkii: defaultfont:="rm-lmtt10";
meta-ini.mkiv: defaultfont:="rm-lmtt10";
meta-tex.mkii:\definefontsynonym[MPtxtfont][texnansi-lmtt10]
But I have no idea when this has happened. I remember having to add
texnansi-lmtt because of XeTeX complaining of (most probably) exactly
the same thing. There are probably zero benefits if this gets fixed
back.
> forget about sometxt ...
[unless you work with mkii]
> that's mojca's personal hack
Suggestion that I need to forget XeTeX I guess :) :) :)
Mojca
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: small problem with minimals
2008-11-10 17:12 ` Hans Hagen
2008-11-10 17:26 ` Mojca Miklavec
@ 2008-11-10 17:33 ` Aditya Mahajan
2008-11-10 17:46 ` Hans Hagen
2008-11-11 14:25 ` Wolfgang Schuster
2 siblings, 1 reply; 11+ messages in thread
From: Aditya Mahajan @ 2008-11-10 17:33 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Mon, 10 Nov 2008, Hans Hagen wrote:
> maybe i should patch the label macro
That will be great. It will be nice to have label.top("a string") be
equivalent to label.top(textext("a string")). That will work with both
mkii and mkiv (and xetex). This way, in MKIV, one can forget about
\sometxt and textext :-)
Aditya
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: small problem with minimals
2008-11-10 17:33 ` Aditya Mahajan
@ 2008-11-10 17:46 ` Hans Hagen
0 siblings, 0 replies; 11+ messages in thread
From: Hans Hagen @ 2008-11-10 17:46 UTC (permalink / raw)
To: mailing list for ConTeXt users
Aditya Mahajan wrote:
> On Mon, 10 Nov 2008, Hans Hagen wrote:
>
>> maybe i should patch the label macro
>
> That will be great. It will be nice to have label.top("a string") be
> equivalent to label.top(textext("a string")). That will work with both
> mkii and mkiv (and xetex). This way, in MKIV, one can forget about
> \sometxt and textext :-)
only mkiv (ok, i can make some mechanism for mkii using multipass but
extending mkii has a real low priority)
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: small problem with minimals
2008-11-10 17:12 ` Hans Hagen
2008-11-10 17:26 ` Mojca Miklavec
2008-11-10 17:33 ` Aditya Mahajan
@ 2008-11-11 14:25 ` Wolfgang Schuster
2008-11-11 14:36 ` Aditya Mahajan
2 siblings, 1 reply; 11+ messages in thread
From: Wolfgang Schuster @ 2008-11-11 14:25 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Mon, Nov 10, 2008 at 6:12 PM, Hans Hagen <pragma@wxs.nl> wrote:
> Thomas A. Schmitz wrote:
>> On Nov 10, 2008, at 5:16 PM, Hans Hagen wrote:
>>
>>> it's probably the fallback font ... how is it used?
>>>
>>> Hans
>>
>> In a metafun label (which I can't replace with \sometxt):
>>
>> label.top(decimal value,origin) ;
>
> forget about sometxt ... that's mojca's personal hack
>
> \starttext
>
> \startMPpage
> numeric value ; value = 123 ;
> label.top(textext(decimal value),origin) ;
> \stopMPpage
>
> \stoptext
>
> maybe i should patch the label macro
And how could one change the font/style for the number?
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: small problem with minimals
2008-11-11 14:25 ` Wolfgang Schuster
@ 2008-11-11 14:36 ` Aditya Mahajan
2008-11-11 14:45 ` Wolfgang Schuster
0 siblings, 1 reply; 11+ messages in thread
From: Aditya Mahajan @ 2008-11-11 14:36 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Tue, 11 Nov 2008, Wolfgang Schuster wrote:
> And how could one change the font/style for the number?
Do you mean with textext, or with the macro that Hans is proposing to
define?
textext(string) will typeset the string using context, so you can add
"\switchtobodyfont[whatever]" in there.
The new label macro can use labelfont (or defaultfont, I always forget
what metapost uses) to switch the font. In that case there should also be
a label color, unless
draw textext("something") withcolor red ;
works (sorry, I haven't tested this)
Aditya
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: small problem with minimals
2008-11-11 14:36 ` Aditya Mahajan
@ 2008-11-11 14:45 ` Wolfgang Schuster
2008-11-11 14:52 ` Aditya Mahajan
0 siblings, 1 reply; 11+ messages in thread
From: Wolfgang Schuster @ 2008-11-11 14:45 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Tue, Nov 11, 2008 at 3:36 PM, Aditya Mahajan <adityam@umich.edu> wrote:
> On Tue, 11 Nov 2008, Wolfgang Schuster wrote:
>
>> And how could one change the font/style for the number?
>
> Do you mean with textext, or with the macro that Hans is proposing to
> define?
I mean in the example from Hans with textext(decimal value).
> textext(string) will typeset the string using context, so you can add
> "\switchtobodyfont[whatever]" in there.
>
> The new label macro can use labelfont (or defaultfont, I always forget
> what metapost uses) to switch the font. In that case there should also be
> a label color, unless
> draw textext("something") withcolor red ;
> works (sorry, I haven't tested this)
I prefer \doattributes with a setup command and use this in my modules.
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: small problem with minimals
2008-11-11 14:45 ` Wolfgang Schuster
@ 2008-11-11 14:52 ` Aditya Mahajan
0 siblings, 0 replies; 11+ messages in thread
From: Aditya Mahajan @ 2008-11-11 14:52 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Tue, 11 Nov 2008, Wolfgang Schuster wrote:
> On Tue, Nov 11, 2008 at 3:36 PM, Aditya Mahajan <adityam@umich.edu> wrote:
>> On Tue, 11 Nov 2008, Wolfgang Schuster wrote:
>>
>>> And how could one change the font/style for the number?
>>
>> Do you mean with textext, or with the macro that Hans is proposing to
>> define?
>
> I mean in the example from Hans with textext(decimal value).
>
>> textext(string) will typeset the string using context, so you can add
>> "\switchtobodyfont[whatever]" in there.
textext("\switchtobodyfont[12pt" & decimal value)
& is the metapost string concat operator (from memory, haven't verified
this)
Aditya
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2008-11-11 14:52 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-10 16:08 small problem with minimals Thomas A. Schmitz
2008-11-10 16:16 ` Hans Hagen
2008-11-10 16:55 ` Thomas A. Schmitz
2008-11-10 17:12 ` Hans Hagen
2008-11-10 17:26 ` Mojca Miklavec
2008-11-10 17:33 ` Aditya Mahajan
2008-11-10 17:46 ` Hans Hagen
2008-11-11 14:25 ` Wolfgang Schuster
2008-11-11 14:36 ` Aditya Mahajan
2008-11-11 14:45 ` Wolfgang Schuster
2008-11-11 14:52 ` Aditya Mahajan
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).