Re: [NTG-context] Centering tabulate env. using \setuptabulate

2014-05-27 Thread Robert Zydenbos
Is there also an equivalent of \placetable for use with Natural Tables?

Robert

On May 23, 2014, at 5:05 , Wolfgang Schuster schuster.wolfg...@gmail.com 
wrote:

 Am 23.05.2014 um 04:17 schrieb Robert Zydenbos cont...@zydenbos.net:
 
 You have you use the “split” keyword when you want your tables to be broken 
 across pages, i.e.
 
 \starttext
 
 \placetable[split]{Table caption}
  {\starttabulate
   \NC Knuth \NC \input knuth \NC\NR
   \NC Tufte \NC \input tufte \NC\NR
   \NC Zapf  \NC \input zapf  \NC\NR
   \NC Knuth \NC \input knuth \NC\NR
   \NC Tufte \NC \input tufte \NC\NR
   \NC Zapf  \NC \input zapf  \NC\NR
   \stoptabulate}
 
 \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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Sectionnumbering

2014-05-27 Thread Werner Hintze
I would like to give my own numbers to several chapters. I made this:

\setuphead[chapter]

[ownnumber=yes]



\starttext

\part{Erster Teil}

\chapter{3}{Anfang}

\chapter{6}{Weiter}

\stoptext


But the result is not the dired one. I want to have:


3 Anfang

6 Weiter


But I get


1.3 Anfang

1.6 Weiter


How can I suppress the part number? I searched for two hours or more in the
Manual und on the web page and couldn’t find a hint...
___
If your question 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] Centering tabulate env. using \setuptabulate

2014-05-27 Thread Wolfgang Schuster

Am 27.05.2014 um 10:57 schrieb Robert Zydenbos cont...@zydenbos.net:

 Is there also an equivalent of \placetable for use with Natural Tables?

You can use \placetable for all table environments.

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

2014-05-27 Thread Wolfgang Schuster

Am 27.05.2014 um 15:37 schrieb Werner Hintze w.hin...@me.com:

 I would like to give my own numbers to several chapters. I made this:
 
 \setuphead[chapter]
 [ownnumber=yes]
 
 \starttext
 \part{Erster Teil}
 \chapter{3}{Anfang}
 \chapter{6}{Weiter}
 \stoptext
 
 But the result is not the dired one. I want to have:
 
 3 Anfang
 6 Weiter
 
 But I get
 
 1.3 Anfang
 1.6 Weiter
 
 How can I suppress the part number? I searched for two hours or more in the 
 Manual und on the web page and couldn’t find a hint…

You can use the sectionsegments key to choose the counter which are displayed 
for the header.

\setuphead
  [chapter]
  [ownnumber=yes,
   sectionsegments=chapter]

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

2014-05-27 Thread Werner Hintze
Thank you! It works. But I don't unterstand why. Where can I find
informaitons about »setcionsegments«? The wiki seems to have nothing...


2014-05-27 15:42 GMT+02:00 Wolfgang Schuster schuster.wolfg...@gmail.com:


 Am 27.05.2014 um 15:37 schrieb Werner Hintze w.hin...@me.com:

 I would like to give my own numbers to several chapters. I made this:

 \setuphead[chapter]
 [ownnumber=yes]


 \starttext
 \part{Erster Teil}
 \chapter{3}{Anfang}
 \chapter{6}{Weiter}
 \stoptext

 But the result is not the dired one. I want to have:

 3 Anfang
 6 Weiter

 But I get

 1.3 Anfang
 1.6 Weiter

 How can I suppress the part number? I searched for two hours or more in
 the Manual und on the web page and couldn’t find a hint…


 You can use the sectionsegments key to choose the counter which are
 displayed for the header.

 \setuphead
   [chapter]
   [ownnumber=yes,
sectionsegments=chapter]

 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
___

[NTG-context] Publications working in latest beta?

2014-05-27 Thread Robin.Kirkham
Dear List,

After some time absent from Context-land, I thought I’d try the new non-BibTeX 
publications system. However I can’t get the following minimal example to work 
… \cite seems to expand to a () and there is no rendering of the publications 
list. Is the problem my example, or is it a bug?

Robin


\definebtxdataset[test]
\usebtxdataset[test][sample.bib]

\definebtxrendering[test]
\setupbtxrendering[test][numbering=yes]

\starttext
As \cite[author][test::Eijkhout1991] already indicated, bibtex is a
\LATEX||centric program.

\placebtxrendering[test]
\stoptext

ConTeXt  ver: 2014.05.23 23:24 MKIV beta  fmt: 2014.5.27  int: english/english
___
If your question 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] [bug?] no space before \cite[data][] and after \abbreviation

2014-05-27 Thread Wolfgang Schuster

Am 25.05.2014 um 09:27 schrieb Pol Stra r...@hotmail.fr:

 What about the cite command and the space _before_?

Do you have a minimal example for this?

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
___


[NTG-context] Strange behavior with Metapost

2014-05-27 Thread Fabrice Couvreur
Hello,
Why curve drawn is not that expected ?
Fabrice

\starttext
\startMPcode
 input hvdm;
 l:=2.8mm; r:=0.6; alfa:=45; beta:=0; gamma:=0;
 defineDefaultArrow (l, r, alfa, beta, gamma);
 numeric xmin, xmax, ymin, ymax;
 xmin :=-2; xmax := 4; ymax :=5 ;ymin:=-1; u := 1cm;
 pickup pencircle scaled 1pt ;
 drawarrow ((xmin,0) -- (xmax,0)) scaled u;
 drawarrow ((0,ymin) -- (0,ymax)) scaled u;
 draw tightfunction (x, 2*(x-1)*(x-1)+2, xmin, xmax,
(xmax-xmin)/10)
 scaled u;
 setbounds currentpicture to boundingbox (((xmin,ymin) --
 (xmax,ymax)) scaled u);
\stopMPcode
\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] Strange behavior with Metapost

2014-05-27 Thread Hans Hagen

On 5/27/2014 10:19 PM, Fabrice Couvreur wrote:

Hello,
Why curve drawn is not that expected ?
Fabrice


use  /20


\starttext
\startMPcode
  input hvdm;
  l:=2.8mm; r:=0.6; alfa:=45; beta:=0; gamma:=0;
  defineDefaultArrow (l, r, alfa, beta, gamma);
  numeric xmin, xmax, ymin, ymax;
  xmin :=-2; xmax := 4; ymax :=5 ;ymin:=-1; u := 1cm;
  pickup pencircle scaled 1pt ;
  drawarrow ((xmin,0) -- (xmax,0)) scaled u;
  drawarrow ((0,ymin) -- (0,ymax)) scaled u;
  draw tightfunction (x, 2*(x-1)*(x-1)+2, xmin, xmax,
(xmax-xmin)/10)
  scaled u;
  setbounds currentpicture to boundingbox (((xmin,ymin) --
  (xmax,ymax)) scaled u);
\stopMPcode
\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 | voip: 087 875 68 74 | www.pragma-ade.com
 | 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] Strange behavior with Metapost

2014-05-27 Thread Fabrice

It works. But how to choose not to avoid this problem (/10 or /20 or ) ?

Another little problem: if I use

 setbounds currentpicture to boundingbox (((xmin,ymin) --(xmax,ymax)) 
scaled u) ; 


the images are not adjusted to the BoundingBox.
So I'm back to my original idea.
Fabrice


\midaligned{%
\startcombination[4*1]
{%
\startMPcode
 input hvdm;
 l:=2.8mm; r:=0.6; alfa:=45; beta:=0; gamma:=0;
 defineDefaultArrow (l, r, alfa, beta, gamma);
 numeric xmin, xmax, ymin, ymax;
 xmin := -2; xmax :=4; ymax :=5 ;ymin:=-1; u := 0.7cm;
 pickup pencircle scaled 1pt ;
 drawarrow ((xmin,0) -- (xmax,0)) scaled u;
 drawarrow ((0,ymin) -- (0,ymax)) scaled u;
 draw tightfunction (x, -2*(x-1)*(x-1)+2, xmin, xmax, 
(xmax-xmin)/20)

 scaled u;
 path screen;
screen=(xmin,ymin)*u--(xmax,ymin)*u--(xmax,ymax)*u--(xmin,ymax)*u--cycle;
 clip currentpicture to screen;
\stopMPcode
}{1.}
{%
\startMPcode
 input hvdm;
 l:=2.8mm; r:=0.6; alfa:=45; beta:=0; gamma:=0;
 defineDefaultArrow (l, r, alfa, beta, gamma);
 numeric xmin, xmax, ymin, ymax;
 xmin := -2; xmax :=4; ymax :=5 ;ymin:=-1; u := 0.7cm;
 pickup pencircle scaled 1pt ;
 drawarrow ((xmin,0) -- (xmax,0)) scaled u;
 drawarrow ((0,ymin) -- (0,ymax)) scaled u;
 draw tightfunction (x, 0.5*(x-1)*(x-1)+2, xmin, xmax, 
(xmax-xmin)/20)

 scaled u;
 path screen;
screen=(xmin,ymin)*u--(xmax,ymin)*u--(xmax,ymax)*u--(xmin,ymax)*u--cycle;
 clip currentpicture to screen;
\stopMPcode
}
{2.}
{%
\startMPcode
 input hvdm;
 l:=2.8mm; r:=0.6; alfa:=45; beta:=0; gamma:=0;
 defineDefaultArrow (l, r, alfa, beta, gamma);
 numeric xmin, xmax, ymin, ymax;
 xmin := -2; xmax :=4; ymax :=5 ;ymin:=-1; u := 0.7cm;
 pickup pencircle scaled 1pt ;
 drawarrow ((xmin,0) -- (xmax,0)) scaled u;
 drawarrow ((0,ymin) -- (0,ymax)) scaled u;
 draw tightfunction (x, -0.5*(x-1)*(x-1)+2, xmin, xmax, 
(xmax-xmin)/20)

 scaled u;
 path screen;
screen=(xmin,ymin)*u--(xmax,ymin)*u--(xmax,ymax)*u--(xmin,ymax)*u--cycle;
 clip currentpicture to screen;
\stopMPcode
}
{3.}
{%
\startMPcode
 input hvdm;
 l:=2.8mm; r:=0.6; alfa:=45; beta:=0; gamma:=0;
 defineDefaultArrow (l, r, alfa, beta, gamma);
 numeric xmin, xmax, ymin, ymax;
 xmin := -2; xmax :=4; ymax :=5 ;ymin:=-1; u := 0.7cm;
 pickup pencircle scaled 1pt ;
 drawarrow ((xmin,0) -- (xmax,0)) scaled u;
 drawarrow ((0,ymin) -- (0,ymax)) scaled u;
 draw tightfunction (x, 2*(x-1)*(x-1)+2, xmin, xmax, 
(xmax-xmin)/20)

 scaled u;
 path screen;
screen=(xmin,ymin)*u--(xmax,ymin)*u--(xmax,ymax)*u--(xmin,ymax)*u--cycle;
 clip currentpicture to screen;
\stopMPcode}
{4.}
\stopcombination}


___
If your question 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] Strange behavior with Metapost

2014-05-27 Thread Hans Hagen

On 5/28/2014 12:09 AM, Fabrice wrote:

It works. But how to choose not to avoid this problem (/10 or /20 or
) ?


well, you can guess the amount of steps ... but the 1000 you had 
originally was way too much




-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | 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
___