Re: [NTG-context] How to configure context command in Emacs

2019-02-14 Thread fv leung
I 've been using emacs + auctex for years and they work fine with ConTeXt:
I modified the \etc\environment file as:
OSFONTDIR="/usr/share/fonts;/home/fvleung/.fonts"
PATH="/home/fvleung/ConTeXt/tex/texmf-linux-64/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
I added the following in the .emacs file:
;; ConTeXt mkiv
(eval-after-load 'tex
'(add-to-list
 'TeX-command-list
 '("ConTeXt mkiv" "context --nonstopmode %t"
   TeX-run-command nil (context-mode) :help "Run ConTeXt mkiv")))

Gour  於 2019年2月15日 週五 上午6:05寫道:

> On Wed, 24 Oct 2018 15:30:37 +0200
> "Jan U. Hasecke"  wrote:
>
> > I hope there are some Emacs users out there. ;-)
>
> I also wonder about the current quality of ConTeXt support within Emacs?
>
> In the past Patrick did some work on it, but, probably, atm he is busy with
> Speedata Publisher...
>
>
> Sincerely,
> Gour
>
> --
> Therefore, without being attached to the fruits of activities,
> one should act as a matter of duty, for by working without
> attachment one attains the Supreme.
>
>
>
> ___
> 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
___


Re: [NTG-context] degrade module

2019-02-14 Thread Marco Patzer
On Fri, 15 Feb 2019 07:56:31 +0100
Lutz Haseloff  wrote:

> First i tried the grph-downsample.lua script.
> Unfortunately i get an error message
> grph-downsample.lua:31: bad argument #2 to 'format' (number has no
> integer representation) See attached log file.

I remember that error. The script worked up to a particular context
version. I believe a Lua upgrade broke it. The version attached
should work.

Marco
if not modules then modules = { } end modules ['t-downsample'] = {
  version   = 1.001,
  comment   = "companion to grph-inc.mkiv",
  author= "Peter Münster",
  copyright = "PRAGMA ADE / ConTeXt Development Team",
  license   = "see context related readme files"
}

local format = string.format
-- figures.cachepaths.path = "cache" -- should be setup-option
local function sample_down(oldname, newname, resolution)
	local request = figures.current().request
	local width = request.width
	local height = request.height
	if resolution == "" or (not width and not height) then
		print(format("Nothing to do: %s, %s, %s", oldname, newname, resolution))
		return
	end
	local inch = 72.27
	local image = img.scan{filename = oldname}
	local xy = image.xsize / image.ysize
	if not width then
		width = height * xy / 65536
	end
	if not height then
		height = width / xy / 65536
	end
	local xsize = resolution * width / inch
	local ysize = resolution * height / inch
	if xsize < image.xsize or ysize < image.ysize then
		local s = format("gm convert -strip -resize %dx%d %s %s",
		xsize, ysize, oldname, newname)
		print("Conversion: " .. s)
		os.execute(s)
	else
		print(format("Nothing to do: %s, %s, %s", oldname, newname, resolution))
		print(format("xsize = %d, ysize = %d", xsize, ysize))
	end
end

local formats = {"png", "jpg", "gif"}

for _, s in ipairs(formats) do
	figures.converters[s] = figures.converters[s] or {}
	figures.converters[s]["lowres." .. s] = sample_down
end
___
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
___


Re: [NTG-context] degrade module

2019-02-14 Thread Henning Hraban Ramm
Am 2019-02-15 um 07:56 schrieb Lutz Haseloff :

> Thank you all for your help.
> 
> First i tried the grph-downsample.lua script.
> Unfortunately i get an error message
> grph-downsample.lua:31: bad argument #2 to 'format' (number has no integer 
> representation)
> See attached log file.

It’s a problem due to changes in Lua between 5.2 and 5.3 (or the like).
The attached version works (for me).


Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
https://www.dreiviertelhaus.de
GPG Key ID 1C9B22FD




grph-downsample.lua
Description: Binary data
___
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
___


Re: [NTG-context] degrade module

2019-02-14 Thread Lutz Haseloff
Thank you all for your help.

First i tried the grph-downsample.lua script.
Unfortunately i get an error message
grph-downsample.lua:31: bad argument #2 to 'format' (number has no integer 
representation)
See attached log file.

Greetings Lutz

Am 14. Februar 2019 21:44:31 MEZ schrieb Hans Hagen :
>On 2/14/2019 9:32 PM, Peter Münster wrote:
>> On Thu, Feb 14 2019, Lutz Haseloff wrote:
>> 
>>> I wanted to use the degrade module with recent ConTeXt and LuaTeX.
>> 
>> Hi Lutz,
>> 
>> Could you please check, if the module grph-downsample.lua could fit
>your
>> needs?
>> 
>> 
>>> The minimal example from the degrade manual gives an error.
>>> See the attached log.
>>> Is there any chance to get the module working again?
>> 
>> There is always a chance. The question is just: who will afford the
>> efforts...
>> Please check first the downsample module, and then let's see, if you
>> still need this very old and hackish degrade module.
>you can plug in code
>
>\startluacode
>
>figures.converters["png"]["lowres.png"] = 
>function(oldname,newname,resolution)
> os.execute(string.format('gm convert "%s" "%s"',oldname,newname))
>end
>
>figures.converters["jpg"]["lowres.jpg"] = 
>function(oldname,newname,resolution)
> os.execute(string.format('gm convert "%s" "%s"',oldname,newname))
>end
>
>-- figures.suffixes["lowres.png"] = figures.suffixes.png -- suffix is 
>automatically done
>
>\stopluacode
>\enabletrackers[graphics*]
>
>
>\starttext
> \externalfigure[t:/sources/mill.png][conversion=lowres.png]
> \externalfigure[t:/sources/hacker.jpg][conversion=lowres.jpg]
>\stoptext
>
>
>
>-
>   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
>___


verkleinert-downsample.log
Description: Binary data
___
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
___


Re: [NTG-context] How to configure context command in Emacs

2019-02-14 Thread Gour
On Wed, 24 Oct 2018 15:30:37 +0200
"Jan U. Hasecke"  wrote:

> I hope there are some Emacs users out there. ;-)

I also wonder about the current quality of ConTeXt support within Emacs?

In the past Patrick did some work on it, but, probably, atm he is busy with
Speedata Publisher...


Sincerely,
Gour

-- 
Therefore, without being attached to the fruits of activities,
one should act as a matter of duty, for by working without
attachment one attains the Supreme.


___
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
___


[NTG-context] markdown module vs pandoc

2019-02-14 Thread Gour
Hello,

I'm interested for using markdown markup and typeset such documents via
ConTeXt, but wonder whether it is recommended to use Markdown module or do
markdown --> ConTeXt via Pandoc?


Sincerely,
Gour

-- 
Thus the wise living entity's pure consciousness becomes covered by
his eternal enemy in the form of lust, which is never satisfied and
which burns like fire.


___
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
___


Re: [NTG-context] degrade module

2019-02-14 Thread Peter Münster
On Thu, Feb 14 2019, Wolfgang Schuster wrote:

> Take a look at section 3.2 of the workflows [1] document.
>
> [1] http://www.pragma-ade.nl/general/manuals/workflows-mkiv.pdf

Sorry, I don't understand. How will the "convert" command
"convert -geometry %nx%x%ny% -compress JPEG ..." ever know, that the
target height is 10cm?

-- 
   Peter
___
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
___


Re: [NTG-context] degrade module

2019-02-14 Thread Hans Hagen

On 2/14/2019 9:32 PM, Peter Münster wrote:

On Thu, Feb 14 2019, Lutz Haseloff wrote:


I wanted to use the degrade module with recent ConTeXt and LuaTeX.


Hi Lutz,

Could you please check, if the module grph-downsample.lua could fit your
needs?



The minimal example from the degrade manual gives an error.
See the attached log.
Is there any chance to get the module working again?


There is always a chance. The question is just: who will afford the
efforts...
Please check first the downsample module, and then let's see, if you
still need this very old and hackish degrade module.

you can plug in code

\startluacode

figures.converters["png"]["lowres.png"] = 
function(oldname,newname,resolution)

os.execute(string.format('gm convert "%s" "%s"',oldname,newname))
end

figures.converters["jpg"]["lowres.jpg"] = 
function(oldname,newname,resolution)

os.execute(string.format('gm convert "%s" "%s"',oldname,newname))
end

-- figures.suffixes["lowres.png"] = figures.suffixes.png -- suffix is 
automatically done


\stopluacode
\enabletrackers[graphics*]


\starttext
\externalfigure[t:/sources/mill.png][conversion=lowres.png]
\externalfigure[t:/sources/hacker.jpg][conversion=lowres.jpg]
\stoptext



-
  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
___


Re: [NTG-context] degrade module

2019-02-14 Thread Wolfgang Schuster

Peter Münster schrieb am 14.02.19 um 21:32:

On Thu, Feb 14 2019, Lutz Haseloff wrote:


I wanted to use the degrade module with recent ConTeXt and LuaTeX.

Hi Lutz,

Could you please check, if the module grph-downsample.lua could fit your
needs?


Take a look at section 3.2 of the workflows [1] document.

[1] http://www.pragma-ade.nl/general/manuals/workflows-mkiv.pdf

Wolfgang

___
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
___


Re: [NTG-context] degrade module

2019-02-14 Thread Peter Münster
On Thu, Feb 14 2019, Marco Patzer wrote:

> Apparently it's not on the wiki

It's here:
https://modules.contextgarden.net/dl/grph-downsample.lua-1.001.zip

-- 
   Peter
___
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
___


Re: [NTG-context] degrade module

2019-02-14 Thread Peter Münster
On Thu, Feb 14 2019, Lutz Haseloff wrote:

> I wanted to use the degrade module with recent ConTeXt and LuaTeX.

Hi Lutz,

Could you please check, if the module grph-downsample.lua could fit your
needs?


> The minimal example from the degrade manual gives an error.
> See the attached log.
> Is there any chance to get the module working again?

There is always a chance. The question is just: who will afford the
efforts...
Please check first the downsample module, and then let's see, if you
still need this very old and hackish degrade module.

Cheers,
-- 
   Peter
___
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
___


Re: [NTG-context] degrade module

2019-02-14 Thread Marco Patzer
On Thu, 14 Feb 2019 20:49:43 +0100
Lutz Haseloff  wrote:

> I wanted to use the degrade module with recent ConTeXt and LuaTeX.
> The minimal example from the degrade manual gives an error.
> See the attached log.
> Is there any chance to get the module working again?

I never used the degrade module. Instead I use the downsample.lua
script which works fine with a current beta. Maybe give it a try.

Apparently it's not on the wiki and if I remember correctly I got it
off the mailing list. Let me know if you can't find it.

Marco
___
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
___


[NTG-context] degrade module

2019-02-14 Thread Lutz Haseloff
Hi Peter, hi all,

I wanted to use the degrade module with recent ConTeXt and LuaTeX.
The minimal example from the degrade manual gives an error.
See the attached log.
Is there any chance to get the module working again?

Greetings Lutz

verkleinert.log
Description: Binary data
___
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
___


Re: [NTG-context] Bug in math: version

2019-02-14 Thread Alan Braslau
On Thu, 14 Feb 2019 18:08:09 +0100
Hans Åberg  wrote:

> > On 14 Feb 2019, at 16:42, Alan Braslau  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
___


Re: [NTG-context] Bug in math: version

2019-02-14 Thread Hans Åberg

> On 14 Feb 2019, at 16:42, Alan Braslau  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
___


Re: [NTG-context] Bug in math: version

2019-02-14 Thread Alan Braslau
On Thu, 14 Feb 2019 08:42:15 -0700
Alan Braslau  wrote:

> On Thu, 14 Feb 2019 13:02:21 +0100
> Hans Hagen  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
___


Re: [NTG-context] Bug in math: version

2019-02-14 Thread Alan Braslau
On Thu, 14 Feb 2019 13:02:21 +0100
Hans Hagen  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
___


Re: [NTG-context] Bug in math: version

2019-02-14 Thread Hans Åberg

> On 14 Feb 2019, at 13:05, Hans Hagen  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
___


Re: [NTG-context] Bug in math: version

2019-02-14 Thread Hans Hagen

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
___


Re: [NTG-context] Bug in math: version

2019-02-14 Thread Hans Hagen

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
___