* Bug in math: version @ 2019-02-13 17:52 Otared Kavian 2019-02-13 18:12 ` Alan Braslau 2019-02-14 12:05 ` Hans Hagen 0 siblings, 2 replies; 9+ messages in thread From: Otared Kavian @ 2019-02-13 17:52 UTC (permalink / raw) To: mailing list for ConTeXt users Hi Hans, With the latest beta there seems a bug has been intoduced with « \| » which should give a vertical double bar and not a simple bar. This is a minimal example: \starttext With 2019.02.10 17:43, the command \type{\|x\|} gives an incorrect result: $\|x\| = 1$ $|x| = 1$ \stoptext Best regards: OK ___________________________________________________________________________________ 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] 9+ messages in thread
* Re: Bug in math: version 2019-02-13 17:52 Bug in math: version Otared Kavian @ 2019-02-13 18:12 ` Alan Braslau 2019-02-14 12:02 ` Hans Hagen 2019-02-14 12:05 ` Hans Hagen 1 sibling, 1 reply; 9+ messages in thread From: Alan Braslau @ 2019-02-13 18:12 UTC (permalink / raw) To: Otared Kavian; +Cc: mailing list for ConTeXt users Not just the latest beta ... and indeed according to the TeXbook this should be a vertical double bar (\Vert), in math mode. I wish to point out that | in text font (text mode) is different from | in math font (math mode). I noticed that Preview (on the mac) *fails* to render the math font $|$ whereas \| in text mode does get rendered in Preview or printed from Preview (my document used dejavu fonts). Other pdf renderers on the mac (acroread, mupdf, evince, ...) are OK. This is clearly a bug in Preview. How, other then \|, should one produce | in *text* mode? Alan On Wed, 13 Feb 2019 18:52:26 +0100 Otared Kavian <otared@gmail.com> wrote: > Hi Hans, > > With the latest beta there seems a bug has been intoduced with « \| » which should give a vertical double bar and not a simple bar. > > This is a minimal example: > > \starttext > With 2019.02.10 17:43, the command \type{\|x\|} gives an incorrect result: > > $\|x\| = 1$ > > $|x| = 1$ > \stoptext > > Best regards: OK > ___________________________________________________________________________________ > 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Bug in math: version 2019-02-13 18:12 ` Alan Braslau @ 2019-02-14 12:02 ` Hans Hagen 2019-02-14 15:42 ` Alan Braslau 0 siblings, 1 reply; 9+ messages in thread From: Hans Hagen @ 2019-02-14 12:02 UTC (permalink / raw) To: Alan Braslau, ntg-context@ntg.nl >> mailing list for ConTeXt users On 2/13/2019 7:12 PM, Alan Braslau wrote: > Not just the latest beta ... and indeed according to the TeXbook this should be a vertical double bar (\Vert), in math mode. > > I wish to point out that | in text font (text mode) is different from | in math font (math mode). I noticed that Preview (on the mac) *fails* to render the math font $|$ whereas \| in text mode does get rendered in Preview or printed from Preview (my document used dejavu fonts). Other pdf renderers on the mac (acroread, mupdf, evince, ...) are OK. This is clearly a bug in Preview. > > How, other then \|, should one produce | in *text* mode? does \textbar work? ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Bug in math: version 2019-02-14 12:02 ` Hans Hagen @ 2019-02-14 15:42 ` Alan Braslau 2019-02-14 15:50 ` Alan Braslau 2019-02-14 17:08 ` Hans Åberg 0 siblings, 2 replies; 9+ messages in thread From: Alan Braslau @ 2019-02-14 15:42 UTC (permalink / raw) To: Hans Hagen; +Cc: ntg-context@ntg.nl >> mailing list for ConTeXt users On Thu, 14 Feb 2019 13:02:21 +0100 Hans Hagen <j.hagen@xs4all.nl> wrote: > On 2/13/2019 7:12 PM, Alan Braslau wrote: > > Not just the latest beta ... and indeed according to the TeXbook this should be a vertical double bar (\Vert), in math mode. > > > > I wish to point out that | in text font (text mode) is different from | in math font (math mode). I noticed that Preview (on the mac) *fails* to render the math font $|$ whereas \| in text mode does get rendered in Preview or printed from Preview (my document used dejavu fonts). Other pdf renderers on the mac (acroread, mupdf, evince, ...) are OK. This is clearly a bug in Preview. > > > > How, other then \|, should one produce | in *text* mode? > does \textbar work? Now, this is really interesting \starttext \textbar x\textbar \stoptext produces |x| as seen by acroread, mupdf, evince, ... on the Mac BUT shows | | with preview and with skim (which uses the Apple pdf rendering engine). Thus, the Apple *bug* is perverse. (Would another Mac user confirm this.) Using \textbar is fine as a fallback, but much less convenient (and readable) than a shorthand. Two questions: 1) $\|$ SHOULD produce ‖ according to the TeXbook, so we cannot dispute Knuth's choice. \| may be undefined in the bible for textmode, but logic would have it also yield ‖ in a text font. 2) I guess | is active in text mode (and used as a delimiter in column specifications, for example, i.e. \starttabulate [|l|l|]). I have always felt a bit uncomfortable with this, having in a far past come from LaTeX practice where it defined a vertical line. Our solution in ConTeXt is to use UTF-8 input, so ‖ for a double vertical bar. Therefore, | SHOULD produce a single vertical bar, thus it should not be active. Is this possible? (Also, as a bonus, || should be taken as a ligature.) 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Bug in math: version 2019-02-14 15:42 ` Alan Braslau @ 2019-02-14 15:50 ` Alan Braslau 2019-02-14 17:08 ` Hans Åberg 1 sibling, 0 replies; 9+ messages in thread From: Alan Braslau @ 2019-02-14 15:50 UTC (permalink / raw) To: Hans Hagen; +Cc: mailing list for ConTeXt users On Thu, 14 Feb 2019 08:42:15 -0700 Alan Braslau <braslau.list@comcast.net> wrote: > On Thu, 14 Feb 2019 13:02:21 +0100 > Hans Hagen <j.hagen@xs4all.nl> wrote: > > > On 2/13/2019 7:12 PM, Alan Braslau wrote: > > > Not just the latest beta ... and indeed according to the TeXbook this should be a vertical double bar (\Vert), in math mode. > > > > > > I wish to point out that | in text font (text mode) is different from | in math font (math mode). I noticed that Preview (on the mac) *fails* to render the math font $|$ whereas \| in text mode does get rendered in Preview or printed from Preview (my document used dejavu fonts). Other pdf renderers on the mac (acroread, mupdf, evince, ...) are OK. This is clearly a bug in Preview. > > > > > > How, other then \|, should one produce | in *text* mode? > > does \textbar work? $\vert$ and $\Vert$ should also be defined. How about in text mode? 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Bug in math: version 2019-02-14 15:42 ` Alan Braslau 2019-02-14 15:50 ` Alan Braslau @ 2019-02-14 17:08 ` Hans Åberg 2019-02-14 17:20 ` Alan Braslau 1 sibling, 1 reply; 9+ messages in thread From: Hans Åberg @ 2019-02-14 17:08 UTC (permalink / raw) To: mailing list for ConTeXt users > On 14 Feb 2019, at 16:42, Alan Braslau <braslau.list@comcast.net> wrote: > > Now, this is really interesting > > \starttext > \textbar x\textbar > \stoptext > > produces |x| as seen by acroread, mupdf, evince, ... on the Mac > BUT shows | | with preview and with skim (which uses the Apple pdf rendering engine). On MacOS 10.13.6, using ConTeXt 1.02 of TeXLive 2018 updated using the TeXLive Utility, $|x|$, $\textbar x\textbar$, $\|x\|$, $‖x‖$, $||x||$ gives the output |𝑥|, |𝑥|, |𝑥|, ‖𝑥‖, ‖𝑥‖, copied from the PDF in Preview. ___________________________________________________________________________________ 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] 9+ messages in thread
* Re: Bug in math: version 2019-02-14 17:08 ` Hans Åberg @ 2019-02-14 17:20 ` Alan Braslau 0 siblings, 0 replies; 9+ messages in thread From: Alan Braslau @ 2019-02-14 17:20 UTC (permalink / raw) To: Hans Åberg; +Cc: mailing list for ConTeXt users On Thu, 14 Feb 2019 18:08:09 +0100 Hans Åberg <haberg-1@telia.com> wrote: > > On 14 Feb 2019, at 16:42, Alan Braslau <braslau.list@comcast.net> wrote: > > > > Now, this is really interesting > > > > \starttext > > \textbar x\textbar > > \stoptext > > > > produces |x| as seen by acroread, mupdf, evince, ... on the Mac > > BUT shows | | with preview and with skim (which uses the Apple pdf rendering engine). > > On MacOS 10.13.6, using ConTeXt 1.02 of TeXLive 2018 updated using the TeXLive Utility, $|x|$, $\textbar x\textbar$, $\|x\|$, $‖x‖$, $||x||$ gives the output |𝑥|, |𝑥|, |𝑥|, ‖𝑥‖, ‖𝑥‖, copied from the PDF in Preview. So it must be a bug with macOS Mojave 10.14.3 This is not surprising, as I have seen lots of other rendering bugs come and go with the Apple library. 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Bug in math: version 2019-02-13 17:52 Bug in math: version Otared Kavian 2019-02-13 18:12 ` Alan Braslau @ 2019-02-14 12:05 ` Hans Hagen 2019-02-14 13:12 ` Hans Åberg 1 sibling, 1 reply; 9+ messages in thread From: Hans Hagen @ 2019-02-14 12:05 UTC (permalink / raw) To: Otared Kavian, ntg-context@ntg.nl >> mailing list for ConTeXt users On 2/13/2019 6:52 PM, Otared Kavian wrote: > Hi Hans, > > With the latest beta there seems a bug has been intoduced with « \| » which should give a vertical double bar and not a simple bar. hm, has always been so, \* being an escape > This is a minimal example: > > \starttext > With 2019.02.10 17:43, the command \type{\|x\|} gives an incorrect result: > > $\|x\| = 1$ why not use $||x|| = 1$ > > $|x| = 1$ > \stoptext > > Best regards: OK > ___________________________________________________________________________________ > 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 > ___________________________________________________________________________________ > -- ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Bug in math: version 2019-02-14 12:05 ` Hans Hagen @ 2019-02-14 13:12 ` Hans Åberg 0 siblings, 0 replies; 9+ messages in thread From: Hans Åberg @ 2019-02-14 13:12 UTC (permalink / raw) To: Hans Hagen; +Cc: mailing list for ConTeXt users, Otared Kavian > On 14 Feb 2019, at 13:05, Hans Hagen <j.hagen@xs4all.nl> wrote: > >> With 2019.02.10 17:43, the command \type{\|x\|} gives an incorrect result: >> $\|x\| = 1$ > > why not use $||x|| = 1$ Also $‖x‖ = 1$. ___________________________________________________________________________________ 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] 9+ messages in thread
end of thread, other threads:[~2019-02-14 17:20 UTC | newest] Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2019-02-13 17:52 Bug in math: version Otared Kavian 2019-02-13 18:12 ` Alan Braslau 2019-02-14 12:02 ` Hans Hagen 2019-02-14 15:42 ` Alan Braslau 2019-02-14 15:50 ` Alan Braslau 2019-02-14 17:08 ` Hans Åberg 2019-02-14 17:20 ` Alan Braslau 2019-02-14 12:05 ` Hans Hagen 2019-02-14 13:12 ` Hans Åberg
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).