* Howto typeset physical half-life
@ 2015-04-17 19:41 Christian Prim
2015-04-17 21:51 ` Hans Hagen
0 siblings, 1 reply; 5+ messages in thread
From: Christian Prim @ 2015-04-17 19:41 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 390 bytes --]
Hi
a year or so before one could simply typeset the physical half-life as
shown in MWE:
\usetypescript[palatino]
\setupbodyfont[palatino]
\starttext
½ α
\m{T_α}
\m{T_½}
\stoptext
The greek letter is just to show, that utf-8 works as expected. In actual
beta (and probably longer before) this doesn't work anymore. What have I
missed?
Thanks
Christian
[-- Attachment #1.2: Type: text/html, Size: 580 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Howto typeset physical half-life
2015-04-17 19:41 Howto typeset physical half-life Christian Prim
@ 2015-04-17 21:51 ` Hans Hagen
2015-04-18 6:13 ` Christian Prim
2015-04-18 9:28 ` Alan BRASLAU
0 siblings, 2 replies; 5+ messages in thread
From: Hans Hagen @ 2015-04-17 21:51 UTC (permalink / raw)
To: ntg-context
On 4/17/2015 9:41 PM, Christian Prim wrote:
> Hi
>
> a year or so before one could simply typeset the physical half-life as
> shown in MWE:
>
> \usetypescript[palatino]
> \setupbodyfont[palatino]
> \starttext
> ½ α
> \m{T_α}
> \m{T_½}
> \stoptext
>
> The greek letter is just to show, that utf-8 works as expected. In
> actual beta (and probably longer before) this doesn't work anymore. What
> have I missed?
Are you sure? palatino doesn't have that character in its math
repertoire (it might have been present in the alternative that uses px
fonts combined with a pagella text font in which case they're coming
from text). The math subsystem of context does to some extend accept
super and subscript characters but not (at least not now) these
fractions. Is this really needed? It can be done but quite some extra
overhead for bad practice.
Anyway, I've added a checker so that at least it gets reported (assuming
the use of one math collection):
mkiv lua stats > unknown math characters: ½ (U+000BD) (n=3)
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Howto typeset physical half-life
2015-04-17 21:51 ` Hans Hagen
@ 2015-04-18 6:13 ` Christian Prim
2015-04-18 9:28 ` Alan BRASLAU
1 sibling, 0 replies; 5+ messages in thread
From: Christian Prim @ 2015-04-18 6:13 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 2296 bytes --]
Hi Hans
thanks for the checker, that surely helps. So I could find a solution
(perhaps not the best) for my problem:
\m{T_{\text{½}}}
Thanks again
Christian
2015-04-17 23:51 GMT+02:00 Hans Hagen <pragma@wxs.nl>:
> On 4/17/2015 9:41 PM, Christian Prim wrote:
>
>> Hi
>>
>> a year or so before one could simply typeset the physical half-life as
>> shown in MWE:
>>
>> \usetypescript[palatino]
>> \setupbodyfont[palatino]
>> \starttext
>> ½ α
>> \m{T_α}
>> \m{T_½}
>> \stoptext
>>
>> The greek letter is just to show, that utf-8 works as expected. In
>> actual beta (and probably longer before) this doesn't work anymore. What
>> have I missed?
>>
>
> Are you sure? palatino doesn't have that character in its math repertoire
> (it might have been present in the alternative that uses px fonts combined
> with a pagella text font in which case they're coming from text). The math
> subsystem of context does to some extend accept super and subscript
> characters but not (at least not now) these fractions. Is this really
> needed? It can be done but quite some extra overhead for bad practice.
>
> Anyway, I've added a checker so that at least it gets reported (assuming
> the use of one math collection):
>
> mkiv lua stats > unknown math characters: ½ (U+000BD) (n=3)
>
> Hans
>
>
>
> -----------------------------------------------------------------
> Hans Hagen | PRAGMA ADE
> Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
> | www.pragma-pod.nl
> -----------------------------------------------------------------
>
> ___________________________________________________________________________________
> 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://tex.aanhet.net
> archive : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
>
> ___________________________________________________________________________________
[-- Attachment #1.2: Type: text/html, Size: 3648 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Howto typeset physical half-life
2015-04-17 21:51 ` Hans Hagen
2015-04-18 6:13 ` Christian Prim
@ 2015-04-18 9:28 ` Alan BRASLAU
2015-04-18 11:22 ` Hans Hagen
1 sibling, 1 reply; 5+ messages in thread
From: Alan BRASLAU @ 2015-04-18 9:28 UTC (permalink / raw)
To: Hans Hagen; +Cc: ntg-context
On Fri, 17 Apr 2015 23:51:56 +0200
Hans Hagen <pragma@wxs.nl> wrote:
> Anyway, I've added a checker so that at least it gets reported
> (assuming the use of one math collection):
>
> mkiv lua stats > unknown math characters: ½ (U+000BD) (n=3)
This will be quite useful.
A question in general for the mailing list: should missing math (and
text) characters simply not appear or should some placeholder (such as
a box) be rendered in its place? This could help with proofreading.
Nevertheless, having missing characters reported in the log file is a
good diagnostic.
Alan
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Howto typeset physical half-life
2015-04-18 9:28 ` Alan BRASLAU
@ 2015-04-18 11:22 ` Hans Hagen
0 siblings, 0 replies; 5+ messages in thread
From: Hans Hagen @ 2015-04-18 11:22 UTC (permalink / raw)
To: Alan BRASLAU; +Cc: ntg-context
On 4/18/2015 11:28 AM, Alan BRASLAU wrote:
> On Fri, 17 Apr 2015 23:51:56 +0200
> Hans Hagen <pragma@wxs.nl> wrote:
>
>> Anyway, I've added a checker so that at least it gets reported
>> (assuming the use of one math collection):
>>
>> mkiv lua stats > unknown math characters: ½ (U+000BD) (n=3)
>
> This will be quite useful.
>
> A question in general for the mailing list: should missing math (and
> text) characters simply not appear or should some placeholder (such as
> a box) be rendered in its place? This could help with proofreading.
>
> Nevertheless, having missing characters reported in the log file is a
> good diagnostic.
we already have
\enabletrackers[fonts.missing=replace] % top of file
which should show something with
\starttext
\m{T_α}
\m{T_½}
\m{T½_½}
test \char3211 test
\stoptext
I've extended that to math so that you will get a placeholder there too
(more visible with this option, otherwise a "?" will be used as
replacement).
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-04-18 11:22 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-17 19:41 Howto typeset physical half-life Christian Prim
2015-04-17 21:51 ` Hans Hagen
2015-04-18 6:13 ` Christian Prim
2015-04-18 9:28 ` Alan BRASLAU
2015-04-18 11:22 ` Hans Hagen
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).