I use Lucida OT fonts for all my documents, but since I prefer the script fonts from another font I have the following setups for my font:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Some Font Definitions
\definefallbackfamily[myfont][math][Asana Math]
[range={uppercasescript,lowercasescript}]
% lucida font
\definefontfamily[myfont][serif][Lucida Bright OT]
\definefontfamily[myfont][math][LucidaBrightMathOT]
\definefontfamily[myfont][sans][LucidaSansOT]
\definefontfamily[myfont][mono][LucidaSansTypewriterOT]
\setupbodyfont[myfont,9pt]
%% End of Font Definitions
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Then when I use for instance the command $\cal{C}$ the script font from Asana Math is used, instead of from Lucida OT.
Best regards: OK
Hello,
Thanks to you two.
"Another solution is to define your own mixture of math fonts and text fonts."
I thought you should not mix several fonts in one text. I know you're a teacher, what are you doing to write your documents ?
Fabrice
Hi Fabrice,
Wolfgang gave the right answer, but I wanted to point out that it is better not to use \setupbodyfont in the middle of your document, as you did in the excerpt below: in this case it is better to use
\switchtobodyfont[xits]
or even better define the character you want before using it as in
\define\CScript{\start\switchtobodyfont[xits] \m{\mathscript{C}} \stop}
and then use that command as in:
La droite \m{(AM)} est {\bf une sécante} à la courbe \CScript en \m{A}.
Another solution is to define your own mixture of math fonts and text fonts.
Best regards: OK
La droite \m{(AM)} est {\bf une sécante} à la courbe {\setupbodyfont[xits]\m{{\mathscript C}}} en \m{A}.
___________________________________________________________________________________
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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
___________________________________________________________________________________
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-contextwebpage :
http://www.pragma-ade.nl /
http://context.aanhet.netarchive :
https://bitbucket.org/phg/context-mirror/commits/wiki :
http://contextgarden.net___________________________________________________________________________________