ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* problem with mathmode in footnotes
@ 2017-05-08 23:01 Alan Bowen
       [not found] ` <e071f80a-8606-09ff-b0b5-f1b9ab6ab999@wxs.nl>
  0 siblings, 1 reply; 4+ messages in thread
From: Alan Bowen @ 2017-05-08 23:01 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

The code

\definefontfamily[mainface][serif][Brill]
[protrusion=quality,
expansion=quality,
mode=node,
force=yes,
]

\definefallbackfamily[mainface][mm][TeX Gyre Pagella]
[preset=math:digitsnormal,features=f:oldstyle,scale=0.93]

\definefallbackfamily [mainface] [mm] [Brill]
[preset=math:lowercasegreeknormal]
\definefallbackfamily [mainface] [mm] [Brill]
[preset=math:lowercasegreekitalic]
\definefallbackfamily [mainface] [mm] [Brill]
[preset=math:uppercasegreeknormal]
\definefallbackfamily [mainface] [mm] [Brill]
[preset=math:uppercasegreekitalic]

\definefontfamily[mainface][mm][TeXGyre Termes Math][scale=0.94]
\setupmathematics[ucgreek=normal,lcgreek=italic]

\setupbodyfont[mainface,10pt]

\starttext

Euclid \emph{Elem}.\ 3.20 states that if \m{BC} is  joined to the center
\m{O} of the circle, then \m{\angle BOC = 2\cdot\angle A},  and \m{\angle
BOC} is equal to  \m{BC\kern-1em\raise1.8ex\hbox{\frown}}.%
%
\footnote{Euclid \emph{Elem}.\ 3.20 states that if \m{BC} is  joined to the
center \m{O} of the circle, then \m{\angle BOC = 2\cdot\angle A},  and
\m{\angle BOC} is equal to \m{BC\kern-1em\raise1.8ex\hbox{\frown}}.}

\stoptext

processes as it should using earlier versions (e.g., ConTeXt  ver:
2017.03.26)  but goes awry using ConTeXt  ver: 2017.05.06.

So far as I can tell, the problem comes with the specification of the
fonts. If one omits the stuff before “\starttext”, the footnote looks as it
should and everyone but the publisher would be happy.

Alan

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

[-- Attachment #2: Type: text/plain, Size: 492 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: problem with mathmode in footnotes
       [not found]   ` <CAFMOkGXqSqR6d3A=mpvkJtsdr+VdGgmJC9EvVZGgeiCYZRWM_A@mail.gmail.com>
@ 2017-05-17 16:21     ` Alan Bowen
  2017-05-27 12:51       ` Alan Bowen
  0 siblings, 1 reply; 4+ messages in thread
From: Alan Bowen @ 2017-05-17 16:21 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

To recap: the aim is to get oldstyle numerals in mathmode using TeX Gyre
Termes otherwise;

\definefontfamily[mainface][serif][TeXGyre Termes][features=f:oldstyle]


\definefallbackfamily[mainface][mm][TeX Gyre Pagella]
[preset=math:digitsnormal,
features=f:oldstyle,
scale=0.93]

\definefontfamily[mainface][mm][TeXGyre Termes Math]

\setupbodyfont[mainface,10pt]
123456789

Euclid \emph{Elem}.\ 3.20 states that if $BC$ is  joined to the center $O$
of the circle, then $\angle BOC = 2\cdot\angle A$,  and $\angle BOC$ is
equal to arc $BC$, that is,
$BC\kern-1em\raise1.8ex\hbox{\frown}$.%
\footnote{\m{123456789}
Euclid \emph{Elem}.\ 3.20 states that if $BC$ is  joined to the center $O$
of the circle, then $\angle BOC = 2\cdot\angle A$,  and $\angle BOC$ is
equal to arc $BC$, that is,
$BC\kern-1em\raise1.8ex\hbox{\frown}$.}

\stoptext

in mathmode in the footnote, ones gets:
(a) oldstyle numerals (from Pagella) but no math symbols etc
(b) if the line   preset=math:digitsnormal   is commented out,
math symbols etc but but regular numerals.

I am using the latest beta of the standalone (05.15.2017).

Alan


On Sun, May 14, 2017 at 12:01 PM, Alan Bowen <bowenalan03@gmail.com> wrote:

> Just for the record: The problem with mathmode in footnotes persists with
> the latest standalone ConTeXt  ver: 2017.05.12 (even with Termes instead
> of the Brill font).
>
> Alan
>
> On Tue, May 9, 2017 at 1:22 PM, Hans Hagen <pragma@wxs.nl> wrote:
>
>> Hi,
>>
>> % doesn't work, no cdot
>>
>> % \definefallbackfamily
>> %   [mainface]
>> %   [mm]
>> %   [Brill]
>> %   [range={digitsnormal},
>> %    features=f:oldstyle,
>> %    force=yes]
>> % \definefontfamily[mainface][rm][Brill]
>> %   [protrusion=quality,expansion=quality]
>> % \definefontfamily[mainface][mm][TeX Gyre Pagella Math]
>> %   [scale=0.80,force=yes]
>> % \definefontfamily[mainface][tt][Dejavu Sans Mono]
>> % \setupbodyfont[mainface,10pt]
>>
>> works ok:
>>
>> \setupbodyfont[pagella,10pt]
>>
>> \setuppapersize[S3]
>>
>> \starttext
>>
>> Euclid \emph {Elem}.\ 3.20 states that if \m {BC} is joined to the center
>> \m {O}
>> of the circle, then \m {\angle BOC = 2 \cdot \angle A}, and \m {\angle
>> BOC} is
>> equal to \m {BC\kern-1em\raise1.8ex\hbox to 1em {\frown}}. \footnote
>> {Euclid \emph
>> {Elem}.\ 3.20 states that if \m {BC} is joined to the center \m{O} of the
>> circle,
>> then \m {\angle BOC = 2 \cdot \angle A}, and \m {\angle BOC} is equal to
>> \m
>> {BC\kern-1em\raise1.8ex\hbox to 1em {\frown}}.}
>>
>> \stoptext
>>
>> I have no clue why selectfont fails in footnotes. Maybe Wolfgang hasa
>> clue.
>>
>> Hans
>>
>>
>>
>>
>>
>> -------- Forwarded Message --------
>> Subject:        [NTG-context] problem with mathmode in footnotes
>> Date:   Mon, 8 May 2017 19:01:05 -0400
>> From:   Alan Bowen <bowenalan03@gmail.com>
>> Reply-To:       mailing list for ConTeXt users <ntg-context@ntg.nl>
>> To:     mailing list for ConTeXt users <ntg-context@ntg.nl>
>>
>>
>>
>> The code
>>
>> \definefontfamily[mainface][serif][Brill]
>> [protrusion=quality,
>> expansion=quality,
>> mode=node,
>> force=yes,
>> ]
>>
>> \definefallbackfamily[mainface][mm][TeX Gyre Pagella]
>> [preset=math:digitsnormal,features=f:oldstyle,scale=0.93]
>>
>> \definefallbackfamily [mainface] [mm] [Brill]
>> [preset=math:lowercasegreeknormal]
>> \definefallbackfamily [mainface] [mm] [Brill]
>> [preset=math:lowercasegreekitalic]
>> \definefallbackfamily [mainface] [mm] [Brill]
>> [preset=math:uppercasegreeknormal]
>> \definefallbackfamily [mainface] [mm] [Brill]
>> [preset=math:uppercasegreekitalic]
>>
>> \definefontfamily[mainface][mm][TeXGyre Termes Math][scale=0.94]
>> \setupmathematics[ucgreek=normal,lcgreek=italic]
>>
>> \setupbodyfont[mainface,10pt]
>>
>> \starttext
>>
>> Euclid \emph{Elem}.\ 3.20 states that if \m{BC} is  joined to the center
>> \m{O} of the circle, then \m{\angle BOC = 2\cdot\angle A},  and \m{\angle
>> BOC} is equal to  \m{BC\kern-1em\raise1.8ex\hbox{\frown}}.%
>> %
>> \footnote{Euclid \emph{Elem}.\ 3.20 states that if \m{BC} is  joined to
>> the center \m{O} of the circle, then \m{\angle BOC = 2\cdot\angle A}, and
>> \m{\angle BOC} is equal to \m{BC\kern-1em\raise1.8ex\hbox{\frown}}.}
>> \stoptext
>>
>> processes as it should using earlier versions (e.g., ConTeXt  ver:
>> 2017.03.26)  but goes awry using ConTeXt  ver: 2017.05.06.
>>
>> So far as I can tell, the problem comes with the specification of the
>> fonts. If one omits the stuff before “\starttext”, the footnote looks as it
>> should and everyone but the publisher would be happy.
>>
>> Alan
>>
>
>

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

[-- Attachment #2: Type: text/plain, Size: 492 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: problem with mathmode in footnotes
  2017-05-17 16:21     ` Alan Bowen
@ 2017-05-27 12:51       ` Alan Bowen
       [not found]         ` <730ef43e-61e5-231d-64a2-4d810f95b3e5@wxs.nl>
  0 siblings, 1 reply; 4+ messages in thread
From: Alan Bowen @ 2017-05-27 12:51 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

The problem persists with  ConTeXt  ver: 2017.05.25.

So, I wonder, is there something that I should fix at my end? Any
suggestions will be gratefully received.

Alan

On Wed, May 17, 2017 at 12:21 PM, Alan Bowen <bowenalan03@gmail.com> wrote:

> To recap: the aim is to get oldstyle numerals in mathmode using TeX Gyre
> Termes otherwise;
>
> \definefontfamily[mainface][serif][TeXGyre Termes][features=f:oldstyle]
>
>
> \definefallbackfamily[mainface][mm][TeX Gyre Pagella]
> [preset=math:digitsnormal,
> features=f:oldstyle,
> scale=0.93]
>
> \definefontfamily[mainface][mm][TeXGyre Termes Math]
>
> \setupbodyfont[mainface,10pt]
> 123456789
>
> Euclid \emph{Elem}.\ 3.20 states that if $BC$ is  joined to the center $O$
> of the circle, then $\angle BOC = 2\cdot\angle A$,  and $\angle BOC$ is
> equal to arc $BC$, that is,
> $BC\kern-1em\raise1.8ex\hbox{\frown}$.%
> \footnote{\m{123456789}
> Euclid \emph{Elem}.\ 3.20 states that if $BC$ is  joined to the center $O$
> of the circle, then $\angle BOC = 2\cdot\angle A$,  and $\angle BOC$ is
> equal to arc $BC$, that is,
> $BC\kern-1em\raise1.8ex\hbox{\frown}$.}
>
> \stoptext
>
> in mathmode in the footnote, ones gets:
> (a) oldstyle numerals (from Pagella) but no math symbols etc
> (b) if the line   preset=math:digitsnormal   is commented out,
> math symbols etc but but regular numerals.
>
> I am using the latest beta of the standalone (05.15.2017).
>
> Alan
>
>
> On Sun, May 14, 2017 at 12:01 PM, Alan Bowen <bowenalan03@gmail.com>
> wrote:
>
>> Just for the record: The problem with mathmode in footnotes persists with
>> the latest standalone ConTeXt  ver: 2017.05.12 (even with Termes instead
>> of the Brill font).
>>
>> Alan
>>
>> On Tue, May 9, 2017 at 1:22 PM, Hans Hagen <pragma@wxs.nl> wrote:
>>
>>> Hi,
>>>
>>> % doesn't work, no cdot
>>>
>>> % \definefallbackfamily
>>> %   [mainface]
>>> %   [mm]
>>> %   [Brill]
>>> %   [range={digitsnormal},
>>> %    features=f:oldstyle,
>>> %    force=yes]
>>> % \definefontfamily[mainface][rm][Brill]
>>> %   [protrusion=quality,expansion=quality]
>>> % \definefontfamily[mainface][mm][TeX Gyre Pagella Math]
>>> %   [scale=0.80,force=yes]
>>> % \definefontfamily[mainface][tt][Dejavu Sans Mono]
>>> % \setupbodyfont[mainface,10pt]
>>>
>>> works ok:
>>>
>>> \setupbodyfont[pagella,10pt]
>>>
>>> \setuppapersize[S3]
>>>
>>> \starttext
>>>
>>> Euclid \emph {Elem}.\ 3.20 states that if \m {BC} is joined to the
>>> center \m {O}
>>> of the circle, then \m {\angle BOC = 2 \cdot \angle A}, and \m {\angle
>>> BOC} is
>>> equal to \m {BC\kern-1em\raise1.8ex\hbox to 1em {\frown}}. \footnote
>>> {Euclid \emph
>>> {Elem}.\ 3.20 states that if \m {BC} is joined to the center \m{O} of
>>> the circle,
>>> then \m {\angle BOC = 2 \cdot \angle A}, and \m {\angle BOC} is equal to
>>> \m
>>> {BC\kern-1em\raise1.8ex\hbox to 1em {\frown}}.}
>>>
>>> \stoptext
>>>
>>> I have no clue why selectfont fails in footnotes. Maybe Wolfgang hasa
>>> clue.
>>>
>>> Hans
>>>
>>>
>>>
>>>
>>>
>>> -------- Forwarded Message --------
>>> Subject:        [NTG-context] problem with mathmode in footnotes
>>> Date:   Mon, 8 May 2017 19:01:05 -0400
>>> From:   Alan Bowen <bowenalan03@gmail.com>
>>> Reply-To:       mailing list for ConTeXt users <ntg-context@ntg.nl>
>>> To:     mailing list for ConTeXt users <ntg-context@ntg.nl>
>>>
>>>
>>>
>>> The code
>>>
>>> \definefontfamily[mainface][serif][Brill]
>>> [protrusion=quality,
>>> expansion=quality,
>>> mode=node,
>>> force=yes,
>>> ]
>>>
>>> \definefallbackfamily[mainface][mm][TeX Gyre Pagella]
>>> [preset=math:digitsnormal,features=f:oldstyle,scale=0.93]
>>>
>>> \definefallbackfamily [mainface] [mm] [Brill]
>>> [preset=math:lowercasegreeknormal]
>>> \definefallbackfamily [mainface] [mm] [Brill]
>>> [preset=math:lowercasegreekitalic]
>>> \definefallbackfamily [mainface] [mm] [Brill]
>>> [preset=math:uppercasegreeknormal]
>>> \definefallbackfamily [mainface] [mm] [Brill]
>>> [preset=math:uppercasegreekitalic]
>>>
>>> \definefontfamily[mainface][mm][TeXGyre Termes Math][scale=0.94]
>>> \setupmathematics[ucgreek=normal,lcgreek=italic]
>>>
>>> \setupbodyfont[mainface,10pt]
>>>
>>> \starttext
>>>
>>> Euclid \emph{Elem}.\ 3.20 states that if \m{BC} is  joined to the center
>>> \m{O} of the circle, then \m{\angle BOC = 2\cdot\angle A},  and \m{\angle
>>> BOC} is equal to  \m{BC\kern-1em\raise1.8ex\hbox{\frown}}.%
>>> %
>>> \footnote{Euclid \emph{Elem}.\ 3.20 states that if \m{BC} is  joined to
>>> the center \m{O} of the circle, then \m{\angle BOC = 2\cdot\angle A}, and
>>> \m{\angle BOC} is equal to \m{BC\kern-1em\raise1.8ex\hbox{\frown}}.}
>>> \stoptext
>>>
>>> processes as it should using earlier versions (e.g., ConTeXt  ver:
>>> 2017.03.26)  but goes awry using ConTeXt  ver: 2017.05.06.
>>>
>>> So far as I can tell, the problem comes with the specification of the
>>> fonts. If one omits the stuff before “\starttext”, the footnote looks as it
>>> should and everyone but the publisher would be happy.
>>>
>>> Alan
>>>
>>
>>
>

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

[-- Attachment #2: Type: text/plain, Size: 492 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: problem with mathmode in footnotes
       [not found]           ` <CAFMOkGWKL=Ctru+rk+8ab_0PFNFOaChQV4teunMTtSqbSFAFpA@mail.gmail.com>
@ 2017-05-30 13:49             ` Alan Bowen
  0 siblings, 0 replies; 4+ messages in thread
From: Alan Bowen @ 2017-05-30 13:49 UTC (permalink / raw)
  To: Hans Hagen, mailing list for ConTeXt users


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

Hi, Hans—

The problem with mathmode in footnotes is gone with the latest beta. And
without any adverse side effects in any of my projects.

My thanks to you and Wolfgang for your work on this.

All best, Alan

On Sat, May 27, 2017 at 2:49 PM, Alan Bowen <bowenalan03@gmail.com> wrote:

> Many thanks for this suggestion, Hans. {\small} works well.
>
> I look forward to the next beta.
>
> All best, Alan
>
> On Sat, May 27, 2017 at 1:01 PM, Hans Hagen <pragma@wxs.nl> wrote:
>
>> On 5/27/2017 2:51 PM, Alan Bowen wrote:
>>
>>> The problem persists with  ConTeXt  ver: 2017.05.25.
>>>
>>> So, I wonder, is there something that I should fix at my end? Any
>>> suggestions will be gratefully received.
>>>
>> hopefully fixed next beta (not sure of side effects)
>>
>> in the meantime you can do this before starttext:
>>
>> {\small}
>>
>>
>> -----------------------------------------------------------------
>>                                           Hans Hagen | PRAGMA ADE
>>               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>>        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
>> -----------------------------------------------------------------
>>
>
>

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

[-- Attachment #2: Type: text/plain, Size: 492 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-05-30 13:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-08 23:01 problem with mathmode in footnotes Alan Bowen
     [not found] ` <e071f80a-8606-09ff-b0b5-f1b9ab6ab999@wxs.nl>
     [not found]   ` <CAFMOkGXqSqR6d3A=mpvkJtsdr+VdGgmJC9EvVZGgeiCYZRWM_A@mail.gmail.com>
2017-05-17 16:21     ` Alan Bowen
2017-05-27 12:51       ` Alan Bowen
     [not found]         ` <730ef43e-61e5-231d-64a2-4d810f95b3e5@wxs.nl>
     [not found]           ` <CAFMOkGWKL=Ctru+rk+8ab_0PFNFOaChQV4teunMTtSqbSFAFpA@mail.gmail.com>
2017-05-30 13:49             ` Alan Bowen

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).