Re: [NTG-context] replacement for \getcitedata

2016-07-12 Thread Michael Eidenbenz
thanks.
but i'm encountering my old problem:

\externalfigure[\cite[file][Eidenbenz2016]]

gives me an error.
Do I need a lua approach here?

Michael



> On 12 Jul 2016, at 16:09, Alan BRASLAU  wrote:
> 
> On Tue, 12 Jul 2016 10:51:06 +0200
> Michael Eidenbenz  wrote:
> 
>> is there a way to extract data from the bib database to use it in a
>> macro?
>> 
>> something like a replacement for the old \getcitedata
> 
> \cite[title] [Eidenbenz2016]
> 
> (Any field can be obtained with this mechanism.)
> 
> 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Setting \textrules

2016-07-12 Thread Fabrice Couvreur
Hello,
I would like the text of the property is in italic without using the
environment {\it}.
Is this the best way when I use \setuptextrules[width=-1ex] ?
thank you,
Fabrice

###
\definetypeface [mainface] [rm] [serif] [palatino] [default]
[features=default]

\definetypeface [mainface] [tt] [mono]  [modern] [default]
[features=default,
rscale=1.1]

\definetypeface [mainface] [mm] [math]  [pagella] [default]
[encoding=texnansi]


\setupbodyfont[mainface,11pt]

\definelabel
  [Propriété]
  [headstyle=bolditalic,way=bytext]

\setuptextrules[width=-1ex]

\starttext

\textrule[top]{\Propriété}


{\it Soit \math{q} un réel \math{\neq 1}, alors pour tout entier naturel
\math{n\geqslant 1} on a :

\startformula

S=1+q+q^2+\dots+q^n=\frac{1-q^{n+1}}{1-q}.

\stopformula}

\textrule

\textrule[top]{\Propriété}

 Soit \math{q} un réel \math{\neq 1}, alors pour tout entier naturel
\math{n\geqslant 1} on a :

\startformula

S=1+q+q^2+\dots+q^n=\frac{1-q^{n+1}}{1-q}.

\stopformula

\textrule

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

Re: [NTG-context] Remove files that are not needed (Metafun)

2016-07-12 Thread Fabrice Couvreur
Thanks Wolfgang and Aditya
Fabrice

2016-07-12 21:04 GMT+02:00 Wolfgang Schuster :

> Fabrice Couvreur 
> 12. Juli 2016 um 20:41
>
> How filling the number ?
>
> \startusableMPgraphic{NumberHead}
> draw outlinetext.b
> ("\bf\namedheadnumber{chapter}")
> (withcolor "lightgray")
> (withpen pencircle scaled .1)
> ysized 60pt ;
> \stopusableMPgraphic
>
> 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://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] Different colors in LaTeX and ConTeXt

2016-07-12 Thread Henri Menke
On 07/12/2016 10:03 PM, Hans Hagen wrote:
> On 7/12/2016 9:39 PM, Henri Menke wrote:
>> Dear Aditya and Hans,
>>
>> I'm not so sure about it being a bug in pgfplots.  I played a little and
>> encountered the following.
> 
> As Aditya pointed out, these (probably used for tracing) colors are
> defined in such a way that they don't go via the context resolver. As
> these (few) colors are basically x windows colors, you can start your
> document with:
> 
> \usecolors[xwi]
> 
> which will set the context colors differently.

Adding \usecolors[xwi] to the example does not change anything.  Looking
at base/colo-imp-xwi.mkiv revealed, that it does not alter the way
colors are defined, but just defines a huge bunch of additional ones.

> 
>>> \usemodule[tikz]
>>> \starttext
>>>
>>> % Original gray
>>> \blackrule[color=gray,width=1cm,height=1pt]
>>>
>>> \starttikzpicture
>>>   \draw[gray,line width=1pt] (0,0) -- (1,0);
>>> \stoptikzpicture
>>>
>>> % New colors
>>> \definecolor[gray][s=0.5]
>>> \unprotect
>>> \pgfutil@definecolor{tikzgray}{gray}{0.5}
>>> \protect
>>>
>>> % Now ConTeXt's gray = tikzgray
>>> \blackrule[color=gray,width=1cm,height=1pt]
> 
> How is that supposed to work? Context will not inherit colors from tikz,
> the most you can expect is the reverse: tikz using context color
> definitions.

I'm very sorry for the confusion.  What I did was to adjust ConTeXt's
gray to have the same grayscale value as the tikzgray.  As is shown
below, the redefinition of gray does not propagate to TikZ.

> 
>>> \starttikzpicture
>>>   \draw[tikzgray,line width=1pt] (0,0) -- (1,0);
>>> \stoptikzpicture
>>>
>>> % Inside TikZ gray is still off
>>> \starttikzpicture
>>>   \draw[gray,line width=1pt] (0,0) -- (1,0);
>>> \stoptikzpicture
>>>
>>> \stoptext

In pgfutil-context.def there is though

\let\pgfutil@registergray \pgf@context@registergray

So it seems as if gray *should* be propagated from ConTeXt to TikZ,
which apparently takes place when loading TikZ.  Moving
\definecolor[gray][s=0.5] before \usemodule[tikz] shows this behavior.

The question is how to keep colors from ConTeXt and TikZ in sync.

Cheers,
Henri

> 
>> Cheers,
>> Henri
>>
>> On 07/12/2016 08:23 PM, Aditya Mahajan wrote:
>>> On Tue, 12 Jul 2016, Hans Hagen wrote:
>>>
 On 7/12/2016 5:07 PM, Aditya Mahajan wrote:
> On Tue, 12 Jul 2016, Hans Hagen wrote:
>
>> On 7/12/2016 3:44 PM, Henri Menke wrote:
>>> Dear Hans,
>>>
>>> thanks for your reply.  Indeed there are color definitions in
>>> `pgfutil-context.def`.  However, they are commented out with the
 message
>>>
 % no need for x colors (users can load it if needed)
 ...
 %\pgfutil@definecolor{gray}{gray}{0.5}
>>>
>>> If I add
>>>
 \csname pgfutil@definecolor\endcsname{gray}{gray}{0.5}
>>>
>>> to my document the gray shows up fine.  So that's for sure a
>>> feasible
>>> workaround.
>>>
>>> Can you comment on the phrase »no need for x colors (users can
>>> load it
>>> if needed)«?  I'm not quite sure what it means and it suggests that
>>> there exists a proper solution to my color problem.
>>
>> normally you want the same colors in tikz images as in context so
>> then
>> defining them in tikz is creating incompatibilities (your case is the
>> reverse and a-typical)
>
> However, without such redefinitions, tikz does not understand ConTeXt
> colors. I use a similar workaround in my documents as well.

 I have no clue what you mean.

 \definecolor[red][g=1]

 \startTEXpage
 \starttikzpicture
\fill[red] (0,0) circle (1cm);
 \stoptikzpicture
 \stopTEXpage

 works ok here and gives green. So, one can collect a list of colors
 defined in tikz in a colo-imp-tikz.mkiv and load that one if needed.
>>>
>>> I guess it is a bug with pgfplots rather than tikz (which also means
>>> that it may be easier to pursuade pgfplot maintainers to use low level
>>> tikz interface, since tikz is already playing nice with context).
>>>
>>> \usemodule[tikz,pgfplots]
>>> \definecolor[red][g=1]
>>>
>>> \startmode[bug]
>>> \unprotect
>>> \pgfutil@definecolor{red}   {rgb} {0,1,0}
>>> \protect
>>> \stopmode
>>>
>>> \starttext
>>> \startTEXpage
>>>  \starttikzpicture
>>>\startaxis
>>>  \addplot[color=red] coordinates { (0,0) (1,1) };
>>>\stopaxis
>>>  \stoptikzpicture
>>> \stopTEXpage
>>> \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/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] replacement for \getcitedata

2016-07-12 Thread Alan BRASLAU
On Tue, 12 Jul 2016 20:39:27 +0200
Michael Eidenbenz  wrote:

> but i'm encountering my old problem:
> 
> \externalfigure[\cite[file][Eidenbenz2016]]
> 
> gives me an error.

This is not the right approach, as explained earlier.

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

Re: [NTG-context] Different colors in LaTeX and ConTeXt

2016-07-12 Thread Hans Hagen

On 7/12/2016 9:39 PM, Henri Menke wrote:

Dear Aditya and Hans,

I'm not so sure about it being a bug in pgfplots.  I played a little and
encountered the following.


As Aditya pointed out, these (probably used for tracing) colors are 
defined in such a way that they don't go via the context resolver. As 
these (few) colors are basically x windows colors, you can start your 
document with:


\usecolors[xwi]

which will set the context colors differently.


\usemodule[tikz]
\starttext

% Original gray
\blackrule[color=gray,width=1cm,height=1pt]

\starttikzpicture
  \draw[gray,line width=1pt] (0,0) -- (1,0);
\stoptikzpicture

% New colors
\definecolor[gray][s=0.5]
\unprotect
\pgfutil@definecolor{tikzgray}{gray}{0.5}
\protect

% Now ConTeXt's gray = tikzgray
\blackrule[color=gray,width=1cm,height=1pt]


How is that supposed to work? Context will not inherit colors from tikz, 
the most you can expect is the reverse: tikz using context color 
definitions.



\starttikzpicture
  \draw[tikzgray,line width=1pt] (0,0) -- (1,0);
\stoptikzpicture

% Inside TikZ gray is still off
\starttikzpicture
  \draw[gray,line width=1pt] (0,0) -- (1,0);
\stoptikzpicture

\stoptext



Cheers,
Henri

On 07/12/2016 08:23 PM, Aditya Mahajan wrote:

On Tue, 12 Jul 2016, Hans Hagen wrote:


On 7/12/2016 5:07 PM, Aditya Mahajan wrote:

On Tue, 12 Jul 2016, Hans Hagen wrote:


On 7/12/2016 3:44 PM, Henri Menke wrote:

Dear Hans,

thanks for your reply.  Indeed there are color definitions in
`pgfutil-context.def`.  However, they are commented out with the

message



% no need for x colors (users can load it if needed)
...
%\pgfutil@definecolor{gray}{gray}{0.5}


If I add


\csname pgfutil@definecolor\endcsname{gray}{gray}{0.5}


to my document the gray shows up fine.  So that's for sure a feasible
workaround.

Can you comment on the phrase »no need for x colors (users can load it
if needed)«?  I'm not quite sure what it means and it suggests that
there exists a proper solution to my color problem.


normally you want the same colors in tikz images as in context so then
defining them in tikz is creating incompatibilities (your case is the
reverse and a-typical)


However, without such redefinitions, tikz does not understand ConTeXt
colors. I use a similar workaround in my documents as well.


I have no clue what you mean.

\definecolor[red][g=1]

\startTEXpage
\starttikzpicture
   \fill[red] (0,0) circle (1cm);
\stoptikzpicture
\stopTEXpage

works ok here and gives green. So, one can collect a list of colors
defined in tikz in a colo-imp-tikz.mkiv and load that one if needed.


I guess it is a bug with pgfplots rather than tikz (which also means
that it may be easier to pursuade pgfplot maintainers to use low level
tikz interface, since tikz is already playing nice with context).

\usemodule[tikz,pgfplots]
\definecolor[red][g=1]

\startmode[bug]
\unprotect
\pgfutil@definecolor{red}   {rgb} {0,1,0}
\protect
\stopmode

\starttext
\startTEXpage
 \starttikzpicture
   \startaxis
 \addplot[color=red] coordinates { (0,0) (1,1) };
   \stopaxis
 \stoptikzpicture
\stopTEXpage
\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/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] Different colors in LaTeX and ConTeXt

2016-07-12 Thread Alan BRASLAU
What is the fuss?

\starttext

\startMPcode
  draw origin--right scaled 1cm
withpen pencircle scaled 1pt
withcolor gray  ;
\stopMPcode

\stoptext

works just fine... :-)

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

Re: [NTG-context] Different colors in LaTeX and ConTeXt

2016-07-12 Thread Henri Menke
Dear Aditya and Hans,

I'm not so sure about it being a bug in pgfplots.  I played a little and
encountered the following.

> \usemodule[tikz]
> \starttext
> 
> % Original gray
> \blackrule[color=gray,width=1cm,height=1pt]
> 
> \starttikzpicture
>   \draw[gray,line width=1pt] (0,0) -- (1,0);
> \stoptikzpicture
> 
> % New colors
> \definecolor[gray][s=0.5]
> \unprotect
> \pgfutil@definecolor{tikzgray}{gray}{0.5}
> \protect
> 
> % Now ConTeXt's gray = tikzgray
> \blackrule[color=gray,width=1cm,height=1pt]
> 
> \starttikzpicture
>   \draw[tikzgray,line width=1pt] (0,0) -- (1,0);
> \stoptikzpicture
> 
> % Inside TikZ gray is still off
> \starttikzpicture
>   \draw[gray,line width=1pt] (0,0) -- (1,0);
> \stoptikzpicture
> 
> \stoptext

Cheers,
Henri

On 07/12/2016 08:23 PM, Aditya Mahajan wrote:
> On Tue, 12 Jul 2016, Hans Hagen wrote:
> 
>> On 7/12/2016 5:07 PM, Aditya Mahajan wrote:
>>> On Tue, 12 Jul 2016, Hans Hagen wrote:
>>>
 On 7/12/2016 3:44 PM, Henri Menke wrote:
> Dear Hans,
>
> thanks for your reply.  Indeed there are color definitions in
> `pgfutil-context.def`.  However, they are commented out with the 
>> message
>
>> % no need for x colors (users can load it if needed)
>> ...
>> %\pgfutil@definecolor{gray}{gray}{0.5}
>
> If I add
>
>> \csname pgfutil@definecolor\endcsname{gray}{gray}{0.5}
>
> to my document the gray shows up fine.  So that's for sure a feasible
> workaround.
>
> Can you comment on the phrase »no need for x colors (users can load it
> if needed)«?  I'm not quite sure what it means and it suggests that
> there exists a proper solution to my color problem.

 normally you want the same colors in tikz images as in context so then
 defining them in tikz is creating incompatibilities (your case is the
 reverse and a-typical)
>>>
>>> However, without such redefinitions, tikz does not understand ConTeXt
>>> colors. I use a similar workaround in my documents as well.
>>
>> I have no clue what you mean.
>>
>> \definecolor[red][g=1]
>>
>> \startTEXpage
>> \starttikzpicture
>>\fill[red] (0,0) circle (1cm);
>> \stoptikzpicture
>> \stopTEXpage
>>
>> works ok here and gives green. So, one can collect a list of colors
>> defined in tikz in a colo-imp-tikz.mkiv and load that one if needed.
> 
> I guess it is a bug with pgfplots rather than tikz (which also means
> that it may be easier to pursuade pgfplot maintainers to use low level
> tikz interface, since tikz is already playing nice with context).
> 
> \usemodule[tikz,pgfplots]
> \definecolor[red][g=1]
> 
> \startmode[bug]
> \unprotect
> \pgfutil@definecolor{red}   {rgb} {0,1,0}
> \protect
> \stopmode
> 
> \starttext
> \startTEXpage
>  \starttikzpicture
>\startaxis
>  \addplot[color=red] coordinates { (0,0) (1,1) };
>\stopaxis
>  \stoptikzpicture
> \stopTEXpage
> \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/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] Remove files that are not needed (Metafun)

2016-07-12 Thread Wolfgang Schuster

Fabrice Couvreur 
12. Juli 2016 um 20:41

How filling the number ?

\startusableMPgraphic{NumberHead}
draw outlinetext.b
("\bf\namedheadnumber{chapter}")
(withcolor "lightgray")
(withpen pencircle scaled .1)
ysized 60pt ;
\stopusableMPgraphic

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

Re: [NTG-context] Remove files that are not needed (Metafun)

2016-07-12 Thread Aditya Mahajan

On Tue, 12 Jul 2016, Fabrice Couvreur wrote:



this is more modern (the method, not the font):



How filling the number ?


\starttext
\startMPpage
   draw outlinetext.d
 ("Hello")
 (withpen pencircle scaled 0.1bp withcolor red)
 ysized 60pt ;
\stopMPpage
\startMPpage
   draw outlinetext.f
 ("Hello")
 (withcolor 0.8*blue)
 ysized 60pt ;
\stopMPpage
\startMPpage
   draw outlinetext.b
 ("Hello")
 (withcolor 0.8*blue)
 (withpen pencircle scaled 0.1bp withcolor red)
 ysized 60pt ;
\stopMPpage
\startMPpage
   draw outlinetext.r
 ("Hello")
 (withcolor 0.8*blue)
 (withpen pencircle scaled 0.1bp withcolor red)
 ysized 60pt ;
\stopMPpage
\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/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] Remove files that are not needed (Metafun)

2016-07-12 Thread Fabrice Couvreur
>
> this is more modern (the method, not the font):


How filling the number ?


2016-07-12 17:56 GMT+02:00 Hans Hagen :

> On 7/12/2016 5:21 PM, Fabrice Couvreur wrote:
>
>> Compiling this file returns files ntg46-mpgraph.log ntg46-mpgraph.tex
>> ntg46-mpgraph.mpy ntg46-mpgraph.pdf  ntg46-mpgraph.tuc
>>
>
> this is more modern (the method, not the font):
>
> \startusableMPgraphic{NumberHead}
>   draw outlinetext.d
> ("\bf\namedheadnumber{chapter}")
> (withpen pencircle scaled .1)
> ysized 60pt ;
> \stopusableMPgraphic
>
>
>
> % macros=mkvi
>>
>> \setuppagenumbering[location=footer]
>>
>> \startusableMPgraphic{NumberHead}
>>   picture r ;
>>   r := image ( graphictext
>> "\bf\namedheadnumber{chapter}"
>> scaled 5pt
>> withfillcolor \MPcolor{lightgray}
>> withpen pencircle scaled 1pt ; ) ;
>>   draw r ;
>> \stopusableMPgraphic
>>
>> \def\processMPheadnumber#1%
>>   {\useMPgraphic{NumberHead}}
>>
>> \setuphead
>>[chapter]
>>[command=\HeadTitle,
>> headstyle=\ss,
>> numbercommand=\processMPheadnumber]
>>
>>
>> \unexpanded\def\HeadTitle#1#2%
>>   {\framed
>> [frame=off,
>> bottomframe=on,
>> width=broad,
>> align={broad,nothyphenated,left}]
>> {#1\blank[nowhite]#2}}
>>
>> \starttext
>>
>> \startchapter
>>   [title={Fist chapter}]
>>
>> \input knuth
>>
>> \stopchapter
>>
>> \stoptext
>>
>> 2016-07-12 16:45 GMT+02:00 Hans Hagen > >:
>>
>> On 7/12/2016 3:30 PM, Fabrice Couvreur wrote:
>>
>> Thank youfor the information, but it remains to delete the files
>> ...
>> mpgraph.log
>>
>>
>> fwiw, mkiv normally doesn't have such files
>>
>> 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://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
>
> ___
>
___
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] Different colors in LaTeX and ConTeXt

2016-07-12 Thread Aditya Mahajan

On Tue, 12 Jul 2016, Hans Hagen wrote:


On 7/12/2016 5:07 PM, Aditya Mahajan wrote:

On Tue, 12 Jul 2016, Hans Hagen wrote:


On 7/12/2016 3:44 PM, Henri Menke wrote:

Dear Hans,

thanks for your reply.  Indeed there are color definitions in
`pgfutil-context.def`.  However, they are commented out with the 

message



% no need for x colors (users can load it if needed)
...
%\pgfutil@definecolor{gray}{gray}{0.5}


If I add


\csname pgfutil@definecolor\endcsname{gray}{gray}{0.5}


to my document the gray shows up fine.  So that's for sure a feasible
workaround.

Can you comment on the phrase »no need for x colors (users can load it
if needed)«?  I'm not quite sure what it means and it suggests that
there exists a proper solution to my color problem.


normally you want the same colors in tikz images as in context so then
defining them in tikz is creating incompatibilities (your case is the
reverse and a-typical)


However, without such redefinitions, tikz does not understand ConTeXt
colors. I use a similar workaround in my documents as well.


I have no clue what you mean.

\definecolor[red][g=1]

\startTEXpage
\starttikzpicture
   \fill[red] (0,0) circle (1cm);
\stoptikzpicture
\stopTEXpage

works ok here and gives green. So, one can collect a list of colors 
defined in tikz in a colo-imp-tikz.mkiv and load that one if needed.


I guess it is a bug with pgfplots rather than tikz (which also means that 
it may be easier to pursuade pgfplot maintainers to use low level tikz 
interface, since tikz is already playing nice with context).


\usemodule[tikz,pgfplots]
\definecolor[red][g=1]

\startmode[bug]
\unprotect
\pgfutil@definecolor{red}   {rgb} {0,1,0}
\protect
\stopmode

\starttext
\startTEXpage
 \starttikzpicture
   \startaxis
 \addplot[color=red] coordinates { (0,0) (1,1) };
   \stopaxis
 \stoptikzpicture
\stopTEXpage
\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/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] Different colors in LaTeX and ConTeXt

2016-07-12 Thread Hans Hagen

On 7/12/2016 5:07 PM, Aditya Mahajan wrote:

On Tue, 12 Jul 2016, Hans Hagen wrote:


On 7/12/2016 3:44 PM, Henri Menke wrote:

Dear Hans,

thanks for your reply.  Indeed there are color definitions in
`pgfutil-context.def`.  However, they are commented out with the message


% no need for x colors (users can load it if needed)
...
%\pgfutil@definecolor{gray}{gray}{0.5}


If I add


\csname pgfutil@definecolor\endcsname{gray}{gray}{0.5}


to my document the gray shows up fine.  So that's for sure a feasible
workaround.

Can you comment on the phrase »no need for x colors (users can load it
if needed)«?  I'm not quite sure what it means and it suggests that
there exists a proper solution to my color problem.


normally you want the same colors in tikz images as in context so then
defining them in tikz is creating incompatibilities (your case is the
reverse and a-typical)


However, without such redefinitions, tikz does not understand ConTeXt
colors. I use a similar workaround in my documents as well.


I have no clue what you mean.

\definecolor[red][g=1]

\startTEXpage
\starttikzpicture
   \fill[red] (0,0) circle (1cm);
\stoptikzpicture
\stopTEXpage

works ok here and gives green. So, one can collect a list of colors 
defined in tikz in a colo-imp-tikz.mkiv and load that one if needed.



Perhaps, one could define a macro `\enabletikzcolors[...list..]` that
will do the appropriate translations.


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

Re: [NTG-context] Remove files that are not needed (Metafun)

2016-07-12 Thread Hans Hagen

On 7/12/2016 5:21 PM, Fabrice Couvreur wrote:

Compiling this file returns files ntg46-mpgraph.log ntg46-mpgraph.tex
ntg46-mpgraph.mpy ntg46-mpgraph.pdf  ntg46-mpgraph.tuc


this is more modern (the method, not the font):

\startusableMPgraphic{NumberHead}
  draw outlinetext.d
("\bf\namedheadnumber{chapter}")
(withpen pencircle scaled .1)
ysized 60pt ;
\stopusableMPgraphic




% macros=mkvi

\setuppagenumbering[location=footer]

\startusableMPgraphic{NumberHead}
  picture r ;
  r := image ( graphictext
"\bf\namedheadnumber{chapter}"
scaled 5pt
withfillcolor \MPcolor{lightgray}
withpen pencircle scaled 1pt ; ) ;
  draw r ;
\stopusableMPgraphic

\def\processMPheadnumber#1%
  {\useMPgraphic{NumberHead}}

\setuphead
   [chapter]
   [command=\HeadTitle,
headstyle=\ss,
numbercommand=\processMPheadnumber]


\unexpanded\def\HeadTitle#1#2%
  {\framed
[frame=off,
bottomframe=on,
width=broad,
align={broad,nothyphenated,left}]
{#1\blank[nowhite]#2}}

\starttext

\startchapter
  [title={Fist chapter}]

\input knuth

\stopchapter

\stoptext

2016-07-12 16:45 GMT+02:00 Hans Hagen >:

On 7/12/2016 3:30 PM, Fabrice Couvreur wrote:

Thank youfor the information, but it remains to delete the files ...
mpgraph.log


fwiw, mkiv normally doesn't have such files

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://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] Remove files that are not needed (Metafun)

2016-07-12 Thread Fabrice Couvreur
Compiling this file returns files ntg46-mpgraph.log ntg46-mpgraph.tex
ntg46-mpgraph.mpy ntg46-mpgraph.pdf  ntg46-mpgraph.tuc

% macros=mkvi

\setuppagenumbering[location=footer]

\startusableMPgraphic{NumberHead}
  picture r ;
  r := image ( graphictext
"\bf\namedheadnumber{chapter}"
scaled 5pt
withfillcolor \MPcolor{lightgray}
withpen pencircle scaled 1pt ; ) ;
  draw r ;
\stopusableMPgraphic

\def\processMPheadnumber#1%
  {\useMPgraphic{NumberHead}}

\setuphead
   [chapter]
   [command=\HeadTitle,
headstyle=\ss,
numbercommand=\processMPheadnumber]


\unexpanded\def\HeadTitle#1#2%
  {\framed
[frame=off,
bottomframe=on,
width=broad,
align={broad,nothyphenated,left}]
{#1\blank[nowhite]#2}}

\starttext

\startchapter
  [title={Fist chapter}]

\input knuth

\stopchapter

\stoptext

2016-07-12 16:45 GMT+02:00 Hans Hagen :

> On 7/12/2016 3:30 PM, Fabrice Couvreur wrote:
>
>> Thank youfor the information, but it remains to delete the files ...
>> mpgraph.log
>>
>
> fwiw, mkiv normally doesn't have such files
>
> 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://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] different default size when imposing documents

2016-07-12 Thread Pablo Rodriguez
Hans,

after enabling image scaling in \insertpages
(https://mailman.ntg.nl/pipermail/ntg-context/2016/086114.html), I’m
afraid that the default value and compatibility in imposition is broken.

The minimal sample is the following:

\setuppapersize [A5][A4,landscape]
\setuparranging [2UP]
\setuplayout
  [backspace=0pt,
topspace=0pt,
   width=middle,
  height=middle,
location=middle,
  header=0pt,
  footer=0pt]
\setupinteraction[state=start]
\setupinteractionscreen[option={landscape, paper}]
\starttext
\insertpages[whichever-document.pdf][width=0pt]
\stoptext

Would it be possible to restore the width value to its previous default?

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

Re: [NTG-context] Different colors in LaTeX and ConTeXt

2016-07-12 Thread Aditya Mahajan

On Tue, 12 Jul 2016, Hans Hagen wrote:


On 7/12/2016 3:44 PM, Henri Menke wrote:

Dear Hans,

thanks for your reply.  Indeed there are color definitions in
`pgfutil-context.def`.  However, they are commented out with the message


% no need for x colors (users can load it if needed)
...
%\pgfutil@definecolor{gray}{gray}{0.5}


If I add


\csname pgfutil@definecolor\endcsname{gray}{gray}{0.5}


to my document the gray shows up fine.  So that's for sure a feasible
workaround.

Can you comment on the phrase »no need for x colors (users can load it
if needed)«?  I'm not quite sure what it means and it suggests that
there exists a proper solution to my color problem.


normally you want the same colors in tikz images as in context so then 
defining them in tikz is creating incompatibilities (your case is the 
reverse and a-typical)


However, without such redefinitions, tikz does not understand ConTeXt 
colors. I use a similar workaround in my documents as well.


Perhaps, one could define a macro `\enabletikzcolors[...list..]` that will 
do the appropriate translations.


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

Re: [NTG-context] Remove files that are not needed (Metafun)

2016-07-12 Thread Hans Hagen

On 7/12/2016 3:30 PM, Fabrice Couvreur wrote:

Thank youfor the information, but it remains to delete the files ...
mpgraph.log


fwiw, mkiv normally doesn't have such files

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

Re: [NTG-context] Different colors in LaTeX and ConTeXt

2016-07-12 Thread Hans Hagen

On 7/12/2016 3:44 PM, Henri Menke wrote:

Dear Hans,

thanks for your reply.  Indeed there are color definitions in
`pgfutil-context.def`.  However, they are commented out with the message


% no need for x colors (users can load it if needed)
...
%\pgfutil@definecolor{gray}{gray}{0.5}


If I add


\csname pgfutil@definecolor\endcsname{gray}{gray}{0.5}


to my document the gray shows up fine.  So that's for sure a feasible
workaround.

Can you comment on the phrase »no need for x colors (users can load it
if needed)«?  I'm not quite sure what it means and it suggests that
there exists a proper solution to my color problem.


normally you want the same colors in tikz images as in context so then 
defining them in tikz is creating incompatibilities (your case is the 
reverse and a-typical)


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

Re: [NTG-context] replacement for \getcitedata

2016-07-12 Thread Alan BRASLAU
On Tue, 12 Jul 2016 10:51:06 +0200
Michael Eidenbenz  wrote:

> is there a way to extract data from the bib database to use it in a
> macro?
> 
> something like a replacement for the old \getcitedata

\cite[title] [Eidenbenz2016]

(Any field can be obtained with this mechanism.)

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

Re: [NTG-context] Different colors in LaTeX and ConTeXt

2016-07-12 Thread Henri Menke
Dear Hans,

thanks for your reply.  Indeed there are color definitions in
`pgfutil-context.def`.  However, they are commented out with the message

> % no need for x colors (users can load it if needed)
> ...
> %\pgfutil@definecolor{gray}{gray}{0.5}

If I add

> \csname pgfutil@definecolor\endcsname{gray}{gray}{0.5}

to my document the gray shows up fine.  So that's for sure a feasible
workaround.

Can you comment on the phrase »no need for x colors (users can load it
if needed)«?  I'm not quite sure what it means and it suggests that
there exists a proper solution to my color problem.

Cheers,
Henri

On 07/12/2016 02:29 PM, Hans Hagen wrote:
> On 7/12/2016 1:53 PM, Henri Menke wrote:
>> Dear list,
>>
>> I wanted to draw some nice pictures using TikZ and pgfplots, but then I
>> noticed that the colors of the ticks in my pgfplots graph were unusually
>> bright and it looked very weird.   So I set up a test
>>
>>> \usemodule[tikz]
>>> \starttext
>>> \starttikzpicture
>>>   \draw[help lines,very thick] (0,0) -- (1,0);
>>> \stoptikzpicture
>>>
>>> \externalfigure[test-crop]
>>> \stoptext
>>
>> where I produced test-crop.pdf from the following plain TeX sample,
>> which I also typeset with LuaTeX 0.95 (to make sure it's not a LuaTeX
>> regression).
>>
>>> \input luatex85.sty
>>> \input tikz
>>> \tikzpicture
>>>   \draw[help lines,very thick] (0,0) -- (1,0);
>>> \endtikzpicture
>>> \bye
>>
>> Attached you find the output of the ConTeXt example and you can see that
>> the color of the upper line (the one produced with TikZ inside ConTeXt)
>> has a much brighter color than the one produced with plain TeX.
>>
>> I'm using ConTeXt MkIV distributed with TL 2016.
>>
>> How can I adjust the colors in ConTeXt to match the ones produced by
>> plain TeX?  I need the adjustment in that direction, because I also have
>> old images produced with plain TeX/LaTeX that I'd like to seamlessly
>> integrate in my ConTeXt documents.
> 
> you need to figure out the default definitions in tikz then (i suppose
> 'help lines' is related to some color)
> 
> 
> -
>   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
> ___

___
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] Remove files that are not needed (Metafun)

2016-07-12 Thread Fabrice Couvreur
Thank you for the information, but it remains to delete the files ...
mpgraph.log
It takes maybe write a script.
Fabrice

2016-07-12 14:42 GMT+02:00 Willi Egger :

> context —purgeall is your friend. The pdfs you will have to delete
> manually.
>
> Willi
> > On 12 jul. 2016, at 12:44, Fabrice Couvreur 
> wrote:
> >
> >
> > Hello,
> > One of my command uses a macro build from Metafun. The compilation
> generates many files.
> > How to delete files in the formats mpgraph.log, mpgraph.mpy,
> mpgraph.pdf, mpgraph.tex and mpgraph.tuc ?
> > thank you,
> > Fabrice
> >
> ___
> > 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] Remove files that are not needed (Metafun)

2016-07-12 Thread Willi Egger
context —purgeall is your friend. The pdfs you will have to delete manually.

Willi
> On 12 jul. 2016, at 12:44, Fabrice Couvreur  
> wrote:
> 
> 
> Hello,
> One of my command uses a macro build from Metafun. The compilation generates 
> many files.
> How to delete files in the formats mpgraph.log, mpgraph.mpy, mpgraph.pdf, 
> mpgraph.tex and mpgraph.tuc ?
> thank you,
> Fabrice
> ___
> 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] Different colors in LaTeX and ConTeXt

2016-07-12 Thread Hans Hagen

On 7/12/2016 1:53 PM, Henri Menke wrote:

Dear list,

I wanted to draw some nice pictures using TikZ and pgfplots, but then I
noticed that the colors of the ticks in my pgfplots graph were unusually
bright and it looked very weird.   So I set up a test


\usemodule[tikz]
\starttext
\starttikzpicture
  \draw[help lines,very thick] (0,0) -- (1,0);
\stoptikzpicture

\externalfigure[test-crop]
\stoptext


where I produced test-crop.pdf from the following plain TeX sample,
which I also typeset with LuaTeX 0.95 (to make sure it's not a LuaTeX
regression).


\input luatex85.sty
\input tikz
\tikzpicture
  \draw[help lines,very thick] (0,0) -- (1,0);
\endtikzpicture
\bye


Attached you find the output of the ConTeXt example and you can see that
the color of the upper line (the one produced with TikZ inside ConTeXt)
has a much brighter color than the one produced with plain TeX.

I'm using ConTeXt MkIV distributed with TL 2016.

How can I adjust the colors in ConTeXt to match the ones produced by
plain TeX?  I need the adjustment in that direction, because I also have
old images produced with plain TeX/LaTeX that I'd like to seamlessly
integrate in my ConTeXt documents.


you need to figure out the default definitions in tikz then (i suppose 
'help lines' is related to some color)



-
  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] Different colors in LaTeX and ConTeXt

2016-07-12 Thread Henri Menke
Dear list,

I wanted to draw some nice pictures using TikZ and pgfplots, but then I
noticed that the colors of the ticks in my pgfplots graph were unusually
bright and it looked very weird.   So I set up a test

> \usemodule[tikz]
> \starttext
> \starttikzpicture
>   \draw[help lines,very thick] (0,0) -- (1,0);
> \stoptikzpicture
> 
> \externalfigure[test-crop]
> \stoptext

where I produced test-crop.pdf from the following plain TeX sample,
which I also typeset with LuaTeX 0.95 (to make sure it's not a LuaTeX
regression).

> \input luatex85.sty
> \input tikz
> \tikzpicture
>   \draw[help lines,very thick] (0,0) -- (1,0);
> \endtikzpicture
> \bye

Attached you find the output of the ConTeXt example and you can see that
the color of the upper line (the one produced with TikZ inside ConTeXt)
has a much brighter color than the one produced with plain TeX.

I'm using ConTeXt MkIV distributed with TL 2016.

How can I adjust the colors in ConTeXt to match the ones produced by
plain TeX?  I need the adjustment in that direction, because I also have
old images produced with plain TeX/LaTeX that I'd like to seamlessly
integrate in my ConTeXt documents.

Cheers,
Henri


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

[NTG-context] Remove files that are not needed (Metafun)

2016-07-12 Thread Fabrice Couvreur
Hello,
One of my command uses a macro build from Metafun. The compilation
generates many
files.
How to delete files in the formats mpgraph.log, mpgraph.mpy, mpgraph.pdf,
mpgraph.tex and mpgraph.tuc ?
thank you,
Fabrice
___
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] replacement for \getcitedata

2016-07-12 Thread Michael Eidenbenz
is there a way to extract data from the bib database to use it in a macro?

something like a replacement for the old \getcitedata

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
___