Re: [NTG-context] [NTG-Context] Problem with \usemodule[graph] and El Capitan (mac OS)

2016-09-01 Thread Alan Braslau
No, this is a feature, not a bug!

According to the original graph macros, the data files are kept open, and thus 
subsequent reads will pick up successive data sets in a single file. This is 
explicitly stated in the documentation.

A consequence for us in ConTeXt mkiv, where the metapost code is called in 
multiple passes, is that one must explicitly close the data file if one does 
not want this feature. This, too, I documented. So don't break John Hobby's 
code by removing the saved.

Alan



> On Sep 1, 2016, at 04:28, Hans Hagen  wrote:
> 
> On 9/1/2016 11:43 AM, Taco Hoekwater wrote:
>> Hi,
>> 
>> I am on El Capitan as well (10.11.6).
>> 
>> ConTeXt  ver: 2016.08.29 22:53 MKIV beta
>> 
>> Attached is an altered input file that works for me. No idea how much of the 
>> problem
>> is actually related to El Capitan, but:
>> 
>> * \usemodule[graph] defines a special MP instance called ‘graph’. You need to
>>  use that because otherwise the metapost graph macros will not load (that is 
>> why
>>  I added the “graph::” prefix twice)
>> 
>> * Something is wrong with the file closing, so I added an extra definition 
>> for
>>  'graph_close_file' (no idea why it does not work out of the box. Sorry to 
>> you and Hans).
> 
> there are save's in mp-grap ... i'll remove them

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Captions numbering

2016-09-01 Thread Jan Willem Flamma
Hi Jose Luis,

I eventually solved this by setting up the subsubsection as follows:

\setuphead[subsubsection]
[incrementnumber=no]

This links to a set of test files on the pragma website and maybe of use to 
you: http://context.aanhet.net/download-1.htm

Kind regards,
Jan Willem


> On 31 aug. 2016, at 14:04, Jose Luis Arellano  wrote:
> 
> Dear list,
> I experience exactly same issue explained here 
> , but 
> apparently the link provided for Hans doesn't exist.
> I will appreciate any help.
> Thanks.
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Get "right" numbers using blocks and enumerations

2016-09-01 Thread Mikael P. Sundqvist
Hi,

I'm trying to use blocks for answers in a text, but cannot get the
numbering to work as I want. I have read about \processblocks at the
wiki (http://wiki.contextgarden.net/Command/processblocks), but I'm
not sure that is my cure. I probably miss something easy...

The problem is probably easiest shown by an example:

%%%
\defineblock[A]
\hideblocks[A]

\defineenumeration[A][
text=A,
prefix=yes,
prefixsegments=chapter,
way=bychapter,
]

\starttext

\chapter{First chapter}

\beginA
\startA
My first answer in the first chapter.
\stopA
\endA

\beginA
\startA
My second answer in the first chapter.
\stopA
\endA


\chapter{Second chapter}

\beginA
\startA
My first answer in the second chapter.
\stopA
\endA

\beginA
\startA
My second answer in the second chapter.
\stopA
\endA

\chapter{Answers}
\useblocks[A]
\stoptext
%%%

I get, in the Answer chapter

A 3.1, A 3.2, A 3.3 and A 3.4.

What I want to have in the answer chapter is

A 1.1, A 1.2, A 2.1 and A 2.2.

(to follow the numbering in the chapters where the blocks were defined).

Is it possible? What have I missed?

Related: Is there a better way to set answers to questions? (Perhaps
not having to write both the \begin... \start... \stop... \end... for
every question?

/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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] \vfill shifts content off grid

2016-09-01 Thread Hans Hagen

On 9/1/2016 2:18 PM, Henri Menke wrote:

On 09/01/2016 01:53 PM, Hans Hagen wrote:

On 9/1/2016 1:22 PM, Henri Menke wrote:

On 09/01/2016 09:33 AM, Hans Hagen wrote:

On 8/31/2016 7:45 PM, Henri Menke wrote:

Dear list,

when I use a body font size other than the standard, issuing \vfill will move 
the content off the grid.  MWE is below.  How do I fix this?


that's how vfill works, you can try \vskip30\lineheight with a value you like


Hm.  Then I'd like to reformulate my question:  How do I flush content to the 
bottom of the page when grid is enabled without having to specific how many 
lines to clear.


trial and error:

\vfilll \strut World \par \removedepth \page


This is not very satisfactory because it does not work unconditionally.  For 
instance with lucidaot it is still shifted off the grid.

\setupbodyfont[lucidaot,9pt]
\setuplayout[grid=yes]
\showgrid
\starttext
Hello

\vfill

World\strut\par\removedepth
\stoptext

I have come up with this other really hackish solution.  I just put the text on 
a layer and align this to the last line of the grid which I previously computed 
in Lua (Brrr).  Also, this has the disadvantage that text might flow into the 
layer (it's in the background).

\setupbodyfont[9pt]
\setuplayout[grid=yes]
\showgrid

\definelayer [flushbottom]
\setupbackgrounds [text] [background=flushbottom]
\edef\numberoflines{%
  \ctxlua{context(math.round(tex.dimen.textheight / tex.dimen.lineheight))}}

\starttext
Hello

\setlayer
  [flushbottom]
  [line=\numberoflines,location=grid]
  {World}
\stoptext

Is there really no way to have grid-consistent \vfill?  If there isn't please 
consider this a feature request.


not without some explicit support for it which currently is not there

\startstandardmakeup[top=,bottom=]
\strut Hello
\vss
\dontleavehmode\raise3\lineheight\hbox{\strut World}
\stopstandardmakeup









Cheers, Henri

---

\setupbodyfont[9pt]
\setuplayout[grid=yes]
\showgrid
\starttext
Hello

\vfill

World
\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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___




--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] \vfill shifts content off grid

2016-09-01 Thread Henri Menke
On 09/01/2016 01:53 PM, Hans Hagen wrote:
> On 9/1/2016 1:22 PM, Henri Menke wrote:
>> On 09/01/2016 09:33 AM, Hans Hagen wrote:
>>> On 8/31/2016 7:45 PM, Henri Menke wrote:
 Dear list,

 when I use a body font size other than the standard, issuing \vfill will 
 move the content off the grid.  MWE is below.  How do I fix this?
>>>
>>> that's how vfill works, you can try \vskip30\lineheight with a value you 
>>> like
>>
>> Hm.  Then I'd like to reformulate my question:  How do I flush content to 
>> the bottom of the page when grid is enabled without having to specific how 
>> many lines to clear.
> 
> trial and error:
> 
> \vfilll \strut World \par \removedepth \page

This is not very satisfactory because it does not work unconditionally.  For 
instance with lucidaot it is still shifted off the grid.

\setupbodyfont[lucidaot,9pt]
\setuplayout[grid=yes]
\showgrid
\starttext
Hello

\vfill

World\strut\par\removedepth
\stoptext

I have come up with this other really hackish solution.  I just put the text on 
a layer and align this to the last line of the grid which I previously computed 
in Lua (Brrr).  Also, this has the disadvantage that text might flow into the 
layer (it's in the background).

\setupbodyfont[9pt]
\setuplayout[grid=yes]
\showgrid

\definelayer [flushbottom]
\setupbackgrounds [text] [background=flushbottom]
\edef\numberoflines{%
  \ctxlua{context(math.round(tex.dimen.textheight / tex.dimen.lineheight))}}

\starttext
Hello

\setlayer
  [flushbottom]
  [line=\numberoflines,location=grid]
  {World}
\stoptext

Is there really no way to have grid-consistent \vfill?  If there isn't please 
consider this a feature request.

> 
> 
>>>
 Cheers, Henri

 ---

 \setupbodyfont[9pt]
 \setuplayout[grid=yes]
 \showgrid
 \starttext
 Hello

 \vfill

 World
 \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://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 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://tex.aanhet.net
>> archive  : http://foundry.supelec.fr/projects/contextrev/
>> 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] \vfill shifts content off grid

2016-09-01 Thread Hans Hagen

On 9/1/2016 1:22 PM, Henri Menke wrote:

On 09/01/2016 09:33 AM, Hans Hagen wrote:

On 8/31/2016 7:45 PM, Henri Menke wrote:

Dear list,

when I use a body font size other than the standard, issuing \vfill will move 
the content off the grid.  MWE is below.  How do I fix this?


that's how vfill works, you can try \vskip30\lineheight with a value you like


Hm.  Then I'd like to reformulate my question:  How do I flush content to the 
bottom of the page when grid is enabled without having to specific how many 
lines to clear.


trial and error:

\vfilll \strut World \par \removedepth \page





Cheers, Henri

---

\setupbodyfont[9pt]
\setuplayout[grid=yes]
\showgrid
\starttext
Hello

\vfill

World
\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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___




--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] \vfill shifts content off grid

2016-09-01 Thread Henri Menke
On 09/01/2016 09:33 AM, Hans Hagen wrote:
> On 8/31/2016 7:45 PM, Henri Menke wrote:
>> Dear list,
>>
>> when I use a body font size other than the standard, issuing \vfill will 
>> move the content off the grid.  MWE is below.  How do I fix this?
> 
> that's how vfill works, you can try \vskip30\lineheight with a value you like

Hm.  Then I'd like to reformulate my question:  How do I flush content to the 
bottom of the page when grid is enabled without having to specific how many 
lines to clear.

> 
>> Cheers, Henri
>>
>> ---
>>
>> \setupbodyfont[9pt]
>> \setuplayout[grid=yes]
>> \showgrid
>> \starttext
>> Hello
>>
>> \vfill
>>
>> World
>> \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://tex.aanhet.net
>> archive  : http://foundry.supelec.fr/projects/contextrev/
>> 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Figure-text alignment and wrapping text more tightly

2016-09-01 Thread Mikael P. Sundqvist
On Thu, Sep 1, 2016 at 12:06 PM, Florian Leupold  wrote:
> Dear list,
>
> I am interested in placing a figure on the right-hand side of the page and 
> wrap text around it, see MWE below. This works mostly nicely. But I have got 
> three questions:
>
> 1) Is it possible to top-align the figure with the first line of the 
> paragraph to its left?
>
> 2) Is there a way to reduce the vertical gap between the first and second 
> figures?
>
> 3) The keyword “low” for \placefigure seems to have an effect. But I don’t 
> know why and could not find a reference to that in contextref.pdf. Is this 
> the correct way to wrap text “more tightly” below the figure (compare second 
> and third figures).
>
> Thanks a lot for your input.
>
> Best regards,
> Florian
>
>
> MWE:
>
> \setupexternalfigures[order={pdf,png,jpg}, location={local,global,default}]
> \starttext
> \useexternalfigure[figure][mill]
> \placefigure[right, none]{}{\externalfigure[figure]}
> \input ward
> \placefigure[right, none]{}{\externalfigure[figure]}
> \input ward
> \input ward
> \input ward
> \placefigure[right, low, none]{}{\externalfigure[figure]}
> \input ward
> \input ward
> \input ward
> \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://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___

1) I think you look for the high key.
2) Here, sidespaceafter and sidespacebefore might help
3) I'd look in the details.pdf, the low key might be explained there
(or wait for better answers here)

Compare the three pages in this example, regarding 1) and 2):

\setupexternalfigures[order={pdf,png,jpg}, location={local,global,default}]


\starttext

\useexternalfigure[figure][mill]
\placefigure[right, high, none]{}{\externalfigure[figure]}
\input ward
\placefigure[right, high, none]{}{\externalfigure[figure]}
\input ward
\input ward
\input ward
\placefigure[right, high, none]{}{\externalfigure[figure]}
\input ward
\input ward
\input ward
\page[yes]


\setupfloats[sidespaceafter=none,sidespacebefore=none]

\useexternalfigure[figure][mill]
\placefigure[right, high, none]{}{\externalfigure[figure]}
\input ward
\placefigure[right, high, none]{}{\externalfigure[figure]}
\input ward
\input ward
\input ward
\placefigure[right, high, none]{}{\externalfigure[figure]}
\input ward
\input ward
\input ward
\page[yes]


\setupfloats[sidespaceafter=-\baselineskip,sidespacebefore=none]

\placefigure[right, high, none]{}{\externalfigure[figure]}
\input ward
\placefigure[right, high, none]{}{\externalfigure[figure]}
\input ward
\input ward
\input ward
\placefigure[right, high, none]{}{\externalfigure[figure]}
\input ward
\input ward
\input ward
\stoptext


/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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] [NTG-Context] Problem with \usemodule[graph] and El Capitan (mac OS)

2016-09-01 Thread Hans Hagen

On 9/1/2016 11:43 AM, Taco Hoekwater wrote:

Hi,

I am on El Capitan as well (10.11.6).

ConTeXt  ver: 2016.08.29 22:53 MKIV beta

Attached is an altered input file that works for me. No idea how much of the 
problem
is actually related to El Capitan, but:

* \usemodule[graph] defines a special MP instance called ‘graph’. You need to
  use that because otherwise the metapost graph macros will not load (that is 
why
  I added the “graph::” prefix twice)

* Something is wrong with the file closing, so I added an extra definition for
  'graph_close_file' (no idea why it does not work out of the box. Sorry to you 
and Hans).


there are save's in mp-grap ... i'll remove them


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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___




--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Figure-text alignment and wrapping text more tightly

2016-09-01 Thread Florian Leupold
Dear list,

I am interested in placing a figure on the right-hand side of the page and wrap 
text around it, see MWE below. This works mostly nicely. But I have got three 
questions:

1) Is it possible to top-align the figure with the first line of the paragraph 
to its left?

2) Is there a way to reduce the vertical gap between the first and second 
figures?

3) The keyword “low” for \placefigure seems to have an effect. But I don’t know 
why and could not find a reference to that in contextref.pdf. Is this the 
correct way to wrap text “more tightly” below the figure (compare second and 
third figures).

Thanks a lot for your input.

Best regards,
Florian


MWE:

\setupexternalfigures[order={pdf,png,jpg}, location={local,global,default}]
\starttext
\useexternalfigure[figure][mill]
\placefigure[right, none]{}{\externalfigure[figure]}
\input ward
\placefigure[right, none]{}{\externalfigure[figure]}
\input ward
\input ward
\input ward
\placefigure[right, low, none]{}{\externalfigure[figure]}
\input ward
\input ward
\input ward
\stoptext



signature.asc
Description: Message signed with OpenPGP using GPGMail
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] [NTG-Context] Problem with \usemodule[graph] and El Capitan (mac OS)

2016-09-01 Thread Louis-solal Giboin
Dear Taco,
I thank you very much for your time.
It works perfectly and I will emulate these modifications in my other
figures. I have no ideas about the problem, I just figured out that it came
from El Capitan because I updated the OS yesterday, however I also had to
reinstall MacTex, so it may also come from a different version of ConText?

Dear Hans,
I would like to thank you for all your work on Metafun, as it is the tool I
use now exclusively for all my scientific figures.

Best regards,
Louis-Solal

2016-09-01 11:43 GMT+02:00 Taco Hoekwater :

> Hi,
>
> I am on El Capitan as well (10.11.6).
>
> ConTeXt  ver: 2016.08.29 22:53 MKIV beta
>
> Attached is an altered input file that works for me. No idea how much of
> the problem
> is actually related to El Capitan, but:
>
> * \usemodule[graph] defines a special MP instance called ‘graph’. You need
> to
>   use that because otherwise the metapost graph macros will not load (that
> is why
>   I added the “graph::” prefix twice)
>
> * Something is wrong with the file closing, so I added an extra definition
> for
>   'graph_close_file' (no idea why it does not work out of the box. Sorry
> to you and Hans).
>
> 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://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] [NTG-Context] Problem with \usemodule[graph] and El Capitan (mac OS)

2016-09-01 Thread Taco Hoekwater
Hi,

I am on El Capitan as well (10.11.6).

ConTeXt  ver: 2016.08.29 22:53 MKIV beta

Attached is an altered input file that works for me. No idea how much of the 
problem
is actually related to El Capitan, but:

* \usemodule[graph] defines a special MP instance called ‘graph’. You need to 
  use that because otherwise the metapost graph macros will not load (that is 
why
  I added the “graph::” prefix twice)

* Something is wrong with the file closing, so I added an extra definition for 
  'graph_close_file' (no idea why it does not work out of the box. Sorry to you 
and Hans).

Best wishes,
Taco


MEPresults.tex
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] [NTG-Context] Problem with \usemodule[graph] and El Capitan (mac OS)

2016-09-01 Thread Hans Hagen

On 9/1/2016 10:11 AM, Louis-solal Giboin wrote:

Dear all,
I have updated my OS to El Capitan, and all my scripts including MPgraph
functions such as gdata do not work anymore (script without such
functions are working without any trouble).
Would someone know how to get rid of this issue?
I thank you very much.

a short code sample:

x:=u*1cm;

a1:=6;

a2:=5;

hauteury:=a1*y;

echelleMEP:=1/10*hauteury/a2;


gdata("explexpl.d",s,

y1:= scantokens(s1);

y2:= scantokens(s2);

draw (7.5*x, y1*echelleMEP)--(8.5*x, y2*echelleMEP) withcolor 0.6 white;

);


incomplete ... how is this called ... what is explexl.d



-
  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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] [NTG-Context] Problem with \usemodule[graph] and El Capitan (mac OS)

2016-09-01 Thread Louis-solal Giboin
Dear all,
I have updated my OS to El Capitan, and all my scripts including MPgraph
functions such as gdata do not work anymore (script without such functions
are working without any trouble).
Would someone know how to get rid of this issue?
I thank you very much.

a short code sample:

x:=u*1cm;

a1:=6;

a2:=5;

hauteury:=a1*y;

echelleMEP:=1/10*hauteury/a2;


gdata("explexpl.d",s,

y1:= scantokens(s1);

y2:= scantokens(s2);

draw (7.5*x, y1*echelleMEP)--(8.5*x, y2*echelleMEP) withcolor 0.6 white;

);



Cheers!

Louis-Solal
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] \vfill shifts content off grid

2016-09-01 Thread Hans Hagen

On 8/31/2016 7:45 PM, Henri Menke wrote:

Dear list,

when I use a body font size other than the standard, issuing \vfill will move 
the content off the grid.  MWE is below.  How do I fix this?


that's how vfill works, you can try \vskip30\lineheight with a value you 
like



Cheers, Henri

---

\setupbodyfont[9pt]
\setuplayout[grid=yes]
\showgrid
\starttext
Hello

\vfill

World
\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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___




--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___