Is it possible have say Pagella in math, and also in \tt except for the ASCII range, where a monospace font is used? (Both for largely untranslated Unicode points.)
On 06/16/2017 02:44 PM, Hans Åberg wrote:
Is it possible have say Pagella in math, and also in \tt except for the ASCII range, where a monospace font is used? (Both for largely untranslated Unicode points.)
Hans, I’m not sure this is what you want: \definefallbackfamily[mainface][tt][TeX Gyre Cursor] [range={basiclatin, digitslatin}, force=yes] \definefontfamily[mainface][rm][TeX Gyre Pagella] \definefontfamily[mainface][mm][TeX Gyre Pagella Math] \definefontfamily[mainface][tt][TeX Gyre Pagella] \setupbodyfont[mainface] \starttext abd 312 ásñeäæø \tt abd 312 ásñeäæø \stoptext Just in case it might help, Pablo -- http://www.ousia.tk
On 16 Jun 2017, at 20:46, Pablo Rodriguez
wrote: On 06/16/2017 02:44 PM, Hans Åberg wrote:
Is it possible have say Pagella in math, and also in \tt except for the ASCII range, where a monospace font is used? (Both for largely untranslated Unicode points.)
I’m not sure this is what you want:
\definefallbackfamily[mainface][tt][TeX Gyre Cursor] [range={basiclatin, digitslatin}, force=yes] \definefontfamily[mainface][rm][TeX Gyre Pagella] \definefontfamily[mainface][mm][TeX Gyre Pagella Math] \definefontfamily[mainface][tt][TeX Gyre Pagella] \setupbodyfont[mainface] \starttext abd 312 ásñeäæø
\tt abd 312 ásñeäæø \stoptext
Just in case it might help,
Thank you for the help. But the math characters do not show in \tt, as in the example below. (Tried with TeX Live 2017.) ---- \definefallbackfamily[mainface][tt][TeX Gyre Cursor] [range={basiclatin, digitslatin}, force=yes] \definefontfamily[mainface][rm][TeX Gyre Pagella] \definefontfamily[mainface][mm][TeX Gyre Pagella Math] \definefontfamily[mainface][tt][TeX Gyre Pagella] \setupbodyfont[mainface] \setupmathematics[lcgreek=normal, default=normal] \starttext \startformula 𝑨 ⇒ (𝑩 ⇒ 𝑨) \stopformula \starttyping axiom A1. 𝑨 ⇒ (𝑩 ⇒ 𝑨). \stoptyping {\tt axiom A1. 𝑨 ⇒ (𝑩 ⇒ 𝑨).} \stoptext ----
On 06/16/2017 09:34 PM, Hans Åberg wrote:
Thank you for the help. But the math characters do not show in \tt, as in the example below. (Tried with TeX Live 2017.) [...] \definefontfamily[mainface][rm][TeX Gyre Pagella] \definefontfamily[mainface][mm][TeX Gyre Pagella Math] \definefontfamily[mainface][tt][TeX Gyre Pagella]
I don’t do math (at all, not only with ConTeXt), but the following command seems to work: \definefontfamily[mainface][tt][TeX Gyre Pagella Math] Pablo -- http://www.ousia.tk
On 16 Jun 2017, at 21:46, Pablo Rodriguez
wrote: On 06/16/2017 09:34 PM, Hans Åberg wrote:
Thank you for the help. But the math characters do not show in \tt, as in the example below. (Tried with TeX Live 2017.)
I don’t do math (at all, not only with ConTeXt), but the following command seems to work:
\definefontfamily[mainface][tt][TeX Gyre Pagella Math]
Great! That seems to work in \tt, but for some reson not with \starttyping. Probably one should set the font, But I can't find info about it.
On 06/16/2017 10:07 PM, Hans Åberg wrote:
On 16 Jun 2017, at 21:46, Pablo Rodriguez
wrote: [...] I don’t do math (at all, not only with ConTeXt), but the following command seems to work: \definefontfamily[mainface][tt][TeX Gyre Pagella Math]
Great! That seems to work in \tt, but for some reason not with \starttyping. Probably one should set the font, But I can't find info about it.
This is my sample: \definefallbackfamily[mainface][tt][TeX Gyre Cursor] [range={basiclatin, digitslatin}, force=yes] \definefontfamily[mainface][rm][TeX Gyre Pagella] \definefontfamily[mainface][mm][TeX Gyre Pagella Math] \definefontfamily[mainface][tt][TeX Gyre Pagella Math] \setupbodyfont[mainface] \setupmathematics[lcgreek=normal, default=normal] \starttext \startformula 𝑨 ⇒ (𝑩 ⇒ 𝑨) \stopformula \starttyping axiom B1. 𝑨 ⇒ (𝑩 ⇒ 𝑨). \stoptyping {\tt axiom A1. 𝑨 ⇒ (𝑩 ⇒ 𝑨).} With latest beta (from 2017.06.15 22:10) and LuaTeX-1.05.0, I get three formulas typeset with Pagella Math. (Output attached.) If this doesn’t work with TeX Live 2017, you might try the latest beta from the ConTeXt Suite. Pablo -- http://www.ousia.tk
On 17 Jun 2017, at 07:36, Pablo Rodriguez
wrote: On 06/16/2017 10:07 PM, Hans Åberg wrote:
On 16 Jun 2017, at 21:46, Pablo Rodriguez
wrote: [...] I don’t do math (at all, not only with ConTeXt), but the following command seems to work: \definefontfamily[mainface][tt][TeX Gyre Pagella Math]
Great! That seems to work in \tt, but for some reason not with \starttyping. Probably one should set the font, But I can't find info about it.
This is my sample:
\definefallbackfamily[mainface][tt][TeX Gyre Cursor] [range={basiclatin, digitslatin}, force=yes]
\definefontfamily[mainface][rm][TeX Gyre Pagella] \definefontfamily[mainface][mm][TeX Gyre Pagella Math] \definefontfamily[mainface][tt][TeX Gyre Pagella Math]
\setupbodyfont[mainface]
\setupmathematics[lcgreek=normal, default=normal]
\starttext \startformula 𝑨 ⇒ (𝑩 ⇒ 𝑨) \stopformula
\starttyping axiom B1. 𝑨 ⇒ (𝑩 ⇒ 𝑨). \stoptyping
{\tt axiom A1. 𝑨 ⇒ (𝑩 ⇒ 𝑨).}
With latest beta (from 2017.06.15 22:10) and LuaTeX-1.05.0, I get three formulas typeset with Pagella Math. (Output attached.)
If this doesn’t work with TeX Live 2017, you might try the latest beta from the ConTeXt Suite.
Yes, that is the problem. It works fine with latest beta. I found a strange bug with the \tt command: when copying from the PDF, the spaces disappear. With your header above, I get (the comments is the text copy from the PDF): {\tt axiom A1. 𝑨 ⇒ 𝑩.} %axiom A1. 𝑨 ⇒ 𝑩. {\tt axiom A1. 𝑨 ⇒ 𝑩 α.} %axiomA1. 𝑨⇒𝑩α. That is, when adding a single symbol, above "α", but it does not seem to matter which, the spaces disappear. It does not happen with \starttext, though.
On 06/17/2017 10:11 AM, Hans Åberg wrote:
[...] Yes, that is the problem. It works fine with latest beta.
I found a strange bug with the \tt command: when copying from the PDF, the spaces disappear. With your header above, I get (the comments is the text copy from the PDF): [...] That is, when adding a single symbol, above "α", but it does not seem to matter which, the spaces disappear.
I get right spaces with latest beta from: \definefallbackfamily[mainface][tt][TeX Gyre Cursor] [range={basiclatin, digitslatin}, force=yes] \definefontfamily[mainface][rm][TeX Gyre Pagella] \definefontfamily[mainface][mm][TeX Gyre Pagella Math] \definefontfamily[mainface][tt][TeX Gyre Pagella Math] \setupbodyfont[mainface] \setupmathematics[lcgreek=normal, default=normal] \starttext {\tt axiom A1. 𝑨 ⇒ 𝑩.} {\tt axiom A1. 𝑨 ⇒ 𝑩 α.} \stoptext I used evince, xpdf, Acrobat, FoxitReader and mupdf. (Output enclosed with \starttext commented.)
It does not happen with \starttext, though.
Sorry, but I’m afraid I don’t know what you mean. I get the same results commenting \starttext. Pablo -- http://www.ousia.tk
On 17 Jun 2017, at 12:11, Pablo Rodriguez
wrote: On 06/17/2017 10:11 AM, Hans Åberg wrote:
[...] Yes, that is the problem. It works fine with latest beta.
I found a strange bug with the \tt command: when copying from the PDF, the spaces disappear. With your header above, I get (the comments is the text copy from the PDF): [...] That is, when adding a single symbol, above "α", but it does not seem to matter which, the spaces disappear.
I get right spaces with latest beta from:
I used evince, xpdf, Acrobat, FoxitReader and mupdf. (Output enclosed with \starttext commented.)
It looks right in the PDF, but not when copying them and pasting into a text only file.
It does not happen with \starttext, though.
Sorry, but I’m afraid I don’t know what you mean. I get the same results commenting \starttext.
By contrast, copy-PDF paste text came our right here.
On 17 Jun 2017, at 12:11, Pablo Rodriguez
wrote: On 06/17/2017 10:11 AM, Hans Åberg wrote:
[...] Yes, that is the problem. It works fine with latest beta.
I found a strange bug with the \tt command: when copying from the PDF, the spaces disappear. With your header above, I get (the comments is the text copy from the PDF): [...] That is, when adding a single symbol, above "α", but it does not seem to matter which, the spaces disappear.
I get right spaces with latest beta...
I do not get the Unicode subscript and superscript numbers in \tt and \starttyping: \definefallbackfamily[mainface][tt][TeX Gyre Cursor] [range={basiclatin, digitslatin}, force=yes] \definefontfamily[mainface][rm][TeX Gyre Pagella] \definefontfamily[mainface][mm][TeX Gyre Pagella Math] \definefontfamily[mainface][tt][TeX Gyre Pagella Math] \setupbodyfont[mainface] \setupmathematics[lcgreek=normal, default=normal] \starttext \startformula 𝑨¹₁, 𝑨¹₁ ⇒ 𝑩¹₁ ⊢ 𝑩¹₁. \stopformula \starttyping rule MP. 𝑨¹₁, 𝑨¹₁ ⇒ 𝑩¹₁ ⊢ 𝑩¹₁. \stoptyping {\tt rule MP. 𝑨¹₁, 𝑨¹₁ ⇒ 𝑩¹₁ ⊢ 𝑩¹₁.} \stoptext
On 17 Jun 2017, at 15:16, Hans Åberg
wrote: On 17 Jun 2017, at 12:11, Pablo Rodriguez
wrote: On 06/17/2017 10:11 AM, Hans Åberg wrote:
[...] Yes, that is the problem. It works fine with latest beta.
I found a strange bug with the \tt command: when copying from the PDF, the spaces disappear. With your header above, I get (the comments is the text copy from the PDF): [...] That is, when adding a single symbol, above "α", but it does not seem to matter which, the spaces disappear.
I get right spaces with latest beta...
I do not get the Unicode subscript and superscript numbers in \tt and \starttyping:
It is due to the font: they are in STIX Two Math: \definefallbackfamily[mainface][tt][TeX Gyre Cursor] [range={basiclatin, digitslatin}, force=yes] \definefontfamily[mainface][rm][TeX Gyre Pagella] \definefontfamily[mainface][mm][TeX Gyre Pagella Math] \definefontfamily[mainface][tt][STIX Two Math] \setupbodyfont[mainface] \setupmathematics[lcgreek=normal, default=normal] \starttext \startformula 𝑨¹₁, 𝑨¹₁ ⇒ 𝑩¹₁ ⊢ 𝑩¹₁. \stopformula \starttyping rule MP. 𝑨¹₁, 𝑨¹₁ ⇒ 𝑩¹₁ ⊢ 𝑩¹₁. \stoptyping {\tt rule MP. 𝑨¹₁, 𝑨¹₁ ⇒ 𝑩¹₁ ⊢ 𝑩¹₁.} \stoptext
On Fri, 2017-06-16 at 22:07 +0200, Hans Åberg wrote:
On 16 Jun 2017, at 21:46, Pablo Rodriguez
wrote: On 06/16/2017 09:34 PM, Hans Åberg wrote:
Thank you for the help. But the math characters do not show in \tt, as in the example below. (Tried with TeX Live 2017.)
I don’t do math (at all, not only with ConTeXt), but the following command seems to work:
\definefontfamily[mainface][tt][TeX Gyre Pagella Math]
Great! That seems to work in \tt, but for some reson not with \starttyping. Probably one should set the font, But I can't find info about it.
The fallback mechanism has changed in a non-trivial manner since TL2017. You have to go with beta.
___________________________________________________________________________________ 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 17 Jun 2017, at 08:33, Henri Menke
wrote: On Fri, 2017-06-16 at 22:07 +0200, Hans Åberg wrote:
On 16 Jun 2017, at 21:46, Pablo Rodriguez
wrote: On 06/16/2017 09:34 PM, Hans Åberg wrote:
Thank you for the help. But the math characters do not show in \tt, as in the example below. (Tried with TeX Live 2017.)
I don’t do math (at all, not only with ConTeXt), but the following command seems to work:
\definefontfamily[mainface][tt][TeX Gyre Pagella Math]
Great! That seems to work in \tt, but for some reson not with \starttyping. Probably one should set the font, But I can't find info about it.
The fallback mechanism has changed in a non-trivial manner since TL2017. You have to go with beta.
Yes, it works in latest beta. There is a TeX Live updating utility, at least on the MacOS distribution, that allows for server synchronizations between the yearly updates. I found a strange bug with the \tt command, where the spaces disappear when copying from the PDF—see my other post in this thread. It occurs when adding a single symbol; it does not seem to matter which. It does not happen with \starttext, though.
On 17 Jun 2017, at 08:33, Henri Menke
wrote: The fallback mechanism has changed in a non-trivial manner since TL2017. You have to go with beta.
I looked at various fonts, and they all have at least some math characters that look strange to me. So I figure one has to make a virtual font from ranges.
participants (3)
-
Hans Åberg
-
Henri Menke
-
Pablo Rodriguez