Hi Aditya,
Thanks for the hints: actually what I wanted to do was to use a calligraphic font which is a little bit more « script-y » as you put it (in particular for the letters A, B, D, S, U). Indeed using Khaled Hosny’s setup of xits one may get what I wanted to do.
The solution suggested by Mikael is perfect when using Latin Modern in mkiv, since it shows that in mkiv it is possible, and very easy, to use any opentype font for the slots corresponding to uppercasescript and lowercasescript.
When using palatino, I have to uderstand yet how to use palatino also in math mode… I don’t know what has to be changed in the following setup:
\definefontfamily [mainface] [math] [Latin Modern Math]
since replacing « Latin Modern Math » with « Palatino » does not work. Here is the example in which I would like to have palatino in math mode (for instance in \sin, or the variable x):
%%%% begin example
\definefallbackfamily[mainface][math][Asana Math][range={uppercasescript,lowercasescript}]
\definefontfamily [mainface] [rm] [Palatino]
\definefontfamily [mainface] [math] [Latin Modern Math]
\setupbodyfont[mainface]
\starttext
This is \type{\cal}:
${\cal ABCDEFGHIJKLMNOPQRSTUVWXYZ}$
This is \type{\cal}:
${\cal abcdefghijklmnopqrstuvwxyz}$
The space of distributions on $\Omega$ is denoted by ${\cal D}'(\Omega)$, while ${\cal S}({\Bbb R}^n)$ is the space of Schwartz functions, and ${\cal S}'({\Bbb R}^n)$ is its dual.
Let $\phi(x) := \sin(|x|^2){\rm e}^{-|x|^2}$ and $T \in {\cal S}'({\Bbb R}^n)$ given above.
\stoptext
%%%% end example
When one says
\setupbodyfont[palatino]
instead of
\setupbodyfont[mainface]
then the font used in math mode is also palatino, but then the uppercasescript is not what I would like to have…
Best regards: OK
On 21 May 2014, at 23:33, Aditya Mahajan
On Wed, 21 May 2014, Aditya Mahajan wrote:
On Wed, 21 May 2014, Otared Kavian wrote:
Hi all, It seems that the rsfs fonts (Ralph Smith’s Formal Script fonts) do not work: the procedure explained at the page
http://wiki.contextgarden.net/rsfs works fine with mkii, but not in mkiv.
I do not have the time to look into this in detail. But hopefully the hint below will help you get started.
If I understand you correctly, you are looking for a caligraphic font that is more "script-y" than the default \cal.
From what I understand, such glyphs are present as stylistic alternatives in unicode math fonts. See for example this thread
http://www.ntg.nl/pipermail/ntg-context/2010/050885.html
(I remember that there was another thread along these lines, but I cannot find it right now).
Found it: http://www.ntg.nl/pipermail/ntg-context/2011/061665.html
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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________