* Display math characters
@ 2012-09-14 14:45 pol stra
2012-09-14 19:52 ` Otared Kavian
0 siblings, 1 reply; 2+ messages in thread
From: pol stra @ 2012-09-14 14:45 UTC (permalink / raw)
To: conteXt mail
[-- Attachment #1.1: Type: text/plain, Size: 2735 bytes --]
Hello,
from the wiki (http://wiki.contextgarden.net/Math/basic#List_of_All_Math_macros) I tryed the following snippet:
\usemodule[fnt-25]
\showmathfontcharacters
But context complains that there is no fnt-25 module, so let’s grep showmathfontcharacters in conteXt directory.
I found that it is defined into the mat-10 module. So new snippet:
\usemodule[mat-10]
\showmathfontcharacters
End new error:
ConTeXt ver: 2012.09.11 20:36 MKIV fmt: 2012.9.12 int: english/english
system > cont-new.mkiv loaded
(/opt/context-minimals/texmf-context/tex/context/base/cont-new.mkiv
system > beware: some patches loaded from cont-new.mkiv
)
fonts > latin modern fonts are not preloaded
languages > language en is active
(mathsymbols.tex
resolvers > modules > loaded: 'mat-10'
(/opt/context-minimals/texmf-context/tex/context/base/s-mat-10.mkiv))
fonts > defining > font with asked name 'unknown' is not found using lookup 'file'
fonts > defining > unknown font unknown, loading aborted
fonts > defining > unable to define unknown as [thedefinedfont--0]
! LuaTeX error <main ctx instance>:22: attempt to index local 'resources' (a nil value)
stack traceback:
<main ctx instance>:22: in function 'showmathfont'
<main ctx instance>:1: in main chunk.
system > tex > error on line 5 in file /opt/context-minimals/texmf-context/tex/context/base/cont-yes.mkiv: LuaTeX error ...
1 %D \module
2 %D [ file=cont-yes,
3 %D version=2012.06.01,
4 %D title=\CONTEXT\ Miscellaneous Macros,
5 >> %D subtitle=Startup Stub,
6 %D author=Hans Hagen,
7 %D date=\currentdate,
8 %D copyright={PRAGMA ADE \& \CONTEXT\ Development Team}]
9 %C
10 %C This module is part of the \CONTEXT\ macro||package and is
11 %C therefore copyrighted by \PRAGMA. See mreadme.pdf for
12 %C details.
13
14 % At some point I will reconsider the \starttext .. \stoptext
15 % wraping as we can assume proper styling. It's a left-over from
<argument> ...cument.showmathfont(font.current())}
\firstoftwoarguments #1#2->#1
\doshowmathfontcharacters ...wmathfontcharacters }
\endgroup
<to be read again>
\finishjob
l.5 \finishjob
} context.finishjob()
...
l.86 \stopluacode
I do not realy care about this list, I was just currious and it did not work so I point it out.
[-- Attachment #1.2: Type: text/html, Size: 5291 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] 2+ messages in thread
* Re: Display math characters
2012-09-14 14:45 Display math characters pol stra
@ 2012-09-14 19:52 ` Otared Kavian
0 siblings, 0 replies; 2+ messages in thread
From: Otared Kavian @ 2012-09-14 19:52 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 3825 bytes --]
Hi Pol,
You can use the following:
%% begin show-math.tex
\doifmode{mkiv}{\usemodule[s][mat-11]}
\starttext
\doifmodeelse{mkiv}{\showmathfontcharacters}{\showmathcharacters}
\stoptext
%% end show-math.tex
However in mkiv the presentation of math fonts is not the same as in mkii.
I don't know how to get the mkii presentation of the math fonts in mkiv…
Best regards: OK
On 14 sept. 2012, at 16:45, pol stra <ryzz@hotmail.fr> wrote:
> Hello,
>
> from the wiki (http://wiki.contextgarden.net/Math/basic#List_of_All_Math_macros) I tryed the following snippet:
> \usemodule[fnt-25]
> \showmathfontcharacters
>
> But context complains that there is no fnt-25 module, so let’s grep showmathfontcharacters in conteXt directory.
> I found that it is defined into the mat-10 module. So new snippet:
> \usemodule[mat-10]
> \showmathfontcharacters
>
> End new error:
>
> ConTeXt ver: 2012.09.11 20:36 MKIV fmt: 2012.9.12 int: english/english
>
> system > cont-new.mkiv loaded
> (/opt/context-minimals/texmf-context/tex/context/base/cont-new.mkiv
> system > beware: some patches loaded from cont-new.mkiv
> )
> fonts > latin modern fonts are not preloaded
> languages > language en is active
> (mathsymbols.tex
> resolvers > modules > loaded: 'mat-10'
> (/opt/context-minimals/texmf-context/tex/context/base/s-mat-10.mkiv))
> fonts > defining > font with asked name 'unknown' is not found using lookup 'file'
> fonts > defining > unknown font unknown, loading aborted
> fonts > defining > unable to define unknown as [thedefinedfont--0]
> ! LuaTeX error <main ctx instance>:22: attempt to index local 'resources' (a nil value)
> stack traceback:
> <main ctx instance>:22: in function 'showmathfont'
> <main ctx instance>:1: in main chunk.
>
> system > tex > error on line 5 in file /opt/context-minimals/texmf-context/tex/context/base/cont-yes.mkiv: LuaTeX error ...
>
> 1 %D \module
> 2 %D [ file=cont-yes,
> 3 %D version=2012.06.01,
> 4 %D title=\CONTEXT\ Miscellaneous Macros,
> 5 >> %D subtitle=Startup Stub,
> 6 %D author=Hans Hagen,
> 7 %D date=\currentdate,
> 8 %D copyright={PRAGMA ADE \& \CONTEXT\ Development Team}]
> 9 %C
> 10 %C This module is part of the \CONTEXT\ macro||package and is
> 11 %C therefore copyrighted by \PRAGMA. See mreadme.pdf for
> 12 %C details.
> 13
> 14 % At some point I will reconsider the \starttext .. \stoptext
> 15 % wraping as we can assume proper styling. It's a left-over from
>
> <argument> ...cument.showmathfont(font.current())}
>
> \firstoftwoarguments #1#2->#1
>
> \doshowmathfontcharacters ...wmathfontcharacters }
> \endgroup
> <to be read again>
> \finishjob
> l.5 \finishjob
>
> } context.finishjob()
>
> ...
> l.86 \stopluacode
>
>
> I do not realy care about this list, I was just currious and it did not work so I point it out.
> ___________________________________________________________________________________
> 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: 8116 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] 2+ messages in thread
end of thread, other threads:[~2012-09-14 19:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-14 14:45 Display math characters pol stra
2012-09-14 19:52 ` Otared Kavian
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).