[NTG-context] texmf-local

2011-08-03 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

how to "redirect" the Ctx "local" directory

"c:\ConTeXt\tex\texmf-local"

somewere else, e.g. to

"c:\Lukas\ConTeXt"?

I'm looking for a way which would "survive" any occasion I update Ctx (even when I delete 
the whole Ctx installation directory, = "installation from scratch"), so e.g. editing a 
config file which would appear in Ctx installation tree doesn't seem to be the best.

I would expect e.g. setting a system variable, e.g. "set 
TEXMFLOCAL=c:\Lukas\ConTeXt"; is there any way like this?

TIA.

Best regards,

Lukas


--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

___
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 text on the width of the page when using \startfiguretext

2011-08-03 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,


\setupbackgrounds[text][text][background=picture]
\setupbackgrounds[state=repeat]

It has to be two separate statements?


yes:


\definelayer[picture][preset=righttop,width=\textwidth]

\setlayer[picture]{\externalfigure[mill][width=4cm]}

\setupbackgrounds[text][text][background=picture]
\setupbackgrounds[state=repeat]

\starttext
  \input knuth
  \page
  \input knuth
\stoptext


BTW: I find "state=repeat" to get the background once confusing, too.

Wouldn't be good (at least) to define "once" (as suggested) or "norepeat" 
options to use the background once?

(Both to work in the same manner as "repeat" does.)

And to keep "repeat" for backward compatibility, but to treat it as deprecated?

(Or maybe I don't understand fully why "state=repeat" causes one-shot 
background; could anyone explain?)

Best regards,

Lukas


--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

___
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] A couple of setupcaptions questions

2011-08-03 Thread Jean Magnan de Bornier
Le 03 août à 08:29:55 Jean Magnan de Bornier  écrit 
notamment:

| Le 02 août à 16:19:01 Wolfgang Schuster  
écrit notamment:
>
| | Am 02.08.2011 um 16:10 schrieb Jean Magnan de Bornier:
| >
| | > Hi all
| | > 
| | > I'm trying to setup captions for figures with mkiv. I found this page on 
the wiki:
| | > 
| | > http://wiki.contextgarden.net/Reference/en/setupnumbering
| | > 
| | > Using both these:
| | > 
| | > \setupcaptions[way=bysection,prefixsegments=section]
| | > \setupformulae[way=bysection,prefixsegments=section] 
| | > 
| | > formulae are numbered as expected but captions are not, the prefix is
| | > lacking.
| >
| | Does it help when you add “prefix=yes” to \setupcaptions?
| >
| | When this doesn’t work you should provide a minimal example.
>
| No; here is where I stand after some more trial and errors:
|  - On my small testfile when adding chapters and sections I get a prefix 
(section
|  number); however I want the chapter number as prefix, which is the
|  standard practice and I don't see how to do that with mkiv (obviously it
|  is doable...)
|  - On my big real file I have no prefix, I only hope I will find out why by 
myself...

After lots of checking on my project I came to this, which looks like a
bug:

Project is eg:
..
\startproduct Test
 \environment env_test
 \startfrontmatter
 \component bla   
 \stopfrontmatter

 \startbodymatter

 \component test1
 \component test2
\stopbodymatter


\stopproduct
.
If files test1.tex and  test2.tex begin with \starttext and end with
\stoptext: \setupcaptions works as expected regarding prefix


If files test1.tex and  test2.tex begin with \startcomponent and end with
\stopcomponent: \setupcaptions does not work as expected regarding prefix
(no prefix at all)

\setupformulae not affected

bye,
-- 
Jean
___
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] Pagenumber in footer

2011-08-03 Thread Markus Finke

I want to place the pagenumber higher and something is getting wrong:


\setuppagenumbering
  [alternative=doublesided,
   location={footer,marginedge},
   command=\MyPageNumbercommand]

\def\MyPageNumbercommand#1{\raisebox{2em}{#1}}


I use \usemodule[typearea] and maybe 
\setuplayout[footer/footerdistance=] is not a good option.


TIA!
___
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] linenumbering and text backgrounds

2011-08-03 Thread Aditya Mahajan

On Wed, 3 Aug 2011, Hans Hagen wrote:


On 1-8-2011 3:37, Aditya Mahajan wrote:

Hi,

Line numbering does not work well with text backgrounds (with
location=paragraph). Consider the following minimal example

\definetextbackground
[test]
[location=paragraph, alternative=0, frame=off, background=color,
backgroundcolor=yellow]


\starttext
\startlinenumbering
\starttest
\dorecurse{20}{some random text}
\stoptest
\dorecurse{20}{continue text}
\stoplinenumbering
\stoptext

Notice that line numbers 1 and 2 are overprinted, and so are 6 and 7. I
can "fix" this by using "location=text", but that only highlights half
of the last line (while I want full line to be highlighted).

Any idea on how to fix this?


yes, apart from rewriting background support (on the agenda) i need to think 
of a clean temp fix (will do)


Thanks.

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] linenumbering and text backgrounds

2011-08-03 Thread Hans Hagen

On 1-8-2011 3:37, Aditya Mahajan wrote:

Hi,

Line numbering does not work well with text backgrounds (with
location=paragraph). Consider the following minimal example

\definetextbackground
[test]
[location=paragraph, alternative=0, frame=off, background=color,
backgroundcolor=yellow]


\starttext
\startlinenumbering
\starttest
\dorecurse{20}{some random text}
\stoptest
\dorecurse{20}{continue text}
\stoplinenumbering
\stoptext

Notice that line numbers 1 and 2 are overprinted, and so are 6 and 7. I
can "fix" this by using "location=text", but that only highlights half
of the last line (while I want full line to be highlighted).

Any idea on how to fix this?


yes, apart from rewriting background support (on the agenda) i need to 
think of a clean temp fix (will do)


Hans



-
  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] itemization vs itemization inside a tabulation stuggles

2011-08-03 Thread Hans Hagen

On 3-8-2011 10:15, Hans Hagen wrote:


\setconstant \tabulatesplitlinemode \plustwo


just \tabulatesplitlinemode \plustwo

-
  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] itemization vs itemization inside a tabulation stuggles

2011-08-03 Thread Hans Hagen

On 30-7-2011 10:12, Wolfgang Schuster wrote:


Am 29.07.2011 um 23:06 schrieb Willi Egger:


Hi

I have a document where I use itemizations inside a tabulation. In this case 
the \head command is not respected and it overwrites the previous item.

Please refer to the enclosed example.

What am I doing wrong or is this a bug?



A bug. I can’t offer you a fix but I made a minimal example where you can see 
the effect without itemize:


A while ago I added an option for Thomas that bypasses the snapper (in 
Willis case the head and in your case the penalties force a twoline 
split which then overlaps du eto snapping). You can influence this with:


\setconstant \tabulatesplitlinemode \plustwo

(Not interfaced ... low level tweaking ... but stable. So, Willi should 
wikify it.)



\starttext

\section{Test}

\starttabulate[|p|]
\NC
one \par
\blank[penalty:1]
two \par
\blank[penalty:1]
three
\NC\NR
\stoptabulate

\page

\section{Test}

\starttabulate[|p|]
\NC
one \par
%\blank[penalty:1]
two \par
\blank[penalty:1]
three
\NC\NR
\stoptabulate

\page

\section{Test}

\starttabulate[|p|]
\NC
one \par
\blank[penalty:1]
two \par
%\blank[penalty:1]
three
\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
___



--

-
  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] Enlarge the text height for a row on a single page

2011-08-03 Thread Markus Finke

\adaptlayout[lines=1]


Thank you!!
___
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] Enlarge the text height for a row on a single page

2011-08-03 Thread Wolfgang Schuster

Am 03.08.2011 um 21:12 schrieb Markus Finke:

> I need the function of \enlargethispage{\baselineskip} (= LaTeX) and can’t 
> find anything.

\adaptlayout[lines=1]

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] Enlarge the text height for a row on a single page

2011-08-03 Thread Markus Finke
I need the function of \enlargethispage{\baselineskip} (= LaTeX) and 
can’t find anything.


I want to pull back an one-row-paragraph after \fancybreak in my final 
typesetting process.


TIA
___
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] Using the width of the page with start/stop tabulate

2011-08-03 Thread Cecil Westerhof
2011/8/3 Wolfgang Schuster 

> > That is in this case a better solution. For one in my solution the table
> became to wide. (Do not know why.)
>
>
>>> The combined width of the columns in your table had been \textwidth but
>>> there is also a space between the columns which makes the table wider than
>>> the normal text.
>>>
>>
>> Is it know how much spave this is? For another table I now use:
>>   \starttable[|w(.10\textwidth)|p(.82\textwidth)|]
>>
>> This looks about right, but if there is a better way to do it …
>>
>>
>> Set only a width for the first column, the width of the “p” column
>> is calculated by ConTeXt.
>>
>
> That does not work. The p column will become as long as the first column:
> \starttext
>
>
> I hadn’t noticed you switched from tabulate to table in your example.
>

\stoptabulate can not be handled by macros. So I had to switch.


Look into the wiki, maybe you find some info or use natural tables
> which don’t use a space between columns.
>

I'll continue my search. ;-}

-- 
Cecil Westerhof
___
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] Using the width of the page with start/stop tabulate

2011-08-03 Thread Wolfgang Schuster

Am 03.08.2011 um 19:54 schrieb Cecil Westerhof:

> 2011/8/3 Wolfgang Schuster 
> > That is in this case a better solution. For one in my solution the table 
> > became to wide. (Do not know why.)
>> 
>> The combined width of the columns in your table had been \textwidth but 
>> there is also a space between the columns which makes the table wider than 
>> the normal text.
>> 
>> Is it know how much spave this is? For another table I now use:
>>   \starttable[|w(.10\textwidth)|p(.82\textwidth)|]
>> 
>> This looks about right, but if there is a better way to do it …
> 
> Set only a width for the first column, the width of the “p” column
> is calculated by ConTeXt.
> 
> That does not work. The p column will become as long as the first column:
> \starttext

I hadn’t noticed you switched from tabulate to table in your example.

Look into the wiki, maybe you find some info or use natural tables
which don’t use a space between columns.

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] Using the width of the page with start/stop tabulate

2011-08-03 Thread Cecil Westerhof
2011/8/3 Wolfgang Schuster 

> > That is in this case a better solution. For one in my solution the table
> became to wide. (Do not know why.)
>
>
>> The combined width of the columns in your table had been \textwidth but
>> there is also a space between the columns which makes the table wider than
>> the normal text.
>>
>
> Is it know how much spave this is? For another table I now use:
>   \starttable[|w(.10\textwidth)|p(.82\textwidth)|]
>
> This looks about right, but if there is a better way to do it …
>
>
> Set only a width for the first column, the width of the “p” column
> is calculated by ConTeXt.
>

That does not work. The p column will become as long as the first column:
\starttext

\starttable[|w(.10\textwidth)|p(.82\textwidth)|]
\HL
\NC Field one \NC A quit long field to show what goes wrong \NC\AR
\HL
\stoptable

\starttable[|w(.10\textwidth)|p|]
\HL
\NC Field one \NC A quit long field to show what goes wrong \NC\AR
\HL
\stoptable

\stoptext

-- 
Cecil Westerhof
___
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] itemization vs itemization inside a tabulation stuggles

2011-08-03 Thread Hans Hagen

On 30-7-2011 10:12, Wolfgang Schuster wrote:


Am 29.07.2011 um 23:06 schrieb Willi Egger:


Hi

I have a document where I use itemizations inside a tabulation. In this case 
the \head command is not respected and it overwrites the previous item.

Please refer to the enclosed example.

What am I doing wrong or is this a bug?



A bug. I can’t offer you a fix but I made a minimal example where you can see 
the effect without itemize:


even more fun with \showframe



\starttext

\section{Test}

\starttabulate[|p|]
\NC
one \par
\blank[penalty:1]
two \par
\blank[penalty:1]
three
\NC\NR
\stoptabulate

\page

\section{Test}

\starttabulate[|p|]
\NC
one \par
%\blank[penalty:1]
two \par
\blank[penalty:1]
three
\NC\NR
\stoptabulate

\page

\section{Test}

\starttabulate[|p|]
\NC
one \par
\blank[penalty:1]
two \par
%\blank[penalty:1]
three
\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
___



--

-
  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] itemization vs itemization inside a tabulation stuggles

2011-08-03 Thread Hans Hagen

On 29-7-2011 11:06, Willi Egger wrote:

Hi

I have a document where I use itemizations inside a tabulation. In this case 
the \head command is not respected and it overwrites the previous item.

Please refer to the enclosed example.

What am I doing wrong or is this a bug?


As Wolfgang pointed out .. a side effect of the splitter in tabulate.

Workaround:

   \head Hufe aufhalten \crlf \par

or just

   \item Hufe anhalten

Hans

-
  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] Centering text on the width of the page when using \startfiguretext

2011-08-03 Thread Cecil Westerhof
2011/8/3 Wolfgang Schuster 

> My first idea would be to place the photo in a layer in the background.
>
>
>> I tried the following:
>> \definelayer[picture][
>>   preset=righttop,
>> ]
>>
>> \setlayer[picture]{\externalfigure[graphics/pasfotoKlein]}
>>
>> \setupbackgrounds[page][rightedge][background=picture]
>>
>> Whatever I do, the picture keeps in the top left corner of the page. I
>> would like to have the right side of the picture aligned with the right
>> margin. Is this possible?
>>
>>
>> \definelayer[picture][preset=righttop,width=\textwidth]
>>
>> \setlayer[picture]{\externalfigure[mill][width=4cm]}
>>
>> \setupbackgrounds[text][text][background=picture]
>>
>
> Almost there. ;-}
>
> The placement is okay, but now the picture is on every page instead of only
> the first one.
>
>
> Add “\setupbackgrounds[state=repeat]”.
>

Works. I find repeat a bit strange. I woild expect something like once. But
this works.

I now have:
\setupbackgrounds[text][text][background=picture]
\setupbackgrounds[state=repeat]

It has to be two separate statements?

-- 
Cecil Westerhof
___
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 text on the width of the page when using \startfiguretext

2011-08-03 Thread Wolfgang Schuster

Am 03.08.2011 um 19:15 schrieb Cecil Westerhof:

> 2011/8/3 Wolfgang Schuster 
> My first idea would be to place the photo in a layer in the background.
>> 
>> I tried the following:
>> \definelayer[picture][
>>   preset=righttop,
>> ]
>> 
>> \setlayer[picture]{\externalfigure[graphics/pasfotoKlein]}
>> 
>> \setupbackgrounds[page][rightedge][background=picture]
>> 
>> Whatever I do, the picture keeps in the top left corner of the page. I would 
>> like to have the right side of the picture aligned with the right margin. Is 
>> this possible? 
> 
> \definelayer[picture][preset=righttop,width=\textwidth]
> 
> \setlayer[picture]{\externalfigure[mill][width=4cm]}
> 
> \setupbackgrounds[text][text][background=picture]
> 
> Almost there. ;-}
> 
> The placement is okay, but now the picture is on every page instead of only 
> the first one.

Add “\setupbackgrounds[state=repeat]”.

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] Using the width of the page with start/stop tabulate

2011-08-03 Thread Wolfgang Schuster

Am 03.08.2011 um 19:18 schrieb Cecil Westerhof:

> 2011/8/3 Wolfgang Schuster 
> > That is in this case a better solution. For one in my solution the table 
> > became to wide. (Do not know why.)
> 
> The combined width of the columns in your table had been \textwidth but there 
> is also a space between the columns which makes the table wider than the 
> normal text.
> 
> Is it know how much spave this is? For another table I now use:
>   \starttable[|w(.10\textwidth)|p(.82\textwidth)|]
> 
> This looks about right, but if there is a better way to do it …

Set only a width for the first column, the width of the “p” column
is calculated by ConTeXt.

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] Using the width of the page with start/stop tabulate

2011-08-03 Thread Cecil Westerhof
2011/8/3 Wolfgang Schuster 

> > That is in this case a better solution. For one in my solution the table
> became to wide. (Do not know why.)
>
> The combined width of the columns in your table had been \textwidth but
> there is also a space between the columns which makes the table wider than
> the normal text.
>

Is it know how much spave this is? For another table I now use:
  \starttable[|w(.10\textwidth)|p(.82\textwidth)|]

This looks about right, but if there is a better way to do it …

-- 
Cecil Westerhof
___
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 text on the width of the page when using \startfiguretext

2011-08-03 Thread Cecil Westerhof
2011/8/3 Wolfgang Schuster 

> My first idea would be to place the photo in a layer in the background.
>
>
> I tried the following:
> \definelayer[picture][
>   preset=righttop,
> ]
>
> \setlayer[picture]{\externalfigure[graphics/pasfotoKlein]}
>
> \setupbackgrounds[page][rightedge][background=picture]
>
> Whatever I do, the picture keeps in the top left corner of the page. I
> would like to have the right side of the picture aligned with the right
> margin. Is this possible?
>
>
> \definelayer[picture][preset=righttop,width=\textwidth]
>
> \setlayer[picture]{\externalfigure[mill][width=4cm]}
>
> \setupbackgrounds[text][text][background=picture]
>

Almost there. ;-}

The placement is okay, but now the picture is on every page instead of only
the first one.

-- 
Cecil Westerhof
___
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] Using the width of the page with start/stop tabulate

2011-08-03 Thread Wolfgang Schuster

Am 03.08.2011 um 18:47 schrieb Cecil Westerhof:

> That is in this case a better solution. For one in my solution the table 
> became to wide. (Do not know why.)

The combined width of the columns in your table had been \textwidth but there 
is also a space between the columns which makes the table wider than the normal 
text.

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] Centering text on the width of the page when using \startfiguretext

2011-08-03 Thread Wolfgang Schuster

Am 03.08.2011 um 18:42 schrieb Cecil Westerhof:

> 2011/8/3 Willi Egger 
> My first idea would be to place the photo in a layer in the background.
> 
> I tried the following:
> \definelayer[picture][
>   preset=righttop,
> ]
> 
> \setlayer[picture]{\externalfigure[graphics/pasfotoKlein]}
> 
> \setupbackgrounds[page][rightedge][background=picture]
> 
> Whatever I do, the picture keeps in the top left corner of the page. I would 
> like to have the right side of the picture aligned with the right margin. Is 
> this possible? 

\definelayer[picture][preset=righttop,width=\textwidth]

\setlayer[picture]{\externalfigure[mill][width=4cm]}

\setupbackgrounds[text][text][background=picture]

\starttext

\startlines[align=middle]
E-mail: ce...@decebal.nl
Woonplaats: Werkhoven
Geboren: 15 april 1963 te Belleville Ontario (Can.)
Nationaliteit: Nederlandse, tevens Canadese
Geslacht: Man
Burgerlijke staat: ongehuwd
LinkedIn profiel: http://www.linkedin.com/in/cecilwesterhof
\stoplines

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

Re: [NTG-context] Using the width of the page with start/stop tabulate

2011-08-03 Thread Cecil Westerhof
2011/8/3 Wolfgang Schuster 

> I am using the following code:
>
> \starttabulate[|l|l|]
>> \HL
>> \NC {\bf Primair} \NC {\bf Secundair}  \NC\NR
>> \HL
>> \NC C en C++  \NC Java \NC\NR
>> \NC Python\NC Perl \NC\NR
>> \NC shell-script  \NC Lisp \NC\NR
>> \NC SQL   \NC HTML-4 en JavaScript \NC\NR
>> \NC   \NC PHP  \NC\NR
>> \NC   \NC Pascal   \NC\NR
>> \HL
>> \stoptabulate
>>
>> But this uses only the necessary space. I would like to have the table
>> using the width of the page and both columns having the same size.
>> Is this possible?
>>
>
> I found it. I should start the table with:
> \starttabulate[|lw(.5\textwidth)|lw(.5\textwidth)|]
>
>
> \starttabulate[|p|p|]
>

That is in this case a better solution. For one in my solution the table
became to wide. (Do not know why.)

-- 
Cecil Westerhof
___
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 text on the width of the page when using \startfiguretext

2011-08-03 Thread Cecil Westerhof
2011/8/3 Willi Egger 

> My first idea would be to place the photo in a layer in the background.
>

I tried the following:
\definelayer[picture][
  preset=righttop,
]

\setlayer[picture]{\externalfigure[graphics/pasfotoKlein]}

\setupbackgrounds[page][rightedge][background=picture]

Whatever I do, the picture keeps in the top left corner of the page. I would
like to have the right side of the picture aligned with the right margin. Is
this possible?

-- 
Cecil Westerhof
___
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 text on the width of the page when using \startfiguretext

2011-08-03 Thread Cecil Westerhof
2011/8/3 Wolfgang Schuster 

>
> Am 03.08.2011 um 09:52 schrieb Cecil Westerhof:
>
> I am converting my CV to ConTeXt. Simplified I have the folowing in it:
> \startfiguretext[right]{none}{\externalfigure[graphics/pasfotoKlein]}
>   \startalignment[center]
> E-mail: ce...@decebal.nl
>
> Woonplaats: Werkhoven
>
> Geboren: 15 april 1963 te Belleville Ontario (Can.)
>
> Nationaliteit: Nederlandse, tevens Canadese
>
> Geslacht: Man
>
> Burgerlijke staat: ongehuwd
>
> LinkedIn profiel: http://www.linkedin.com/in/cecilwesterhof
>   \stopalignment
> \stopfiguretext
>
>
> \startlines[align=middle]
> E-mail: ce...@decebal.nl
> Woonplaats: Werkhoven
> Geboren: 15 april 1963 te Belleville Ontario (Can.)
> Nationaliteit: Nederlandse, tevens Canadese
> Geslacht: Man
> Burgerlijke staat: ongehuwd
> LinkedIn profiel: http://www.linkedin.com/in/cecilwesterhof
> \stoplines
>

Has the same output as my code.

-- 
Cecil Westerhof
___
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] Using the width of the page with start/stop tabulate

2011-08-03 Thread Wolfgang Schuster

Am 03.08.2011 um 10:51 schrieb Cecil Westerhof:

> 2011/8/3 Cecil Westerhof 
> I am using the following code:
> \starttabulate[|l|l|]
> \HL
> \NC {\bf Primair} \NC {\bf Secundair}  \NC\NR
> \HL
> \NC C en C++  \NC Java \NC\NR
> \NC Python\NC Perl \NC\NR
> \NC shell-script  \NC Lisp \NC\NR
> \NC SQL   \NC HTML-4 en JavaScript \NC\NR
> \NC   \NC PHP  \NC\NR
> \NC   \NC Pascal   \NC\NR
> \HL
> \stoptabulate
> 
> But this uses only the necessary space. I would like to have the table using 
> the width of the page and both columns having the same size.
> Is this possible?
> 
> I found it. I should start the table with:
> \starttabulate[|lw(.5\textwidth)|lw(.5\textwidth)|] 

\starttabulate[|p|p|]

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] Centering text on the width of the page when using \startfiguretext

2011-08-03 Thread Wolfgang Schuster

Am 03.08.2011 um 09:52 schrieb Cecil Westerhof:

> I am converting my CV to ConTeXt. Simplified I have the folowing in it:
> \startfiguretext[right]{none}{\externalfigure[graphics/pasfotoKlein]}
>   \startalignment[center]
> E-mail: ce...@decebal.nl
> 
> Woonplaats: Werkhoven
> 
> Geboren: 15 april 1963 te Belleville Ontario (Can.)
> 
> Nationaliteit: Nederlandse, tevens Canadese
> 
> Geslacht: Man
> 
> Burgerlijke staat: ongehuwd
> 
> LinkedIn profiel: http://www.linkedin.com/in/cecilwesterhof
>   \stopalignment
> \stopfiguretext

\startlines[align=middle]
E-mail: ce...@decebal.nl
Woonplaats: Werkhoven
Geboren: 15 april 1963 te Belleville Ontario (Can.)
Nationaliteit: Nederlandse, tevens Canadese
Geslacht: Man
Burgerlijke staat: ongehuwd
LinkedIn profiel: http://www.linkedin.com/in/cecilwesterhof
\stoplines

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] Centering text on the width of the page when using \startfiguretext

2011-08-03 Thread Wolfgang Schuster

Am 03.08.2011 um 17:11 schrieb Willi Egger:

> My first idea would be to place the photo in a layer in the background.

+1

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] Defining frame-like commands

2011-08-03 Thread Wolfgang Schuster

Am 03.08.2011 um 15:27 schrieb Marcin Borkowski:

> Hi,
> 
> I'm feeling like I'm getting close to the daily limit of posts to the
> list;), but I'm just learning;).
> 
> I discovered that I can use \defineframed so that I can write
> 
> \defineframed[myframed][frame=off,background=myoverlay]
> 
> \myframed{whatever}
> 
> But I'd like to have "my" counterparts of \inframed, \mframed and
> \inmframed.  Is there any \define-like command for that, too, or do I
> have to resort to plain old \def?

\defineframed[mathframe][align=right,top=\startmathmode,bottom=\stopmathmode] % 
location=low

\starttext

\framed{x^2}

\mframed{x^2}

\mathframe{x^2}

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


Re: [NTG-context] Using the width of the page with start/stop tabulate

2011-08-03 Thread Willi Egger
Though older, there is an article in MAPS22 (see ntg-website) explaining what 
tabulate can do.

Willi
On 3 Aug 2011, at 10:37, Cecil Westerhof wrote:

> I am using the following code:
> \starttabulate[|l|l|]
> \HL
> \NC {\bf Primair} \NC {\bf Secundair}  \NC\NR
> \HL
> \NC C en C++  \NC Java \NC\NR
> \NC Python\NC Perl \NC\NR
> \NC shell-script  \NC Lisp \NC\NR
> \NC SQL   \NC HTML-4 en JavaScript \NC\NR
> \NC   \NC PHP  \NC\NR
> \NC   \NC Pascal   \NC\NR
> \HL
> \stoptabulate
> 
> But this uses only the necessary space. I would like to have the table using 
> the width of the page and both columns having the same size.
> Is this possible?
> 
> -- 
> Cecil Westerhof
> ___
> 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] Centering text on the width of the page when using \startfiguretext

2011-08-03 Thread Willi Egger
My first idea would be to place the photo in a layer in the background.

Willi
On 3 Aug 2011, at 09:52, Cecil Westerhof wrote:

> I am converting my CV to ConTeXt. Simplified I have the folowing in it:
> \startfiguretext[right]{none}{\externalfigure[graphics/pasfotoKlein]}
>   \startalignment[center]
> E-mail: ce...@decebal.nl
> 
> Woonplaats: Werkhoven
> 
> Geboren: 15 april 1963 te Belleville Ontario (Can.)
> 
> Nationaliteit: Nederlandse, tevens Canadese
> 
> Geslacht: Man
> 
> Burgerlijke staat: ongehuwd
> 
> LinkedIn profiel: http://www.linkedin.com/in/cecilwesterhof
>   \stopalignment
> \stopfiguretext
> 
> This centers the text on the space leftover after placing my photo. But I 
> would like the text to be centered on the width of the page, without taking 
> into consideration the space the photo takes up. How would I do that?
> 
> -- 
> Cecil Westerhof
> ___
> 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] background over two page

2011-08-03 Thread Aditya Mahajan
Reviving an old thread because I found a really simple solution. Hopefully 
this will also be useful to someone else.


On Mon, 18 Oct 2010, Wolfgang Schuster wrote:



Am 18.10.2010 um 14:18 schrieb Otared Kavian:


Your solution works as intended when the framed, highlighted text with 
background spans over two pages (though it doesn't when it spans over three 
pages or more, but this is not a real issue, since it is a bad idea to have 
such long highlighted texts…).



I guess this is also possible with textbackground:

\newcounter\CurrentBackground

\def\StartBackground
 {\doglobal\increment\CurrentBackground
  \setposition{Background:b:\CurrentBackground}%
  \startbackground}

\def\StopBackground
 {\stopbackground
  \setposition{Background:e:\CurrentBackground}}

\def\DrawBackground
 
{\ifnum\MPp{Background:b:\CurrentBackground}=\MPp{Background:e:\CurrentBackground}
\startMPcode
draw topboundaryOverlayBox withcolor red ;
draw bottomboundary OverlayBox withcolor red ;
draw leftboundary   OverlayBox withcolor red ;
draw rightboundary  OverlayBox withcolor red ;
\stopMPcode
  \else\ifnum\realpageno=\MPp{Background:b:\CurrentBackground}
\startMPcode
draw topboundaryOverlayBox withcolor red ;
draw leftboundary   OverlayBox withcolor red ;
draw rightboundary  OverlayBox withcolor red ;
\stopMPcode
  \else\ifnum\realpageno=\MPp{Background:e:\CurrentBackground}
\startMPcode
draw bottomboundary OverlayBox withcolor red ;
draw leftboundary   OverlayBox withcolor red ;
draw rightboundary  OverlayBox withcolor red ;
\stopMPcode
  \else
\startMPcode
draw leftboundary   OverlayBox withcolor red ;
draw rightboundary  OverlayBox withcolor red ;
\stopMPcode
  \fi\fi\fi}

\defineoverlay[DrawBackground][\DrawBackground]

\setupbackground[background=DrawBackground]


A much simpler solution using textbackgrounds:

\startuseMPgraphic{splitframe}
  for i=1 upto nofmultipars :
if one_piece_multi_par :
draw multipars[i] ;
elseif multilocs[i]=1 :
draw topboundary   multipars[i] ;
draw leftboundary  multipars[i] ;
draw rightboundary multipars[i] ;
elseif multilocs[i]=2 :
draw leftboundary  multipars[i] ;
draw rightboundary multipars[i] ;
elseif multilocs[i]=3 :
draw leftboundary   multipars[i] ;
draw rightboundary  multipars[i] ;
draw bottomboundary multipars[i];
fi ;
  endfor ;
\stopuseMPgraphic

  \definetextbackground
[splitframe]
[state=start,
 mp=splitframe,
 location=paragraph]

\starttext

\startsplitframe
  \input knuth \endgraf
\stopsplitframe

\blank[big]

\startsplitframe
  \dorecurse{4}{\input knuth \endgraf}
\stopsplitframe

\blank[big]

\startsplitframe
  \dorecurse{10}{\input knuth \endgraf}
\stopsplitframe
\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] METAFUN's randomized operator's seed

2011-08-03 Thread Procházka Lukáš Ing . - Pontex s . r . o .

http://www.tug.org/utilities/plain/cseq.html#time-rp


this would also explain, why the seconds do not count :-)


Best regards,



OK, so it could be better e.g.:


\starttext
  \directlua{context.setuprandomize{os.time()}}
  ...


Best regards,

Lukas


--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

___
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] METAFUN's randomized operator's seed

2011-08-03 Thread Peter Rolf
Am 03.08.2011 16:07, schrieb Procházka Lukáš Ing. - Pontex s. r. o.:
> Hello,
> 
>> \setuprandomize[\normaltime]
>>
>> I guess a call after \starttext will do.
>>
>> Peter
> 
> I tried it as I was just about to solve the same problem; it seems to
> work in condition that *at least one minute elapses between two runs*.
> 
> BTW, what exactly does \normaltime expand to? Does it contain seconds as
> well?
> 
> Where to find some more info about \normaltime?
>
probably just an alias for \time

http://www.tug.org/utilities/plain/cseq.html#time-rp


this would also explain, why the seconds do not count :-)

> Best regards,
> 
> Lukas
> 
> 

___
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] METAFUN's randomized operator's seed

2011-08-03 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,


\setuprandomize[\normaltime]

I guess a call after \starttext will do.

Peter


I tried it as I was just about to solve the same problem; it seems to work in 
condition that *at least one minute elapses between two runs*.

BTW, what exactly does \normaltime expand to? Does it contain seconds as well?

Where to find some more info about \normaltime?

Best regards,

Lukas


--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

___
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] METAFUN's randomized operator's seed

2011-08-03 Thread Aditya Mahajan

On Wed, 3 Aug 2011, Marcin Borkowski wrote:


Hi,

I noticed that each time I recompile a document using randomized the
result is the same, so presumably the random seed is also the same.  I
guess this is intentional.  My questions are:
* Does the random seed value depend on a checksum of the tex file or
 something like this?


AFAIK, no. But the seed is stored in tuc file. Grep for randomseed.


* How to change it (e.g., to make it depend on the compile time or
 whatever)?


Delete the tuc file and recompile (or compile using --purge).

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] Runaway argument with \stoptabulate in a macro

2011-08-03 Thread Aditya Mahajan

On Wed, 3 Aug 2011, Wolfgang Schuster wrote:



Am 03.08.2011 um 13:25 schrieb Cecil Westerhof:


I have the following code:

[…]

When I put a \stoptabulate after \StopWorkTable it compiles as expected. But 
why does the \stoptabulate in \StopWorkTable not work?


This is a limitation of the way how tabulate is written. When you want to put a 
table in macros use \starttable or \bTABLE.


An alternative is to capture the content in tokens:

\newtoks\WorkTableToks
\define[2]\StartWorkTable{
  \myblank[2*big]
  \WorkTableToks
  {\starttabulate[|w(.1\textwidth)|p(.9\textwidth)|]
  \HL
  \NC #1 \NC #2   \NC\NR
  \HL
  \NC\NC {\bf Gedaan} \NC\NR}
}

\define[1]\ActivityWorkTable{
  \appendtoks
  \NC\NC \bullet\space #1 \NC\NR
  \to\WorkTableToks
}

\define\StopWorkTable{
  \appendtoks
  \HL
  \stoptabulate
  \to\WorkTableToks
  \the\WorkTableToks
}
___
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] METAFUN's randomized operator's seed

2011-08-03 Thread Peter Rolf
Am 03.08.2011 15:19, schrieb Marcin Borkowski:
> Hi,
> 
> I noticed that each time I recompile a document using randomized the
> result is the same, so presumably the random seed is also the same.  I
> guess this is intentional.  My questions are:
> * Does the random seed value depend on a checksum of the tex file or
>   something like this?
Hi,

it's derived from system time and stored in the *.tuc-file (see
definition of \setuprandomize). As long as this file is not rewritten,
you get the same random seed.

> * How to change it (e.g., to make it depend on the compile time or
>   whatever)?
>
Something like (untested)

\setuprandomize[\normaltime]

I guess a call after \starttext will do.

> Regards,
> 

Peter
___
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] Defining frame-like commands

2011-08-03 Thread Marcin Borkowski
Hi,

I'm feeling like I'm getting close to the daily limit of posts to the
list;), but I'm just learning;).

I discovered that I can use \defineframed so that I can write

\defineframed[myframed][frame=off,background=myoverlay]

\myframed{whatever}

But I'd like to have "my" counterparts of \inframed, \mframed and
\inmframed.  Is there any \define-like command for that, too, or do I
have to resort to plain old \def?

Regards,

-- 
Marcin Borkowski
___
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] METAFUN's randomized operator's seed

2011-08-03 Thread Marcin Borkowski
Hi,

I noticed that each time I recompile a document using randomized the
result is the same, so presumably the random seed is also the same.  I
guess this is intentional.  My questions are:
* Does the random seed value depend on a checksum of the tex file or
  something like this?
* How to change it (e.g., to make it depend on the compile time or
  whatever)?

Regards,

-- 
Marcin Borkowski
___
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] Problem with integral limits with Pagella

2011-08-03 Thread Marcin Borkowski
Hi,

this gives a very bad result (the limits overlap the integral sign):

\usetypescript[pagella]
\setupbodyfont[pagella]

\starttext

\startformula
  \int_a^b\frac{dx}{x^2+1}
\stopformula

\stoptext

A similar thing happens with termes, but with LM it's okay.

Am I doing something wrong?

-- 
Marcin Borkowski
___
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] Runaway argument with \stoptabulate in a macro

2011-08-03 Thread Cecil Westerhof
2011/8/3 Wolfgang Schuster 

>
> Am 03.08.2011 um 13:25 schrieb Cecil Westerhof:
>
> > I have the following code:
> >
> > […]
> >
> > When I put a \stoptabulate after \StopWorkTable it compiles as expected.
> But why does the \stoptabulate in \StopWorkTable not work?
>
> This is a limitation of the way how tabulate is written. When you want to
> put a table in macros use \starttable or \bTABLE.
>

Works. Thanks.

-- 
Cecil Westerhof
___
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] Runaway argument with \stoptabulate in a macro

2011-08-03 Thread Wolfgang Schuster

Am 03.08.2011 um 13:25 schrieb Cecil Westerhof:

> I have the following code:
> 
> […] 
> 
> When I put a \stoptabulate after \StopWorkTable it compiles as expected. But 
> why does the \stoptabulate in \StopWorkTable not work?

This is a limitation of the way how tabulate is written. When you want to put a 
table in macros use \starttable or \bTABLE.

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] Runaway argument with \stoptabulate in a macro

2011-08-03 Thread Cecil Westerhof
I have the following code:
\usemodule[fancybreak]

\definefancybreak[myblank][indentnext=no]

\define[2]\StartWorkTable{
  \myblank[2*big]
  \starttabulate[|w(.1\textwidth)|p(.9\textwidth)|]
  \HL
  \NC #1 \NC #2   \NC\NR
  \HL
  \NC\NC {\bf Gedaan} \NC\NR
}

\define[1]\ActivityWorkTable{
  \NC\NC \bullet\space #1 \NC\NR
}

\define\StopWorkTable{
  \HL
  \stoptabulate
}

\starttext

\StartWorkTable{Huidig}{Senior software engineer bij Artex}
\ActivityWorkTable{Teamleader voor een groep van 5 PHP-programmeurs die
  werken volgens scrum/agile principes. Dit team ontwikkeld
  grootschalige web applicaties met gebruikmaking van PHP/AJAX/Zend en
  HTML5.
}
\ActivityWorkTable{Quality Management}
\ActivityWorkTable{Schrijven documentatie, zowel technische als gebruikers}
\ActivityWorkTable{Definieren nieuwe functionaliteiten}
\ActivityWorkTable{Installeren subversion server en definiëren werkwijze}
\StopWorkTable

\stoptext

When I compile this I get:
compileContextFiles.sh --verbose
* CV.tex was already up to date

mtx-context | run 1: luatex
--fmt="/home/cecil/ConTeXt/tex/texmf-cache/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en"
--lua="/home/cecil/ConTeXt/tex/texmf-cache/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en.lui"
--backend="pdf" "./dummy.tex" \stoptext
This is LuaTeX, Version beta-0.70.1-2011051923 (rev 4277)
 \write18 enabled.
(dummy.tex

ConTeXt  ver: 2011.07.14 16:09 MKIV  fmt: 2011.7.19  int: english/english

system  > cont-new.mkiv loaded
(/home/cecil/ConTeXt/tex/texmf-context/tex/context/base/cont-new.mkiv
system  > beware: some patches loaded from cont-new.mkiv
)
system  > dummy.top loaded
(dummy.top)
fonts   > latin modern fonts are not preloaded
languages   > language en is active
resolvers   > modules > loaded: 'fancybreak'
(/home/cecil/ConTeXt/tex/texmf-modules/tex/context/third/fancybreak/t-fancybreak.mkiv
loading > ConTeXt User Module / Fancybreak
){/home/cecil/ConTeXt/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
fonts   > preloading latin modern fonts (second stage)
(/home/cecil/ConTeXt/tex/texmf-context/tex/context/base/type-siz.mkiv)
(/home/cecil/ConTeXt/tex/texmf-context/tex/context/base/type-otf.mkiv)
files   > readfile > asked name: 'loc', not found
{/home/cecil/ConTeXt/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/home/cecil/ConTeXt/tex/texmf/fonts/map/dvips/lm/lm-rm.map}
fonts   > virtual math > unable to resolve name mapsfromchar
fonts   > fallback modern rm 12pt is loaded
)
Runaway argument?
 \HL \NC Huidig \NC Senior software engineer bij Artex \NC \NR \HL \NC \ETC.
! File ended while scanning use of \doprocesscontent.

system  > tex > error on line 0 in file : File ended while scanning
use of \doprocesscontent ...




\par
<*> ./dummy.tex
\stoptext
?

When I put a \stoptabulate after \StopWorkTable it compiles as expected. But
why does the \stoptabulate in \StopWorkTable not work?

-- 
Cecil Westerhof
___
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] Using the width of the page with start/stop tabulate

2011-08-03 Thread Cecil Westerhof
2011/8/3 Cecil Westerhof 

> I am using the following code:
> \starttabulate[|l|l|]
> \HL
> \NC {\bf Primair} \NC {\bf Secundair}  \NC\NR
> \HL
> \NC C en C++  \NC Java \NC\NR
> \NC Python\NC Perl \NC\NR
> \NC shell-script  \NC Lisp \NC\NR
> \NC SQL   \NC HTML-4 en JavaScript \NC\NR
> \NC   \NC PHP  \NC\NR
> \NC   \NC Pascal   \NC\NR
> \HL
> \stoptabulate
>
> But this uses only the necessary space. I would like to have the table
> using the width of the page and both columns having the same size.
> Is this possible?
>

I found it. I should start the table with:
\starttabulate[|lw(.5\textwidth)|lw(.5\textwidth)|]

-- 
Cecil Westerhof
___
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] Using the width of the page with start/stop tabulate

2011-08-03 Thread Cecil Westerhof
I am using the following code:
\starttabulate[|l|l|]
\HL
\NC {\bf Primair} \NC {\bf Secundair}  \NC\NR
\HL
\NC C en C++  \NC Java \NC\NR
\NC Python\NC Perl \NC\NR
\NC shell-script  \NC Lisp \NC\NR
\NC SQL   \NC HTML-4 en JavaScript \NC\NR
\NC   \NC PHP  \NC\NR
\NC   \NC Pascal   \NC\NR
\HL
\stoptabulate

But this uses only the necessary space. I would like to have the table using
the width of the page and both columns having the same size.
Is this possible?

-- 
Cecil Westerhof
___
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] Centering text on the width of the page when using \startfiguretext

2011-08-03 Thread Cecil Westerhof
I am converting my CV to ConTeXt. Simplified I have the folowing in it:
\startfiguretext[right]{none}{\externalfigure[graphics/pasfotoKlein]}
  \startalignment[center]
E-mail: ce...@decebal.nl

Woonplaats: Werkhoven

Geboren: 15 april 1963 te Belleville Ontario (Can.)

Nationaliteit: Nederlandse, tevens Canadese

Geslacht: Man

Burgerlijke staat: ongehuwd

LinkedIn profiel: http://www.linkedin.com/in/cecilwesterhof
  \stopalignment
\stopfiguretext

This centers the text on the space leftover after placing my photo. But I
would like the text to be centered on the width of the page, without taking
into consideration the space the photo takes up. How would I do that?

-- 
Cecil Westerhof
___
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] A couple of setupcaptions questions

2011-08-03 Thread Jean Magnan de Bornier
Le 03 août à 08:29:55 Jean Magnan de Bornier  écrit 
notamment:

| No; here is where I stand after some more trial and errors:
|  - On my small testfile when adding chapters and sections I get a prefix 
(section
|  number); however I want the chapter number as prefix, which is the
|  standard practice and I don't see how to do that with mkiv (obviously it
|  is doable...)

\setupcaptions[way=bysection,prefixsegments=chapter] works as expected!

bye,
-- 
Jean
___
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
___