Re: [NTG-context] Completelistoffigures, help needed!

2007-09-30 Thread G.C.H.M. Verhaag
Peter Rolf wrote:

.
  

http://wiki.contextgarden.net/Cropping_text

Best wishes, Peter
.


The link to the wiki gives indeed a clear description of the cropping 
feature. Just great, it works nicely when applying it to my list of 
figures! Thanks for your help!

Regards,
Gerard

-- 
Geert C.H.M. Verhaag
St. Jorisstraat 29
5954 AN Beesel
NETHERLANDS

Tel.: +31-(0)774742493, E-mail: [EMAIL PROTECTED]



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


[NTG-context] Page numbers at empty pages and then empty header

2007-09-30 Thread Gerhard Kugler
Hi

in a thread Page numbers at empty pages in the beginning of
September I got a solution for the empty pages. But if I want empty
headers at the beginning of the chapter it does not function:

\setuphead[chapter][header=empty]

\setuphead
  [chapter]
  [page=yes,
before={\ifodd\realpageno\else\page[empty]\fi}]

How can I combine these two options?

Gerhard

-- 
Gerhard Kugler
Psychotherapeut
Bensheim (Germany)
http://www.psychotherapie-kugler.de
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] numbered subitems

2007-09-30 Thread Alan Bowen

I need to produce an lengthy itemization of the form:
1.
1.1 
1.2 
2.
2.1 

I can get:
1.
1 
2 
2.
1 
easily enough, but how can I get the main division number to repeat  
in the subitem numeration?


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


Re: [NTG-context] numbered subitems

2007-09-30 Thread Wolfgang Schuster
2007/9/30, Alan Bowen [EMAIL PROTECTED]:
 I need to produce an lengthy itemization of the form:
 1.
  1.1 
  1.2 
 2.
  2.1 

 I can get:
 1.
  1 
  2 
 2.
  1 
 easily enough, but how can I get the main division number to repeat in the
 subitem numeration?

 Alan

\def\firstlevelnumber#1{\xdef\thefirstlevelnumber{#1}#1}
\defineconversion[firstlevelnumber][\firstlevelnumber]

\def\secondlevelnumber#1{\thefirstlevelnumber.#1}
\defineconversion[secondlevelnumber][\secondlevelnumber]

\starttext
\startitemize[firstlevelnumber]
\item 
  \startitemize[secondlevelnumber]
  \item 
  \item 
  \stopitemize
\item 
  \startitemize[secondlevelnumber]
  \item 
  \item 
  \stopitemize
\stopitemize
\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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] numbered subitems

2007-09-30 Thread Aditya Mahajan
On Sun, 30 Sep 2007, Alan Bowen wrote:

 I need to produce an lengthy itemization of the form:
 1.
   1.1 
   1.2 
 2.
   2.1 

 I can get:
 1.
   1 
   2 
 2.
   1 
 easily enough, but how can I get the main division number to repeat in the 
 subitem numeration?


From core-itm.tex

% \startbuffer
% \item
%   \startitemize[n]
%   \item item 1.1
%   \item item 1.2
%   \startitemize[n] \item item 1.2.1 \item item 1.2.2 \stopitemize
%   \item item 1.3
%   \stopitemize
% \item
%   \startitemize[n] \item item 2.1 \item item 2.2 \stopitemize
% \item item 3
%   \startitemize[n] \item item 3.1 \item item 3.2 \stopitemize
% \item
%   \startitemize[n] \item item 4.1 \item item 4.2 \stopitemize
% \stopbuffer
%
% \startitemize[n,repeat,6*broad,packed] \getbuffer \stopitemize 
\blank[3*big]
% \startitemize[n,repeat,packed] \getbuffer \stopitemize 
\blank[3*big]
% \setupitemize[each][atmargin][width=3em]
% \startitemize[n,repeat,packed] \getbuffer \stopitemize

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


Re: [NTG-context] still waiting for mswincontext

2007-09-30 Thread Joel C. Salomon
On 9/26/07, Hans Hagen [EMAIL PROTECTED] wrote:
  1) Why we need to set almost all in setuptex.bat, while the same vars 
  (except Windows' PATH) are already set in texmf.cnf?

 well, this is not recent, but has aways been the case; in setuptex i
 make sure that no conflicts can arise between different trees; so one
 can have multiple trees installed, without clashed; you don't wanna know
 what can happen (and how much time it costs to find out and fix) if some
 installer has set variables at the outer shell level; i just don't want
 to take any risk here

So what environment variables can I set globally to avoid the need for
running setuptex.bat?  My first guess is:

OSFONTDIR=%SystemRoot%\fonts
SETUPTEX=done
CTXMINIMAL=yes

TEXPATH=C:\...whatever the path is...\context\tex\
TEXMFMAIN=%TEXPATH%\texmf

TEXMFOS=%TEXPATH%\texmf-mswin
TEXMFPROJECT=%TEXPATH%\texmf-project
TEXMFFONTS=%TEXPATH%\texmf-fonts
TEXMFLOCAL=%TEXPATH%\texmf-local
TEXMFEXTRA=%TEXPATH%\texmf-extra

TEXMFCNF=%TEXPATH%\texmf{-local,}\web2c
TEXPOOL=%TEXMFOS%/web2c\{$engine,}
TEXFORMATS=%TEXMFOS%\web2c\{$engine,}
MPMEMS=%TEXMFOS%\web2c\{$engine,}
MPPOOL=%TEXMFOS%\web2c\{$engine,}

Path=%TEXMFOS%\BIN;%Path%

TEXMFCACHE=%TEMP%
VARTEXMF=%TEXMFCACHE%\texmf-var

TEXMF={$TEXMFOS,$TEXMFPROJECT,$TEXMFFONTS,$TEXMFLOCAL,$TEXMFEXTRA,!!$TEXMFMAIN}
TEXMFDBS=$TEXMF


RUBYLIB=%TEXMFLOCAL%\SCRIPTS\CONTEXT\RUBY;
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] still waiting for mswincontext

2007-09-30 Thread Hans Hagen
Joel C. Salomon wrote:
 On 9/26/07, Hans Hagen [EMAIL PROTECTED] wrote:
 1) Why we need to set almost all in setuptex.bat, while the same vars 
 (except Windows' PATH) are already set in texmf.cnf?
 well, this is not recent, but has aways been the case; in setuptex i
 make sure that no conflicts can arise between different trees; so one
 can have multiple trees installed, without clashed; you don't wanna know
 what can happen (and how much time it costs to find out and fix) if some
 installer has set variables at the outer shell level; i just don't want
 to take any risk here
 
 So what environment variables can I set globally to avoid the need for
 running setuptex.bat?  My first guess is:
 
 OSFONTDIR=%SystemRoot%\fonts

if you want to use platform fonts indeed

 SETUPTEX=done
 CTXMINIMAL=yes

not if setuptex is not used


 TEXPATH=C:\...whatever the path is...\context\tex\
 TEXMFMAIN=%TEXPATH%\texmf
 
 TEXMFOS=%TEXPATH%\texmf-mswin
 TEXMFPROJECT=%TEXPATH%\texmf-project
 TEXMFFONTS=%TEXPATH%\texmf-fonts
 TEXMFLOCAL=%TEXPATH%\texmf-local
 TEXMFEXTRA=%TEXPATH%\texmf-extra

depends on your trees

 TEXMFCNF=%TEXPATH%\texmf{-local,}\web2c

handy indeed

 TEXPOOL=%TEXMFOS%/web2c\{$engine,}

not for luatex/xetex

 TEXFORMATS=%TEXMFOS%\web2c\{$engine,}

not for luatex

 MPMEMS=%TEXMFOS%\web2c\{$engine,}

depends

 MPPOOL=%TEXMFOS%\web2c\{$engine,}

not needed any more

 Path=%TEXMFOS%\BIN;%Path%

sure

 TEXMFCACHE=%TEMP%

yes or use the defaults

 VARTEXMF=%TEXMFCACHE%\texmf-var

not really used

 TEXMF={$TEXMFOS,$TEXMFPROJECT,$TEXMFFONTS,$TEXMFLOCAL,$TEXMFEXTRA,!!$TEXMFMAIN}

yes

 TEXMFDBS=$TEXMF

dependes on kpse version i think

 
 RUBYLIB=%TEXMFLOCAL%\SCRIPTS\CONTEXT\RUBY;

often not needed

-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] numbered subitems

2007-09-30 Thread Alan Bowen
Thanks, Wolfgang. This is good start. The problem now is that
with
\def\firstlevelnumber#1{\xdef\thefirstlevelnumber{#1}#1}
\defineconversion[firstlevelnumber][\firstlevelnumber]

\def\secondlevelnumber#1{\thefirstlevelnumber.#1}
\defineconversion[secondlevelnumber][\secondlevelnumber]

\starttext
\setupitemize[n,packed,joinedup,serried]
\startitemize[ firstlevelnumber]
\item item 1
   \startitemize[secondlevelnumber]
 \item item 1.1
\item item 1.2
\item item 1.3
   \stopitemize
\item item 2
   \startitemize[secondlevelnumber]
\item  item 2.1
\item  item 2.2
\item{ item 2.3
\stopitemize
\item item 3
\startitemize[secondlevelnumber]
  \item item 3.1
\item item 3.2
   \stopitemize
\stopitemize

• the subitem numeration ends with a full stop which I am unable to  
remove using stopper=0. (Inserting it in the second level  
\setupitemize ruins the numeration
• the subitem text is smashed against the numeration

All best, Alan

On Sep 30, 2007, at 12:11 PM, Wolfgang Schuster wrote:

 2007/9/30, Alan Bowen [EMAIL PROTECTED]:
 I need to produce an lengthy itemization of the form:
 1.
  1.1 
  1.2 
 2.
  2.1 

 I can get:
 1.
  1 
  2 
 2.
  1 
 easily enough, but how can I get the main division number to  
 repeat in the
 subitem numeration?

 Alan

 \def\firstlevelnumber#1{\xdef\thefirstlevelnumber{#1}#1}
 \defineconversion[firstlevelnumber][\firstlevelnumber]

 \def\secondlevelnumber#1{\thefirstlevelnumber.#1}
 \defineconversion[secondlevelnumber][\secondlevelnumber]

 \starttext
 \startitemize[firstlevelnumber]
 \item 
   \startitemize[secondlevelnumber]
   \item 
   \item 
   \stopitemize
 \item 
   \startitemize[secondlevelnumber]
   \item 
   \item 
   \stopitemize
 \stopitemize
 \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  : https://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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] numbered subitems

2007-09-30 Thread Alan Bowen

Thanks, Aditya, I have adapted this as follows—
\startbuffer
\item item 1
\startitemize[n,stopper={},width=1em]
\item item 1.1
   \item item 1.2
   \item item 1.3
\stopitemize
\item item 2
 \startitemize[n,stopper={},width=1em]
  \item item 2.1
   \item  item 2.2
   \item item 2.3
  \stopitemize
\item item 3
\startitemize[n,stopper={},width=1em]
   \item  item 3.1
   \item  item 3.2
  \stopitemize
\stopbuffer
%
\setupitemize[n,serried,packed,joinedup]
\startitemize[repeat]\getbuffer\stopitemize

and everything works, except that I cannot seems get the subitems  
indented. Right now they fall directly beneath the main items.


All best, Alan




On Sep 30, 2007, at 12:28 PM, Aditya Mahajan wrote:


On Sun, 30 Sep 2007, Alan Bowen wrote:


I need to produce an lengthy itemization of the form:
1.
1.1 
1.2 
2.
2.1 

I can get:
1.
1 
2 
2.
1 
easily enough, but how can I get the main division number to  
repeat in the

subitem numeration?




From core-itm.tex


% \startbuffer
% \item
%   \startitemize[n]
%   \item item 1.1
%   \item item 1.2
%   \startitemize[n] \item item 1.2.1 \item item 1.2.2 \stopitemize
%   \item item 1.3
%   \stopitemize
% \item
%   \startitemize[n] \item item 2.1 \item item 2.2 \stopitemize
% \item item 3
%   \startitemize[n] \item item 3.1 \item item 3.2 \stopitemize
% \item
%   \startitemize[n] \item item 4.1 \item item 4.2 \stopitemize
% \stopbuffer
%
% \startitemize[n,repeat,6*broad,packed] \getbuffer \stopitemize
\blank[3*big]
% \startitemize[n,repeat,packed] \getbuffer \stopitemize
\blank[3*big]
% \setupitemize[each][atmargin][width=3em]
% \startitemize[n,repeat,packed] \getbuffer \stopitemize

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


Re: [NTG-context] still waiting for mswincontext

2007-09-30 Thread Vyatcheslav Yatskovsky
Hello,

 So what environment variables can I set globally to avoid the need for
 running setuptex.bat? 

Personally I came to the following set of vars (for luatex):

PATH = G:\rsync\windows\texmf-mswin\bin;
OSFONTDIR = %WINDIR%\Fonts
TEXMF = {g:\rsync\windows\texmf,g:\rsync\windows\texmf-local}
TEXMFCACHE = %WINDIR%\Temp
TEXMFCNF = G:\rsync\windows\texmf{-local,}/web2c
LUAINPUTS = .;$TEXMF/tex/context/base;$TEXMF/scripts/context/lua

I use this set at the moment and luatex works (though, I use little features).

Best regards,
Vyatcheslav

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


Re: [NTG-context] still waiting for mswincontext

2007-09-30 Thread Joel C. Salomon
On 9/30/07, Hans Hagen [EMAIL PROTECTED] wrote:
  So what environment variables can I set globally to avoid the need for
  running setuptex.bat?  My first guess is:
snip
  SETUPTEX=done
  CTXMINIMAL=yes

 not if setuptex is not used

CTXMINIMAL is also not needed?

  TEXPATH=C:\...whatever the path is...\context\tex\
  TEXMFMAIN=%TEXPATH%\texmf
 
  TEXMFOS=%TEXPATH%\texmf-mswin
  TEXMFPROJECT=%TEXPATH%\texmf-project
  TEXMFFONTS=%TEXPATH%\texmf-fonts
  TEXMFLOCAL=%TEXPATH%\texmf-local
  TEXMFEXTRA=%TEXPATH%\texmf-extra

 depends on your trees

Using the directory tree as stored in mswincontext as my starting point.

  TEXPOOL=%TEXMFOS%/web2c\{$engine,}

 not for luatex/xetex

  TEXFORMATS=%TEXMFOS%\web2c\{$engine,}

 not for luatex

  MPMEMS=%TEXMFOS%\web2c\{$engine,}

 depends

  MPPOOL=%TEXMFOS%\web2c\{$engine,}

 not needed any more

But setuptex still sets these.  What does it mean, that TEXPOOL al.
aren't needed for luatex/xetex?  Does MKII need them?

  TEXMF={$TEXMFOS,$TEXMFPROJECT,$TEXMFFONTS,$TEXMFLOCAL,$TEXMFEXTRA,!!$TEXMFMAIN}

 yes

  TEXMFDBS=$TEXMF

 dependes on kpse version i think

I've been using %var% notation for parts that Windows expands when the
variable is defined, but I see UNIX-style $var here and there.  Should
these be expanded at define-time also, or are these for the programs
that use them to understand?

I've got Perl, Python, and Ruby installed,  I'm using mswincontext
and upgrades thereto as the only TeX distribution on the machine; I'd
like it to work as smoothly as MiKTeX does where it's installed --
i.e., replace setuptex with a machine-global set-up.  And I'm willing
to jump through some hoops to find the right way so installation can
be made easier for others

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


Re: [NTG-context] still waiting for mswincontext

2007-09-30 Thread Hans Hagen
Joel C. Salomon wrote:

 CTXMINIMAL is also not needed?

depends on if it used, not if you go real minimal (more for calling scripts)

 But setuptex still sets these.  What does it mean, that TEXPOOL al.
 aren't needed for luatex/xetex?  Does MKII need them?

not related to mkiv/mkii but to engines ... liatex has no pool file, 
xetex neither, pdftex soon will have no pool file and modern metaposts 
also lacks such a file


 I've been using %var% notation for parts that Windows expands when the
 variable is defined, but I see UNIX-style $var here and there.  Should
 these be expanded at define-time also, or are these for the programs
 that use them to understand?

$whatever is kpse syntax (which is some derivate to unix scripting)

anyhow. %whatever% will be xpanded by the env var handler, and $whatever 
not, (on linux it may expand depending on escaping

Hans

-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] numbered subitems

2007-09-30 Thread Aditya Mahajan
On Sun, 30 Sep 2007, Alan Bowen wrote:

 Thanks, Aditya, I have adapted this as follows—
 \startbuffer
 \item item 1
   \startitemize[n,stopper={},width=1em]
   \item item 1.1
  \item item 1.2
  \item item 1.3
   \stopitemize
 \item item 2
\startitemize[n,stopper={},width=1em]
 \item item 2.1
  \item  item 2.2
  \item item 2.3
 \stopitemize
 \item item 3
   \startitemize[n,stopper={},width=1em]
  \item  item 3.1
  \item  item 3.2
 \stopitemize
 \stopbuffer
 %
 \setupitemize[n,serried,packed,joinedup]
 \startitemize[repeat,4*borad]\getbuffer\stopitemize
^^^
(add this)

 and everything works, except that I cannot seems get the subitems indented. 
 Right now they fall directly beneath the main items.

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


Re: [NTG-context] still waiting for mswincontext

2007-09-30 Thread Joel C. Salomon
So, to sum up: The tex engines should be accessible via PATH,
OSFONTDIR is really handy; other than that only TEXPATH and TEXMF* are
needed, since pool files (whatever they are) are on the way out.

Seems straightforward enough, if that's complete.

Is there any real point to creating an NSIS or Inno Setup install
program for mswincontext, or is someone working onthat already?  They
both handle environment variables nicely, I've heard.

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