Re: [NTG-context] Scheherazade New loading issue

2020-11-07 Thread Alan Bowen
Thanks, Pablo. I ran the script but it made no difference. Scheherazade New
was loaded with  ver: 2020.11.07 12:47 but not with ver: 2020.09.20 23:02

The console file for the latter shows:
selectfont  > the requested fallback font 'Scheherazade New' for
typeface 'mainface' style 'rm' was ignored because no files where found.
And yet Scheherazade New sits beside Scheherazade (which 2020.09.20 finds)
in ~/Fonts.

I fixed my definition of \definefallbackfamily—thanks for catching that.

Alan


On Sat, Nov 7, 2020 at 1:25 PM Pablo Rodriguez  wrote:

> On 11/7/20 6:58 PM, Alan Bowen wrote:
> > Though Scheherazade New font loads properly with the today’s LMTX, I
> > cannot get it to load with LMTX from 2020.09.20 (which I must stay with
> > for now because the latest one has its own complaints about my files).
> >
> > \definefallbackfamily[mainface][][Scheherazade New]
> > [range=arabic]
> > \definefontfamily[mainface][rm][STIX Two Text]
> > \setupbodyfont [mainface, 24pt]
> >
> > \starttext
> > Arabic—ؼ
> >
> >  {\bf ؼ}
> > \stoptext
>
> Hi Alan,
>
> I have just downloaded and compiled your sample:
>
> system  > ConTeXt  ver: 2020.09.20 23:02 LMTX  fmt: 2020.11.7
> int: english/english
> [...]
> mkiv lua stats  > loaded fonts: 4 files: scheherazadenew-bold.ttf,
> scheherazadenew-regular.ttf, stix2text-bold.otf, stix2text-regular.otf
>
> Please, run "mtxrun --script cache --erase &&  mtxrun --generate" and I
> think the new compilation will be fine. It seems to be that your
> previous ConTeXt version cannot find fonts installed later.
>
> BTW, "\definefallbackfamily[mainface][][Scheherazade New]" should read
> "\definefallbackfamily[mainface][rm][Scheherazade New]". But it doesn’t
> affect your issue.
>
> Just in case it helps,
>
> Pablo
> --
> http://www.ousia.tk
>
> ___
> 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
___


[NTG-context] Scheherazade New loading issue

2020-11-07 Thread Alan Bowen
Though Scheherazade New font loads properly with the today’s LMTX, I cannot
get it to load with LMTX from 2020.09.20 (which I must stay with for now
because the latest one has its own complaints about my files).

\definefallbackfamily[mainface][][Scheherazade New]
[range=arabic]
\definefontfamily[mainface][rm][STIX Two Text]
\setupbodyfont [mainface, 24pt]

\starttext
Arabic—ؼ

 {\bf ؼ}
\stoptext

with  ConTeXt  ver: 2020.09.20 23:02
mkiv lua stats  > loaded fonts: 2 files: stix2text-bold.otf,
stix2text-regular.otf

with ConTeXt  ver: 2020.11.07
mkiv lua stats  > loaded fonts: 4 files: stix2text-bold.otf,
stix2text-regular.otf, scheherazadenew-bold.ttf, scheherazadenew-regular.ttf

I should add that the old Sheherazade font works well with v. 2020.09.20.

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] issue with LMTX and itemize

2020-11-07 Thread Alan Bowen
and on mine with today’s standalone.

A.

On Sat, Nov 7, 2020 at 10:27 AM Pablo Rodriguez  wrote:

> On 11/7/20 4:11 PM, Alan Bowen wrote:
> > Hi, Pablo—
> >
> > Shouldn’t it be either
> > \item a
> > or
> > \startitem a\stopitem
> > ?
> Hi Alan,
>
> of course, the sample reads:
>
> \starttext
> \startitemize
> \startitem a\stopitem
> \stopitemize
> \stoptext
>
> But the issue still happens on my LMTX installation.
>
> Many thanks for your help,
>
> Pablo
> --
> http://www.ousia.tk
>
> ___
> 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] issue with LMTX and itemize

2020-11-07 Thread Alan Bowen
Hi, Pablo—

Shouldn’t it be either
\item a
or
\startitem a\stopitem
?
Alan

On Sat, Nov 7, 2020 at 9:52 AM Pablo Rodriguez  wrote:

> Dear list,
>
> I have the following sample:
>
> \starttext
> \startitemize
> \item a\stopitem
> \stopitemize
> \stoptext
>
> With latest LMTX from today, I don’t get any item marker.
>
> Could you confirm the issue?
>
> Many thanks for your help,
>
> Pablo
> --
> http://www.ousia.tk
>
> ___
> 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] oldstyle numerals in STIX Two Math

2020-10-21 Thread Alan Bowen
Thanks, Hraban.That’s a helpful start

 I guess the challenge now is to get STIX Two Math to use the oldstyle
numerals in STIX Two Text (by adapting code that Wolgang gave me for using
 oldstyle numerals with TexGyre Math). When I ran

mtxrun --script fonts --list --info stixtwotext, I got

mtx-fonts   |   onum cyrl dflt

mtx-fonts   |dflt dflt

mtx-fonts   |grek dflt

mtx-fonts   |latn dflt rom trk

Sadly, I have no idea what this means or how it might help in identifying
the Unicode range of the oldstyle numerals in STIX Two Text. And that is
something I need to take advantage of Wolfgang’s code.

Alan


On Wed, Oct 21, 2020 at 10:31 AM Henning Hraban Ramm  wrote:

>
>
> > Am 21.10.2020 um 15:59 schrieb Alan Bowen :
> >
> > I am trying to get the STIX Two fonts to display oldstyle numerals.
> >
> > I have the oldstyle numerals in STIX Two Text, the problem is the math
> font.
> >
> > So far, my mwe is:
> > \definefontfamily[mainface][rm][STIX Two Text][] %onum=yes does not seem
> to work
> > \definefontfamily[mainface][mm][STIX Two Math][]
> > \definefontfeature[f:oldstyle][onum=yes]
> >
> > \setupbodyfont[mainface, 18pt]
> > \addfeature{f:oldstyle}
> >
> > \starttext
> > 123456789
> > \blank[big]
> > $\sqrt{2} + 1234$
> > \stoptext
> >
> > Any pointers will be greatly appreciated.
>
> mtxrun --script fonts --list --info stixtwomath
>
> shows that STIX Two Math doesn’t provide the onum feature.
>
> Hraban
>
> ___
> 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
___


[NTG-context] oldstyle numerals in STIX Two Math

2020-10-21 Thread Alan Bowen
I am trying to get the STIX Two fonts to display oldstyle numerals.

I have the oldstyle numerals in STIX Two Text, the problem is the math font.

So far, my mwe is:
\definefontfamily[mainface][rm][STIX Two Text][] %onum=yes does not seem to
work
\definefontfamily[mainface][mm][STIX Two Math][]
\definefontfeature[f:oldstyle][onum=yes]

\setupbodyfont[mainface, 18pt]
\addfeature{f:oldstyle}

\starttext
123456789
\blank[big]
$\sqrt{2} + 1234$
\stoptext

Any pointers will be greatly appreciated.

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] page counter problem

2020-09-30 Thread Alan Bowen
Thank you, Taco, for the fix *and* the helpful explanation.

The file now works (and I can now put this project to bed!)

Alan

On Wed, Sep 30, 2020 at 7:38 AM Taco Hoekwater  wrote:

> Hi Alan,
>
> > On 30 Sep 2020, at 12:50, Alan Bowen  wrote:
> >
> > he page counter does not increase in the first iteration an PDf
> inclusion but seems to work properly after that. Have attached a sample
> file (69K) that will serve to show the problem—at least, on my machine.
>
> It is not the iteration itself. Try with another pdf with more than 2
> pages and you
> will see that it happens in the first page(s).
>
> The problem is that you are not giving ConTeXt a fair chance to update the
> page number,
> because a series of \vbox to \paperheight {}’s cannot cleanly be broken
> into separate
> pages. The solution is to use
>
> \dorecurse{\noffigurepages}
>{\vbox to \paperheight
>
> {\vskip-\dimexpr\headerheight+\headerdistance+\topspace\relax
>  \hbox to \hsize
>  {\hskip-\backspace
> \layeredtext[]
> [boffset=3pc]
> {\red\userpagenumber}
> {\externalfigure[HannahBW.pdf][page=#1]}%
>   \hss}%
> \vss}\page
>   }
>
> where the extra \page command allows ConTeXt to properly process the page
> breaks.
>
> Best wishes,
> Taco
>
>
> ___
> 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] no frontmatter head on recto page

2020-09-30 Thread Alan Bowen
My apologies for the mixed message.

A.

On Wed, Sep 30, 2020 at 8:56 AM Alan Bowen  wrote:

> Thank you, Taco, for the fix *and* the helpful explanation.
>
> The file now works (and I can now put this project to bed!)
>
> Alan
>
> On Wed, Sep 30, 2020 at 7:44 AM Taco Hoekwater  wrote:
>
>>
>>
>> > On 30 Sep 2020, at 11:46, jbf  wrote:
>> >
>> > For some reason that I cannot work out, the recto page header is not
>> appearing in frontmatter sections like Foreword. It is important to note
>> that for this item I am using:
>> >
>> > \definehead
>> >   [foreword] [chapter]…
>>
>> ‘chapter' suppresses the header by default on the first page.
>>
>> at a guess:
>>
>>   \setuphead[foreword][header=start]
>>
>> Best wishes,
>> Taco
>>
>>
>> ___
>> 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] no frontmatter head on recto page

2020-09-30 Thread Alan Bowen
Thank you, Taco, for the fix *and* the helpful explanation.

The file now works (and I can now put this project to bed!)

Alan

On Wed, Sep 30, 2020 at 7:44 AM Taco Hoekwater  wrote:

>
>
> > On 30 Sep 2020, at 11:46, jbf  wrote:
> >
> > For some reason that I cannot work out, the recto page header is not
> appearing in frontmatter sections like Foreword. It is important to note
> that for this item I am using:
> >
> > \definehead
> >   [foreword] [chapter]…
>
> ‘chapter' suppresses the header by default on the first page.
>
> at a guess:
>
>   \setuphead[foreword][header=start]
>
> Best wishes,
> Taco
>
>
> ___
> 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
___


[NTG-context] page counter problem

2020-09-30 Thread Alan Bowen
he page counter does not increase in the first iteration an PDf inclusion
but seems to work properly after that. Have attached a sample file (69K)
that will serve to show the problem—at least, on my machine.

\starttext

\setupexternalfigures[location=default]
\setuplayer[preset=middlebottom, method=overlay]{}

\setcounter[userpage][101]
\noheaderandfooterlines

\getfiguredimensions[HannahBW.pdf]

\dorecurse{\noffigurepages}
   {\vbox to \paperheight
   {\vskip-\dimexpr\headerheight+\headerdistance+\topspace\relax
\hbox to \hsize
 {\hskip-\backspace
\layeredtext[]
[boffset=3pc]
{\red\userpagenumber}
{\externalfigure[HannahBW.pdf][page=#1]}%
  \hss}%
 \vss}
  }
\dorecurse{\noffigurepages}
   {\vbox to \paperheight
   {\vskip-\dimexpr\headerheight+\headerdistance+\topspace\relax
\hbox to \hsize
 {\hskip-\backspace
\layeredtext[]
[boffset=3pc]
{\red\userpagenumber}
{\externalfigure[HannahBW.pdf][page=#1]}%
  \hss}%
 \vss}
  }

\stoptext


HannahBW.pdf
Description: Adobe PDF document
___
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] numbering pages included by \copypages

2020-09-28 Thread Alan Bowen
After further testing guided by Hans’ suggestion, I now have

\setupexternalfigures[location=default]
\setuplayer[preset=rightbottom, method=overlay]{}
\setuppagenumbering[color=darkmagenta]
\starttext
\getfiguredimensions[HannahBW.pdf]

\dorecurse{\noffigurepages}{
\startTEXpage[pagestate=start]
\layeredtext[]
[boffset=3pc, roffset=3pc]
{\darkmagenta\subpagenumber}
{\externalfigure[HannahBW.pdf][page=#1]}
\stopTEXpage
}
\stoptext

which works, though it would arguably be better if there is a way to
prevent the subpage number on the first page of every included file.

Alan

On Fri, Sep 25, 2020 at 6:12 AM Hans Hagen  wrote:

> On 9/25/2020 5:53 AM, Aditya Mahajan wrote:
> > On Fri, 25 Sep 2020, Wolfgang Schuster wrote:
> >
> >> Aditya Mahajan schrieb am 24.09.2020 um 23:48:
> >>> On Thu, 24 Sep 2020, Alan Bowen wrote:
> >>>> Any suggestions or pointers will be most welcome.
> >>>
> >>> See if this gives you any ideas 
> >>>
> >>> https://adityam.github.io/context-blog/post/include-multi-page-pdf/
> >>
> >> When both document have the same size you can replace TeXpage with a
> "page"
> >> layout.
> >>
> >> \startlayout[page]
> >> \dorecurse{\noffigurepages}{\externalfigure[...][page=\recurselevel]}
> >> \stoplayout
> >
> > Thanks for the comment (also I didn't know about \startlayout ..
> \stoplayout). Unfortunately, in my use case, the paper sizes may not be the
> same.. I am typically attaching published journal articles and some are
> published on letter paper and some on A4.
>
> \setupexternalfigures[location=default]
>
> \starttext
>
> \dorecurse {5} {Before #1\page}
>
> \getfiguredimensions[oeps.pdf]
>
> \startsetups SomeNumber
>  \vbox to \overlayheight \bgroup
>  \vss
>  \hbox to \overlaywidth \bgroup
>  \hss
>  \bfd \red You can figure it out: \pagenumber
>  \hss
>  \egroup
>  \vss
>  \egroup
> \stopsetups
>
> \defineoverlay[SomeNumber][\setups{SomeNumber}]
>
> \dorecurse {\noffigurepages} {
>  \startTEXpage[pagestate=start]
>  \externalfigure[oeps.pdf][page=#1,background=SomeNumber]%
>  \stopTEXpage
> }
>
> \dorecurse {5} {After #1\page}
>
> \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
>
> ___
>
___
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] numbering pages included by \copypages

2020-09-24 Thread Alan Bowen
I need to include several documents in a single paginated file. Treating
the source file (.tex) of each document as a component file in a .prd file
is one way to go. But I was wondering if it might be possible to do get the
same result using the .pdf files of each document instead.

\copypages is promising: it includes the. pdf files and the counter in the
resultant .prd file is correct. But what I still have to get is the page
number on all pages of the included .pdf files except the first page in
each.

I looked at \startpagefigure but that would be a very cumbersome way to go
since there over 350 pages to include, given that it handles only one page
at a time.

I hope that this makes sense.

Any suggestions or pointers will be most welcome.

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] latest lmtx

2020-09-05 Thread Alan Bowen
Hi, Otared—

I had

#!/bin/zsh

#set path=  ($path /usr/texbin
/Applications/LuaMetaTeX/tex/texmf-osx-64/bin)
export
PATH=~/context-osx-64/tex/texmf-osx-64/bin:~/context-osx-64/bin:~/context-osx-64/tex/texmf-osx-64/bin

~/context-osx-64/tex/texmf-osx-64/bin/mtxrun --autogenerate --script
context --directives="system.showerror" --autopdf "$1" --purgeall

but on reading your response and checking my LuaMetaTeX directory, I
changed the 2nd line to

export
PATH=~/tex/texmf-osx-64/bin:~/context-osx-64/bin:~/context-osx-64/tex/texmf-osx-64/bin

and the files now process as they should.

It is odd that it worked before with the mistaken entry.

Many thanks to you and Hraban for your help!

Alan


On Sat, Sep 5, 2020 at 11:46 AM Otared Kavian  wrote:

> Hi Alan,
>
> Where did you install LuaMetaTeX?
> For instance my LuaMetaTeX.engine contains the following three lines:
>
> #!/bin/bash
>
> export
> PATH=/context-osx-64/tex/texmf-osx-64/bin:/context-osx-64/bin:/context-osx-64/tex/texmf-osx-64/bin
>
> /context-osx-64/tex/texmf-osx-64/bin/mtxrun --autogenerate --script
> context --directives="system.showerror" --autopdf "$1" --purgeall
>
> where I am invoking the file
> /context-osx-64/tex/texmf-osx-64/bin/mtxrun
> which is in the folder context-osx-64 where I installed LuaMetaTeX by
> running
> sh install.sh
>
> Therefore your LuaMetaTeX.engine file should contain the correct path.
>
> Best regards: Otared
>
> > On 5 Sep 2020, at 17:19, Alan Bowen  wrote:
> >
> > No, Hraban, and I have never had a directory
> /Users/bowen1/context-osx-64. Does Luametatex 2.10 (Context 2020.09.03) now
> require one?
> >
> > Alan
> >
> > On Sat, Sep 5, 2020 at 10:26 AM Henning Hraban Ramm 
> wrote:
> >
> >
> > > Am 05.09.2020 um 16:08 schrieb Alan Bowen :
> > >
> > > When I process
> > > \starttext
> > > Hello, world!
> > > \stoptext
> > > I get the following error message:
> > >
> > > /Users/bowen1/Library/TeXShop/Engines/LuaMetaTeX.engine:9: no such
> file or directory: /Users/bowen1/context-osx-64/tex/texmf-osx-64/bin/mtxrun
> > >
> > > resolvers   | formats | executing runner 'run luametatex format':
> /Applications/LuaMetaTeX/tex/texmf-osx-64/bin/luametatex
> --jobname="Version"
> --fmt=/Applications/LuaMetaTeX/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.fmt
> --lua=/Applications/LuaMetaTeX/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.lui
> cont-yes.mkiv --c:autogenerate --c:currentrun=1 --c:file-line-error
> --c:fulljobname="./Version.tex" --c:input="./Version.tex" --c:kindofrun=1
> --c:maxnofruns=9 --c:synctex="1"
> --c:texmfbinpath="/Applications/LuaMetaTeX/tex/texmf-osx-64/bin"
> > > mtx-context | fatal error: return code: 11
> > >
> > > There is definitely a file
> > > /Users/bowen1/Library/TeXShop/Engines/LuaMetaTeX.engine.
> > > Previous versions of lmtx process without any problem.
> >
> > The message doesn’t ask for the engine file, but for the mtxrun script
> mentioned in line 9 of the engine.
> >
> > Is /Users/bowen1/context-osx-64/tex/texmf-osx-64/bin/mtxrun still valid
> in your installation?
> >
> > Hraban
> >
> ___
> > 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
> >
> ___
>
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!

Re: [NTG-context] latest lmtx

2020-09-05 Thread Alan Bowen
No, Hraban, and I have never had a directory  /Users/bowen1/context-osx-64.
Does Luametatex 2.10 (Context 2020.09.03) now require one?

Alan

On Sat, Sep 5, 2020 at 10:26 AM Henning Hraban Ramm  wrote:

>
>
> > Am 05.09.2020 um 16:08 schrieb Alan Bowen :
> >
> > When I process
> > \starttext
> > Hello, world!
> > \stoptext
> > I get the following error message:
> >
> > /Users/bowen1/Library/TeXShop/Engines/LuaMetaTeX.engine:9: no such file
> or directory: /Users/bowen1/context-osx-64/tex/texmf-osx-64/bin/mtxrun
> >
> > resolvers   | formats | executing runner 'run luametatex format':
> /Applications/LuaMetaTeX/tex/texmf-osx-64/bin/luametatex
> --jobname="Version"
> --fmt=/Applications/LuaMetaTeX/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.fmt
> --lua=/Applications/LuaMetaTeX/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.lui
> cont-yes.mkiv --c:autogenerate --c:currentrun=1 --c:file-line-error
> --c:fulljobname="./Version.tex" --c:input="./Version.tex" --c:kindofrun=1
> --c:maxnofruns=9 --c:synctex="1"
> --c:texmfbinpath="/Applications/LuaMetaTeX/tex/texmf-osx-64/bin"
> > mtx-context | fatal error: return code: 11
> >
> > There is definitely a file
> > /Users/bowen1/Library/TeXShop/Engines/LuaMetaTeX.engine.
> > Previous versions of lmtx process without any problem.
>
> The message doesn’t ask for the engine file, but for the mtxrun script
> mentioned in line 9 of the engine.
>
> Is /Users/bowen1/context-osx-64/tex/texmf-osx-64/bin/mtxrun still valid in
> your installation?
>
> Hraban
>
> ___
> 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
___


[NTG-context] latest lmtx

2020-09-05 Thread Alan Bowen
When I process
\starttext
Hello, world!
\stoptext
I get the following error message:

/Users/bowen1/Library/TeXShop/Engines/LuaMetaTeX.engine:9: no such file or
directory: /Users/bowen1/context-osx-64/tex/texmf-osx-64/bin/mtxrun

resolvers   | formats | executing runner 'run luametatex format':
/Applications/LuaMetaTeX/tex/texmf-osx-64/bin/luametatex
--jobname="Version"
--fmt=/Applications/LuaMetaTeX/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.fmt
--lua=/Applications/LuaMetaTeX/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.lui
cont-yes.mkiv --c:autogenerate --c:currentrun=1 --c:file-line-error
--c:fulljobname="./Version.tex" --c:input="./Version.tex" --c:kindofrun=1
--c:maxnofruns=9 --c:synctex="1"
--c:texmfbinpath="/Applications/LuaMetaTeX/tex/texmf-osx-64/bin"
mtx-context | fatal error: return code: 11

There is definitely a file
/Users/bowen1/Library/TeXShop/Engines/LuaMetaTeX.engine.
Previous versions of lmtx process without any problem.

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
___


[NTG-context] fatal error with latest lmtx

2020-08-14 Thread Alan Bowen
Hi—

I have just installed (clean) the latest lmtx.

Processing
\starttext
Hello world!
\stoptext

fails with this error message:

Fatal Error > Your format does not match the base files!
Format Version  > 2020.08.14 18:28 LMTX
Files Version   > 2020.08.14 18:27

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] new version

2020-06-10 Thread Alan Bowen
The problem with vertical spacing in \frac and \over is fixed. Many thanks,
Hans!

Alan

On Wed, Jun 10, 2020 at 4:03 AM Hans Hagen  wrote:

> Hi,
>
> I uploaded a new version. There have been no changes to the typesetting
> machinery although we're still in the process of finetuning some updated
> low level macros. There was a fix in the font machinery (thanks to Kai)
> but that will probably go unnoticed as the issue has been there for years.
>
> Now, that doesn't mean that nothing has been changed. First of all there
> is a new data related mechanism. After Wolfgang had updated the
> definition files it became official. It was on the agenda for a while
> but finally a nice solution surfaced.
>
> The new thing is luatables that obey grouping. Normally what you do at
> the lua end is kind of global, but there can be cases where you really
> want it to behave like tex: obeying \bgroup/\egroup, { } etc. The
> examples given below show that you can create them at the tex end and
> access them in tex as well as lua.
>
> \starttext
>
> \dorecurse {100} {
>  \setdatavalue{#1}{#1}
> }
>
> \start \tttf \darkred \raggedright \dorecurse {100} {
>  #1=\scratchcounter\getdatavalue{#1}\the\scratchcounter
> } \par \stop \blank
>
> \start \tttf \darkgreen \raggedright \dorecurse {100} {
>  #1=\thedatavalue{#1}%
> } \par \stop \blank
>
> \bgroup \tttf
>  \newluatable\testtable
>  \setluatable\testtable{ foo = 123, bar = "456", oof = "rab" }
>% \inspectluatable\testtable
>  \darkblue
>  foo = \getfromluatable\testtable{foo}\par
>  bar = \getfromluatable\testtable{bar}\par
>  oof = \getfromluatable\testtable{oof}\blank
>  \bgroup
>  \useluatable\testtable
>  \setluatable\testtable{ foo = 123123, bar = "456456" }
>% \inspectluatable\testtable
>  \darkmagenta
>  foo = \getfromluatable\testtable{foo}\par
>  bar = \getfromluatable\testtable{bar}\par
>  oof = \getfromluatable\testtable{oof}\blank
>  \startluacode
>  local t = context.luatables.get("testtable")
>  print(t.foo,t.bar,t.oof)
>  \stopluacode
>  \egroup
>  \darkyellow
>  foo = \getfromluatable\testtable{foo}\par
>  bar = \getfromluatable\testtable{bar}\par
>  oof = \getfromluatable\testtable{oof}\blank
>  \startluacode
>  local t = context.luatables.get("testtable")
>  print(t.foo,t.bar,t.oof)
>  \stopluacode
>% \inspectluatable\testtable
> \egroup
>
> \bgroup \tttf
>  \newluatable\moretable
>  \setluatable\moretable{ 1, "foo" }
>  \darkblue
>  [1] = \getfromluatable\moretable{1}\par
>  [2] = \idxfromluatable\moretable 2 \blank
>  \bgroup
>  \useluatable\moretable
>  \setluatable\moretable{ foo = 123123, bar = "456456" }
>  \darkmagenta
>  [1] = \getfromluatable\moretable{1}\par
>  [2] = \idxfromluatable\moretable 2 \blank
>  \startluacode
>  local t = context.luatables.get("moretable")
>  print(t[1],t[2])
>  \stopluacode
>  \egroup
>  \darkyellow
>  [1] = \getfromluatable\moretable{1}\par
>  [2] = \idxfromluatable\moretable 2 \blank
>  \startluacode
>  local t = context.luatables.get("moretable")
>  print(t[1],t[2])
>  \stopluacode
> \egroup
>
> \stoptext
>
> This is only available in lmtx (until i see a real reason to cook up an
> alternative for mkiv, which is unlikely as no context code depends on
> this being available, at least not now). The datavalue macro you see
> there can be used to create massive amounts of numeric variable
> independent of counters, not that we really need it, but it was very
> cheap to implement.
>
> At the engine level there also have been some changes but these should
> not be visible for users. We just mention:
>
> - extensions to the macro definition and expansion mechanisms (for
> instance optional arguments, optional delimiters, and silent error
> recovery; there will be some explanation in the evenmore document and at
> some point - when stable - in the manual) .. this permits some cleaner
> low level code; only things were done that had no impact on performance
> (as macro definition and expansion is used a lot) and didn't make the
> code messy (it actually became cleaner)
>
> - some additional substring (ok, tex has no string, just tokens) parsing
> capabilities with optional tokens, which again permits a bit cleaner low
> level code
>
> - a slightly reorganized handling of tokens (one of tex's basic data
> structures) in the lua token interface so that we get a more meaningful
> and robust subsystem (basically getting rid of funny numbers) ... this
> also will be discussed in an evenmore chapter .. not that users need it
> (i think)
>
> - as a side effect (or necessity) some low level recoding (and
> abstraction) had to happen but as far as we can see it works ok (i admit
> it was a slow, tedious job 

Re: [NTG-context] problem with counters (page)

2020-06-10 Thread Alan Bowen
Thanks, Taco! That works in my mwe. I added way=bytext in my env file and
the output is just what I need.

Best, Alan

On Wed, Jun 10, 2020 at 9:44 AM Taco Hoekwater  wrote:

> Hi Alan,
>
> Sorry, I should have actually tried your MWE. You do *not* want
> way=bypage here, as that resets the counter to one at the start
> of the next page (it is useful for footnotes that are numbered
> per-page, but not for actual page counters).
>
>
> \definecounter[volpage][type=page]
> \starttext
> \setcounter[volpage][5]
> \dorecurse{3}{\startTEXpage[offset=2pc]
>   \input ward
>   \blank[medium]
>
> \centerline{\red\tfa\rawcounter[volpage]\incrementcounter[volpage]}
>   \stopTEXpage}
> \stoptext
>
>
> > On 10 Jun 2020, at 15:05, Alan Bowen  wrote:
> >
> > Hi, Taco—
> >
> > Thanks for the suggestion. I have tried it with \incrementcounter before
> and after the TEXpage. Sadly, neither worked.
> >
> > This mwe is an attempt to capture the failure of the following in
> processing a product with numerous components:
> >
> > \definecounter[volpage][type=page, way=bypage]
> > \setupfootertexts[text]
> >   []
> >   [{\centerline{\raise\NumberRaise\hbox{\rawcounter[volpage]}}
> >   \incrementcounter[volpage]}]
> >   [{\centerline{\raise\NumberRaise\hbox{\rawcounter[volpage]}}
> >   \incrementcounter[volpage]}]
> >   []
> >
> > If your suggestion had worked, I would have had difficulty in applying
> it.
> >
> > Alan
> >
> > On Wed, Jun 10, 2020 at 3:14 AM Taco Hoekwater 
> wrote:
> > Hi,
> >
> > Incrementing the counter outside of the TEXpage should work.
> >
> > Best wishes,
> > Taco
> >
> > > On 9 Jun 2020, at 23:34, Alan Bowen  wrote:
> > >
> > > My efforts to set up a new page counter in the footertexts of a book
> are not proving successful. The following code shows the nature of the
> problem.
> > >
> > > \definecounter[volpage][type=page, way=bypage]
> > > \starttext
> > > \setcounter[volpage][5]
> > > \dorecurse{3}{\startTEXpage[offset=2pc]
> > >   \input ward
> > >   \blank[medium]
> > >
>  \centerline{\red\tfa\rawcounter[volpage]\incrementcounter[volpage]}
> > >   \stopTEXpage}
> > > \stoptext
> > >
> > > As you will see, the counter is not incremented on pages 2 and 3.
> > >
> > > I expect that I have missed something important. But what?
> > >
> > > 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
> > >
> ___
> >
> > Taco Hoekwater
> > Elvenkind BV
> >
> >
> >
> >
> >
> ___
> > 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
> >
> ___
>
> Taco Hoekwater
> Elvenkind BV
>
>
>
>
>
> ___
> If your question is of interest to others as well, please add an entry to
> the 

Re: [NTG-context] problem with counters (page)

2020-06-10 Thread Alan Bowen
Hi, Taco—

Thanks for the suggestion. I have tried it with \incrementcounter before
and after the TEXpage. Sadly, neither worked.

This mwe is an attempt to capture the failure of the following in
processing a product with numerous components:

\definecounter[volpage][type=page, way=bypage]
\setupfootertexts[text]
[]
[{\centerline{\raise\NumberRaise\hbox{\rawcounter[volpage]}}
\incrementcounter[volpage]}]
[{\centerline{\raise\NumberRaise\hbox{\rawcounter[volpage]}}
\incrementcounter[volpage]}]
[]

If your suggestion had worked, I would have had difficulty in applying it.

Alan

On Wed, Jun 10, 2020 at 3:14 AM Taco Hoekwater  wrote:

> Hi,
>
> Incrementing the counter outside of the TEXpage should work.
>
> Best wishes,
> Taco
>
> > On 9 Jun 2020, at 23:34, Alan Bowen  wrote:
> >
> > My efforts to set up a new page counter in the footertexts of a book are
> not proving successful. The following code shows the nature of the problem.
> >
> > \definecounter[volpage][type=page, way=bypage]
> > \starttext
> > \setcounter[volpage][5]
> > \dorecurse{3}{\startTEXpage[offset=2pc]
> >   \input ward
> >   \blank[medium]
> >
>  \centerline{\red\tfa\rawcounter[volpage]\incrementcounter[volpage]}
> >   \stopTEXpage}
> > \stoptext
> >
> > As you will see, the counter is not incremented on pages 2 and 3.
> >
> > I expect that I have missed something important. But what?
> >
> > 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
> >
> ___
>
> Taco Hoekwater
> Elvenkind BV
>
>
>
>
>
> ___
> 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
___


[NTG-context] problem with counters (page)

2020-06-09 Thread Alan Bowen
My efforts to set up a new page counter in the footertexts of a book are
not proving successful. The following code shows the nature of the problem.

\definecounter[volpage][type=page, way=bypage]
\starttext
\setcounter[volpage][5]
\dorecurse{3}{\startTEXpage[offset=2pc]
\input ward
\blank[medium]
\centerline{\red\tfa\rawcounter[volpage]\incrementcounter[volpage]}
\stopTEXpage}
\stoptext

As you will see, the counter is not incremented on pages 2 and 3.

I expect that I have missed something important. But what?

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
___


[NTG-context] \frac and vertical spacing issue in mathfractions

2020-06-06 Thread Alan Bowen
In the current beta ( LuaMetaTeX, Version 2.06.05),

\m{\frac{28}{8\times29}}

puts the numerator and denominator too close to the dividing line.
Similarly for the variants of \frac and \over.

\m{{28}\over{8\times29}}

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
___


[NTG-context] referencing both real and user pagenumbers

2020-05-28 Thread Alan Bowen
I have a collection of papers printed previously that are to go into a
single volume so that, while the papers retain their original pagination
and internal cross-referencing, they are also paginated continuously. I
have managed to do this using userpagenumbers for the individual papers and
realpagenumbers for the volume as a whole.

Re cross-referencing: \at and \in etc. return userpagenumbers (which I
need). But I also need them (or something like them) to
return realpagenumbers as well. Is there a way to do this?

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
___


[NTG-context] output file name query

2020-05-22 Thread Alan Bowen
In my project, I process a single product file by enabling various modes.
What I would like to do is to vary the name of the output PDF file in each
instance.

So, in processing a file, how does one go directly from prd_filename.tex to
myfilename.pdf rather than to prd_filename.pdf—assuming that it is possible?

Any tips or pointers to what I should be reading will be
greatly appreciated.

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
___


[NTG-context] Project setup query

2020-04-30 Thread Alan Bowen
This is a minor issue—to which I expect the answer will be simple,
something I should know by now but do not. I am just trying to see if I can
streamline a working directory.

In Directory01, I have a number of prd_NameXX.tex files as well as a
Directory02 which contains .tex files  that are to be called on by each one
of the prd_Name.tex files.

Is there a way to identify the TEX root for each of the common files (in
Directory02) so that
the file will be processed when I process any one of the prd files in
Directory01?

I have tried
% !TEX root=../prd_\mystring.tex

with, e.g., \def\mystring{Name01} in the prd_Name01.tex file, but that does
not seem to work—the various .tex files re not found.

What puzzles me is that the environment files in Directory02 are found.
(That they are identified in a prj file in Directory01 does not seem to be
the reason why.)

There is no problem if I move the contents of Directory02 into Directory01.

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
___


[NTG-context] accessing prd file from component file

2020-04-22 Thread Alan Bowen
When my component files were in the same directory as my component files,
the line
%! TeX root = prd_whatever
allowed processing the component file from the component file. (I use
TeXShop for this.)

The project structure has been changed: the component files are in a
subdirectory of the directory that has the prd file. Now,
%! TeX root = prd_whatever
no longer works. (E.g., it cannot find the environment files called in the
prd file.)

Is there a way to restore processing from the component file. My
experiments are near to wearing out the “error” message/page.

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] developer not verified error

2019-11-18 Thread Alan Bowen
This seems to be a problem peculiar to Catalina (macOS 10.15.1). There is a
fix, as Otared and Glen have indicated.

go to Apple menu -> Preferences -> Security & Privacy
on the Security & Privacy, login, choose the tab General
there choose, towards the bottom of that pane, under « Allow apps
downloaded from: »
   choose the radio button App Store and identified
developers
   click the button «allow anyway»

The macOS still chokes when you first try to update lmtx , but this time it
presents the option «Open». Select that and you are good to go.

So, thanks, guys.

And Mojca, yes, it is very confusing. Still, that seems to be all that one
has to do make the download. So perhaps there is no need for changes at
your end.

Cheers, Alan


On Sun, Nov 17, 2019 at 11:30 AM Keith McKay  wrote:

> This is the standard way to install "apps" on a mac, which have an unknown
> developer, to Apple anyway. It is a bit annoying when it happens especially
> when one has forgotten that you have to go through the Preferences dialog
> to get it to run. In my case it's an age thing.[image: ]
>
> Best Wishes
>
> Keith McKay
> On 16/11/2019 22:27, Glen Helman wrote:
>
> There seems to be a way around this built into Catalina, however awkward
> it may be.
>
> I tried to install lmtx on a computer running Catalina that didn’t have an
> installation and received a similar error. (There seems to be a quarantine
> applying to the text of the script and not merely the file because I tried
> creating a new document with the same text and received the same response,
> and that response referred to the download of the original file.)
>
> I did find that the “general” tab under “security & privacy” in the system
> preferences had, in addition to the usual two choices, a reference to the
> downloaded script with a button reading “allow anyway” (or something to
> that effect). When I tried to run the script again after clicking that
> button, the “developer cannot  be verified” dialogue included “open” as a
> choice; and, when I clicked that, the script ran successfully and the
> installation was usable.
>
> I then tried the install script on another computer running Cataline where
> I had installed lmtx last spring. I ran into the “developer cannot be
> verified” response again, but the same workaround allowed the script to
> run, and the installation was updated.
>
> Glen Helman
>
> On Nov 15, 2019, at 4:36 PM, Alan Bowen  wrote:
>
> Though I was able to download the latest ConTeXt beta without any
> problems, my attempt to update my ConText-LMTX installation was blocked.
> The error message was
>
> *“mtxrun” cannot be opened because the developer cannot be verified*
> macOS cannot verify that this app is free from malware.
> Safari downloaded this file on April 29, 2019.
>
>  I am not sure why this is happening and wonder if it would OK to copy
> mxtrun from my ConTeXt installation and replace the version in my
> ConTeXt-LMTX installation with it.
>
> 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
>
> ___
>
>
>
> ___
> 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
>
> ___
>
___
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] developer not verified error

2019-11-15 Thread Alan Bowen
Though I was able to download the latest ConTeXt beta without any problems,
my attempt to update my ConText-LMTX installation was blocked. The error
message was

*“mtxrun” cannot be opened because the developer cannot be verified*

macOS cannot verify that this app is free from malware.

Safari downloaded this file on April 29, 2019.


 I am not sure why this is happening and wonder if it would OK to copy
mxtrun from my ConTeXt installation and replace the version in my
ConTeXt-LMTX installation with it.


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] beta

2019-10-02 Thread Alan Bowen
Hi, Hans—

The latest lmtx now processes my docs as it should when texmf-cache was
deleted before installation. So, where is this zip that has the revised
install.sh script?

Alan

On Wed, Oct 2, 2019 at 7:06 AM Hans Hagen  wrote:

> On 9/30/2019 2:11 PM, Thomas A. Schmitz wrote:
> > On 29.09.19 16:31, Hans Hagen wrote:
> >> Hi,
> >>
> >> A week ago we had the (nice and pleasant) annual context meeting and
> >> as usual some new stuff has been presented there which was not yet in
> >> the distribution at that moment. Some pending code is now being moved
> >> into the distribution. Part is font related (lmtx only, not relevant
> >> for most users), most is metafun (luametafun or metafun xl or whatever
> >> name suits) related (including a new preliminary manual) which uses
> >> some new interfaces and therefore (currently) is lmtx only.
> >
> > Hi Hans,
> >
> > I just updated. I had to delete the cache for context to work again, got
> > weird errors compiling a file that works normally. So my question: since
> > creating a new cache and format takes only a few seconds, wouldn't it
> > make sense to include it in install.sh ?
> I've added that feature but one needs the new install.sh script then
> (from the zip).
>
> (We also added openbsd installers.)
>
> Hans
>
> -
>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
>
> ___
>
___
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] odd processing error with latest standalone

2019-09-19 Thread Alan Bowen
Hi, OK—

I removed texmf-cache/luatex-cache and reinstalled LMTX. The problem
persists, sad to say. It also fails when I run LuaTeX, Version 1.10.1 (TeX
Live 2019), ConTeXt  ver: 2019.09.10., even after removing texmf-cache and
reinstalling.

Thanks for the tip, though.

All best, Alan

On Thu, Sep 19, 2019 at 12:54 AM Otared Kavian  wrote:

> Hi Alan,
>
> I had an analogous issue and after cleaning the luatex-cache and
> re-installing it was solved (working under MacOS 10.14).
>
> Maybe you can try that too?
>
> Best regards: OK
>
> On 18 Sep 2019, at 21:41, Alan Bowen  wrote:
>
> In processing a book that I have edited, there is no problem using
> LuaMetaTeX, Version 2.00.0, 2019.07.31
>
> But with LuaMetaTeX, Version 2.00.0, ConTeXt  ver: 2019.09.10,
> the process stops in a specific chapter and quits with a fatal error:
>
> tex error   > tex error on line 26 in file c_12-01_Greenbaum.tex: !
> Undefined control sequence
>
> \referencerealpage ->\clf_referencerealpage
>
>
> \scrn_button_make_yes ...unter \referencerealpage
>   \relax \ifcase
> \scratchcou...
> \scrn_button_make ...ke_yes \scrn_button_make_nop
>   #1#2#3#4 {#5}\endgroup
> \scrn_button_direct_indeed ...onparameter {#2}{#3}
>   \egroup \endgroup
> l.26 ]
>
>
> l.37 ]
>
>
> ...
> l.249 ...BHA_12-01_Plate01.pdf][width=.5\textwidth]{
>   }
> 16
> 17 \def\ChapterSubTitle{The Hellenistic Horoscope}
> 18 \def\SubChapterNo{12.1}
> 19 \relax
> 20 \startBrillChapter[reference=Ch12,
> 21 title={\vglue6pc{\ChapterNo}~\\
> 22 \ChapterTitle},
> 23 bookmark={12 Astral Divination and Natal Astrology}]
> 24
> 25 \startBrillSubChapter[reference=DGG12-01,
> 26 >>  title={{\SubChapterNo}~\\
> 27 \ChapterSubTitle},
> 28 bookmark={12.1 The Hellenistic Horoscope}]
> 29 \byline
> 30 \startLevelBnHead[reference=12.1.1,
> 31 title=Introduction]
>
> What puzzles me is that the relevant coding for this chapter is the same
> as for several other chapters that process with no problems. It would be
> good to know if this is a problem in the chapter itself that I can fix or
> if there is a problem in the latest standalone.
>
> The error-log reads:
>
> return {
>  ["filename"]="c_12-01_Greenbaum.tex",
>  ["lastcontext"]="\n\\referencerealpage ->\\clf_referencerealpage \n
>  \n\\scrn_button_make_yes ->\\scratchcounter
> \\referencerealpage \n\\relax
> \\ifcase \\scratchcounter \\expa...\n\\scrn_button_make
> ...\\scrn_button_make_yes \\scrn_button_make_nop \n
>  #1#2#3#4 {#5}\\endgroup
> \n\\scrn_button_direct_indeed ...buttonparameter \\setbuttonparameter
> {#2}{#3}\n  \\egroup
> \\endgroup \nl.26 ]\n \nl.37 ]\n \n...\nl.249
> ...HA_12-01_Plate01.pdf][width=.5\\textwidth]{\n
>} ",
>  ["lastluaerror"]="?",
>  ["lasttexerror"]="! Undefined control sequence",
>  ["lasttexhelp"]="The control sequence at the end of the top line of your
> error message was never\n\\def'ed. You can just continue as I'll forget
> about whatever was undefined.",
>  ["linenumber"]=26,
>  ["offset"]=10,
> }
>
> 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
>
> ___
>
>
>
> ___
> 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
___


[NTG-context] odd processing error with latest standalone

2019-09-18 Thread Alan Bowen
In processing a book that I have edited, there is no problem using
LuaMetaTeX, Version 2.00.0, 2019.07.31

But with LuaMetaTeX, Version 2.00.0, ConTeXt  ver: 2019.09.10,
the process stops in a specific chapter and quits with a fatal error:

tex error   > tex error on line 26 in file c_12-01_Greenbaum.tex: !
Undefined control sequence


\referencerealpage ->\clf_referencerealpage



\scrn_button_make_yes ...unter \referencerealpage

  \relax \ifcase
\scratchcou...

\scrn_button_make ...ke_yes \scrn_button_make_nop

  #1#2#3#4 {#5}\endgroup

\scrn_button_direct_indeed ...onparameter {#2}{#3}

  \egroup \endgroup

l.26 ]



l.37 ]



...

l.249 ...BHA_12-01_Plate01.pdf][width=.5\textwidth]{

  }

16

17 \def\ChapterSubTitle{The Hellenistic Horoscope}

18 \def\SubChapterNo{12.1}

19 \relax

20 \startBrillChapter[reference=Ch12,

21 title={\vglue6pc{\ChapterNo}~\\

22 \ChapterTitle},

23 bookmark={12 Astral Divination and Natal Astrology}]

24

25 \startBrillSubChapter[reference=DGG12-01,

26 >>  title={{\SubChapterNo}~\\

27 \ChapterSubTitle},

28 bookmark={12.1 The Hellenistic Horoscope}]

29 \byline

30 \startLevelBnHead[reference=12.1.1,

31 title=Introduction]

What puzzles me is that the relevant coding for this chapter is the same as
for several other chapters that process with no problems. It would be good
to know if this is a problem in the chapter itself that I can fix or if
there is a problem in the latest standalone.

The error-log reads:

return {
 ["filename"]="c_12-01_Greenbaum.tex",
 ["lastcontext"]="\n\\referencerealpage ->\\clf_referencerealpage \n
 \n\\scrn_button_make_yes ->\\scratchcounter
\\referencerealpage \n\\relax
\\ifcase \\scratchcounter \\expa...\n\\scrn_button_make
...\\scrn_button_make_yes \\scrn_button_make_nop \n
 #1#2#3#4 {#5}\\endgroup
\n\\scrn_button_direct_indeed ...buttonparameter \\setbuttonparameter
{#2}{#3}\n  \\egroup
\\endgroup \nl.26 ]\n \nl.37 ]\n \n...\nl.249
...HA_12-01_Plate01.pdf][width=.5\\textwidth]{\n
   } ",
 ["lastluaerror"]="?",
 ["lasttexerror"]="! Undefined control sequence",
 ["lasttexhelp"]="The control sequence at the end of the top line of your
error message was never\n\\def'ed. You can just continue as I'll forget
about whatever was undefined.",
 ["linenumber"]=26,
 ["offset"]=10,
}

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
___


[NTG-context] inline fractions

2019-06-26 Thread Alan Bowen
The following mwe

\definefontfeature[fraction][frac=yes]
\definehighlight[textfraction][style={\feature[+][fraction]}]

\starttext
a fraction \m{\frac{1}{n}}, \textfraction{1/n}, \vulgarfraction{1}{n} in
the text
\stoptext

works for all but \textfraction in the latest beta (luatex, luametatex).
Has something changed or have I missed something?

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
___


[NTG-context] fatal error with latest beta

2019-05-15 Thread Alan Bowen
The following:
\setupdirections[bidi=global]
\definefallbackfamily[mainface][serif][SBL
Hebrew][range={0591-05F4,FB1D-FB4F}]
\definefontfamily[mainface][serif][TeX Gyre Termes]
\setupbodyfont[mainface, 10pt]
\starttext
   \setupalign[rtl]{
ﬡﬡﬢ
}
\setupalign[ltr] 
\stoptext
 sets as it should with ConTeXt  ver: 2018.09.13,  LuaTeX, Version 1.09.0
(and several betas later).

But with ConTeXt  ver: 2019.05.12, LuaTeX, Version 1.10.1
it complains with:
lua error   > lua error on line 8 in file ...test-03.tex:

...eXt/tex/texmf-context/tex/context/base/mkiv/font-oup.lua:1317: bad
argument #1 to 'concat' (table expected, got number)

 1 \setupdirections[bidi=global]
 2
 3 \definefallbackfamily[mainface][serif][SBL
Hebrew][range={0591-05F4,FB1D-FB4F}]
 4
 5 \definefontfamily[mainface][serif][TeX Gyre Termes]
 6
 7 \setupbodyfont[mainface, 10pt]
 8 >>
 9 \starttext
10    \setupalign[rtl]{
11 ﬡﬡﬢ
12 }
13 \setupalign[ltr] 
14
15 \stoptext
16

mtx-context | fatal error: return code: 256

Has something changed in how such l2r fonts should be invoked?

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
___


[NTG-context] Lua error in latest beta?

2019-04-29 Thread Alan Bowen
When I process files using the latest standalone  ConTeXt  ver: 2019.04.29
08:52 MKIV beta  fmt:  LuaTeX, Version 1.10.0 (TeX Live 2019)), I now get
the following error message:

lua error   > lua error on line 8 in file env_Brill-01.tex:


...eXt/tex/texmf-context/tex/context/base/mkiv/font-oup.lua:1317: bad
argument #1 to 'concat' (table expected, got number)

The error log is as follows:

return {
 ["filename"]="env_Brill-01.tex",
 ["lastcontext"]="\
\\font_helpers_low_level_define ...nsize }{\\m_font_designsize
}\\scaledfontmode \
  \\relax \\ifcase
\\scaledfont...\
\\font_fallbacks_clone_unique ...w_level_define
{#1}\\v_font_identifier_basic \
  \\csname
\\v_font_identifier...\
l.8 }\
\
\\font_fallbacks_prepare #1->\\clf_fontcollectionprepare {#1}\
  \
\\font_fallbacks_prepare_indeed ... \\lastrawfontcall
\\font_fallbacks_prepare #1\
  \\endgroup \
 ...nt_fallbacks_prepare_indeed \\m_font_fallbacks \
  \\fi \\fi \
...\
l.215 \\setupbodyfont[mainface, 10pt]\
   ",
 
["lastluaerror"]="...eXt/tex/texmf-context/tex/context/base/mkiv/font-oup.lua:1317:
bad argument #1 to 'concat' (table expected, got number)",
 ["lasttexerror"]="?",
 ["linenumber"]=8,
 ["luaerrorline"]="1317",
 ["offset"]=10,
}

This files process as they should with earlier versions. I will try to
produce an mwe if needed but hope that it is not.

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
___


[NTG-context] TeXShop Preview and fatal error bug

2019-04-16 Thread Alan Bowen
Using latest TeXShop,  latest ConTeXt beta, and latest Moajve,

run the file

\starttext
\quotation{tufte}
\page
\quotation[tufte}
\stoptext

The PDF preview is grey. Fix the error: \quotation[tufte} —>
\quotation{tufte}

Re-run the file. The PDF preview remains gray. Print the PDF file or view
it in full screen mode, the output is correct.

\page is essential for some reason.

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
___


[NTG-context] \setupdirections, methods one, two, and three

2019-02-04 Thread Alan Bowen
The latest beta complains and stops when I try to process a book that has
\setupdirections[bidi=global, method=one]
for several, scattered phrases in Arabic and Hebrew (which I do not read).

It works, however, when I set
method=two
or
method=three.

What is the difference between these methods and, am I right that the
output will be the same if I switch to method two or three?

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
___


[NTG-context] problem with \sym?

2019-02-03 Thread Alan Bowen
Processing a table of contents with the latest standalone (ConTeXt  ver:
2019.01.28 16:58 MKIV beta  fmt: 2019.2.3) fails with the following message:

luatex warning  > hpack filter: error:
...eXt/tex/texmf-context/tex/context/base/mkiv/typo-dua.lua:422: attempt to
compare number with nil


tex error   > tex error on line 18 in file c_Contents.tex: ?



\strc_itemgroups_make_symbol_box ...mbol \fi \fi }

  \let
\strc_itemgroups_extr...

\strc_itemgroups_insert_item ...s_make_symbol_box


\strc_itemgroups_make_dest...

\strc_itemgroups_start_item ...groups_insert_item

  \dostoptagged
\ifcondition...



\dotagsetitem

\sym ..._symbol \startitemgroupitem \dotagsetitem

  \s!symbol

l.18 \sym{0.}

Prolegomena to the Study of Hellenistic Astronomy

This worked with the previous standalone.

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
___


[NTG-context] linking to an external PDF file

2018-10-07 Thread Alan Bowen
A how-to question that has come up:

Is there a way to establish to hyperlink to a specific page or footnote in
an external PDF document?

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
___

[NTG-context] latest beta (2018.110.14)

2018-08-15 Thread Alan Bowen
When I run the latest standalone beta, the following

\starttext
Hello, world!
\stoptext

fails with the error message:

lua error   > lua error on line 5 in file
/Users/bowen1/Desktop/TestTeX/test-01.tex:


...eXt/tex/texmf-context/tex/context/base/mkiv/cldf-ini.lua:1120: no string
to print

stack traceback:

[C]: in function 'tex.sprint'

...eXt/tex/texmf-context/tex/context/base/mkiv/cldf-ini.lua:1120: in
upvalue 'sprint'

...eXt/tex/texmf-context/tex/context/base/mkiv/cldf-bas.lua:180: in upvalue
'ctx_latelua'

...eXt/tex/texmf-context/tex/context/base/mkiv/anch-pos.lua:643: in
function <...eXt/tex/texmf-context/tex/context/base/mkiv/anch-pos.lua:601>

(...tail calls…)


1

2

3 \starttext

4

5 >>  Hello, world!

6

7 \stoptext

8


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
___

[NTG-context] \startregister…\stopregister bug?

2018-08-14 Thread Alan Bowen
In the latest beta (2018.08.10),

\defineregister[TesT]
\starttext
\startregister[TesT]{samples}
\input knuth
\page
\input ward
\stopregister[TesT]
\blank[3*big]
\placeregister[TesT]
\stoptext

produces on page 2 the index entry
*samples 1*
when one expects
*samples 1–2*

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] latest beta and \seeindex

2018-06-25 Thread Alan Bowen
I should add too that in this particular volume our contributors sometimes
mention different terms for the same thing as in “This is called p or q”.
Indexing both terms (p and q) separately and the adding  x-ref is one way
to go but indexing the more commonly used term and adding a mere x-ref for
the other is more efficient.

Alan

On Sun, Jun 24, 2018 at 4:08 PM Henning Hraban Ramm  wrote:

> Am 2018-06-24 um 21:57 schrieb Hans Hagen :
>
> > On 6/23/2018 5:10 PM, Alan Bowen wrote:
> >> The latest beta (ConTeXtver: 2018.06.23 12:12 MKIV betafmt: 2018.6.23)
> processes without a hitch but \seeindex is still not working as expected.
> >> In
> >> \starttext
> >> \index{sample}
> >> \index{fun+games}\index{fun+stuff}
> >> %\index{fun}
> >> \seeindex{fun}{sample}% now with heading (as it should be)
> >> \seeindex{fun}{blah}% not shown
> >> \seeindex{fun}{humbug}% not shown
> >> \seeindex{fun}{bug}% not shown
> >> \seeindex{fun+games}{entertainment}% not shown
> >> \placeindex[n=1]
> >> \stoptext
> >> When I generate the indices for my book, \seeindex{A}{B} works only if
> it is a unique x-ref and A is a heading. Multiple x-refs to the same
> heading fail as do x-refs to subheadings.
> > sure,
> >
> > \seeindex{fun}{blah}% not shown
> > \seeindex{fun}{humbug}  % not shown
> > \seeindex{fun}{bug} % not shown
> >
> > as there is no index entry blah, humbug or bug ... so you would be
> fooling your reader
>
> I understand the rationale, and it could be a nice feature, but we need to
> refer to entries in a different register, e.g. from an index of topics to
> an index of persons, e.g. \seeindex{Pragma}{Hagen, Hans} or to subentries
> like \seeindex{fun+games}{bah+humbug}. Since the latter doesn’t work (or
> does it now?), we use \seeindex{fun+games}{bah/humbug}.
>
>
> Greetlings, Hraban
> ---
> https://www.fiee.net
> http://wiki.contextgarden.net
> https://www.dreiviertelhaus.de
> GPG Key ID 1C9B22FD
>
>
> ___
> 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
___

[NTG-context] latest beta and \seeindex

2018-06-23 Thread Alan Bowen
The latest beta (ConTeXt  ver: 2018.06.23 12:12 MKIV beta  fmt: 2018.6.23)
processes without a hitch but \seeindex is still not working as expected.

In

\starttext
\index{sample}
\index{fun+games}\index{fun+stuff}
%\index{fun}

\seeindex{fun}{sample} % now with heading (as it should be)
\seeindex{fun}{blah} % not shown
\seeindex{fun}{humbug} % not shown
\seeindex{fun}{bug} % not shown

\seeindex{fun+games}{entertainment} % not shown

\placeindex[n=1]
\stoptext

When I generate the indices for my book, \seeindex{A}{B} works only if it
is a unique x-ref and A is a heading. Multiple x-refs to the same heading
fail as do x-refs to subheadings.

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] error in seeindex sorting

2018-06-15 Thread Alan Bowen
The MWE

\index{sample}
\index{fun+games}\index{fun+stuff}
\index{fun}

\seeindex{fun}{sample} % with first subheading, not heading
\seeindex{fun}{blah} % shown with heading (as it should be) ONLY if
\index{fun} is commented out; otherwise it is not shown
\seeindex{fun}{humbug} % not shown
\seeindex{fun}{bug} % not shown

\seeindex{fun+games}{entertainment}  % not shown

\placeindex[n=1]

shows several problems in \seeindex.

What is needed is

fun   1 *see blah, bug, humbug, and sample*
games 1 *see entertainment*
stuff1

As Hraban has indicated, there is some urgency here. For my part, I need
x-refs for a book that I am trying to get off my plate and onto the
publisher’s; so any thoughts on this or suggestions will be greatly
appreciated.

Alan






On Wed, Jun 13, 2018 at 10:46 AM Henning Hraban Ramm  wrote:

> In latest beta, the error got bigger:
>
> \starttext
> \index{sample}
> \index{Fun+games}\index{Fun+stuff}
> \seeindex{Fun}{sample}
> \seeindex{Fun}{bug} % missing!
> \seeindex{Fun}{blah}
> \placeindex[n=1]
> \stoptext
>
> now gives
>
> f
> Fun see blah
>   games , see sample
>   stuff
> s
> sample
>
> i.e.
> * multiple seeindex references from the same point are incomplete
> * wrong "root" as before
>
> Greetlings, Hraban
> ---
> https://www.fiee.net
> http://wiki.contextgarden.net
> https://www.dreiviertelhaus.de
> GPG Key ID 1C9B22FD
>
> Am 2018-06-11 um 21:05 schrieb Henning Hraban Ramm :
>
> > Me again on registers.
> >
> > If you have an entry with just subentries and a reference (seeindex)
> from the main entry to an *existing* other entry, the reference is sorted
> at one of the subentries.
> > I.e. in the MWE we get
> >
> > Fun
> >  games 1, see sample
> >  stuff 1
> >
> > instead of
> >
> > Fun see sample
> >  games 1
> >  stuff 1
> >
> >
> > \starttext
> > \index{sample}
> > \index{Fun+games}\index{Fun+stuff}
> > \seeindex{Fun}{sample}
> > \placeindex[n=1]
> > \stoptext
> >
> >
> > This prevents the completion of a scientific tome, so would be really
> nice if this could be fixed.
> >
> >
> > Greetlings, Hraban
> > ---
> > https://www.fiee.net
> > http://wiki.contextgarden.net
> > https://www.dreiviertelhaus.de
> > GPG Key ID 1C9B22FD
>
>
> ___
> 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] index x-ref problem

2018-05-25 Thread Alan Bowen
This is fixed in the latest beta. Thanks, Hans!

Alan

On Sat, May 19, 2018 at 8:05 AM Alan Bowen <bowenala...@gmail.com> wrote:

> IF I am doing this correctly, then, there seems to be problems in the
> current standalone​ when there are two x-refs to a single heading. The
> space after “and” is missing and should the order of the refs not be
> alphabetical?
>
> MWE
>
> \starttext
> \seeindex{animal}{cat}
> \seeindex{animal}{quadruped}
>
> %\seeindex{animal}{whiskers}
>
> The \index{cat}cat has \index{whiskers} whiskers.
> \blank[3*big]
> \placeindex
> \stoptext
>
> Uncomment the \seeindex{animal}{whiskers} and it gets even messier.
>
> 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
___

[NTG-context] index x-ref problem

2018-05-19 Thread Alan Bowen
IF I am doing this correctly, then, there seems to be problems in the
current standalone​ when there are two x-refs to a single heading. The
space after “and” is missing and should the order of the refs not be
alphabetical?

MWE

\starttext
\seeindex{animal}{cat}
\seeindex{animal}{quadruped}

%\seeindex{animal}{whiskers}

The \index{cat}cat has \index{whiskers} whiskers.
\blank[3*big]
\placeindex
\stoptext

Uncomment the \seeindex{animal}{whiskers} and it gets even messier.

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] \eqalign not working in latest beta

2018-03-02 Thread Alan Bowen
Excellent, Aditya.This is most helpful. Many thanks.

Alan

On Thu, Mar 1, 2018 at 10:49 PM, Aditya Mahajan <adit...@umich.edu> wrote:

> On Thu, 1 Mar 2018, Alan Bowen wrote:
>
> OK—thanks for the mkiv alternative to \eqalign.
>>
>
> This has been available for a while:
>
> http://dl.contextgarden.net/myway/context-latex-math.pdf
>
> Aditya
> 
> ___
> 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] \eqalign not working in latest beta

2018-03-01 Thread Alan Bowen
Wolfgang—thanks for the link/explanation.

Alan


On Thu, Mar 1, 2018 at 4:57 PM, Wolfgang Schuster <
schuster.wolfg...@gmail.com> wrote:

> https://mailman.ntg.nl/pipermail/ntg-context/2018/090856.html
>
> Wolfgang
>
> Alan Bowen <bowenala...@gmail.com>
> 1. März 2018 um 17:41
> \eqalign does not seem to be working in the latest beta.
>
> MWE taken from the garden:
>
> \starttext
>
> \startformula
> \eqalign{
> t_{L,\text{early}} & = t_{L,\text{late}} = t_{L,\text{ray}} \cr
> & = 6\ \mu m \cr
> }
> \stopformula
>
> \stoptext
>
> 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
> 
> ___
>
>
>
> 
> ___
> 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] \eqalign not working in latest beta

2018-03-01 Thread Alan Bowen
OK—thanks for the mkiv alternative to \eqalign.

Alan

On Thu, Mar 1, 2018 at 2:36 PM, Otared Kavian <ota...@gmail.com> wrote:

> Hi Alan,
>
> I think in mkiv one is supposed to use rather the \startalign...\stopalign
> structure, as in the following:
>
> \starttext
>
> \startformula
> \startalign
> \NC t_{L,\text{early}} \NC = t_{L,\text{late}} = t_{L,\text{ray}} \NR
> \NC\NC  = 6\ \mu m \NR
> \stopalign
> \stopformula
>
> \stoptext
>
> Best regards: OK
>
> On 1 Mar 2018, at 17:41, Alan Bowen <bowenala...@gmail.com> wrote:
>
> \eqalign does not seem to be working in the latest beta.
>
> MWE taken from the garden:
>
> \starttext
>
> \startformula
> \eqalign{
> t_{L,\text{early}} & = t_{L,\text{late}} = t_{L,\text{ray}} \cr
> & = 6\ \mu m \cr
> }
> \stopformula
>
> \stoptext
>
> 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
> 
> ___
>
>
>
> 
> ___
> 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
___

[NTG-context] \eqalign not working in latest beta

2018-03-01 Thread Alan Bowen
\eqalign does not seem to be working in the latest beta.

MWE taken from the garden:

\starttext

\startformula
\eqalign{
t_{L,\text{early}} & = t_{L,\text{late}} = t_{L,\text{ray}} \cr
& = 6\ \mu m \cr
}
\stopformula

\stoptext

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] synctex and TeXShop problem

2017-11-17 Thread Alan Bowen
Otared, Luigi—many thanks for your help. I read the changes file—I
neglected to do this when I downloaded TeXShop 3.89— and have added the
line
% !TEX useOldSyncParser
into my source file.  Synctex is now working as it should (with the latest
ConTeXt and TeXShop).

All best, Alan

On Fri, Nov 17, 2017 at 8:31 AM, luigi scarso 
wrote:

> On Fri, Nov 17, 2017 at 2:27 PM, Otared Kavian  wrote:
> > Hi Alan,
> >
> > A few weeks ago Steffen Wolfrum and myself reported the issue to Richard
> > Koch who did some research and discovered the origin of the problem. He
> has
> > written again the part of the code related to synctex and ConTeXt and
> will
> > issue a new version where the problem is fixed.
> >
> > In the meanwhile you can use a previous version of TeXShop (I use
> version 77
> > and I can send you a Dropbox link to download it, of you wish) where the
> > syncing between the PDF result and the ConTeXt source works fine.
> >
> > Best regards: OK
> >
>
>
> http://pages.uoregon.edu/koch/texshop/changes_3.html
>
>
> --
> luigi
> 
> ___
> 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
___

[NTG-context] synctex and TeXShop problem

2017-11-17 Thread Alan Bowen
With the latest betas, I see that with the TeXShop Engine

#!/bin/tcsh

# Before using this engine, you must run the following command once in
Terminal: luatools --generate

set path= ($path /usr/texbin
/Users/bowen1/Dropbox/ConTeXt/tex/texmf-osx-64/bin)
mtxrun --script context --autogenerate --file-line-error "$1”

and
\setupsynctex[state=start, method=max]
in the source file, the requisite *filename*.synctex auxiliary file is
produced on processing.

But I am still not getting any linkage between the source file and the
preview file, that is, clicking on one does not have any effect on the
other. Is there something else that I need?

I am running ConTeXt  ver: 2017.11.15 with macOS 10.13.1.

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
___

[NTG-context] autopunctuation—semicolon key oddity

2017-10-30 Thread Alan Bowen
Using the “semicolon” key with a space before it does not work. Remove the
space and it does.

\starttext

\setupmathematics[autopunctuation={all, semicolon}]

\m{a;b}\quad \m{a,b}\quad\m{a.b}\quad\m{1;11}\quad \m{1,11}\quad\m{1.11}

\setupmathematics[autopunctuation={all,semicolon}]

\m{a;b}\quad \m{a,b}\quad\m{a.b}\quad\m{1;11}\quad \m{1,11}\quad\m{1.11}

\stoptext

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] substituting characters in math font

2017-10-29 Thread Alan Bowen
OK—that makes sense, since Brill is the family name. But then changing
“BrillItalic” to “Brill” will not get the italic math characters (Roman or
Greek). So, is there a way to get these italics using \definefallbackfamily
or must one use \definefontfallback (as Hraban and I eventually did)?

I was using Pagella and Cambria to convince myself that the problem was one
in my encoding and not some problem with the Brill font.

Best, Alan

On Sat, Oct 28, 2017 at 4:46 AM, Wolfgang Schuster <
schuster.wolfg...@gmail.com> wrote:

>
> Alan Bowen <bowenala...@gmail.com>
> 19. Oktober 2017 um 15:05
> Many thanks for this, Wolfgang. That is very helpful. Right now, then, I
> have:
>
> \definefontfamily[mainface][rm][Brill]
> [protrusion=quality,
> expansion=quality,
> mode=node,
> force=yes,
> ]
> \definefallbackfamily [mainface] [rm] [Brill]
> [tf=style:italic, range={0x03B8}, offset={0x03D1}]%Greek theta
>
> \definefallbackfamily[mainface][mm][Brill]
> [range={0x30-0x39}] %oldstyle numerals, normal
>
> \definefallbackfamily [mainface] [mm] [Brill] [preset=math:lowercasenormal]
> \definefallbackfamily [mainface] [mm] [BrillItalic]
> [preset=math:lowercaseitalic]
>
>
> The font name for the third argument is *always* Brill and not BrillItalic
> or BrillBold.
>
> \definefallbackfamily [mainface] [mm] [Brill] [preset=math:uppercasenormal]
> \definefallbackfamily [mainface] [mm] [BrillItalic]
> [preset=math:uppercaseitalic]
>
> \definefallbackfamily [mainface] [mm] [Brill] [preset=math:
> lowercasegreeknormal]
> \definefallbackfamily [mainface] [mm] [BrillItalic] [preset=math:
> lowercasegreekitalic]
> \definefallbackfamily [mainface] [mm] [Brill][preset=math:
> uppercasegreeknormal]
> \definefallbackfamily [mainface] [mm] [BrillItalic] [preset=math:
> uppercasegreekitalic]
>
> \definefontfamily[mainface][mm][TeX Gyre Termes Math][scale=0.94]
>
> \setupmathematics[ucgreek=normal, lcgreek=italic]
>
> \setupbodyfont[mainface,10pt]
>
>
> \starttext
>
> normal: 1234567890\quad math: \m{1234567890}
>
> normal: ABCDEFabcdef\quad italic: \emph{ABCDEFabcdef}\quad math: \m{\red
> ABCDEFabcdef}
>
> normal: ΑΒΓΔΕΘαβγδεθ\quad slanted: \emph{ΑΒΓΔΕΘαβγδεθ}\quad math: \m{\red
> ΑΒΓΔΕΘαβγδεθ}
>
> Greek theta: \emph{θ}
>
> \stoptext
>
> As you can see, all I need is to get the Brill lowercase Greek in mathmode
> and the proper slanted Greek theta.
>
>
> \starttext
> \m{\theta \vartheta}
> \stoptext
>
> I have tried this with Pagella and Cambria instead of the Brill font and
> the problem persists. So I must be doing something wrong. But what?
>
> Pagella and Cambria have a proper math font, why would you use fallbacks
> for them.
>
> 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
> 
> ___
>
___
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] avoiding two lines on last page

2017-10-20 Thread Alan Bowen
Thanks, Hraban. I finally got a chance to try it—and it works very nicely.

Note: I placed the command in text of the last page of the component and
got the desired result without specifying a page number. I wonder if this
more abuse than use.

Alan

On Wed, Oct 18, 2017 at 4:42 PM, Henning Hraban Ramm <te...@fiee.net> wrote:

> Am 2017-10-18 um 15:03 schrieb Alan Bowen <bowenala...@gmail.com>:
>
> > Occasionally, one of my components (chapters) ends with only two lines
> on the last page. Since space is at a premium, I was wondering if there is
> a way to encourage ConTeXt to put these two lines on the preceding page.
> >
> > I do not have a mwe, so any tips about strategies and commands to
> consider will be much appreciated.
>
> Did you try \adaptlayout?
> http://wiki.contextgarden.net/Command/adaptlayout
>
> Greetlings, Hraban
> ---
> http://www.fiee.net
> http://wiki.contextgarden.net
> GPG Key ID 1C9B22FD
>
> 
> ___
> 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] substituting characters in math font

2017-10-19 Thread Alan Bowen
Many thanks for this, Wolfgang. That is very helpful. Right now, then, I
have:

\definefontfamily[mainface][rm][Brill]
[protrusion=quality,
expansion=quality,
mode=node,
force=yes,
]
\definefallbackfamily [mainface] [rm] [Brill]
[tf=style:italic, range={0x03B8}, offset={0x03D1}]%Greek theta

\definefallbackfamily[mainface][mm][Brill]
[range={0x30-0x39}] %oldstyle numerals, normal

\definefallbackfamily [mainface] [mm] [Brill] [preset=math:lowercasenormal]
\definefallbackfamily [mainface] [mm] [BrillItalic]
[preset=math:lowercaseitalic]
\definefallbackfamily [mainface] [mm] [Brill] [preset=math:uppercasenormal]
\definefallbackfamily [mainface] [mm] [BrillItalic]
[preset=math:uppercaseitalic]

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

\definefontfamily[mainface][mm][TeX Gyre Termes Math][scale=0.94]

\setupmathematics[ucgreek=normal, lcgreek=italic]

\setupbodyfont[mainface,10pt]


\starttext

normal: 1234567890\quad math: \m{1234567890}

normal: ABCDEFabcdef\quad italic: \emph{ABCDEFabcdef}\quad math: \m{\red
ABCDEFabcdef}

normal: ΑΒΓΔΕΘαβγδεθ\quad slanted: \emph{ΑΒΓΔΕΘαβγδεθ}\quad math: \m{\red
ΑΒΓΔΕΘαβγδεθ}

Greek theta: \emph{θ}

\stoptext

As you can see, all I need is to get the Brill lowercase Greek in mathmode
and the proper slanted Greek theta. I have tried this with Pagella and
Cambria instead of the Brill font and the problem persists. So I must be
doing something wrong. But what?

Alan

On Wed, Oct 18, 2017 at 2:27 PM, Wolfgang Schuster <
schuster.wolfg...@gmail.com> wrote:

>
>
> Alan Bowen <bowenala...@gmail.com>
> 2. Oktober 2017 um 14:04
> I need to substitute the regular and italic characters of a publisher’s
> non-math font (Unicode) for those in a math font.
>
> The non-math addresses are:
> 0041-005A, 0061-007A %italic uppercase and lowercase
> 0391-03A9, 03B1-03C9  %slanted Greek uppercase and lowercase
>
> The math addresses are:
> 1D434-1D44D, 1D44E-1D467 %italic uppercase and lowercase
> 1D6E2-1D6FA, 1D6FC-1D714  %slanted Greek uppercase and lowercase
>
> Is there a way to use the \definefallbackfamily mechanism that does not
> assume that the characters have the same Unicode addresses? Or is some
> other approach required?
>
> The fallback mechanism provides a offset key which lets you replace a math
> character with a normal text character.
>
> \definefontfamily [mainface] [ss] [TeX Gyre Heros]
>
> \definefallbackfamily [mainface] [mm] [TeX Gyre Heros]
> [preset=math:lowercasenormal]
> \definefallbackfamily [mainface] [mm] [TeX Gyre Heros]
> [preset=math:lowercaseitalic]
> \definefallbackfamily [mainface] [mm] [TeX Gyre Heros]
> [tf=style:italic,range=0x68,offset=0x210E]% lowercase italic h
> \definefallbackfamily [mainface] [mm] [TeX Gyre Heros]
> [preset=math:lowercasebold]
> \definefallbackfamily [mainface] [mm] [TeX Gyre Heros]
> [preset=math:uppercasenormal]
> \definefallbackfamily [mainface] [mm] [TeX Gyre Heros]
> [preset=math:uppercaseitalic]
> \definefallbackfamily [mainface] [mm] [TeX Gyre Heros]
> [preset=math:uppercasebold]
>
> \definefontfamily [mainface] [mm] [TeX Gyre Pagella Math]
>
> \starttext
>
> \setupbodyfont[pagella]
>
> Lowercase: $ {\tf abc} {\it abc} {\bf abc} $
>
> Uppercase: $ {\tf ABC} {\it ABC} {\bf ABC} $
>
> \setupbodyfont[mainface]
>
> Lowercase: $ {\tf abc} {\it abch} {\bf abc} $
>
> Uppercase: $ {\tf ABC} {\it ABC} {\bf ABC} $
>
> \stoptext
>
> 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
> 
> ___
>
___
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] substituting characters in math font

2017-10-18 Thread Alan Bowen
I am resending this in the hope that some font will find him/herself with
time to consider an odd query.

I need to substitute the regular and italic characters of a publisher’s
non-math font (Unicode) for those in a math font.

The non-math addresses are:
0041-005A, 0061-007A %italic uppercase and lowercase
0391-03A9, 03B1-03C9  %slanted Greek uppercase and lowercase

The math addresses are:
1D434-1D44D, 1D44E-1D467 %italic uppercase and lowercase
1D6E2-1D6FA, 1D6FC-1D714  %slanted Greek uppercase and lowercase

Is there a way to use the \definefallbackfamily mechanism that does not
assume that the characters have the same Unicode addresses? Or is some
other approach required?

Alan

On Mon, Oct 2, 2017 at 8:04 AM, Alan Bowen <bowenala...@gmail.com> wrote:

> I need to substitute the regular and italic characters of a publisher’s
> non-math font (Unicode) for those in a math font.
>
> The non-math addresses are:
> 0041-005A, 0061-007A %italic uppercase and lowercase
> 0391-03A9, 03B1-03C9  %slanted Greek uppercase and lowercase
>
> The math addresses are:
> 1D434-1D44D, 1D44E-1D467 %italic uppercase and lowercase
> 1D6E2-1D6FA, 1D6FC-1D714  %slanted Greek uppercase and lowercase
>
> Is there a way to use the \definefallbackfamily mechanism that does not
> assume that the characters have the same Unicode addresses? Or is some
> other approach required?
>
> 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
___

[NTG-context] avoiding two lines on last page

2017-10-18 Thread Alan Bowen
Occasionally, one of my components (chapters) ends with only two lines on
the last page. Since space is at a premium, I was wondering if there is a
way to encourage ConTeXt to put these two lines on the preceding page.

I do not have a mwe, so any tips about strategies and commands to consider
will be much appreciated.

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
___

[NTG-context] substituting characters in math font

2017-10-02 Thread Alan Bowen
I need to substitute the regular and italic characters of a publisher’s
non-math font (Unicode) for those in a math font.

The non-math addresses are:
0041-005A, 0061-007A %italic uppercase and lowercase
0391-03A9, 03B1-03C9  %slanted Greek uppercase and lowercase

The math addresses are:
1D434-1D44D, 1D44E-1D467 %italic uppercase and lowercase
1D6E2-1D6FA, 1D6FC-1D714  %slanted Greek uppercase and lowercase

Is there a way to use the \definefallbackfamily mechanism that does not
assume that the characters have the same Unicode addresses? Or is some
other approach required?

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] Brill fonts / using Greek characters in math

2017-09-23 Thread Alan Bowen
The question can be simplified to:

How can we substitute slanted Greek upper- and lowercase glyphs (0041-005A,
0061-007A) for Pagella Math italic upper- and lowercase glyphs
(1D6E2-1D6FA, 1D6FC-1D714)?

Right now I have a mix of Brill Greek and Pagella Math Greek that does not
look very good at all and my deadline is approaching.

Alan

On Wed, Sep 20, 2017 at 5:07 PM, Alan Bowen <bowenala...@gmail.com> wrote:

> Sorry. The glyphs to replace in the math font are:
>
> roman:
> 0030-0039
> 0041-005A, 0061-007A
> 0391-03D6
> italic:
> 1D434-1D467
> 1D6E2-1D71B
>
> Alan
>
> On Wed, Sep 20, 2017 at 5:03 PM, Alan Bowen <bowenala...@gmail.com> wrote:
>
>> If it help: the glyphs to replace in the math font are:
>> nmerals0030-0039, (numerals)
>> 0041-005A, 0061-007A
>> 0391-03D6
>>
>>
>> On Wed, Sep 20, 2017 at 4:05 PM, Henning Hraban Ramm <te...@fiee.net>
>> wrote:
>>
>>> Ahoi,
>>>
>>> did anyone make typescripts for the Brill fonts (
>>> http://www.brill.com/about/brill-fonts)?
>>> Esp. I’d like to use their Greek characters for math. Don’t understand
>>> lfg files yet..
>>> So I guess the task is: How to map Unicode Greek to math Greek?
>>>
>>> Greetlings, Hraban
>>> ---
>>> http://www.fiee.net
>>> http://wiki.contextgarden.net
>>> GPG Key ID 1C9B22FD
>>>
>>> 
>>> ___
>>> 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/list
>>> info/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] Brill fonts / using Greek characters in math

2017-09-20 Thread Alan Bowen
Sorry. The glyphs to replace in the math font are:

roman:
0030-0039
0041-005A, 0061-007A
0391-03D6
italic:
1D434-1D467
1D6E2-1D71B

Alan

On Wed, Sep 20, 2017 at 5:03 PM, Alan Bowen <bowenala...@gmail.com> wrote:

> If it help: the glyphs to replace in the math font are:
> nmerals0030-0039, (numerals)
> 0041-005A, 0061-007A
> 0391-03D6
>
>
> On Wed, Sep 20, 2017 at 4:05 PM, Henning Hraban Ramm <te...@fiee.net>
> wrote:
>
>> Ahoi,
>>
>> did anyone make typescripts for the Brill fonts (
>> http://www.brill.com/about/brill-fonts)?
>> Esp. I’d like to use their Greek characters for math. Don’t understand
>> lfg files yet..
>> So I guess the task is: How to map Unicode Greek to math Greek?
>>
>> Greetlings, Hraban
>> ---
>> http://www.fiee.net
>> http://wiki.contextgarden.net
>> GPG Key ID 1C9B22FD
>>
>> 
>> ___
>> 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/list
>> info/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] Brill fonts / using Greek characters in math

2017-09-20 Thread Alan Bowen
If it help: the glyphs to replace in the math font are:
nmerals0030-0039, (numerals)
0041-005A, 0061-007A
0391-03D6


On Wed, Sep 20, 2017 at 4:05 PM, Henning Hraban Ramm  wrote:

> Ahoi,
>
> did anyone make typescripts for the Brill fonts (
> http://www.brill.com/about/brill-fonts)?
> Esp. I’d like to use their Greek characters for math. Don’t understand lfg
> files yet..
> So I guess the task is: How to map Unicode Greek to math Greek?
>
> Greetlings, Hraban
> ---
> http://www.fiee.net
> http://wiki.contextgarden.net
> GPG Key ID 1C9B22FD
>
> 
> ___
> 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
___

[NTG-context] bug in \over ?

2017-09-09 Thread Alan Bowen
The numerator in

\startformula
{ΑΒ\over CD}
\stopformula

should be italicized, should it not?

I am using ConTeXt  ver: 2017.09.08 17:24.

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] Substituting Greek characters in math mode

2017-09-07 Thread Alan Bowen
Let me try again with fonts in the ConteXt distribution.

The aim is to substitute Pagella letters (roman and Greek) and numerals for
those in Dejavu Math. It gets the numerals and the Greek capitals right but
the rest (roman lower– and uppercase, and lowercase Greek) are still in
Dejavu. How can I fix this?

\definefontfamily[mainface][serif][TeX Gyre Pagella][]

\definefallbackfamily[mainface][mm][TeX Gyre Pagella]
[range={0030-0039, 0041-005A, 0061-0071, 0391-03A9, 03B1-03C9}, scale=1]

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


\definefontfamily[mainface][mm][Dejavu Math][scale=1]

\setupmathematics[autopunctuation={all}, ucgreek=normal, lcgreek=italic]

\setupbodyfont[mainface,10pt]

\starttext

A~B~C~a~b~c (Pagella)

\emph{A~B~C~a~b~c} (Pagella)\\
\m{A~B~C~a~b~c} (math: Pagella?)
\blank
0123456789 (Pagella) \\
\m{0123456789} (math: Pagella?)
\blank
δ \emph{δ} (Pagella) \\
\m{δ} (math: Pagella?)
\blank
π \emph{π} (Pagella) \\
\m{π} (math: Pagella?)
\blank
Π \emph{ Π} (Pagella) \\
\m{Π} (math: Pagella?)
\blank
Δ \emph{ Δ} (Pagella) \\
\m{Δ}  (math: Pagella?)

\stoptext

Alan

On Tue, Sep 5, 2017 at 5:42 PM, Alan Bowen <bowenala...@gmail.com> wrote:

> I should like to have the Brill font substitute for the Greek alphabet
> (upper and lower cases) as well for the numerals in Tex Gyre Termes Math.
>
> So far, I have been able to get the Brill numerals (oldstyle) but nothing
> more: the Greek letters in math mode are from Termes Math.
>
> Here is what I have:
>
> \definefontfamily[mainface][serif][Brill]
> [protrusion=quality,
> expansion=quality,
> mode=node,
> force=yes,
> ]
>
> \definefallbackfamily[mainface][mm][Brill][range={0030-0039, 0391-03A9,
> 03B1-03C9}, scale=1]
>
> \definefallbackfamily [mainface] [mm] [Brill] [preset=math:
> lowercasegreeknormal]
> \definefallbackfamily [mainface] [mm] [BrillItalic] [preset=math:
> lowercasegreekitalic]
> \definefallbackfamily [mainface] [mm] [Brill] [preset=math:
> uppercasegreeknormal]
> \definefallbackfamily [mainface] [mm] [BrillItalic] [preset=math:
> uppercasegreekitalic]
>
>
> \definefontfamily[mainface][mm][TeX Gyre Termes Math][scale=0.94]
> \setupmathematics[autopunctuation={all}, ucgreek=normal, lcgreek=italic]
>
> \setupbodyfont[mainface,10pt]
>
> \starttext
>
> A~B~C~a~b~c
>
> \emph{A~B~C~a~b~c}\quad math: \m{A~B~C~a~b~c}
>
> 0123456789\quad math: \m{0123456789}
>
> δ \emph{δ}\quad math: \m{δ}
>
> π \emph{π}\quad math: \m{π}
>
> Π \emph{ Π}\quad math: \m{Π}
>
> \stoptext
>
> Any suggestions or pointers will be most welcome.
>
> 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
___

[NTG-context] Substituting Greek characters in math mode

2017-09-05 Thread Alan Bowen
I should like to have the Brill font substitute for the Greek alphabet
(upper and lower cases) as well for the numerals in Tex Gyre Termes Math.

So far, I have been able to get the Brill numerals (oldstyle) but nothing
more: the Greek letters in math mode are from Termes Math.

Here is what I have:

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

\definefallbackfamily[mainface][mm][Brill][range={0030-0039, 0391-03A9,
03B1-03C9}, scale=1]

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


\definefontfamily[mainface][mm][TeX Gyre Termes Math][scale=0.94]
\setupmathematics[autopunctuation={all}, ucgreek=normal, lcgreek=italic]

\setupbodyfont[mainface,10pt]

\starttext

A~B~C~a~b~c

\emph{A~B~C~a~b~c}\quad math: \m{A~B~C~a~b~c}

0123456789\quad math: \m{0123456789}

δ \emph{δ}\quad math: \m{δ}

π \emph{π}\quad math: \m{π}

Π \emph{ Π}\quad math: \m{Π}

\stoptext

Any suggestions or pointers will be most welcome.

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] semicolon in mathmode

2017-08-25 Thread Alan Bowen
Hi, Hans—

Have you decided about treating ; the same as , when enabled in
\setupmathematics?

Alan

On Fri, Aug 11, 2017 at 5:08 AM, Hans Hagen <pra...@wxs.nl> wrote:

> On 8/10/2017 10:34 PM, Aditya Mahajan wrote:
>
>> On Thu, 10 Aug 2017, Alan Bowen wrote:
>>
>> Is there a way to remove the thinspace after a semicolon when it is
>>> followed by a number?
>>> It does not seem to be covered by the autopunctuation key in
>>> \setupmathematics.
>>>
>>
>> For a one-off solution, $1{;}2$ should work.
>>
> Do we need support for this? That is: treat ; the same as , when enabled?
>
>
> -
>   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/list
> info/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] unwanted space after \in

2017-08-19 Thread Alan Bowen
Thanks, Aditya. Using \goto works better.

I have been abusing \reference for some time now, mainly to mark the end of
a file in order to generate page numbers: E.g., \reference[EOF]{} just
before \stoptext or \stopcomponent with \at[EOF]. This has worked for
getting the page range of a chapter or paper. Is there a better way to do
this?

Alan

On Fri, Aug 18, 2017 at 10:26 PM, Aditya Mahajan <adit...@umich.edu> wrote:

> On Fri, 18 Aug 2017, Alan Bowen wrote:
>
> Unlike \goto and \at, \in seems to insert an unwanted space before any text
>> that follows.
>>
>> MWE—
>>
>> starttext
>> Text\reference[abc]{}
>>
>> \page
>> Text ,
>>
>> \in{Text}[abc],
>>
>> \at{Text, p.}[abc],
>>
>> \goto{Text}[abc],
>> \stoptext
>>
>
> I am not sure if I consider this a bug. In a typical use case, \reference
> will have a value, e.g., \reference[abc]{whatever}. In that case, if you
> use \in{Text}[abc], there should be a non-breakable space between "Text"
> and "whatever". You appear to be abusing the reference system by giving an
> empty reference.
>
> I think that usin \goto is better in this case rather than adding a check
> to \in for an atypical use case.
>
> Aditya
> 
> ___
> 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] unwanted space after \in

2017-08-18 Thread Alan Bowen
Hi, Pablo—I should have been clearer. The issue is the space that \in
inserts before the final comma. At that’s what I get using the latest
standalone beta. (Do you see it?)

Alan

On Fri, Aug 18, 2017 at 4:47 PM, Pablo Rodriguez <oi...@gmx.es> wrote:

> On 08/18/2017 09:33 PM, Alan Bowen wrote:
> > Unlike \goto and \at, \in seems to insert an unwanted space before any
> > text that follows.
>
> Alan,
>
> I’m not sure I get what is the issue:
>
> \starttext
> \chapter[abc]{Chapter}
>
> \reference[bca]{}
>
> \page
> \in{in reference}[abc],
>
> \in{in reference}[bca],
>
> \at{at reference, p.}[abc],
>
> \goto{goto reference}[abc],
>
> \stoptext
>
> \in behaves as \at in terms of blank spaces in the first case.
>
> I guess that the problem there is that there is no reference to solve in
> the second case.
>
> But I may be missing your point.
>
> Pablo
> --
> http://www.ousia.tk
> 
> ___
> 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
___

[NTG-context] unwanted space after \in

2017-08-18 Thread Alan Bowen
Unlike \goto and \at, \in seems to insert an unwanted space before any text
that follows.

MWE—

starttext
Text\reference[abc]{}

\page
 Text ,

\in{Text}[abc],

\at{Text, p.}[abc],

\goto{Text}[abc],
\stoptext

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
___

[NTG-context] semicolon in mathmode

2017-08-10 Thread Alan Bowen
Is there a way to remove the thinspace after a semicolon when it is
followed by a number?
It does not seem to be covered by the autopunctuation key in
\setupmathematics.

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] math font problem

2017-08-10 Thread Alan Bowen
Many thanks, Hans, for both tips. I have made the Brill font my math
fallback for the letters and numerals, and fixed the name of the Brill
italic. And it looks good!

Alan

On Thu, Aug 10, 2017 at 4:08 AM, Hans Hagen <pra...@wxs.nl> wrote:

> On 8/10/2017 12:16 AM, Alan Bowen wrote:
>
> 1. I am not getting slanted lowercase Greek in mathmode.
>>
>
> because the regular brill is not italic, so  ...
>
> \definefallbackfamily [mainface] [mm] [Brill]
> [preset=math:lowercasegreeknormal]
> \definefallbackfamily [mainface] [mm] [BrillItalic]
> [preset=math:lowercasegreekitalic]
> \definefallbackfamily [mainface] [mm] [Brill]
> [preset=math:uppercasegreeknormal]
> \definefallbackfamily [mainface] [mm] [BrillItalic]
> [preset=math:uppercasegreekitalic]
>
>
> Hans
>
> -
>   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/list
> info/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
___

[NTG-context] math font problem

2017-08-09 Thread Alan Bowen
The aim is to get as much math using the Brill font as I can.

I currently have:

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

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

\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][TeX Gyre Termes Math][scale=0.94]
\setupmathematics[ucgreek=normal,lcgreek=italic]

\setupbodyfont[mainface,10pt]

\starttext

0123456789

math: \m{0123456789}

δ\quad\emph{δ}

math: \m{\delta} \m{δ}\quad should be slanted

π\quad\emph{π}

math: \m{\pi} \m{π}\quad should be upright but slanted will do

Π\quad\emph{ Π}

math: \m{\Pi} \m{ Π}\quad should be upright

\m{2+2=4}

\startformula
\sin{α}={{ΑΒ}\over{AC}}=\sin{\alpha}
\stopformula

\stoptext

Two problems:

1. I am not getting slanted lowercase Greek in mathmode.

2. I should like to have all the math lettering in the Brill font. But
simply setting the Brill font as my math mainface runs into more problems—I
still do not get lowercase Greek and it not only messes up 2+2 =4 , it also
reports the error—Math error: parameter \Umathquad\displaystyle is not
set—when it comes to the display math.


My efforts to figure this out have not been successful thus far, so any
suggestions will be most welcome.

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] \startplacefloat query

2017-07-31 Thread Alan Bowen
Thanks, Aditya. That is a great help!

Alan


On Mon, Jul 31, 2017 at 4:43 PM, Aditya Mahajan <adit...@umich.edu> wrote:

> On Mon, 31 Jul 2017, Alan Bowen wrote:
>
> When placing a float to the left or right of text, is there a way to place
>> a given number of lines of text directly above it? Or is this not the
>> right
>> mechanism to achieve this?
>>
>
> Using 3*hang instead of 3*line
>
> What I have now is:
>> \starttext
>> \startplacefigure[title=Cow,
>> location={left, 3*line, force, high}]
>> {\externalfigure[cow.pdf][width=.2\textwidth]}
>> \stopplacefigure
>> \input knuth
>> \stoptext
>>
>
> Aditya
> 
> ___
> 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/list
> info/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
___

[NTG-context] \startplacefloat query

2017-07-31 Thread Alan Bowen
When placing a float to the left or right of text, is there a way to place
a given number of lines of text directly above it? Or is this not the right
mechanism to achieve this?

What I have now is:
\starttext
\startplacefigure[title=Cow,
location={left, 3*line, force, high}]
{\externalfigure[cow.pdf][width=.2\textwidth]}
\stopplacefigure
\input knuth
\stoptext

which gives:

   X
   x
   x
[cow image] x
   x
   x
x
x


What I would prefer is a pattern like this:

X
x
   x
[cow image] x
   x
   x
x
x

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] \textfraction broken?

2017-07-12 Thread Alan Bowen
Thanks, Henri.

The mwe seems to work without specifying the font, but that may just be a
deceptive triumph of bad form.

I have a number of fonts in my document in which I would like \textfraction
to work. Is there are global way to prepare them or must I do it one by one?

Alan

On Mon, Jul 10, 2017 at 8:09 PM, Henri Menke <henrime...@gmail.com> wrote:

> On Mon, 2017-07-10 at 19:34 -0400, Alan Bowen wrote:
> > Adding
> >
> > \definefontfeature[fraction][frac=yes]
> > \definehighlight[textfraction][style={\feature[+][fraction]}]
> >
> > fixes the problem in the sample just sent.
>
> This, and the font has to have the corresponding feature present.
>
> >
> > Sorry for the misfire.
> >
> > Alan
> >
> > On Mon, Jul 10, 2017 at 1:53 PM, Alan Bowen <bowenala...@gmail.com>
> wrote:
> > > Has there been a change to \textfraction?
> > >
> > > Try
> > > 1\textfraction{1/2}.
> > >
> > > I get
> > > 1 /1/2
> > > with ConTeXt  ver: 2017.06.30 (and earlier on the wiki)
> > >
> > > 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
> > 
> ___
> 
> ___
> 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] \textfraction broken?

2017-07-10 Thread Alan Bowen
Adding

\definefontfeature[fraction][frac=yes]
\definehighlight[textfraction][style={\feature[+][fraction]}]

fixes the problem in the sample just sent.

Sorry for the misfire.

Alan

On Mon, Jul 10, 2017 at 1:53 PM, Alan Bowen <bowenala...@gmail.com> wrote:

> Has there been a change to \textfraction?
>
> Try
> 1\textfraction{1/2}.
>
> I get
> 1 /1/2
> with ConTeXt  ver: 2017.06.30 (and earlier on the wiki)
>
> 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
___

[NTG-context] \textfraction broken?

2017-07-10 Thread Alan Bowen
Has there been a change to \textfraction?

Try
1\textfraction{1/2}.

I get
1 /1/2
with ConTeXt  ver: 2017.06.30 (and earlier on the wiki)

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] \definefallbackfamily check and force keywords

2017-07-06 Thread Alan Bowen
Thanks, Hans!

I will get my fonts in order yet.

Alan

On Thu, Jul 6, 2017 at 5:31 PM, Hans Hagen <pra...@wxs.nl> wrote:

> On 7/6/2017 6:39 PM, Alan Bowen wrote:
>
>> A very simpleminded question, if I may.
>>
>> What do the keywords, check and force do in \definefallbackfamily?
>>
>> Am I right to think that
>> check=yes, force=no
>> will use the fallback font only when characters are missing from the
>> mainfont
>> and
>> check=no, force=yes
>> will use the fallback font whenever it contains a character found in the
>> source file?
>>
> -- check: when true, only set when present in font
> -- force: when false, then not set when already set
>
>
> -
>   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/list
> info/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
___

[NTG-context] \definefallbackfamily check and force keywords

2017-07-06 Thread Alan Bowen
A very simpleminded question, if I may.

What do the keywords, check and force do in \definefallbackfamily?

Am I right to think that
check=yes, force=no
will use the fallback font only when characters are missing from the
mainfont
and
check=no, force=yes
will use the fallback font whenever it contains a character found in the
source file?

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
___

[NTG-context] splitting a landscape table with local footnotes

2017-06-08 Thread Alan Bowen
I have a very long table (landscape) with local footnotes that I wish to
split over two pages so that
(a) the table is on a verso page and
(b) the notes on the next recto page.

Any suggestions about how to do this will be gratefully received.

Here is a MWE that is not too small, I hope.

\starttext
\dorecurse{5}{\input knuth}
\setupnotation[footnote][numberconversion=characters]
\startlocalfootnotes
\setupTABLE[frame=off,split=yes]
\setupTABLE[c][1,2,3,4,5,6][roffset=.3pc]
\setupTABLE[c][2,3,4,5,6,7][loffset=.3pc]

\startplacetable[title={Hellenistic calendars},
location={page,header,high,90}] %leftpage does not seem to work
{\setbox\scratchbox\vbox{%
\bTABLE
\bTABLEbody
\bTR\bTD \eTD
\bTD Babylonian\eTD
\bTD Greek\eTD
\bTD Egyptian\eTD
\bTD Roman\eTD
\bTD Judaean%
\footnote{\input knuth}\eTD\eTR
\eTABLEbody
\eTABLE}
\par
\hsize\wd\scratchbox
\box\scratchbox
\par
\placelocalfootnotes
\stoplocalfootnotes}
\stopplacetable

\stoptext

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] problem with mathmode in footnotes

2017-05-30 Thread Alan Bowen
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 <bowenala...@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 <pra...@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
>> -
>>
>
>
___
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] aligning a table alignment with local footnotes

2017-05-30 Thread Alan Bowen
Thanks for this too, Aditya. I have some tables that this may work very
well with.

All best, Alan


On Mon, May 29, 2017 at 9:05 PM, Aditya Mahajan <adit...@umich.edu> wrote:

> On Mon, 29 May 2017, Alan Bowen wrote:
>
> What is the best way to center a table and control/fix the textwidth of the
>> local footnotes?
>>
>> I currently have:
>>
>> \starttext
>>
>> \startbuffer[Tab01]
>> \startlocalfootnotes
>> \bTABLE
>> \bTR\bTD So\eTD\bTD what%
>> \footnote{\input knuth} % <=
>> \eTD\eTR
>> \eTABLE
>> {\placelocalfootnotes}
>> \stoplocalfootnotes
>> \stopbuffer
>>
>> \startplacetable[title=Test,
>> align=middle]
>>  {\getbuffer[Tab01]}
>> \stopplacetable
>>
>> \stoptext
>>
>
> I usually use:
>
> \startplacetable
> \hbox{\startplacelegend[location=bottom]
>\startcontent
>  TABLE
>\stopcontent
>\startcaption
>  footnote
>\stopcaption
> \stopplacelegend}
> \stopplacetable
>
> 
> ___
> 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/list
> info/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] aligning a table alignment with local footnotes

2017-05-30 Thread Alan Bowen
Many thanks, Hans. This is very fine solution for the tables that I have,
since they are quite wide.

Alan

On Mon, May 29, 2017 at 6:58 PM, Hans Hagen <pra...@wxs.nl> wrote:

> On 5/30/2017 12:33 AM, Alan Bowen wrote:
>
>> What is the best way to center a table and control/fix the textwidth of
>> the local footnotes?
>>
>> I currently have:
>>
>> \starttext
>>
>> \startbuffer[Tab01]
>> \startlocalfootnotes
>> \bTABLE
>> \bTR\bTD So\eTD\bTD what%
>> \footnote{\input knuth} % <=
>> \eTD\eTR
>> \eTABLE
>> {\placelocalfootnotes}
>> \stoplocalfootnotes
>> \stopbuffer
>>
>> \startplacetable[title=Test,
>> align=middle]
>>{\getbuffer[Tab01]}
>> \stopplacetable
>>
>> \stoptext
>>
>> If the footnote is commented out, the table is centered (as I want it).
>> With the footnote, the table is flushleft. I have managed to get what I
>> need by defining the \hsize of the footnotes and tweaking the loffset of
>> the table. But a general, less “empirical” approach would be vastly better.
>>
> \starttext
>
> \startbuffer[Tab01]
> \startlocalfootnotes
> \setbox\scratchbox\vbox{\bTABLE
> \bTR\bTD So\eTD\bTD what\footnote{\input knuth}\eTD\eTR
> \eTABLE}%
> \hsize\wd\scratchbox
> \box\scratchbox
> \par
> \placelocalfootnotes
> \stoplocalfootnotes
> \stopbuffer
>
> \startplacetable[title=Test,align=middle]{\getbuffer[Tab01]}
> \stopplacetable
>
> \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
___

[NTG-context] aligning a table alignment with local footnotes

2017-05-29 Thread Alan Bowen
What is the best way to center a table and control/fix the textwidth of the
local footnotes?

I currently have:

\starttext

\startbuffer[Tab01]
\startlocalfootnotes
\bTABLE
\bTR\bTD So\eTD\bTD what%
\footnote{\input knuth} % <=
\eTD\eTR
\eTABLE
{\placelocalfootnotes}
\stoplocalfootnotes
\stopbuffer

\startplacetable[title=Test,
align=middle]
  {\getbuffer[Tab01]}
\stopplacetable

\stoptext

If the footnote is commented out, the table is centered (as I want it).
With the footnote, the table is flushleft. I have managed to get what I
need by defining the \hsize of the footnotes and tweaking the loffset of
the table. But a general, less “empirical” approach would be vastly better.

Alan


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] whitespace before/after \startformula…\stopformula

2017-05-29 Thread Alan Bowen
Thanks also, Aditya?

Alan

On Mon, May 29, 2017 at 6:04 PM, Alan Bowen <bowenala...@gmail.com> wrote:

> Thanks, Mikael. That is just what I needed.
>
> All best, Alan
>
>
> On Mon, May 29, 2017 at 1:02 PM, Mikael P. Sundqvist <mic...@gmail.com>
> wrote:
>
>> Den 29 maj 2017 6:13 em skrev "Alan Bowen" <bowenala...@gmail.com>:
>>
>> How does one control/suppress the whitespace before and after
>> \startformula…\stopformula?
>>
>> 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/list
>> info/ntg-context
>> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>> wiki : http://contextgarden.net
>> 
>> ___
>>
>>
>> Try \setupformulas with spacebefore and spaceafter. Example:
>>
>> \setupformulas[
>> spacebefore=0.5\baselineskip,
>> spaceafter=0.5\baselineskip,
>> ]
>>
>> /Mikael
>>
>> 
>> ___
>> 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/list
>> info/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] whitespace before/after \startformula…\stopformula

2017-05-29 Thread Alan Bowen
Thanks, Mikael. That is just what I needed.

All best, Alan


On Mon, May 29, 2017 at 1:02 PM, Mikael P. Sundqvist <mic...@gmail.com>
wrote:

> Den 29 maj 2017 6:13 em skrev "Alan Bowen" <bowenala...@gmail.com>:
>
> How does one control/suppress the whitespace before and after
> \startformula…\stopformula?
>
> 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/list
> info/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> 
> ___
>
>
> Try \setupformulas with spacebefore and spaceafter. Example:
>
> \setupformulas[
> spacebefore=0.5\baselineskip,
> spaceafter=0.5\baselineskip,
> ]
>
> /Mikael
>
> 
> ___
> 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
___

[NTG-context] whitespace before/after \startformula…\stopformula

2017-05-29 Thread Alan Bowen
How does one control/suppress the whitespace before and after
\startformula…\stopformula?

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] problem with mathmode in footnotes

2017-05-27 Thread Alan Bowen
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 <bowenala...@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 <bowenala...@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 <pra...@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 <bowenala...@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]
>>> \setup

Re: [NTG-context] problem with mathmode in footnotes

2017-05-17 Thread Alan Bowen
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 <bowenala...@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 <pra...@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 <bowenala...@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
>>
>
>
___
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] problem with align in natural tables

2017-05-15 Thread Alan Bowen
Thanks, Wolfgang! Will do.

Alan

On Mon, May 15, 2017 at 1:18 PM, Wolfgang Schuster <
schuster.wolfg...@gmail.com> wrote:

> Put the table in a float or use \midaligned.
>
> \starttext
>
> \startmiddlealigned
> \bTABLE
> \bTR\bTD Sun \eTD\bTD Aries\eTD\eTR
> \eTABLE
> \stopmiddlealigned
>
> \startplacetable[location=none]
> \bTABLE
> \bTR\bTD Sun \eTD\bTD Aries\eTD\eTR
> \eTABLE
> \stopplacetable
>
> \stoptext
>
> Wolfgang
>
> Alan Bowen <bowenala...@gmail.com>
> 15. Mai 2017 um 18:44
> I am having trouble centering a table:
>
> \setupTABLE[align=middle] %flushright]
> \bTABLE
> \bTR\bTD Sun \eTD\bTD Aries\eTD\eTR
> \eTABLE
>
> produces a table that is flush left with  ConTeXt  ver: 2017.05.12.
> align=middle used to be sufficient. So what has changed or what have I
> missed?
>
> 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
> 
> ___
> Alan Bowen <bowenala...@gmail.com>
> 15. Mai 2017 um 19:12
> The table itself and horizontally. Sorry, should have been clear about
> that.
>
> 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
> 
> ___
>
>
>
> 
> ___
> 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] problem with align in natural tables

2017-05-15 Thread Alan Bowen
The table itself and horizontally. Sorry, should have been clear about that.

Alan

On Mon, May 15, 2017 at 12:48 PM, Wolfgang Schuster <
schuster.wolfg...@gmail.com> wrote:

>
> Alan Bowen <bowenala...@gmail.com>
> 15. Mai 2017 um 18:44
> I am having trouble centering a table:
>
> \setupTABLE[align=middle] %flushright]
> \bTABLE
> \bTR\bTD Sun \eTD\bTD Aries\eTD\eTR
> \eTABLE
>
> produces a table that is flush left with  ConTeXt  ver: 2017.05.12.
> align=middle used to be sufficient. So what has changed or what have I
> missed?
>
> Do you want to align the content of the table or the table itself?
>
> 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
> 
> ___
>
___
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] problem with align in natural tables

2017-05-15 Thread Alan Bowen
I am having trouble centering a table:

\setupTABLE[align=middle] %flushright]
\bTABLE
\bTR\bTD Sun \eTD\bTD Aries\eTD\eTR
\eTABLE

produces a table that is flush left with  ConTeXt  ver: 2017.05.12.
align=middle used to be sufficient. So what has changed or what have I
missed?

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
___

[NTG-context] problem with mathmode in footnotes

2017-05-08 Thread Alan Bowen
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
___
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] query re placing a float

2017-04-06 Thread Alan Bowen
Found the answer—

location={here,left,3*hang}

does what I want nicely.

Sorry for the noise.

Alan


2017-04-06 14:27 GMT-04:00 Alan Bowen <bowenala...@gmail.com>:

> I have a paragraph of text and I would like to place a float to the left
> so that there a some lines above the float, some beside, and some below. Is
> there a way to do this?
>
> What I have so far breaks the paragraph in two: one before the float and
> one beside it (with a few lines below). If I invoke the float before the
> paragraph, there are no lines above the float.
>
> \starttext
> Quisque facilisis erat a dui. Nam malesuada ornare dolor. Cras gravida,
> diam sit amet rhoncus ornare, erat elit consectetuer erat, id egestas pede
> nibh eget odio. Proin tincidunt, velit vel porta elementum, magna diam
> molestie sapien, non aliquet massa pede eu diam. Aliquam iaculis. Fusce et
> ipsum et nulla tristique facilisis. Donec eget sem sit amet ligula viverra
> gravida.%
> \startplacefigure[title={A cow},
> location={here,left},
> align=middle,
> number=yes]
> {\externalfigure[cow.pdf][width=.45\textwidth]}
> \stopplacefigure
> Fusce ultrices, neque id dignissim ultrices, tellus mauris dictum elit,
> vel lacinia enim metus eu nunc. Quisque facilisis erat a dui. Nam malesuada
> ornare dolor. Cras gravida, diam sit amet rhoncus ornare, erat elit
> consectetuer erat, id egestas pede nibh eget odio. Proin tincidunt, velit
> vel porta elementum, magna diam molestie sapien, non aliquet massa pede eu
> diam. Aliquam iaculis. Fusce et ipsum et nulla tristique facilisis. Donec
> eget sem sit amet ligula viverra gravida. Etiam vehicula urna vel turpis.
> Suspendisse sagittis ante a urna. Morbi a est quis orci consequat rutrum.
> Nullam egestas feugiat felis. Integer adipiscing semper ligula. Nunc
> molestie, nisl sit amet cursus convallis, sapien lectus pretium metus,
> vitae pretium enim wisi id lectus. Donec vestibulum. Etiam vel nibh. Nulla
> facilisi. Mauris pharetra. Donec augue. Fusce ultrices, neque id dignissim
> ultrices, tellus mauris dictum elit, vel lacinia enim metus eu nunc.
>
> \stoptext
>
> 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
___

[NTG-context] query re placing a float

2017-04-06 Thread Alan Bowen
I have a paragraph of text and I would like to place a float to the left so
that there a some lines above the float, some beside, and some below. Is
there a way to do this?

What I have so far breaks the paragraph in two: one before the float and
one beside it (with a few lines below). If I invoke the float before the
paragraph, there are no lines above the float.

\starttext
Quisque facilisis erat a dui. Nam malesuada ornare dolor. Cras gravida,
diam sit amet rhoncus ornare, erat elit consectetuer erat, id egestas pede
nibh eget odio. Proin tincidunt, velit vel porta elementum, magna diam
molestie sapien, non aliquet massa pede eu diam. Aliquam iaculis. Fusce et
ipsum et nulla tristique facilisis. Donec eget sem sit amet ligula viverra
gravida.%
\startplacefigure[title={A cow},
location={here,left},
align=middle,
number=yes]
{\externalfigure[cow.pdf][width=.45\textwidth]}
\stopplacefigure
Fusce ultrices, neque id dignissim ultrices, tellus mauris dictum elit, vel
lacinia enim metus eu nunc. Quisque facilisis erat a dui. Nam malesuada
ornare dolor. Cras gravida, diam sit amet rhoncus ornare, erat elit
consectetuer erat, id egestas pede nibh eget odio. Proin tincidunt, velit
vel porta elementum, magna diam molestie sapien, non aliquet massa pede eu
diam. Aliquam iaculis. Fusce et ipsum et nulla tristique facilisis. Donec
eget sem sit amet ligula viverra gravida. Etiam vehicula urna vel turpis.
Suspendisse sagittis ante a urna. Morbi a est quis orci consequat rutrum.
Nullam egestas feugiat felis. Integer adipiscing semper ligula. Nunc
molestie, nisl sit amet cursus convallis, sapien lectus pretium metus,
vitae pretium enim wisi id lectus. Donec vestibulum. Etiam vel nibh. Nulla
facilisi. Mauris pharetra. Donec augue. Fusce ultrices, neque id dignissim
ultrices, tellus mauris dictum elit, vel lacinia enim metus eu nunc.

\stoptext

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] Hieroglyphic font query

2017-04-02 Thread Alan Bowen
Thanks, Wolfgang. That works very nicely!

I ended up setting the glyphs at 8pt (to fit the text) and adjusted my list
of bodyfont sizes accordingly. A great tip/reminder!

Alan

On Sun, Apr 2, 2017 at 2:35 PM, Wolfgang Schuster <
schuster.wolfg...@gmail.com> wrote:

>
> Alan Bowen <bowenala...@gmail.com>
> 2. April 2017 um 20:19 via Postbox
> <https://www.postbox-inc.com/?utm_source=email_medium=sumlink_campaign=reach>
> Hi, Pablo—thanks for the suggestions. I was not able to get them to work.
> Here is my test file.
>
> \definefallbackfamily[mainface][sans][NewGardiner][range=131FC,132F9]
> %\definefallbackfamily[mainface][sans][NewGardiner-
> Medium][range=131FC,132F9]
>
> \definefontfamily[mainface][serif][Brill]
>
> \setupbodyfont[mainface,18pt]
>
>
> \starttext
>
> Hello world! 1234
>
> αβγ
>
> {
> ㇼ㋹
> }
>
> and that is all.
>
> \stoptext
>
> There is a problem when you change the font size to a value which isn’t
> pre defined
> (e.g. 14pt causes problems while 14.4pt works) and you have to add
> \definebodyfont[...]
> (e.g. \definebodyfont[14pt]) to your document.
>
> %\starttypescript[sans][newgardiner]
> %\setups[font:fallback:sans]
> %\definefontsynonym[Sans][file:newgardinersmp]
> %\stoptypescript
> %
> %\definetypeface[newgardiner][ss][sans][newgardiner][
> default][features=default]
>
> \definefontfamily[newgardiner][rm][NewGardiner]
>
> \starttext
>
> {\definedfont[file:newgardinersmp at 14.4pt]ㇼ㋹}
>
> \switchtobodyfont[newgardiner,14.4pt]ㇼ㋹
>
> \stoptext
>
> 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
> 
> ___
>
___
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] ConTeXt not finding fonts in OSFONTDIR

2017-04-02 Thread Alan Bowen
Yes, Indeed. It is *Hellenistic Astronomy: The Science and Its Contexts*
(Brill).

A.

On Sun, Apr 2, 2017 at 12:47 PM, Pablo Rodriguez <oi...@gmx.es> wrote:

> On 04/02/2017 03:38 PM, Alan Bowen wrote:
> > Thank you, Pablo! The font files have been discovered and the source
> > files now process as they should. You are a lifesaver—this book may
> > still see the light of day!
>
> Glad to read it helped, Alan.
>
> May we know which book you are working on?
>
> Pablo
> --
> http://www.ousia.tk
> 
> ___
> 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] Hieroglyphic font query

2017-04-02 Thread Alan Bowen
Hi, Pablo—thanks for the suggestions. I was not able to get them to work.
Here is my test file.

\definefallbackfamily[mainface][sans][NewGardiner][range=131FC,132F9]
%\definefallbackfamily[mainface][sans][NewGardiner-Medium][range=131FC,132F9]

\definefontfamily[mainface][serif][Brill]

\setupbodyfont[mainface,18pt]


\starttext

Hello world! 1234

αβγ

{
ㇼ㋹
}

and that is all.

\stoptext


On Sun, Apr 2, 2017 at 12:45 PM, Pablo Rodriguez <oi...@gmx.es> wrote:

> On 04/02/2017 05:23 PM, Alan Bowen wrote:
> > I have the hieroglyphic font, New Gardiner Medium, in .otf and .ttf
> > formats. It is installed in my OSFONTDIR and is accessible using other
> > applications.
> >
> > But
> >
> > \switchtobodyfont[newgardiner,14pt]ㇼ㋹
> >
> > does not work (with either the .ttf or the .otf format).
> >
> > I have checked: “NewGardiner” is the Postscript Name, the Full name, and
> > the Family Name.
> >
> > So what have I missed?
>
> Well, I suppose you included before:
>
> \definefontfamily[newgardiner][rm][NewGardiner]
>
> If it doesn’t work, replace [NewGardiner] with [NewGardiner-Medium].
>
> If it doesn’t, could you use \setupbodyfont[newgardiner, 14pt]?
>
> Just in case it helps,
>
> Pablo
> --
> http://www.ousia.tk
> 
> ___
> 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] Hieroglyphic font query

2017-04-02 Thread Alan Bowen
Certainly: see the attached file.
A.

On Sun, Apr 2, 2017 at 11:32 AM, kaddour kardio <kaddourkar...@gmail.com>
wrote:

> ​Can you please copy-past de log file?​
>
> On Sun, Apr 2, 2017 at 5:23 PM, Alan Bowen <bowenala...@gmail.com> wrote:
>
>> I have the hieroglyphic font, New Gardiner Medium, in .otf and .ttf
>> formats. It is installed in my OSFONTDIR and is accessible using other
>> applications.
>>
>> But
>>
>> \switchtobodyfont[newgardiner,14pt]ㇼ㋹
>>
>> does not work (with either the .ttf or the .otf format).
>>
>> I have checked: “NewGardiner” is the Postscript Name, the Full name, and
>> the Family Name.
>>
>> So what have I missed?
>>
>> 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/list
>> info/ntg-context
>> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>> wiki : http://contextgarden.net
>> 
>> ___
>>
>
>
>
> --
> Dr YAHYAOUI Mohamed Kaddour, cardiologue.Clinique EL ABRAR.
>
> 
> ___
> 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
> 
> ___
>


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

[NTG-context] Hieroglyphic font query

2017-04-02 Thread Alan Bowen
I have the hieroglyphic font, New Gardiner Medium, in .otf and .ttf
formats. It is installed in my OSFONTDIR and is accessible using other
applications.

But

\switchtobodyfont[newgardiner,14pt]ㇼ㋹

does not work (with either the .ttf or the .otf format).

I have checked: “NewGardiner” is the Postscript Name, the Full name, and
the Family Name.

So what have I missed?

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] ConTeXt not finding fonts in OSFONTDIR

2017-04-02 Thread Alan Bowen
Thank you, Pablo! The font files have been discovered and the source files
now process as they should. You are a lifesaver—this book may still see the
light of day!

Alan

On Sat, Apr 1, 2017 at 7:29 PM, Pablo Rodriguez <oi...@gmx.es> wrote:

> On 04/02/2017 12:37 AM, Alan Bowen wrote:
> > Thanks, Pablo:
> >
> > I have revised the line in my bash profile to read
> > export OSFONTDIR=/Users/bowen1/Library/Fonts/
> > and the problem persists—assuming that I have the absolute path correct.
>
> Sorry, add another slash to to the final slash and put inside quotes,
> such as in:
>
> export OSFONTDIR="/Users/bowen1/Library/Fonts//"
>
> > As for adding the path at the end of tex/setuptex,  I do not know how to
> > do this. I see in setuptex.csh that this is a TODO.
>
> Open tex/setuptext, go to the end of the file, hit Enter twice and copy
> the line above.
>
> Now it comes the unorthodox part: remove tex/texmf-cache/luatex-cache/.
>
> Run "source tex/setuptex" and "mtxrunjit --generate".
>
> After that, compuile the ConTeXt source file you want.
>
> Pablo
> --
> http://www.ousia.tk
> 
> ___
> 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] ConTeXt not finding fonts in OSFONTDIR

2017-04-01 Thread Alan Bowen
Thanks, Pablo:

I have revised the line in my bash profile to read
export OSFONTDIR=/Users/bowen1/Library/Fonts/
and the problem persists—assuming that I have the absolute path correct.

As for adding the path at the end of tex/setuptex,  I do not know how to do
this. I see in setuptex.csh that this is a TODO.

Alan

On Sat, Apr 1, 2017 at 5:49 PM, Pablo Rodriguez <oi...@gmx.es> wrote:

> On 04/01/2017 11:17 PM, Alan Bowen wrote:
> > ConTeXT does not seem to be finding the fonts that I have in my
> > OSFONTDIR, which is set in my .bash_profile by the line
> > export OSFONTDIR=./Users/bowen1/Library/Fonts/
>
> Alan,
>
> I see two issues with your font directory.
>
> 1. The initial point in the path sets a relative path.
>
>I guess you have to remove it to have an absolute path.
>
> 2. How about adding the path at the end of tex/setuptex?
>
> Just in case it helps,
>
> Pablo
> --
> http://www.ousia.tk
> 
> ___
> 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
___

  1   2   3   4   5   6   >