Re: [NTG-context] Choosing STIX stylistic sets

2017-04-14 Thread Hans Hagen

On 4/14/2017 12:42 PM, Hans Åberg wrote:

With the STIX Two fonts [1-2], one can choose say Stylistic Set 8  for 
more upright integrals. How is that done in ConTeXt with XITS?

1. https://sourceforge.net/projects/stixfonts/
2. https://en.wikipedia.org/wiki/STIX_Fonts_project#STIX_2.0.0


see stix-two-math.lfg

\setmathfontalternate{whatever}

-
  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] Finding OSX fonts

2017-04-14 Thread Hans Hagen

On 4/14/2017 8:58 PM, Meer, Hans van der wrote:




On 14 Apr 2017, at 20:04, Henning Hraban Ramm  wrote:

Am 2017-04-14 um 14:43 schrieb Meer, Hans van der :


OK, --pattern instead of pattern. But then still nothing:

122 texmf: mtxrun --script fonts --list --pattern="Comic*" --all


For me it worked (also on OSX), so it’s not the command that’s wrong.
--script font or fonts seems not the matter.

Did you refresh the database?
i.e.
mtxrun --script font --reload
additionally try --force



The reload was necessary, indeed.
Do I then correctly understand that the mtxrun --list call is searching the 
ConTeXt internal fontbase and not the macOS system directly, as I had 
(innocently) expected it was doing?


indeed

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
___

Re: [NTG-context] Finding OSX fonts

2017-04-14 Thread Henning Hraban Ramm
Am 2017-04-14 um 20:58 schrieb Meer, Hans van der :

>> Did you refresh the database? 
>> i.e.
>> mtxrun --script font --reload
>> additionally try --force
>> 
> 
> The reload was necessary, indeed.
> Do I then correctly understand that the mtxrun --list call is searching the 
> ConTeXt internal fontbase and not the macOS system directly, as I had 
> (innocently) expected it was doing?

Exactly. If ConTeXt can’t find a font, it sometimes tries to refresh the 
database on its own (I don’t know under which circumstances), and that can take 
a while. The database access is much faster.
For my huge font collection, refreshing can take several minutes...

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
___

Re: [NTG-context] Finding OSX fonts

2017-04-14 Thread Meer, Hans van der


> On 14 Apr 2017, at 20:04, Henning Hraban Ramm  wrote:
> 
> Am 2017-04-14 um 14:43 schrieb Meer, Hans van der :
> 
>> OK, --pattern instead of pattern. But then still nothing:
>> 
>> 122 texmf: mtxrun --script fonts --list --pattern="Comic*" --all
> 
> For me it worked (also on OSX), so it’s not the command that’s wrong.
> --script font or fonts seems not the matter.
> 
> Did you refresh the database? 
> i.e.
> mtxrun --script font --reload
> additionally try --force
> 

The reload was necessary, indeed.
Do I then correctly understand that the mtxrun --list call is searching the 
ConTeXt internal fontbase and not the macOS system directly, as I had 
(innocently) expected it was doing?

Hans van der Meer

___
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] \xmldoifelse false condition

2017-04-14 Thread Gerard Keiser
I am trying to select specific elements from an XML document to make
anthologies, and still retain the original numbering, by using
\xmldoifelse; if the node matches, it is printed, and if it is not, the
head number is incremented, to get something like this:

1 First Section (first match)
4 Fourth Section (second match, but fourth element in the XML file)

 But the fail condition is not being triggered properly. Here are the files:

%
% anthologize.xml
%
\def\incrementheadnumber[#1]{\setupheadnumber[#1]
[\numexpr\namedheadnumber{#1}+1\relax]}

\startxmlsetups xml:selectivity:*
  \xmlsetsetup{\xmldocument}{*}{-}
  \xmlsetsetup{\xmldocument}{stuff|div|head}{xml:selectivity:*}
\stopxmlsetups

\xmlregisterdocumentsetup{selectivity}{xml:selectivity:*}

% Here is the difficulty.
\startxmlsetups{xml:selectivity:stuff}
\xmldoifelse{#1}{/div[match()==1 or match()==4]/all()}
{
  \xmlflush{#1}
} {
  \incrementheadnumber[section]
}
\stopxmlsetups

\startxmlsetups{xml:selectivity:div}
  \xmlflush{#1}
\stopxmlsetups

\startxmlsetups{xml:selectivity:head}
  \startsection[title={\xmlflush{#1}}]\stopsection
\stopxmlsetups

\starttext

  \xmlprocessfile{selectivity}{bob.xml}{}

\stoptext

%
% bob.xml
%

  
First Section
  
  
Second Section
  
  
Third Section
  
  
Fourth Section
  


The result is that only the first and fourth heads are printed, as desired,
but I end up with:

1 First Section
2 Fourth Section.

I have used the \incrementheadnumber function elsewhere, and it works fine.
If I replace \incrementheadnumber[section] with \xmlflush{#1}, it prints:

1 First Section
2 Fourth Section
3 First Section
4 Second Section
5 Third Section
6 Fourth Section

So it seems to be properly triggering the true condition, but not the false
condition, and I cannot figure out how to fix it. Using ConTeXt 2017.04.08
and LuaTeX 1.0.3. I do thank you for your help.

Sincerely,
Gerard Keiser
___
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] Finding OSX fonts

2017-04-14 Thread Henning Hraban Ramm
Am 2017-04-14 um 14:43 schrieb Meer, Hans van der :

> OK, --pattern instead of pattern. But then still nothing:
> 
> 122 texmf: mtxrun --script fonts --list --pattern="Comic*" --all

For me it worked (also on OSX), so it’s not the command that’s wrong.
--script font or fonts seems not the matter.

Did you refresh the database? 
i.e.
mtxrun --script font --reload
additionally try --force



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
___

Re: [NTG-context] Text around a figure

2017-04-14 Thread Rik Kabel

On 2017-04-14 10:36, Fabrice Couvreur wrote:
Is it possible that the first line of text starts at the top of the 
figure?


Blablablablablablablablablablablabla
## blablablablablablablabla
Fig   blablablablablablablabla
## blablablablablablablabla


\starttext

\placefigure [left,none] {} {\externalfigure[rafting.jpg][width=4cm]}
\input knuth



\stoptext


This came up about a week ago. See 
https://www.mail-archive.com/ntg-context@ntg.nl/msg84828.html (and the 
follow-up for your answer).


--
Rik
___
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] Text around a figure

2017-04-14 Thread Fabrice Couvreur
Is it possible that the first line of text starts at the top of the figure?

Blablablablablablablablablablablabla
##  blablablablablablablabla
   Fig   blablablablablablablabla
##  blablablablablablablabla


\starttext

\placefigure [left,none] {} {\externalfigure[rafting.jpg][width=4cm]}
\input knuth



\stoptext
___
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] location of command reference

2017-04-14 Thread Meer, Hans van der
Where is the handy Command Reference to be found in the beta distribution?
I do not see it in ./tex/texmf-context/doc/context/documents/general/manuals
and could not spot it elsewhere.

This is but an old one [cid:DC85F3AF-C98C-4991-8D72-D1B7A5E32800] .

Hans van der Meer




___
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] Finding OSX fonts

2017-04-14 Thread Meer, Hans van der
OK, --pattern instead of pattern. But then still nothing:

122 texmf: mtxrun --script fonts --list --pattern="Comic*" --all

resolvers   | trees | analyzing '/Users/hansm/Documents/TeX/texmf'
identifier   familyname   fontname   filename   subfont   instances


Hans van der Meer




On 14 Apr 2017, at 12:31, Henning Hraban Ramm 
> wrote:

Am 2017-04-14 um 11:38 schrieb Meer, Hans van der 
>:

mtxrun --script fonts --list pattern="Comic*" --all

it’s --pattern


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] Choosing STIX stylistic sets

2017-04-14 Thread Hans Åberg
With the STIX Two fonts [1-2], one can choose say Stylistic Set 8  for 
more upright integrals. How is that done in ConTeXt with XITS?

1. https://sourceforge.net/projects/stixfonts/
2. https://en.wikipedia.org/wiki/STIX_Fonts_project#STIX_2.0.0


___
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] Finding OSX fonts

2017-04-14 Thread Hans Åberg

> On 14 Apr 2017, at 11:38, Meer, Hans van der  wrote:
> 
> I tried in vain to list the MacOSX fonts in mtxrun.
> 
> In my .bashrc set:

On MacOS, Terminal reads .profile. XQuartz xterm, though, reads .bashrc. In my 
.bashrc file, I have
  source ~/.profile


___
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] Finding OSX fonts

2017-04-14 Thread Henning Hraban Ramm
Am 2017-04-14 um 11:38 schrieb Meer, Hans van der :

> mtxrun --script fonts --list pattern="Comic*" --all

it’s --pattern


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
___

Re: [NTG-context] Inline stacking of text

2017-04-14 Thread Meer, Hans van der
The following was in answer to 3/11/2017 4:52 PM, Pavneet Arora:
On 13 Mar 2017, at 00:27, Hans Hagen > 
wrote:

\starttext
   \start
   \definefont[whatever][Sans at 50pt]
\dontleavehmode\inframed
   [foregroundstyle=whatever,
frame=off,
location=middle,
align=flushleft]
   {TITLE---}%
   \dontleavehmode\inframed
   [foregroundstyle=whatever,
frame=off,
location=middle,
align=flushleft]
   {\definedfont[Sans at 25pt] SUB-TITLE}%
   \stopoverlay}
\stoptext

A question about this code. The final } is equivalent to \stop and closes to 
\start at the beginning.
But I canot see the \stopoverlay matching a \startoverlay, as I would have 
expected.
What am I missing here?

Hans van der Meer

___
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] Finding OSX fonts

2017-04-14 Thread Meer, Hans van der
I tried in vain to list the MacOSX fonts in mtxrun.

In my .bashrc set:
OSFONTDIR=$HOME/Library/Fonts:/Library/Fonts:/System/Library/Fonts
export OSFONTDIR

Then issuing the following commands:
source ~/.bashrc
echo $OSFONTDIR
/Users/hansm/Library/Fonts:/Library/Fonts:/System/Library/Fonts
mtxrun --script fonts --list pattern="Comic*" --all
resolvers   | trees | analyzing '/Users/hansm/Documents/TeX/texmf'
identifier   familyname   fontname   filename   subfont   instances

Allthough there are definitely Comic fonts (such as Comic Sans MS.ttf) in 
directory /Library/Fonts these are not listed by mtxrun.

What is happening, or better, not happening here?

Hans van der Meer




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