Re: [NTG-context] section numbers in margin eventually get placed too far left

2013-09-18 Thread Marco Patzer
On 2013–09–17 Sanjoy Mahajan wrote:

 Is this a bug, or just a change in setuphead that I didn't take
 account of?

It is a bug. ConTeXt sometimes uses the rightmargindistance for the
left margin, which would be correct for a double sided layout, but
is definitely wrong for a single sided document. However, even in a
double sided layout the calculations are not correct. Here a smaller
example. Note that the output is wrong either way, with
\setuppagenumbering commented out or not.

%% \setuppagenumbering[alternative=doublesided]
\setuplayout[rightmargindistance=1cm]
\setuphead[section][alternative=inmargin]
\showframe

\starttext
  \dorecurse{16}{\section{Blah}
\input tufte}
\stoptext

Marco


signature.asc
Description: Digital signature
___
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] section numbers in margin eventually get placed too far left

2013-09-18 Thread Hans Hagen

On 9/18/2013 8:48 AM, Marco Patzer wrote:

On 2013–09–17 Sanjoy Mahajan wrote:


Is this a bug, or just a change in setuphead that I didn't take
account of?


It is a bug. ConTeXt sometimes uses the rightmargindistance for the
left margin, which would be correct for a double sided layout, but
is definitely wrong for a single sided document. However, even in a
double sided layout the calculations are not correct. Here a smaller
example. Note that the output is wrong either way, with
\setuppagenumbering commented out or not.

%% \setuppagenumbering[alternative=doublesided]
\setuplayout[rightmargindistance=1cm]
\setuphead[section][alternative=inmargin]
\showframe

\starttext
   \dorecurse{16}{\section{Blah}
 \input tufte}
\stoptext


\startsetups[\??headrenderings:\v!inmargin]
\vbox {
\headsetupspacing
\begstrut
\dontleavehmode
\ifconditional\headshownumber
\llap {
\signalrightpage
\hbox {
\hfill
\headnumbercontent
\doifrightpageelse {
\scratchdistance\leftmargindistance
} {
\scratchdistance\rightmargindistance
}

\hskip\dimexpr\d_strc_rendering_local_leftoffset+\scratchdistance\relax
}
}
\fi
\headtextcontent
}
\stopsetups

-
  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] Wrong spaces in verbatim mode with Consolas

2013-09-18 Thread Hans Hagen

On 9/17/2013 6:33 PM, Wolfgang Schuster wrote:

Hi,

the Consolas font produces proportional spaces even with “features=none”.

\starttypescript [mono] [consolas]
 \setups[font:fallback:mono]
 \definefontsynonym [Mono]   [file:consolas]   
[features=none]
 \definefontsynonym [MonoBold]   [file:consolasbold]   
[features=none]
 \definefontsynonym [MonoItalic] [file:consolasitalic] 
[features=none]
 \definefontsynonym [MonoBoldItalic] [file:consolasbolditalic] 
[features=none]
\stoptypescript

\definetypeface [mainface] [rm] [serif] [modern]   [default]
\definetypeface [mainface] [tt] [mono]  [consolas] [default]
%\definetypeface [mainface] [tt] [mono]  [modern]   [default]

\setupbodyfont[mainface]

\starttext
\starttyping
a b  cd
x  y  z
\stoptyping
\stoptext


are we talking about the same font?

\starttypescript [mono] [consolas]
\setups[font:fallback:mono]
\definefontsynonym [Mono]   [file:consola]  [features=none]
\definefontsynonym [MonoBold]   [file:consolab] [features=none]
\definefontsynonym [MonoItalic] [file:consolai] [features=none]
\definefontsynonym [MonoBoldItalic] [file:consolaz] [features=none]
\stoptypescript

\definetypeface [mainface] [rm] [serif] [modern]   [default]
\definetypeface [mainface] [tt] [mono]  [consolas] [default]

\setupbodyfont[mainface]

\showglyphs

\starttext
\starttyping
a b  cd
x  y  z
\stoptyping
\stoptext

looks ok here


-
  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] \startitemize and \startinteraction problem in footnotes

2013-09-18 Thread Hans Hagen

On 9/17/2013 5:35 PM, Alan Bowen wrote:

The following fails with an “Unknown control sequence” error. It works
if one removes \setupinteraction… or if one removes the \startitemize...
from the footnote
 
\startcomponent test

\setupinteraction[state=start,color=blue,%
contrastcolor=darkred,
style=rm,
click=yes,
display=new,
]
\setupnotation[footnote][interaction=yes,
way=bytext,
numberconversion=numbers,
rule=on,
textstyle=normal]

\startitemize[n,broad,joinedup,packed,intro]
[itemalign=flushright,left={},right={},stopper={.},margin=1pc]
\itemstuff
\sym{4.}stuff
\sym{10.}more stuff
\sym{11.}and yet more
\stopitemize

a few words.%
%
\footnote
{The current volumes are:
\startitemize[n,broad,joinedup,packed,intro]
[itemalign=flushright,left={},right={},stopper={.},margin=1pc]
\itemstuff
\sym{4.}stuff
\sym{10.}more stuff
\sym{11.}and yet more
\stopitemize
}

\stopcomponent
 


quick fix:

\let\sym\relax

-
  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] Clean Machine, MacTeX 2013 installed, ConTeXt problem

2013-09-18 Thread Gerben Wierda
As my computer died I had to set up a clean one. I installed MacTeX 2013 and 
tried to compile a ConTeXt project, but this failed:

texexec --pdf --mode=editor --once ../products/prd_book.tex

resolvers   | caches | path '/Users/gerben/Library/texlive/2013/texmf-var' 
created/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in
 `require': 
/usr/local/texlive/2013/texmf-dist/scripts/context/ruby/base/switch.rb:501: 
invalid multibyte escape: /\xFF/ (SyntaxError)
from 
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in
 `require'
from 
/usr/local/texlive/2013/texmf-dist/scripts/context/ruby/texexec.rb:11:in 
`main'

It seems a problem in a ruby file in MacTeX 2013. Can someone help me get this 
working?

Thanks,

G



smime.p7s
Description: S/MIME cryptographic signature
___
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] outer floats on doublesided pages UNSOLVED

2013-09-18 Thread Tim Steenvoorden
Thanks Hans!Cheers,Tim On 17 september 2013 at 17:29:31, Hans Hagen (pra...@wxs.nl) wrote: On 9/14/2013 7:25 AM, R. Ermers wrote:
 Hi Contexters,

 Does anyone know whether it is possible in mkiv to position figures protruding in the outer margin?
 In mkii it used to work

there is a check missing .. fixed in next beta


-
   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
___
 ___
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] Clean Machine, MacTeX 2013 installed, ConTeXt problem

2013-09-18 Thread Hans Hagen

On 9/18/2013 10:47 AM, Gerben Wierda wrote:

As my computer died I had to set up a clean one. I installed MacTeX 2013
and tried to compile a ConTeXt project, but this failed:

texexec --pdf --mode=editor --once .../products/prd_book.tex

resolvers   | caches | path
'/Users/gerben/Library/texlive/2013/texmf-var'
created/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in
`require':
/usr/local/texlive/2013/texmf-dist/scripts/context/ruby/base/switch.rb:501:
invalid multibyte escape: /\xFF/ (SyntaxError)
from
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in
`require'
from
/usr/local/texlive/2013/texmf-dist/scripts/context/ruby/texexec.rb:11:in
`main'

It seems a problem in a ruby file in MacTeX 2013. Can someone help me
get this working?


Maybe something utf in the latest ruby ... can you try to replace the 
\xFF with \xFFFC and see what happens?


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] section numbers in margin eventually get placed too far left

2013-09-18 Thread Sanjoy Mahajan
Hans,

Thanks, that fixes my and Marco's test cases.  Should I wikify, or will
your fix be part of an uncoming beta?

Best,
-Sanjoy
___
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] section numbers in margin eventually get placed too far left

2013-09-18 Thread Marco Patzer
On 2013–09–18 Sanjoy Mahajan wrote:

 Thanks, that fixes my and Marco's test cases.  Should I wikify, or will
 your fix be part of an uncoming beta?

No need to wikify. It was a bug which has already been fixed in the
latest beta.

Marco


signature.asc
Description: Digital signature
___
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] Wrong spaces in verbatim mode with Consolas

2013-09-18 Thread Wolfgang Schuster

Am 18.09.2013 um 09:50 schrieb Hans Hagen pra...@wxs.nl:

 On 9/17/2013 6:33 PM, Wolfgang Schuster wrote:
 Hi,
 
 the Consolas font produces proportional spaces even with “features=none”.
 
 \starttypescript [mono] [consolas]
 \setups[font:fallback:mono]
 \definefontsynonym [Mono]   [file:consolas]   
 [features=none]
 \definefontsynonym [MonoBold]   [file:consolasbold]   
 [features=none]
 \definefontsynonym [MonoItalic] [file:consolasitalic] 
 [features=none]
 \definefontsynonym [MonoBoldItalic] [file:consolasbolditalic] 
 [features=none]
 \stoptypescript
 
 \definetypeface [mainface] [rm] [serif] [modern]   [default]
 \definetypeface [mainface] [tt] [mono]  [consolas] [default]
 %\definetypeface [mainface] [tt] [mono]  [modern]   [default]
 
 \setupbodyfont[mainface]
 
 \starttext
 \starttyping
 a b  cd
 x  y  z
 \stoptyping
 \stoptext
 
 are we talking about the same font?


I used the files which came with my office installation where the spaces are 
wrong
(see attachment) but when I use the files from your example the text looks ok.

Wolfgang


consolas.pdf
Description: Adobe PDF document
___
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] Wrong spaces in verbatim mode with Consolas

2013-09-18 Thread Hans Hagen

On 9/18/2013 4:11 PM, Wolfgang Schuster wrote:


Am 18.09.2013 um 09:50 schrieb Hans Hagen pra...@wxs.nl:


On 9/17/2013 6:33 PM, Wolfgang Schuster wrote:

Hi,

the Consolas font produces proportional spaces even with “features=none”.

\starttypescript [mono] [consolas]
 \setups[font:fallback:mono]
 \definefontsynonym [Mono]   [file:consolas]   
[features=none]
 \definefontsynonym [MonoBold]   [file:consolasbold]   
[features=none]
 \definefontsynonym [MonoItalic] [file:consolasitalic] 
[features=none]
 \definefontsynonym [MonoBoldItalic] [file:consolasbolditalic] 
[features=none]
\stoptypescript

\definetypeface [mainface] [rm] [serif] [modern]   [default]
\definetypeface [mainface] [tt] [mono]  [consolas] [default]
%\definetypeface [mainface] [tt] [mono]  [modern]   [default]

\setupbodyfont[mainface]

\starttext
\starttyping
a b  cd
x  y  z
\stoptyping
\stoptext


are we talking about the same font?



I used the files which came with my office installation where the spaces are 
wrong
(see attachment) but when I use the files from your example the text looks ok.


i have no clue

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] Clean Machine, MacTeX 2013 installed, ConTeXt problem

2013-09-18 Thread Gerben Wierda
On 18 Sep 2013, at 11:18, Hans Hagen pra...@wxs.nl wrote:

 On 9/18/2013 10:47 AM, Gerben Wierda wrote:
 As my computer died I had to set up a clean one. I installed MacTeX 2013
 and tried to compile a ConTeXt project, but this failed:
 
 texexec --pdf --mode=editor --once .../products/prd_book.tex
 
 resolvers   | caches | path
 '/Users/gerben/Library/texlive/2013/texmf-var'
 created/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in
 `require':
 /usr/local/texlive/2013/texmf-dist/scripts/context/ruby/base/switch.rb:501:
 invalid multibyte escape: /\xFF/ (SyntaxError)
 from
 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in
 `require'
 from
 /usr/local/texlive/2013/texmf-dist/scripts/context/ruby/texexec.rb:11:in
 `main'
 
 It seems a problem in a ruby file in MacTeX 2013. Can someone help me
 get this working?
 
 Maybe something utf in the latest ruby ... can you try to replace the \xFF 
 with \xFFFC and see what happens?

Same thing happens. Now it says \xFFFC is an invalid multibyte escape

G

 
 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
 ___



smime.p7s
Description: S/MIME cryptographic signature
___
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] section numbers in margin eventually get placed too far left

2013-09-18 Thread Marco Patzer
On 2013–09–18 Sanjoy Mahajan wrote:

 Marco Patzer li...@homerow.info writes:
 
  No need to wikify. It was a bug which has already been fixed in the
  latest beta.
 
 Hans is too fast!
 
 Note to self: Test every bug candidate also against the latest beta.

I meant that Hans already uploaded the new fixed beta.

Marco


signature.asc
Description: Digital signature
___
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] section numbers in margin eventually get placed too far left

2013-09-18 Thread Sanjoy Mahajan
Marco Patzer li...@homerow.info writes:

 No need to wikify. It was a bug which has already been fixed in the
 latest beta.

Hans is too fast!

Note to self: Test every bug candidate also against the latest beta.

-Sanjoy
___
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] Clean Machine, MacTeX 2013 installed, ConTeXt problem

2013-09-18 Thread Rajeesh K Nambiar
On Wed, Sep 18, 2013 at 10:45 PM, Hans Hagen pra...@wxs.nl wrote:
 On 9/18/2013 4:53 PM, Gerben Wierda wrote:

 Same thing happens. Now it says \xFFFC is an invalid multibyte escape


This error was reported against TeXLive 2013 in Fedora also -
https://bugzilla.redhat.com/show_bug.cgi?id=993255


 hm, hoe ziet een multibyte escape in ruby er dan uit? ik heb al jaren niets
 in ruby gedaan

Not sure what I did was correct (no idea about Ruby), but managed to
avoid this error by changing to \0xFF.




-- 
Cheers,
Rajeesh
___
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] Clean Machine, MacTeX 2013 installed, ConTeXt problem

2013-09-18 Thread Hans Hagen

On 9/18/2013 4:53 PM, Gerben Wierda wrote:


Same thing happens. Now it says \xFFFC is an invalid multibyte escape


and \x01 ?

-
  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] Clean Machine, MacTeX 2013 installed, ConTeXt problem

2013-09-18 Thread Hans Hagen

On 9/18/2013 4:53 PM, Gerben Wierda wrote:


Same thing happens. Now it says \xFFFC is an invalid multibyte escape


hm, hoe ziet een multibyte escape in ruby er dan uit? ik heb al jaren 
niets in ruby gedaan


-
  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] Clean Machine, MacTeX 2013 installed, ConTeXt problem

2013-09-18 Thread Hans Hagen

On 9/18/2013 4:53 PM, Gerben Wierda wrote:

On 18 Sep 2013, at 11:18, Hans Hagen pra...@wxs.nl wrote:


On 9/18/2013 10:47 AM, Gerben Wierda wrote:

As my computer died I had to set up a clean one. I installed MacTeX 2013
and tried to compile a ConTeXt project, but this failed:

texexec --pdf --mode=editor --once .../products/prd_book.tex

resolvers   | caches | path
'/Users/gerben/Library/texlive/2013/texmf-var'
created/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in
`require':
/usr/local/texlive/2013/texmf-dist/scripts/context/ruby/base/switch.rb:501:
invalid multibyte escape: /\xFF/ (SyntaxError)
from
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in
`require'
from
/usr/local/texlive/2013/texmf-dist/scripts/context/ruby/texexec.rb:11:in
`main'

It seems a problem in a ruby file in MacTeX 2013. Can someone help me
get this working?


Maybe something utf in the latest ruby ... can you try to replace the \xFF with 
\xFFFC and see what happens?


Same thing happens. Now it says \xFFFC is an invalid multibyte escape


it runs ok with \xFF here in 1.9

in 2.0 i need to patch in that file:

series.each_char do |key| # was .each but there is no alias to each_char 
any longer


does the top of switch.rb mention:

#encoding: ASCII-8BIT

(i do have a prototype of texexec in lua but no time to finish that now 
but i fear at some moment i have to do it as i cannot foresee ruby 2.0 
compatibility issues)


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
___


[NTG-context] ConTeXt Manual Errata

2013-09-18 Thread Thangalin
Hi,

During a recent plane ride, I started to read the ConTeXt manual to get a
better understanding: http://www.ctex.org/documents/context/cont-enp.pdf

If anyone has plans to revise it, I have attached a file with corrections,
specific comments, and general comments. I did not have the ConTeXt manual
source code on hand, so I could not directly modify it.

Take the comments with a grain of salt: I have little ConTeXt experience. I
hope it proves useful.

Kindest regards.
ConTeXT Manual Errata  Suggestions
===

Section 1.3.

The word something needs to be defined before it is used.
For example, \setupsomething - What does something mean?

The \defineenumeration[Question] creates a \Question command,
but \definehead[Procedure][section] does not create \Procedure command?
(Should the capital P not carry forward?)

The \startnarrower requires an explanation on how it affects the
resulting document. Likewise \startitemnize.

What does the of in \beginofAnswer mean? Is it required? Where
does it come from? Why is it not simply \beginAnswer?

Figure 1.1 is typeset this way should include the page number.

The last example -- does this refer to the previous example, or the
final example?

The command \setupfootertexts, which we will discuss in detail in a later
chapter, has three arguments of which the first is optional. The first
argument defaults to [text]. Optional arguments are displayed as slanted
text. Can be: The command \setupfootertexts, discussed in detail
chapter X, has three arguments. The first argument is optional as denoted
by slanted text, and has a default value of text.

ConTeXt is able to keep track of the status of information on the
page, ... is tersely written, ConTeXt tracks status information per page,
such as the current chapter name.

Provide an immediate example of  arrow marks in a frame.

Section 1.4.

TeX does a lot is TeX performs many.

Document processing is best done by TeXexec -- is this still true? I thought
the context program supercedes TeXexec?

Describe the relationship between TeX and ConTeXt. For example, why do the
subsequent sections discuss TeX examples?

Section 1.5.

TeX uses ASCII, but ConTeXt can use UTF-8. Is the information about ASCII a
bit misleading?

ConTeXt fully supports PDFTeX, which means that you can generate PDF output
directly can be written, ConTeXt can produce PDF documents, because it fully
supports PDFTeX.

Section 1.6.1.
--
Still relevant with UTF-8?

Section 1.6.2.
--
Does \par hold true for ConTeXt? How would you use it? Show an example.

Section 1.6.3.
--
Avoid demonstrations that significantly reduce legibility.

Section 1.6.3.
--
TeX is one of the few typesetting systems that does math typesetting right.
Can be: TeX typesets mathmatical expressions correctly and beautifully.

It does not hurt to know a bit about the basics of TeX, because that way one
can far more easilly write his or her own alternatives to, for instance,
chapter headers. Can be: Knowing TeX basics allows developers and authors
to provide alternatives to default commands, such as chapter headers.

Section 1.6.4.
--
Complete fontfamilies are should be Complete fontfamilies include.

Section 1.6.5.
--
Characters have dimensions. Spacing between words and lines have dimensions.
These dimensions are related to one of the units of table 1.1. For example
the linespacing in this document is 14.83998pt. Can be: Characters, spacing
between words (known as kerning), and spacing between lines have dimensions.
The line spacing in this document, for example, is 14.83998pt. Table 1.1
lists how dimensions relate.

Table 1.1 should split the equivalent column into two columns: base and
equivalent, or be renamed to equivalency. The millimeter might not be
necessary information (it is metric).

Next to the mentioned dimension TeX also uses em and ex. Both are font
dependant. Better as: In addition to the measures in Table 1.1, TeX uses
the font-dependent units of em and ex. (Note spelling mistake: dependant.)

Section 1.9.

Relatively empty page.

Unknown list of commands -- why are they there? What do they do? Should
they be moved elsewhere?

Section 2.2.

It is advisable to type the document setups before the \start--command, --
What start command? \starttext, perhaps?

Section 2.3.

The \environment command should be introduced before it is used.

The bullet list should start with the word and then define it. For example,
A *project* is a group of texts that belong together...

The term component should be italicized like the other defined terms.

Before a \start--\stop--pair commands can be added. Can be: Commands
can be defined before a \start command.

The resolution process of searching for files in parent directories
is not clear. Use the 'tree' command (available for DOS/Unix) to show
an actual file and 

Re: [NTG-context] bug? gap appears in columnset

2013-09-18 Thread Lars Huttar
Regarding sane interlinespace,
Hans wrote,
 ok, but then, an interlinespace is normally around 1.2 times the 
 bodyfontsize

OK. That's helpful.

But notice that in the following example, the interline space that
causes the problem is in the *first* section (where htdp is 12pt and
baselineskip is also 12pt!), while the gap shows up in the *second*
section, whose interlinespace is 2.8ex:

\def\printHtdp{\setbox0\hbox{()} \the\htdp0,\the\baselineskip}


\definecolumnset[columnset1][n=2]

\setupcolumnset[columnset1][distance=5mm,balance=yes]


\starttext


\section{Introduction}


\setupinterlinespace[line=12pt]

\startcolumnset[columnset1]

\printHtdp

\dorecurse {7} { \input knuth }

\stopcolumnset


\section{Bibliography}


\tfxx

\setupinterlinespace[line=2.8ex] %or use 11pt

\startcolumnset[columnset1]

\printHtdp

\dorecurse {10} { \input knuth }

\stopcolumnset


\stoptext


Since the problem can appear a ways after the cause, that makes it an
especially hard problem to track down, especially for someone who is
unaware of the nature of the problem. But even now that we're aware of
what the problem (hopefully) is, we've not been able to fix it in our
real-life document.


We sprinkled in many places the code to show htdp and baselineskip
(\printHtdp). E.g. in the early sections that would putatively cause the
problem, our htdp/baselineskip in 8.60252pt,10.5pt. That's a ratio of
more than 1.2. We have eliminated all the places we could find where the
htdp/baselineskip ratio was less than 1.2, even where there was no text.
But the gap persists.

We have a large and complex document, so there might conceivably be
places where a larger htdp than expected is hiding. Are there any tools
for automatically going through a document and reporting places where
not-sane interlinespace occurs?

Thanks,
Lars

___
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] bug? gap appears in columnset

2013-09-18 Thread Hans Hagen

On 9/18/2013 11:47 PM, Lars Huttar wrote:

Regarding sane interlinespace,
Hans wrote,

ok, but then, an interlinespace is normally around 1.2 times the
bodyfontsize


OK. That's helpful.

But notice that in the following example, the interline space that
causes the problem is in the *first* section (where htdp is 12pt and
baselineskip is also 12pt!), while the gap shows up in the *second*
section, whose interlinespace is 2.8ex:


Columnsets are rather special and mostly meant for magazine like 
documents, where content can span columns, images are explicitly placed 
on the grid, etc. For that reason columnset soperate on a rather strict 
grid that gets setup based in the lineheight and although content can be 
larger, the grid dictates what happens. Balancing is semi automatic and 
nearly always demands some tweaks.


Using columnsets for a large document that has to flow automatically is 
therefore debatable. Regular multi columns or in mkiv mixed-columns are 
a better choice then.


You need to keep in mind that tex has no concept of columns so it is 
faked by using a virtual page nofcolumns * text height.


Anyway, as columnsets are supposed to cooperate with grid mode, any 
messing with the lineheight will interfere. Normally a document has a 
consistent lineheight everywhere.


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
___


[NTG-context] Inline math in table in combination fails

2013-09-18 Thread Marco Patzer
Hi,

The following example results in the error “You can't assign a
glue_spec node to a prev field”

\starttext
  \startcombination [2*1]
{\starttable [|c|]
 \NC \math{1} \VL\NR\HL
 \stoptable}{}
{\starttable [|c|]
 \NC \math{2} \VL\NR
 \stoptable}{}
  \stopcombination
\stoptext

It works without the combination, without the vertical or horizontal
rule and when no math mode is used. It used to work some time ago,
so I assume it's a bug.

Marco


signature.asc
Description: Digital signature
___
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] Clean Machine, MacTeX 2013 installed, ConTeXt problem

2013-09-18 Thread Mica Semrick
Hi,

Not sure if this is helpful, but I get a very similar error when trying to
build the nokogiri gem with RVM  ruby 2.0 on my Mac OS X 10.6.8 machine.
I'm not at that machine currently, but I can post the error if you think
that will help.

Best,
Mica


On Wed, Sep 18, 2013 at 10:55 AM, Hans Hagen pra...@wxs.nl wrote:

 On 9/18/2013 4:53 PM, Gerben Wierda wrote:

 On 18 Sep 2013, at 11:18, Hans Hagen pra...@wxs.nl wrote:

  On 9/18/2013 10:47 AM, Gerben Wierda wrote:

 As my computer died I had to set up a clean one. I installed MacTeX 2013
 and tried to compile a ConTeXt project, but this failed:

 texexec --pdf --mode=editor --once .../products/prd_book.tex

 resolvers   | caches | path
 '/Users/gerben/Library/**texlive/2013/texmf-var'
 created/System/Library/**Frameworks/Ruby.framework/**
 Versions/2.0/usr/lib/ruby/2.0.**0/rubygems/core_ext/kernel_**
 require.rb:45:in
 `require':
 /usr/local/texlive/2013/texmf-**dist/scripts/context/ruby/**
 base/switch.rb:501:
 invalid multibyte escape: /\xFF/ (SyntaxError)
 from
 /System/Library/Frameworks/**Ruby.framework/Versions/2.0/**
 usr/lib/ruby/2.0.0/rubygems/**core_ext/kernel_require.rb:45:**in
 `require'
 from
 /usr/local/texlive/2013/texmf-**dist/scripts/context/ruby/**
 texexec.rb:11:in
 `main'

 It seems a problem in a ruby file in MacTeX 2013. Can someone help me
 get this working?


 Maybe something utf in the latest ruby ... can you try to replace the
 \xFF with \xFFFC and see what happens?


 Same thing happens. Now it says \xFFFC is an invalid multibyte escape


 it runs ok with \xFF here in 1.9

 in 2.0 i need to patch in that file:

 series.each_char do |key| # was .each but there is no alias to each_char
 any longer

 does the top of switch.rb mention:

 #encoding: ASCII-8BIT

 (i do have a prototype of texexec in lua but no time to finish that now
 but i fear at some moment i have to do it as i cannot foresee ruby 2.0
 compatibility issues)


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

[NTG-context] [***SPAM***] OT: Putting a context to the 2013 ConTeXt Meeting location

2013-09-18 Thread Pavneet Arora
I am so disappointed that I cannot attend the upcoming ConTeXt meeting 
in Brejlov, but as I type this I am remembering vividly the hospitality 
and affection shown by all at the 2010 meeting, especially Pavel's 
father, to this tee-totalling vegetarian---not something that lands up 
at the Brejlov Inn too often, I imagine!

The reason for my absence this year is that I will be heading to India 
shortly to conduct what is known as antim yatra (final journey) in 
Hindi for my mother; I'll leave the details of what that implies to 
those who wish to search on DuckDuckGo ;).

Anyway that is strictly an aside to this post.  You'll have to forgive 
me if I am feeling sentimental, but Prague does, as it has throughout 
its history, enter one's soul.  To walk through its streets is to be 
smitten by it for life.  Recently I picked up a book that I would like 
to share as it may help provide a context to those travelling through 
Prague on their way to Brejlov.

Prague:  Capital of the Twentieth Century
A Surrealist History
by Derek Sayer

All the best to those who are attending.  I am envious!

Warm regards.

-- 

Pavneet Arora   m: 647.406.6843
Waroc Informatikt: 416.937.9276
___
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] Clean Machine, MacTeX 2013 installed, ConTeXt problem

2013-09-18 Thread Gerben Wierda
On 18 Sep 2013, at 19:31, Hans Hagen pra...@wxs.nl wrote:

 On 9/18/2013 4:53 PM, Gerben Wierda wrote:
 
 Same thing happens. Now it says \xFFFC is an invalid multibyte escape
 
 and \x01 ?

That works. 

Now I run into the next problem. GTAMacFonts does not work anymore. Sigh. 

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