Re: [NTG-context] issue with image in an xtable

2015-04-20 Thread Hans Hagen

On 4/20/2015 8:53 PM, Pablo Rodriguez wrote:

On 04/20/2015 06:36 PM, Hans Hagen wrote:

On 4/20/2015 5:34 PM, Pablo Rodriguez wrote:

[...]
If the image is higher than the two rows it is meant to have, the first
two rows get extra height.

Is this a bug or am I missing something?


for the brave ... line 707 in tabl-xtb.lua:

  local delta = htdp - total
  if delta  0 then
  delta = delta / ny
  for y=0,ny-1 do
  local nxt = r + y
  heights[nxt] = heights[nxt] + delta
  end
  end


Many thanks for the code, Hans.

This adds the extra space in the two rows that contain the figure.

Wouldn’t it be possible that the figure invades the next row instead of
adding extra spacing to any row?


define invades


BTW, imae location seems to be wrong. Top, bottom or middle don’t work
as expected.

Many thanks for your help,


Pablo




--

-
  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] ConTeXt Suite in Windows

2015-04-20 Thread Hans Hagen

On 4/20/2015 9:13 PM, Pablo Rodriguez wrote:

Dear list,

I have downloaded the ConTeXt Suite (beta from 2015.04.14 18:48)for
Win32 and Win64 in my Linux box using:

 sh ./first-setup.sh --platform=windows --modules=all
 sh ./first-setup.sh --platform=win64 --modules=all

But when I try to run them, I experience the following issues:

With the Win32 version, mtxrunjit is found by Windows 7, but contextjit
cannot be found. The binary is in its proper path.

Withe the Win64 version, contextjit is found, but mtxrunjit cannot be
found. In this case, I need to run mtxrunjit --generate first, because
invoking contextjit gives the following error:

mtxrun  | unknown script 'context.lua' or 'mtx-context.lua'

Why are some binaries found by Windows and others not?


don't use a 32/64 mix ... the startup scripts use dll's and look on the 
path and some consistency is assumed in that lookup


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] \setuphead for all existing sections

2015-04-20 Thread Wolfgang Schuster

 Am 20.04.2015 um 20:43 schrieb Lukáš Procházka l...@pontex.cz:
 
 Hello Pablo,
 
 \setupheads doesn't work for this - see the test:
 
 
 \setupheads[distance=1in]
 \setuphead[subsection][distance=2in]
 
 \starttext
  \section{Sec}
\subsection{Subsec}
 \stoptext
 
 
 Subsection has the specified distance of 1 in, whilst the section doesn't.
 
 Section was altered by \setupheads, whilst subsection by \setuphead.
 
 Wiki http://wiki.contextgarden.net/Command/setupheads 
 http://wiki.contextgarden.net/Command/setupheads says that \setuphead has 
 some more options than \setupheads.

The \setupheads command is only a synonym for \setuphead but there can be a 
difference between

\setuphead[..,..=..,..]

and

\setuphead[section][..,..=..,..]

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] issue with image in an xtable

2015-04-20 Thread Pablo Rodriguez
On 04/21/2015 01:18 AM, Hans Hagen wrote:
 On 4/20/2015 8:53 PM, Pablo Rodriguez wrote:
 [...]
 This adds the extra space in the two rows that contain the figure.

 Wouldn’t it be possible that the figure invades the next row instead of
 adding extra spacing to any row?
 
 define invades

What I’m trying to say is that the rows in the sample don’t get extra
space because of the image and that the image is place over the next
rows when it is too big for its given space.

This should be the default behaviour, but having an option to activate
this would be extremely helpful in some scenarios.

Here you have an otherwise buggy sample (location is wrong) with the
image placed over the next rows and beyond:

\setupexternalfigures[location=default]
\starttext
\startxtable[option=stretch]
\startxrow
\startxcell Second line left\stopxcell
\startxcell b\stopxcell
\startxcell Second line right\stopxcell
\stopxrow
\startxrow
\startxcell Third Line left\stopxcell
\startxcell[ny=2, location=top]
\dontleavehmode
\externalfigure[cow][height=19mm]
\stopxcell
\startxcell d\stopxcell
\stopxrow
\startxrow
\startxcell Fourth line left\stopxcell
\startxcell h\stopxcell
\stopxrow
\startxrow
\startxcell Fifth line left\stopxcell
\startxcell c\stopxcell
\startxcell Fifth line right\stopxcell
\stopxrow
\stopxtable
\stoptext

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] ConTeXt Suite in Windows

2015-04-20 Thread Pablo Rodriguez
On 04/21/2015 01:17 AM, Hans Hagen wrote:
 On 4/20/2015 9:13 PM, Pablo Rodriguez wrote:
 Dear list,

 I have downloaded the ConTeXt Suite (beta from 2015.04.14 18:48)for
 Win32 and Win64 in my Linux box using:

  sh ./first-setup.sh --platform=windows --modules=all
  sh ./first-setup.sh --platform=win64 --modules=all

 But when I try to run them, I experience the following issues:

 With the Win32 version, mtxrunjit is found by Windows 7, but contextjit
 cannot be found. The binary is in its proper path.

 Withe the Win64 version, contextjit is found, but mtxrunjit cannot be
 found. In this case, I need to run mtxrunjit --generate first, because
 invoking contextjit gives the following error:

 mtxrun  | unknown script 'context.lua' or 'mtx-context.lua'

 Why are some binaries found by Windows and others not?
 
 don't use a 32/64 mix ... the startup scripts use dll's and look on the 
 path and some consistency is assumed in that lookup

Sorry, Hans, I haven’t explained myself accurately.

In a Win64 computer, I have tested each version (32bit and 64bit)
separately. And I got the results you have above.

I don’t know what is wrong here.


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] Oddity with \definereferenceformat

2015-04-20 Thread Wolfgang Schuster

 Am 20.04.2015 um 05:10 schrieb Rik Kabel cont...@rik.users.panix.com:
 
 A reference to the text of a multi-line heading takes on the line breaks of 
 the heading when \definereferenceformat[about] is used.
 \definereferenceformat[about][type=title,left=,right=]
 \starttext
 \startsection[reference={sec:one},
   title={Three\\line\\title}]
 \startparagraph
 See \about[sec:one].
 \stopparagraph
 \stopsection
 \stoptext
 Can this be repaired? Or, am I doing it wrong?

To avoid the line breaks in the reference context has to redefined the meaning 
of \crlf and \\ when
the reference content is shown in the text which happens at the moment only for 
the \about command.

\setupreferencing[left=,right=]

\starttext
\startsection[reference={sec:one},
  title={Three\\line\\title}]
\startparagraph
See \about[sec:one].
\stopparagraph
\stopsection
\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] issue with image in an xtable

2015-04-20 Thread Hans Hagen

On 4/20/2015 5:34 PM, Pablo Rodriguez wrote:

Dear list,

I have the following sample:

 \setupexternalfigures[location=default]
 \starttext
 \startxtable[option=stretch]
 \startxrow
 \startxcell First line left\stopxcell
 \startxcell\mbox{}\stopxcell
 \startxcell First line right\stopxcell
 \stopxrow
 \startxrow
 \startxcell Second line left\stopxcell
 \startxcell\mbox{}\stopxcell
 \startxcell Second line right\stopxcell
 \stopxrow
 \startxrow
 \startxcell Third Line left\stopxcell
 \startxcell[align=left, ny=2]
 \dontleavehmode\externalfigure[cow][height=20mm]
 \stopxcell
 \startxcell\mbox{}\stopxcell
 \stopxrow
 \startxrow
 \startxcell Fourth line left\stopxcell
 \startxcell\mbox{}\stopxcell
 \stopxrow
 \startxrow
 \startxcell Fifth line left\stopxcell
 \startxcell\mbox{}\stopxcell
 \startxcell Fifth line right\stopxcell
 \stopxrow
 \stopxtable
 \stoptext

If the image is higher than the two rows it is meant to have, the first
two rows get extra height.

Is this a bug or am I missing something?


for the brave ... line 707 in tabl-xtb.lua:

local delta = htdp - total
if delta  0 then
delta = delta / ny
for y=0,ny-1 do
local nxt = r + y
heights[nxt] = heights[nxt] + delta
end
end

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

[NTG-context] issue with image in an xtable

2015-04-20 Thread Pablo Rodriguez
Dear list,

I have the following sample:

\setupexternalfigures[location=default]
\starttext
\startxtable[option=stretch]
\startxrow
\startxcell First line left\stopxcell
\startxcell\mbox{}\stopxcell
\startxcell First line right\stopxcell
\stopxrow
\startxrow
\startxcell Second line left\stopxcell
\startxcell\mbox{}\stopxcell
\startxcell Second line right\stopxcell
\stopxrow
\startxrow
\startxcell Third Line left\stopxcell
\startxcell[align=left, ny=2]
\dontleavehmode\externalfigure[cow][height=20mm]
\stopxcell
\startxcell\mbox{}\stopxcell
\stopxrow
\startxrow
\startxcell Fourth line left\stopxcell
\startxcell\mbox{}\stopxcell
\stopxrow
\startxrow
\startxcell Fifth line left\stopxcell
\startxcell\mbox{}\stopxcell
\startxcell Fifth line right\stopxcell
\stopxrow
\stopxtable
\stoptext

If the image is higher than the two rows it is meant to have, the first
two rows get extra height.

Is this a bug or am I missing something?

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] issue with image in an xtable

2015-04-20 Thread Pierre Bovet
Hi Pablo,

It seems that if you comment \dontleavemode, the image size gives no effect to 
the two first table lines.

   \startxcell[align=left, ny=2]
   % \dontleavehmode
   \externalfigure[cow][height=10mm]
   \stopxcell

Pierre

 Le 20 avr. 2015 à 17:34, Pablo Rodriguez oi...@gmx.es a écrit :
 
 Dear list,
 
 I have the following sample:
 
\setupexternalfigures[location=default]
\starttext
\startxtable[option=stretch]
\startxrow
\startxcell First line left\stopxcell
\startxcell\mbox{}\stopxcell
\startxcell First line right\stopxcell
\stopxrow
\startxrow
\startxcell Second line left\stopxcell
\startxcell\mbox{}\stopxcell
\startxcell Second line right\stopxcell
\stopxrow
\startxrow
\startxcell Third Line left\stopxcell
\startxcell[align=left, ny=2]
\dontleavehmode\externalfigure[cow][height=20mm]
\stopxcell
\startxcell\mbox{}\stopxcell
\stopxrow
\startxrow
\startxcell Fourth line left\stopxcell
\startxcell\mbox{}\stopxcell
\stopxrow
\startxrow
\startxcell Fifth line left\stopxcell
\startxcell\mbox{}\stopxcell
\startxcell Fifth line right\stopxcell
\stopxrow
\stopxtable
\stoptext
 
 If the image is higher than the two rows it is meant to have, the first
 two rows get extra height.
 
 Is this a bug or am I missing something?
 
 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
 ___

___
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] issue with image in an xtable

2015-04-20 Thread Hans Hagen

On 4/20/2015 5:34 PM, Pablo Rodriguez wrote:

Dear list,

I have the following sample:

 \setupexternalfigures[location=default]
 \starttext
 \startxtable[option=stretch]
 \startxrow
 \startxcell First line left\stopxcell
 \startxcell\mbox{}\stopxcell
 \startxcell First line right\stopxcell
 \stopxrow
 \startxrow
 \startxcell Second line left\stopxcell
 \startxcell\mbox{}\stopxcell
 \startxcell Second line right\stopxcell
 \stopxrow
 \startxrow
 \startxcell Third Line left\stopxcell
 \startxcell[align=left, ny=2]
 \dontleavehmode\externalfigure[cow][height=20mm]
 \stopxcell
 \startxcell\mbox{}\stopxcell
 \stopxrow
 \startxrow
 \startxcell Fourth line left\stopxcell
 \startxcell\mbox{}\stopxcell
 \stopxrow
 \startxrow
 \startxcell Fifth line left\stopxcell
 \startxcell\mbox{}\stopxcell
 \startxcell Fifth line right\stopxcell
 \stopxrow
 \stopxtable
 \stoptext

If the image is higher than the two rows it is meant to have, the first
two rows get extra height.

Is this a bug or am I missing something?


i don't know (yet) but these \mbox{} things look alien to me (we either 
have a \strut or nothing but not some funny zero box)


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] issue with image in an xtable

2015-04-20 Thread Pablo Rodriguez
On 04/20/2015 06:22 PM, Hans Hagen wrote:
 On 4/20/2015 5:34 PM, Pablo Rodriguez wrote:
 [...]
 If the image is higher than the two rows it is meant to have, the first
 two rows get extra height.

 Is this a bug or am I missing something?
 
 i don't know (yet) but these \mbox{} things look alien to me (we either 
 have a \strut or nothing but not some funny zero box)

Hans,

replacing this with single letters (a, b, c, d, e) gives the same
results (modified sample below).


Pablo



\setupexternalfigures[location=default]
\starttext
\startxtable[option=stretch]
\startxrow
\startxcell First line left\stopxcell
\startxcell a\stopxcell
\startxcell First line right\stopxcell
\stopxrow
\startxrow
\startxcell Second line left\stopxcell
\startxcell b\stopxcell
\startxcell Second line right\stopxcell
\stopxrow
\startxrow
\startxcell Third Line left\stopxcell
\startxcell[align=left, ny=2]
\dontleavehmode
\externalfigure[cow][height=20mm]
\stopxcell
\startxcell d\stopxcell
\stopxrow
\startxrow
\startxcell Fourth line left\stopxcell
\startxcell h\stopxcell
\stopxrow
\startxrow
\startxcell Fifth line left\stopxcell
\startxcell c\stopxcell
\startxcell Fifth line right\stopxcell
\stopxrow
\stopxtable
\stoptext


-- 
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] \setuphead for all existing sections

2015-04-20 Thread Lukáš Procházka

Hello Pablo,

\setupheads doesn't work for this - see the test:


\setupheads[distance=1in]
\setuphead[subsection][distance=2in]

\starttext
  \section{Sec}
\subsection{Subsec}
\stoptext


Subsection has the specified distance of 1 in, whilst the section doesn't.

Section was altered by \setupheads, whilst subsection by \setuphead.

Wiki http://wiki.contextgarden.net/Command/setupheads says that \setuphead has 
some more options than \setupheads.

- I guess it would be nice that \setupheads handles the distance key, too.

Best regards,

Lukas


On Fri, 17 Apr 2015 18:35:18 +0200, Pablo Rodriguez oi...@gmx.es wrote:


On 04/17/2015 12:00 PM, Procházka Lukáš Ing. - Pontex s. r. o. wrote:

Hello,

is there a way to affect (setup) all sections that have been defined, like:


\setuphead[*][distance=1.5em]


instead of:


\setuphead[part,chapter,section,subsection,subsubsection][distance=1.5em]



Hi Lukáš,

\setupheads[distance=1.5em] should do the work.

I hope it helps,


Pablo



--
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] issue with image in an xtable

2015-04-20 Thread Pablo Rodriguez
On 04/20/2015 06:36 PM, Hans Hagen wrote:
 On 4/20/2015 5:34 PM, Pablo Rodriguez wrote:
 [...]
 If the image is higher than the two rows it is meant to have, the first
 two rows get extra height.

 Is this a bug or am I missing something?
 
 for the brave ... line 707 in tabl-xtb.lua:
 
  local delta = htdp - total
  if delta  0 then
  delta = delta / ny
  for y=0,ny-1 do
  local nxt = r + y
  heights[nxt] = heights[nxt] + delta
  end
  end

Many thanks for the code, Hans.

This adds the extra space in the two rows that contain the figure.

Wouldn’t it be possible that the figure invades the next row instead of
adding extra spacing to any row?

BTW, imae location seems to be wrong. Top, bottom or middle don’t work
as expected.

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] issue with image in an xtable

2015-04-20 Thread Pablo Rodriguez
On 04/20/2015 06:12 PM, Pierre Bovet wrote:
 Hi Pablo,
 
 It seems that if you comment \dontleavemode, the image size gives no effect 
 to the two first table lines.
 
\startxcell[align=left, ny=2]
% \dontleavehmode
  \externalfigure[cow][height=10mm]
\stopxcell

Hi Pierre,

I’m afraid that the extra spacing in the first two lines is not removed
when commenting \dontleavehmode.

I use the latest beta from 2015.04.18 14:41. Which ConTeXt version do
you use?


Pablo



 Le 20 avr. 2015 à 17:34, Pablo Rodriguez oi...@gmx.es a écrit :

 Dear list,

 I have the following sample:

\setupexternalfigures[location=default]
\starttext
\startxtable[option=stretch]
\startxrow
\startxcell First line left\stopxcell
\startxcell\mbox{}\stopxcell
\startxcell First line right\stopxcell
\stopxrow
\startxrow
\startxcell Second line left\stopxcell
\startxcell\mbox{}\stopxcell
\startxcell Second line right\stopxcell
\stopxrow
\startxrow
\startxcell Third Line left\stopxcell
\startxcell[align=left, ny=2]
\dontleavehmode\externalfigure[cow][height=20mm]
\stopxcell
\startxcell\mbox{}\stopxcell
\stopxrow
\startxrow
\startxcell Fourth line left\stopxcell
\startxcell\mbox{}\stopxcell
\stopxrow
\startxrow
\startxcell Fifth line left\stopxcell
\startxcell\mbox{}\stopxcell
\startxcell Fifth line right\stopxcell
\stopxrow
\stopxtable
\stoptext

 If the image is higher than the two rows it is meant to have, the first
 two rows get extra height.

 Is this a bug or am I missing something?

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


-- 
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] \setuphead for all existing sections

2015-04-20 Thread Pablo Rodriguez
On 04/20/2015 08:43 PM, Lukáš Procházka wrote:
 Hello Pablo,
 
 \setupheads doesn't work for this - see the test:

Hi Lukáš,

sorry, I thought that the plural of \setup... had the same options than
its singular form. My fault, since I was totally wrong.

I agree that it would be useful to have the same options from \setuphead
in \setupheads.


Pablo


 
 \setupheads[distance=1in]
 \setuphead[subsection][distance=2in]
 
 \starttext
\section{Sec}
  \subsection{Subsec}
 \stoptext
 
 
 Subsection has the specified distance of 1 in, whilst the section doesn't.
 
 Section was altered by \setupheads, whilst subsection by \setuphead.
 
 Wiki http://wiki.contextgarden.net/Command/setupheads says that
 \setuphead has some more options than \setupheads.
 
 - I guess it would be nice that \setupheads handles the distance key, too.
 
 Best regards,
 
 Lukas


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

[NTG-context] Roman numerals in running heads in frontmatter.

2015-04-20 Thread John Culleton
When I set up running heads in frontmattter like
this:
\definestructureconversionset[frontpart:pagenumber][][romannumerals]
\setupheadertexts
[{\getmarking[title]}] 
[{\pagenumber}]
[{\pagenumber}]
[{\Titlea}]
(where \Titlea is a string containing the book
title) everything is fine except the page numbers
in the running heads are in arabic and not roman
format. 
On the footers on \title pages the numbers are
roman as expected..

How do I fix this?

-- 
John Culleton
Wexford Press
Free list of books for self-publishers:
http://wexfordpress.net/shortlist.html
Updated PDF e-book: Create Book Covers with
Scribus 1.4.5 coming soon at
http://www.booklocker.com/!
___
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] ConTeXt Suite in Windows

2015-04-20 Thread Pablo Rodriguez
Dear list,

I have downloaded the ConTeXt Suite (beta from 2015.04.14 18:48)for
Win32 and Win64 in my Linux box using:

sh ./first-setup.sh --platform=windows --modules=all
sh ./first-setup.sh --platform=win64 --modules=all

But when I try to run them, I experience the following issues:

With the Win32 version, mtxrunjit is found by Windows 7, but contextjit
cannot be found. The binary is in its proper path.

Withe the Win64 version, contextjit is found, but mtxrunjit cannot be
found. In this case, I need to run mtxrunjit --generate first, because
invoking contextjit gives the following error:

mtxrun  | unknown script 'context.lua' or 'mtx-context.lua'

Why are some binaries found by Windows and others not?

Many thanks for your help,


Pabl
-- 
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] Roman numerals in running heads in frontmatter.

2015-04-20 Thread Pablo Rodriguez
On 04/20/2015 09:03 PM, John Culleton wrote:
 When I set up running heads in frontmattter like
 this:
 \definestructureconversionset[frontpart:pagenumber][][romannumerals]
 \setupheadertexts
 [{\getmarking[title]}] 
 [{\pagenumber}]
 [{\pagenumber}]
 [{\Titlea}]
 (where \Titlea is a string containing the book
 title) everything is fine except the page numbers
 in the running heads are in arabic and not roman
 format. 
 On the footers on \title pages the numbers are
 roman as expected..
 
 How do I fix this?

Sorry, John, but this is only a guess.

This might do what you intend:

\setuppagenumbering[alternative=doublesided, location=]
\def\Titlea{The Book Title}
\definestructureconversionset[frontpart:pagenumber][][romannumerals]
\setupheadertexts
[{\getmarking[title]}]
[pagenumber]
[pagenumber]
[{\Titlea}]
\starttext
\startfrontmatter
\dorecurse{10}{\title{My Chapter Title}\dorecurse{20}{\input knuth\par}}
\stopfrontmatter
\stoptext

In short, [{\pagenumber}] should read [pagenumber].

Please, provide a minimal sample that shows the issues you’re
confronting with your requiests.

Just in case it might 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
___