[NTG-context] page breaks before titles

2015-03-06 Thread mf
Hello,
I'm trying to typeset a book made of letters with ConTeXt.
Every letter has a title a subtitle and a date, before it
starts with "Dear ..."
Like this:
-
  Title
 subtitle
where, when
Dear ...,
the rest of the letter
... 
-

The letters are very different in length -- some are long,
some are made of a couple of lines --, so I'd like to
typeset them continuously, without skipping to a new page
every new letter (\setuphead[LetterTitle][page=no]).

This way a letter could finish beyond the half of a page,
and the next one could have no space left to get the part
from Title to the first lines of the body on the same page.

That's why I disabled page breaks from Title to the first
paragraph after "Dear ...": it would be ugly having only
the title in one page and the rest in the next ones.

But there's a side effect: the title of the new letter
"pulls" the last two lines (the penalties are set to avoid
one-line widows) of the previous letter to the new page,
even when there's room for them on the previous page.
In this case I would like ConTeXt to break the page at
the end of the previous letter, before the next letter title.
That's why I've set 
  before={\blank[2*line]\page[preference]} 
in LetterTitle. But it does not work.
Example:
 -   -
 text of the previoustext of the previous 
 letter with room to be  letter with room to be
 all typeset hereall typeset here
page 11  last two lines of the
 [room for >2 lines] the previous letter

page break---   ==>  ---
 last two lines of the Title
 the previous letter subtitle
 ...
page 12   Title
subtitle 
 ...

 

Is there a way to know the vertical location where the
previous letter ends, to decide whether to skip to a new
page?

Thanks in advance,
Massi



___
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] paragraph footnotes line height

2015-03-06 Thread mf
Hello,
I'd like to know how I can set the line height of paragraph footnotes.
They get the line height set with \setupinterlinespace, whether I use
the grid or not.
Here's my configuration:

\setupnotation[footnote][
  alternative=serried,
  numbercommand=,
  numberstopper=,
  numbercommand=\high,
  numberconversion=a,
  way=bypage,
  width=0pt,
  location=page
]
\setupnote[footnote][
  paragraph=yes,
  inbetween= \emdash{} ,
  location=page
]

Thanks,
Massi

___
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] bug in \setupsectionblock and page={yes, blank}

2015-03-06 Thread Pablo Rodriguez
Dear list,

I have just discovered a weird issue:

\setuppapersize[A6]
\setupsectionblock[frontpart][page={yes, blank}]
\setupsectionblock[bodypart] [page={yes, header, footer}]
\setupsectionblock[backpart] [page={yes, blank}]
\starttext
\startfrontmatter
\dorecurse{2}{\chapter{Front Matter}\input knuth}
\stopfrontmatter
\startbodymatter
\dorecurse{2}{\chapter{Body Matter}\input knuth}
\stopbodymatter
\startbackmatter
\dorecurse{2}{\chapter{Back Matter}\input knuth}
\stopbackmatter
\stoptext

Page number is removed from the first chapter after the sectionblock
when the page={yes, blank} is used.

Page numbers are kept with page={yes, header, footer}.

Is this ia bug or is it intended?

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Change the dots of the macro \periods[n]

2015-03-06 Thread Hans Hagen

On 3/6/2015 8:18 PM, Wolfgang Schuster wrote:



Am 06.03.2015 um 20:02 schrieb Hans Hagen :

On 3/6/2015 6:42 PM, Fabrice Couvreur wrote:


Hi,
Is it possible to change the shape of the dots of macro \periods[n] to
be like the dots of macro \definefiller[dots][left=\dontleavehmode,
right=\hskip\ZeroPoint\par] ?


% in cont-new.mkiv :

\unprotect

\def\periodsymbol  {.}

\unexpanded\def\enco_periods[#1]%
  {\dontleavehmode
   \hbox\bgroup
   \enco_periods_indeed[#1,\periodsymbol,]}

\unexpanded\def\enco_periods_indeed[#1,#2,#3]%
  {\setbox\scratchbox\hbox to \periodswidth{\hss#2\hss}%
   \dorecurse{\iffirstargument#1\else\periodsdefault\fi}{\copy\scratchbox}%
   \egroup}

\protect

test:

\starttext
\startlines
x\periods x
x\periods[10]x
x\periods[10,{,}]x
x\periods[10,{!}]x
\stoplines
\stoptext


Why the weird syntax, something like \periods[n=10,symbol=!] would fit better.


ok, i'll make a nice one then

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] Change the dots of the macro \periods[n]

2015-03-06 Thread Wolfgang Schuster

> Am 06.03.2015 um 20:02 schrieb Hans Hagen :
> 
> On 3/6/2015 6:42 PM, Fabrice Couvreur wrote:
>> 
>> Hi,
>> Is it possible to change the shape of the dots of macro \periods[n] to
>> be like the dots of macro \definefiller[dots][left=\dontleavehmode,
>> right=\hskip\ZeroPoint\par] ?
> 
> % in cont-new.mkiv :
> 
> \unprotect
> 
> \def\periodsymbol  {.}
> 
> \unexpanded\def\enco_periods[#1]%
>  {\dontleavehmode
>   \hbox\bgroup
>   \enco_periods_indeed[#1,\periodsymbol,]}
> 
> \unexpanded\def\enco_periods_indeed[#1,#2,#3]%
>  {\setbox\scratchbox\hbox to \periodswidth{\hss#2\hss}%
>   \dorecurse{\iffirstargument#1\else\periodsdefault\fi}{\copy\scratchbox}%
>   \egroup}
> 
> \protect
> 
> test:
> 
> \starttext
>\startlines
>x\periods x
>x\periods[10]x
>x\periods[10,{,}]x
>x\periods[10,{!}]x
>\stoplines
> \stoptext

Why the weird syntax, something like \periods[n=10,symbol=!] would fit better.

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] Change the dots of the macro \periods[n]

2015-03-06 Thread Hans Hagen

On 3/6/2015 6:42 PM, Fabrice Couvreur wrote:


Hi,
Is it possible to change the shape of the dots of macro \periods[n] to
be like the dots of macro \definefiller[dots][left=\dontleavehmode,
right=\hskip\ZeroPoint\par] ?


% in cont-new.mkiv :

\unprotect

\def\periodsymbol  {.}

\unexpanded\def\enco_periods[#1]%
  {\dontleavehmode
   \hbox\bgroup
   \enco_periods_indeed[#1,\periodsymbol,]}

\unexpanded\def\enco_periods_indeed[#1,#2,#3]%
  {\setbox\scratchbox\hbox to \periodswidth{\hss#2\hss}%
   \dorecurse{\iffirstargument#1\else\periodsdefault\fi}{\copy\scratchbox}%
   \egroup}

\protect

test:

\starttext
\startlines
x\periods x
x\periods[10]x
x\periods[10,{,}]x
x\periods[10,{!}]x
\stoplines
\stoptext


-
  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] Change the dots of the macro \periods[n]

2015-03-06 Thread Wolfgang Schuster

> Am 06.03.2015 um 18:42 schrieb Fabrice Couvreur :
> 
> 
> Hi,
> Is it possible to change the shape of the dots of  macro \periods[n] to be 
> like the dots of  macro \definefiller[dots][left=\dontleavehmode, 
> right=\hskip\ZeroPoint\par] ?


You can change the width of each period with the \periodswidth commands.

\starttext

\periods \quad {\def\periodswidth{0.25em}\periods}

\periods \quad {\def\periodswidth{0.50em}\periods}

\periods \quad {\def\periodswidth{0.75em}\periods}

\periods \quad {\def\periodswidth{1.00em}\periods}

\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] Add labels to a grid (Metafun)

2015-03-06 Thread Fabrice
thank you very much Alain, I think I understood for the format "@d" but 
for other formats, I will need documentation.

Fabrice

\definecolor[mycolor][c=.4,m=0,y=0,k=0]

\starttext
\start
\switchtobodyfont[small]
\startMPcode
 xmin := 0; xmax := 22; ymax :=460 ;ymin:=0; u := 0.5cm; v:= 0.025cm;
 drawoptions(withpen pencircle scaled 0.5pt withcolor 
\MPcolor{mycolor});

 draw hlingrid(ymin,ymax,20,11.5cm,11cm);
 draw vlingrid(xmin,xmax,2,11cm,11.5cm);
 drawoptions(withpen pencircle scaled 1pt) ;
 drawarrow (0,0)--(22,0) scaled u ;
 drawarrow (0,0)--(0,460) scaled v ;
 draw vlintext(0,20,2,10cm,"@d") shifted (0,-0.25cm) ;
 draw hlintext(0,420,20,11cm,"@d") shifted (-0.35cm,0) ;
 label.bot( "$x$",(10.8cm,-0.1cm)) ;
 label.lft( "$y$",(-0.1cm,11.4cm)) ;
\stopMPcode
\stop
\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
___

[NTG-context] Change the dots of the macro \periods[n]

2015-03-06 Thread Fabrice Couvreur
Hi,
Is it possible to change the shape of the dots of  macro \periods[n] to be like
the dots of  macro \definefiller[dots][left=\dontleavehmode, right=\hskip\
ZeroPoint\par] ?
Best regards,
Fabrice
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Add labels to a grid (Metafun)

2015-03-06 Thread Alan BRASLAU
On Fri, 6 Mar 2015 18:15:09 +0100
Fabrice Couvreur  wrote:

> To add labels to a grid, Hans wrote a macro hlintext (Min, Max, Step,
> Lenght, Format). I do not know what to put in "Format".

it is a string format specifier such as "%g", "%f", "%d", ...
Since the % can sometimes cause problems being interpreted as a comment
character, it is usually replaced in Metafun by @, as in "@g".

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

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

[NTG-context] Add labels to a grid (Metafun)

2015-03-06 Thread Fabrice Couvreur
To add labels to a grid, Hans wrote a macro hlintext (Min, Max, Step, Lenght
, Format). I do not know what to put in "Format".
Best regards,
Fabrice

\definecolor[mycolor][c=.4,m=0,y=0,k=0]
\starttext
\start
\switchtobodyfont[small]
\startMPcode
 input tex;
 numeric xmin, xmax, ymin, ymax;
 xmin := 0; xmax := 22; ymax :=460 ;ymin:=0; u := 0.5cm; v:= 0.025cm;
 drawoptions(withpen pencircle scaled 0.5pt withcolor
\MPcolor{mycolor});
 draw hlingrid(ymin,ymax,20,11.5cm,11cm);
 draw vlingrid(xmin,xmax,2,11cm,11.5cm);
 drawoptions(withpen pencircle scaled 1pt) ;
 drawarrow (0,0)--(22,0) scaled u ;
 drawarrow (0,0)--(0,460) scaled v ;
 for i=0 step 2 until 20 :
label.bot(TEX("$"&decimal(i)&"$"),(i,0)*u);
 endfor;
 for i=0 step 20 until 440:
label.lft(TEX("$"&decimal(i)&"$"),(0,i)*v);
  endfor;
 label.bot( "$x$",(10.8cm,-0.1cm)) ;
 label.rt( "$y$",(0.1cm,11.3cm)) ;

\stopMPcode
\stop
\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] Using the standalone ConTeXt, how do I add access to my texmf-local tree

2015-03-06 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

On Fri, 06 Mar 2015 14:45:44 +0100, Hans Hagen  wrote:


On 3/6/2015 1:08 PM, Procházka Lukáš Ing. - Pontex s. r. o. wrote:

Thanks for explanation, I didn't know about that...


i guess that there is a lot of stuff deep down only a few people know
about (this is typical needed for more complex workflows) ... when i run
into them i'll try to document them in 'workflows' but suggestions are
welcome


one "all-embracing" though "non-final" manual (even pasted together from 
various fragments) would be welcome;
and is asked here in the forum from time to time (especially by newbies who 
suppose such document must exist).


(right now Alan is updating the new publications manual which will have
some 8000 pages of tricky details and hidden features that we forget
about as soon as we've added them)


Comparing with the last (AutoCAD) manual I bought:
such Ctx manual in printed version would give 8 volumes with 1000 pages;
each volume 50 mm thick, on a thinner paper, onto 180 x 240 mm page size.

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 241 096 751
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] Using the standalone ConTeXt, how do I add access to my texmf-local tree

2015-03-06 Thread Hans Hagen

On 3/6/2015 1:08 PM, Procházka Lukáš Ing. - Pontex s. r. o. wrote:

Thanks for explanation, I didn't know about that...


i guess that there is a lot of stuff deep down only a few people know 
about (this is typical needed for more complex workflows) ... when i run 
into them i'll try to document them in 'workflows' but suggestions are 
welcome


(right now Alan is updating the new publications manual which will have 
some 8000 pages of tricky details and hidden features that we forget 
about as soon as we've added them)



Lukas


On Fri, 06 Mar 2015 10:52:47 +0100, Hans Hagen  wrote:


On 3/6/2015 9:22 AM, Procházka Lukáš Ing. - Pontex s. r. o. wrote:

Hello,

when you want to use your personal (additional) path (but apparently not
a tree), e.g. for styles (environments), you can use --path switch:

"
context.exe --path=c:\MyDirectory\MyContextStyles MyFile.tex
"

(Source: "context.exe --help")

(Once I tried also:

"
set TeXMFLocal=c:\MyName\MyContextStyles & context.exe MyFile.tex
"

but ConTeXt doesn't look for TeXMFLocal nor TeXMF-Local environment
paths, as I believed.)

I didn't test whether
"--path=c:\MyDirectory\MyContextStyles/" or
"--path=c:\MyDirectory\MyContextStyles//" or
"--path=c:\MyDirectory\MyContextStyles/*" or
"--path=c:\MyDirectory\MyContextStyles/**"
causes Ctx to use the whole tree instead of one path.


why should it ... a path is a path unless specified otherwise

we have a runtime tree search with:

   context --path=tree://e:/tmp/whatever/**/ --global somefile.tex

which is quite ok for jobs that involve not that many files

and a cached-across-jobs search with

   context --path=dirfile://e:/tmp/whatever --global somefile.tex

(in that case you need to delete dirlist.tuc in the given path when you
add or remove files)

the second one we use here in automated runs on servers where books are
generated from thousands of small files sitting on an nfs share and this
speeds up the search

the --global bypasses the check for a valid file

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
___







--

-
  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] Using the standalone ConTeXt, how do I add access to my texmf-local tree

2015-03-06 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Thanks for explanation, I didn't know about that...

Lukas


On Fri, 06 Mar 2015 10:52:47 +0100, Hans Hagen  wrote:


On 3/6/2015 9:22 AM, Procházka Lukáš Ing. - Pontex s. r. o. wrote:

Hello,

when you want to use your personal (additional) path (but apparently not
a tree), e.g. for styles (environments), you can use --path switch:

"
context.exe --path=c:\MyDirectory\MyContextStyles MyFile.tex
"

(Source: "context.exe --help")

(Once I tried also:

"
set TeXMFLocal=c:\MyName\MyContextStyles & context.exe MyFile.tex
"

but ConTeXt doesn't look for TeXMFLocal nor TeXMF-Local environment
paths, as I believed.)

I didn't test whether
"--path=c:\MyDirectory\MyContextStyles/" or
"--path=c:\MyDirectory\MyContextStyles//" or
"--path=c:\MyDirectory\MyContextStyles/*" or
"--path=c:\MyDirectory\MyContextStyles/**"
causes Ctx to use the whole tree instead of one path.


why should it ... a path is a path unless specified otherwise

we have a runtime tree search with:

   context --path=tree://e:/tmp/whatever/**/ --global somefile.tex

which is quite ok for jobs that involve not that many files

and a cached-across-jobs search with

   context --path=dirfile://e:/tmp/whatever --global somefile.tex

(in that case you need to delete dirlist.tuc in the given path when you
add or remove files)

the second one we use here in automated runs on servers where books are
generated from thousands of small files sitting on an nfs share and this
speeds up the search

the --global bypasses the check for a valid file

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
___



--
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 241 096 751
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] Using the standalone ConTeXt, how do I add access to my texmf-local tree

2015-03-06 Thread Hans Hagen

On 3/6/2015 10:52 AM, Hans Hagen wrote:


we have a runtime tree search with:

   context --path=tree://e:/tmp/whatever/**/ --global somefile.tex

which is quite ok for jobs that involve not that many files

and a cached-across-jobs search with

   context --path=dirfile://e:/tmp/whatever --global somefile.tex

(in that case you need to delete dirlist.tuc in the given path when you
add or remove files)

the second one we use here in automated runs on servers where books are
generated from thousands of small files sitting on an nfs share and this
speeds up the search

the --global bypasses the check for a valid file


btw, this is explained in the recent workflow manual

-
  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] Using the standalone ConTeXt, how do I add access to my texmf-local tree

2015-03-06 Thread Hans Hagen

On 3/6/2015 9:22 AM, Procházka Lukáš Ing. - Pontex s. r. o. wrote:

Hello,

when you want to use your personal (additional) path (but apparently not
a tree), e.g. for styles (environments), you can use --path switch:

"
context.exe --path=c:\MyDirectory\MyContextStyles MyFile.tex
"

(Source: "context.exe --help")

(Once I tried also:

"
set TeXMFLocal=c:\MyName\MyContextStyles & context.exe MyFile.tex
"

but ConTeXt doesn't look for TeXMFLocal nor TeXMF-Local environment
paths, as I believed.)

I didn't test whether
"--path=c:\MyDirectory\MyContextStyles/" or
"--path=c:\MyDirectory\MyContextStyles//" or
"--path=c:\MyDirectory\MyContextStyles/*" or
"--path=c:\MyDirectory\MyContextStyles/**"
causes Ctx to use the whole tree instead of one path.


why should it ... a path is a path unless specified otherwise

we have a runtime tree search with:

  context --path=tree://e:/tmp/whatever/**/ --global somefile.tex

which is quite ok for jobs that involve not that many files

and a cached-across-jobs search with

  context --path=dirfile://e:/tmp/whatever --global somefile.tex

(in that case you need to delete dirlist.tuc in the given path when you 
add or remove files)


the second one we use here in automated runs on servers where books are 
generated from thousands of small files sitting on an nfs share and this 
speeds up the search


the --global bypasses the check for a valid file

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] Using the standalone ConTeXt, how do I add access to my texmf-local tree

2015-03-06 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

when you want to use your personal (additional) path (but apparently not a 
tree), e.g. for styles (environments), you can use --path switch:

"
context.exe --path=c:\MyDirectory\MyContextStyles MyFile.tex
"

(Source: "context.exe --help")

(Once I tried also:

"
set TeXMFLocal=c:\MyName\MyContextStyles & context.exe MyFile.tex
"

but ConTeXt doesn't look for TeXMFLocal nor TeXMF-Local environment paths, as I 
believed.)

I didn't test whether
"--path=c:\MyDirectory\MyContextStyles/" or
"--path=c:\MyDirectory\MyContextStyles//" or
"--path=c:\MyDirectory\MyContextStyles/*" or
"--path=c:\MyDirectory\MyContextStyles/**"
causes Ctx to use the whole tree instead of one path.

Best regards,

Lukas



texmfcnf.lua (can be in your texmf-local tree) or the TEXMF env var; not
so different from regular texlive, only in a different configuration file



--
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 241 096 751
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
___