ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Otared Kavian <otared@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Unexpected symbol with Enumeration
Date: Wed, 16 Oct 2019 05:28:37 +0200	[thread overview]
Message-ID: <F2A9AF5B-A2A0-44E4-A48E-D46BA0E585B2@gmail.com> (raw)
In-Reply-To: <CACyK-er_+KYmOdcN7XTaW0FVOnXvTw3zMRuHbE4yadE-r=HzYA@mail.gmail.com>


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

Hi Fabrice,

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

> On 15 Oct 2019, at 21:57, Fabrice Couvreur <fabrice1.couvreur@gmail.com> wrote:
> 
> 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
> 
> Le mar. 15 oct. 2019 à 19:11, Otared Kavian <otared@gmail.com <mailto:otared@gmail.com>> a écrit :
> 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
> 
> 
>> On 15 Oct 2019, at 18:39, Fabrice Couvreur <fabrice1.couvreur@gmail.com <mailto:fabrice1.couvreur@gmail.com>> wrote:
>> 
>>  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 <mailto:ntg-context@ntg.nl> / http://www.ntg.nl/mailman/listinfo/ntg-context <http://www.ntg.nl/mailman/listinfo/ntg-context>
> webpage  : http://www.pragma-ade.nl <http://www.pragma-ade.nl/> / http://context.aanhet.net <http://context.aanhet.net/>
> archive  : https://bitbucket.org/phg/context-mirror/commits/ <https://bitbucket.org/phg/context-mirror/commits/>
> wiki     : http://contextgarden.net <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-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________


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

[-- Attachment #2: Type: text/plain, Size: 493 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2019-10-16  3:28 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-15 16:39 Fabrice Couvreur
2019-10-15 16:52 ` Wolfgang Schuster
2019-10-15 17:11 ` Otared Kavian
2019-10-15 19:57   ` Fabrice Couvreur
2019-10-16  3:28     ` Otared Kavian [this message]
2019-10-16 21:38       ` Fabrice Couvreur
2019-10-17  5:39         ` Otared Kavian
2019-10-17  6:00       ` Aditya Mahajan
2019-10-17 14:03         ` Otared Kavian

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=F2A9AF5B-A2A0-44E4-A48E-D46BA0E585B2@gmail.com \
    --to=otared@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).