Hello, Why items are numbered with a square instead of a bullet ? Thanks. Fabrice \definecolor[MyColorC][s=0.8784] \definecolor[MyColorD][m=0.27,y=1] \defineframed [FrameTitle] [frame=off, foregroundstyle=\bfx\ss, foregroundcolor=white, background=color, backgroundcolor=MyColorD, location=depth] \defineframedtext [FramedText] [offset=0.25em, style=\ss, toffset=\zeropoint, background=color, backgroundcolor=MyColorC, foregroundstyle={\switchtobodyfont[10pt]}, align={right, broad}, frame=off, corner=00, radius=0.5em, width=10cm] \definedescription [Info] [before=, after=, text=Vocabulaire, title=no, width=fit, distance=0.5em, headcommand=\FrameTitle, alternative=serried] \starttext \startFramedText[width=7cm] \startInfo \startitemize[1] \startitem La droite \m{(AM)} est {\bf une sécante} à la courbe {\setupbodyfont[xits]\m{{\mathscript C}}} en \m{A}. \stopitem \par \startitem La position limite de la sécante \m{(AM)} lorsque \m{M} se rapproche de \m{A} est {\bf la tangente à la courbe} au point \m{A}. \stopitem\par \startitem Le coefficient directeur de la tangente est {\bf la limite}, lorsque \m{h} tend vers 0, du taux de variation. On l'appelle {\bf nombre dérivé} de la fonction \m{f} en 1. \stopitem \stopitemize \stopInfo \stopFramedText \stoptext
Fabrice Couvreur schrieb am 15.10.2019 um 18:39:
Hello, Why items are numbered with a square instead of a bullet ? Because the bullets for the default sans serif font are rectangular.
\starttext \symbol[bullet] {\ss\symbol[bullet]} \blank \setupsymbols[stylealternative=math] \symbol[bullet] {\ss\symbol[bullet]} \stoptext Wolfgang
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
wrote: La droite \m{(AM)} est {\bf une sécante} à la courbe {\setupbodyfont[xits]\m{{\mathscript C}}} en \m{A}.
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
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
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 / 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
___________________________________________________________________________________
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
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
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
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 ___________________________________________________________________________________
Hi Kavian,
It seems to me that these fonts are not free.
Thank you for your help.
Fabrice
Le mer. 16 oct. 2019 à 05:28, Otared Kavian
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
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
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
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 / 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-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-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net
___________________________________________________________________________________
Hi Fabrice, The Lucida OT family is indeed not free (it costs 110 US dollars from TUG), but tha Asana Math is included in the distribution of ConTeXt, LuaMetaTeX and, I think, TeXLive. Best regards: Otared
On 16 Oct 2019, at 23:38, Fabrice Couvreur
wrote: Hi Kavian, It seems to me that these fonts are not free. Thank you for your help. Fabrice
Le mer. 16 oct. 2019 à 05:28, Otared Kavian
mailto:otared@gmail.com> a écrit : 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
mailto: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
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
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 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 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 ___________________________________________________________________________________
On Wed, 16 Oct 2019, Otared Kavian wrote:
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:
OT: Do you use this to get a less cursive script font? Lucida (like many opentype math fonts) comes with two stylistic variants for script letters. The default is the cursive variant, but you can get the less cursive variant using ss04 stylistic set. See page 8 of https://tug.org/store/lucida/lucidaot.pdf Aditya
Hi Aditya, Thanks for your hint: I didn't know that subtelty about Lucida OT (and I don't know how to set it up when using Lucida OT). That being said, actually what I would like to use is the kind of script font which is the attached document (those script fonts were widely used in higher mathematics textbooks in France). So when I use mkiv the result is the one I like and is attached to this message (test-scriptfonts-mkiv.pdf). However, thanks to your message I went to check, and noticed that lmtx does not give the same math script fonts, and I don't know what has changed between mkiv and lmtx regarding Asana Math, or the way in which fallback fonts are managed (please see the attached file test-scriptfonts-lmtx.pdf). Thanks for your help: Otared PS: this the the file test-scriptfonts.tex: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% 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,10pt] %% End of Font Definitions %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \starttext \startbuffer[test] Testing script fonts in maths \startformula x^2 + y^2 = z^2, \quad \sin(a)^2 + \cos(b)^2 = 1. \stopformula \startformula \cal{A}, \quad \cal{B}, \quad \cal{C}, \quad \cal{D}, \quad \cal{E}, \quad \cal{F}, \quad \cal{G}, \quad \cal{H}, \quad \cal{K}, \quad \cal{L}, \quad \cal{M}, \quad \cal{P}, \quad \cal{S}, \quad \cal{T} \stopformula \hairline \stopbuffer \switchtobodyfont[lucidaot] {\bf Lucida OT: } \getbuffer[test] \switchtobodyfont[myfont] {\bf Lucida OT with Asana Math: } \getbuffer[test] \stoptext
On 17 Oct 2019, at 08:00, Aditya Mahajan
wrote: On Wed, 16 Oct 2019, Otared Kavian wrote:
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:
OT: Do you use this to get a less cursive script font?
Lucida (like many opentype math fonts) comes with two stylistic variants for script letters. The default is the cursive variant, but you can get the less cursive variant using ss04 stylistic set. See page 8 of https://tug.org/store/lucida/lucidaot.pdf
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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________
participants (4)
-
Aditya Mahajan
-
Fabrice Couvreur
-
Otared Kavian
-
Wolfgang Schuster