Re: [NTG-context] Conditional keep-with-next rules

2014-06-28 Thread Jan Tosovsky
On 2014-06-27 Jan Tosovsky wrote:
 Dear All,
 
 in my index I can see disturbing page breaks.
 
 primary-01
 primary-02
secondary-01
 --- ( next page ) -
secondary-02
 primary-03
 
 instead of
 
 primary-01
 --- ( next page ) -
 primary-02
secondary-01
secondary-02
 primary-03
 
 Is it possible to somehow define conditional keep-with-next rules?
 
 I'd like to express:
 (1) keep always the primary with the first secondary (this seems to be
 implemented)
 (2) keep always the first secondary with the next secondary
 (3) keep always the last secondary with the previous secondary
 
 And similarly for tertiary.

In XSL-FO all these can be set quite easily using keep-with-next/previous
rules placed on first and last items. The complexity behind is left to
XSL-FO processors. 

primary-01 % keep-with-previous  keep-with-next (rules 1  2)
primary-02 
secondary-01 % keep-with-previous  keep-with-next (rules 1  2)
secondary-02
secondary-03
secondary-04 % keep-with-previous (rule 3)
primary-03 % keep-with-previous (rule 3)

The only natural break is between secondaries: 

primary-01
primary-02 
secondary-01
secondary-02
 ( break ) ---
secondary-03
secondary-04
primary-03

In case of three secondaries all is kept together and moved to the next page
as a whole:
primary-01
primary-02 
secondary-01
secondary-03
secondary-04
primary-03

Only if a large block doesn't fit the page, it is somehow broken.

I've investigated several TeX resources but I still cannot find any
convenient solution.

I've found related thread at
http://tex.stackexchange.com/questions/185059/preventing-page-break-after-th
e-first-or-before-the-last-list-item

That solution with \pagecheck looks promising, but it has to be implemented
on ConTeXt/Lua side. It requires adding 'checking' commands to proper
places. 

Only ConTeXt knows the item tree, it can count number of item in every level
and then decide where placing the command is appropriate.

The \testpage or \testcolumn are not IMHO sufficient here. They cannot
prevent breaking after the first primary. The optional value [2] should
somehow be cummulated. Moreover, testing the number of lines is weak as
index entries can be long or with many page references requiring more lines
than one.

\testpage[2] % keep first two together (generalized rule 2)
primary-01
\testpage[2] % (rule 1)
primary-02
secondary-01
secondary-02
\testpage[2] % (rule 3)
secondary-03
secondary-04
primary-03 % how to set rule 3 here?

Maybe some kind of 'samepage' would be better here.
http://tex.stackexchange.com/questions/64363/context-equivalent-of-latex-sam
epage

\startsamepage
primary-01
primary-02
secondary-01
secondary-02
% placing soft page-break
% http://www.tex.ac.uk/cgi-bin/texfaq2html?label=nopagebrk
\pagebreak[0]
secondary-03
secondary-04
primary-03
\stopsamepage

Unfortunately, all this would have to be implemented on engine side during
rendering index entries. Or are there any ways already?

Thanks, Jan

___
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] Exporting auto-generated Index/Registers as ConTeXt source

2014-06-28 Thread Jan Tosovsky
Dear All,

I'd like to tweak the auto-generated Index. Is there any possibility to
export it as the ConTeXt source, modify it and then include instead of
auto-generated Index?

Thanks, Jan

___
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] Conditional keep-with-next rules

2014-06-28 Thread Hans Hagen

On 6/28/2014 8:19 AM, Jan Tosovsky wrote:

On 2014-06-27 Jan Tosovsky wrote:

Dear All,

in my index I can see disturbing page breaks.

primary-01
primary-02
secondary-01
--- ( next page ) -
secondary-02
primary-03

instead of

primary-01
--- ( next page ) -
primary-02
secondary-01
secondary-02
primary-03

Is it possible to somehow define conditional keep-with-next rules?

I'd like to express:
(1) keep always the primary with the first secondary (this seems to be
implemented)
(2) keep always the first secondary with the next secondary
(3) keep always the last secondary with the previous secondary

And similarly for tertiary.


Deep down we have (spac-ver) this:

\definevspacing[preference][penalty:-500]  % goodbreak
\definevspacing[samepage]  [penalty:1] % nobreak
\definevspacing[max]   [category:1]
\definevspacing[force] [category:2]
\definevspacing[disable]   [category:5]
\definevspacing[nowhite]   [category:6]
\definevspacing[back]  [category:7]
%   together   [category:8]
\definevspacing[overlay]   [category:9]
\definevspacing[always][category:0]
\definevspacing[weak]  [order:0]
\definevspacing[strong][order:100]

so we can have weights and so. However, in practice the problem is that 
when combining different mechanisms their spacing settings might not be 
tuned to each other. I will extend this mechanism when we have a bit 
more control over some of the lists involved.


It's no big deal to set up something for an index, but it needs thinking 
about how to deal with worst case scenarios and these will happen for 
sure and you don't want to end up with a sequence of entries two pages 
height running of a page, certainly not in a fully automated workflow.


It is on the to-be-loked-into-list, but as all things, it has to fit 
into my agenda (read: to be done in what's left of my free time). I also 
have to make sure then it does not mess up existing files.


For the moment playing with the before/after keys is the way to go.

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] win2k and context

2014-06-28 Thread Wolfgang Werners-Lucchini
Hallo Hans,

 Any reason to stick to windows 2000? Do you want to run old
 experimental luatex?

There is no question without a reason!

At least mtxrun.exe should work with older Windows versions!

So I could do

mtxrun --script ./bin/mtx-update.lua --force --update --make --
context=2012-12-09 --texroot=%CONTEXTROOT% %*

to fetch an older version.

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] win2k and context

2014-06-28 Thread Wolfgang Werners-Lucchini
 https://foundry.supelec.fr/frs/?group_id=10

This is LuaTeX only, not the whole distribution.

 http://tug.org/svn/texlive/trunk/Master/bin/win32/luatex.dll?view=log

Sorry! Can not finde there any older context distribution.

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] win2k and context

2014-06-28 Thread Mojca Miklavec
On Sat, Jun 28, 2014 at 1:02 PM, Wolfgang Werners-Lucchini wrote:
 https://foundry.supelec.fr/frs/?group_id=10

 This is LuaTeX only, not the whole distribution.

 http://tug.org/svn/texlive/trunk/Master/bin/win32/luatex.dll?view=log

 Sorry! Can not finde there any older context distribution.

Please test whether the luatex binaries work at all. Without a working
luatex binary it's pointless to even discuss any further. Once you
find a working luatex, we'll be able to help you further.

Btw: a working mtxrun alone won't help you because that won't
necessarily give you a compatible luatex version. In the worst case
you can probably replace mtxrun with a batch script.

Mojca
___
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] 'excursion' and MkIV/LuaTeX

2014-06-28 Thread Gour
Is 'excursion' manual still mostly relevant for using ConTeXt MkIV 
LuaTeX?

Any plan to publish some new physical ConTeXt-related book soon?


Sincerely,
Gour

-- 
Whatever action a great man performs, common men follow. And 
whatever standards he sets by exemplary acts, all the world pursues.

___
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] bibliography tool

2014-06-28 Thread Gour
I was browsing docs in the contextgarden but not sure what is available
for handling bibliography in ConTeXt today?

Afaict, RefTeX is for LaTeX only, I recall there was(is).

(My dev environment is Debian Linux/Emacs/AUCTeX.)


Sincerely,
Gour

-- 
Whatever action a great man performs, common men follow. And 
whatever standards he sets by exemplary acts, all the world pursues.

___
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] CV / Resume examples

2014-06-28 Thread Martin Bruchanov
On Fri, Jun 27, 2014 at 05:24:13PM -0700, Kip Warner wrote:
 Hey list,
 

Hey Kip and list ;)

There is my CV for your inspiration:

http://bruxy.regnet.cz/personal/Martin_Bruchanov_Resume.pdf

http://bruxy.regnet.cz/personal/Martin_Bruchanov_Resume.ctex

BruXy

-- 
Martin Bruchanov

Skype :  bruxytronics
WWW   :  http://bruxy.regnet.cz/
GPG-Key   :  http://bruxy.regnet.cz/bruxy-gpg.key (0x8107ED53)
Linked-In :  http://www.linkedin.com/in/bruxy
Google+   :  http://gplus.to/BruXy
___
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 with naturaltables and letter module

2014-06-28 Thread Mo Abrahams
Table splitting across pages interferes with the footer.

Using ConTeXt ver: 2014.06.22 19:58 MKIV beta

Example:


\usemodule[letter]

\setupletterlayer[foot][alternative=gbrief]

\setupTABLE[split=yes]

\startletter
\bTABLE

\dorecurse{40}{\bTR \bTD Test \eTD \eTR}

\eTABLE
\stopletter

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