Re: [NTG-context] halign broken

2013-04-18 Thread Wolfgang Schuster

Am 18.04.2013 um 14:55 schrieb Meer, H. van der h.vanderm...@uva.nl:

 There seems something very much amiss with \halign in later ConTeXt versions.
 
 This typesets fine in PlainTeX and is an example taken from a textbook.
 
   \tabskip=1em\halign{%
   \hfil\it#\hfil\hfil#\hfil#\hfil#\crABCD\cr}
 
 Also in contextversion 2012.05.30 (from a TeXlive distribution).
 
 But it fails at least in ConTeXt  ver: 2013.03.20 10:34 MKIV
 and in ConTeXt  ver: 2013.04.16 12:08 MKIV beta
 with the following error
 
 ! Only one # is allowed per tab.
 system   tex  error on line 5 in file fixedwidth.tex: Only one # is 
 allowed per tab ...
 
  1 \starttext
  2 contextversion=\contextversion\par
  3 \tabskip=1em
  4 \halign{%
  5   \hfil\it#\hfil\hfil#\hfil#\hfil#\cr
  6 ABCD\cr}
  7 \stoptext
 l.5 \hfil\it#\hfil\hfil#
\hfil#\hfil#\cr
 
 Why? How primitive it may be, I would like to use \halign now and then.

The error message is misleading because the problem is  and not #.

One of the changes for MkIV was to make _, ^ and  normal characters
in the document (the first two still works for math). For code writing this
doesn’t matter because  has it’s normal meaning when you use
\unprotect … \protect but it can’t be used in the document.

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] halign broken

2013-04-18 Thread Meer, H. van der
I see, it is either the nuisance of having to type \ etc. in the text, or the 
nuisance of having to wrap everything like \halign in \unprotect..\protect and 
then resorting to \ again.
At least there is nothing amiss with \halign itself, which is reassuring. 
However, I do not feel secure with these little deviations from the orginal TeX.

Hans van der Meer



On 18 Apr 2013, at 3:03 PM, Wolfgang Schuster 
schuster.wolfg...@gmail.commailto:schuster.wolfg...@gmail.com
 wrote:


Am 18.04.2013 um 14:55 schrieb Meer, H. van der 
h.vanderm...@uva.nlmailto:h.vanderm...@uva.nl:

There seems something very much amiss with \halign in later ConTeXt versions.

This typesets fine in PlainTeX and is an example taken from a textbook.

  \tabskip=1em\halign{%
  \hfil\it#\hfil\hfil#\hfil#\hfil#\crABCD\cr}

Also in contextversion 2012.05.30 (from a TeXlive distribution).

But it fails at least in ConTeXt  ver: 2013.03.20 10:34 MKIV
and in ConTeXt  ver: 2013.04.16 12:08 MKIV beta
with the following error

! Only one # is allowed per tab.
system   tex  error on line 5 in file fixedwidth.tex: Only one # is 
allowed per tab ...

 1 \starttext
 2 contextversion=\contextversion\par
 3 \tabskip=1em
 4 \halign{%
 5   \hfil\it#\hfil\hfil#\hfil#\hfil#\cr
 6 ABCD\cr}
 7 \stoptext
l.5 \hfil\it#\hfil\hfil#
   \hfil#\hfil#\cr

Why? How primitive it may be, I would like to use \halign now and then.

The error message is misleading because the problem is  and not #.

One of the changes for MkIV was to make _, ^ and  normal characters
in the document (the first two still works for math). For code writing this
doesn’t matter because  has it’s normal meaning when you use
\unprotect … \protect but it can’t be used in the document.

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] halign broken

2013-04-18 Thread Meer, H. van der
There seems to be more to it:

This works:
\unprotect\halign{\hfil\it#\hfil\hfil#\hfil#\hfil#\hfil\cr
ABCD\cr ABB\cr}\protect

But these generate a missing } after the \halign:
\unprotect\framed{\halign{\hfil\it#\hfil\hfil#\hfil#\hfil#\hfil\cr
ABCD\cr ABB\cr}}\protect

\framed{\unprotect\halign{\hfil\it#\hfil\hfil#\hfil#\hfil#\hfil\cr
ABCD\cr ABB\cr}\protect}

Is such a construction (now) impossible?

Hans van der Meer



On 18 Apr 2013, at 3:03 PM, Wolfgang Schuster 
schuster.wolfg...@gmail.commailto:schuster.wolfg...@gmail.com wrote:


Am 18.04.2013 um 14:55 schrieb Meer, H. van der 
h.vanderm...@uva.nlmailto:h.vanderm...@uva.nl:

There seems something very much amiss with \halign in later ConTeXt versions.

This typesets fine in PlainTeX and is an example taken from a textbook.

  \tabskip=1em\halign{%
  \hfil\it#\hfil\hfil#\hfil#\hfil#\crABCD\cr}

Also in contextversion 2012.05.30 (from a TeXlive distribution).

But it fails at least in ConTeXt  ver: 2013.03.20 10:34 MKIV
and in ConTeXt  ver: 2013.04.16 12:08 MKIV beta
with the following error

! Only one # is allowed per tab.
system   tex  error on line 5 in file fixedwidth.tex: Only one # is 
allowed per tab ...

 1 \starttext
 2 contextversion=\contextversion\par
 3 \tabskip=1em
 4 \halign{%
 5   \hfil\it#\hfil\hfil#\hfil#\hfil#\cr
 6 ABCD\cr}
 7 \stoptext
l.5 \hfil\it#\hfil\hfil#
   \hfil#\hfil#\cr

Why? How primitive it may be, I would like to use \halign now and then.

The error message is misleading because the problem is  and not #.

One of the changes for MkIV was to make _, ^ and  normal characters
in the document (the first two still works for math). For code writing this
doesn’t matter because  has it’s normal meaning when you use
\unprotect … \protect but it can’t be used in the document.

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] halign broken

2013-04-18 Thread Wolfgang Schuster

Am 18.04.2013 um 15:26 schrieb Meer, H. van der h.vanderm...@uva.nl:

 There seems to be more to it:
 
 This works:
 \unprotect\halign{\hfil\it#\hfil\hfil#\hfil#\hfil#\hfil\cr 
 ABCD\cr ABB\cr}\protect
 
 But these generate a missing } after the \halign:
 \unprotect\framed{\halign{\hfil\it#\hfil\hfil#\hfil#\hfil#\hfil\cr 
 ABCD\cr ABB\cr}}\protect
 
 \framed{\unprotect\halign{\hfil\it#\hfil\hfil#\hfil#\hfil#\hfil\cr 
 ABCD\cr ABB\cr}\protect}
 
 Is such a construction (now) impossible?

\framed[align=normal,strut=no]{…}

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] halign broken

2013-04-18 Thread Meer, H. van der
Why does the [align=middle] makess such a difference?

Hans van der Meer



On 18 Apr 2013, at 3:34 PM, Wolfgang Schuster schuster.wolfg...@gmail.com
 wrote:

 
 Am 18.04.2013 um 15:26 schrieb Meer, H. van der h.vanderm...@uva.nl:
 
 There seems to be more to it:
 
 This works:
 \unprotect\halign{\hfil\it#\hfil\hfil#\hfil#\hfil#\hfil\cr 
 ABCD\cr ABB\cr}\protect
 
 But these generate a missing } after the \halign:
 \unprotect\framed{\halign{\hfil\it#\hfil\hfil#\hfil#\hfil#\hfil\cr 
 ABCD\cr ABB\cr}}\protect
 
 \framed{\unprotect\halign{\hfil\it#\hfil\hfil#\hfil#\hfil#\hfil\cr 
 ABCD\cr ABB\cr}\protect}
 
 Is such a construction (now) impossible?
 
 \framed[align=normal,strut=no]{…}
 
 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] halign broken

2013-04-18 Thread Wolfgang Schuster

Am 18.04.2013 um 15:39 schrieb Meer, H. van der h.vanderm...@uva.nl:

 Why does the [align=middle] makess such a difference?

\framed can use a \hbox or a \vbox to place the content, by default it uses a 
\hbox
but when you set the correct value for the align key it uses a \vbox.

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] halign broken

2013-04-18 Thread Hans Hagen

On 4/18/2013 3:16 PM, Meer, H. van der wrote:

I see, it is either the nuisance of having to type \ etc. in the text,
or the nuisance of having to wrap everything like \halign in
\unprotect..\protect and then resorting to \ again.
At least there is nothing amiss with \halign itself, which is
reassuring. However, I do not feel secure with these little deviations
from the orginal TeX.


orinal tex permits to set the catcodes so you need to define 'original tex'

anyhow, you can use \aligntab and \alignhash which wee introduced in 
luatex for this purpose


which reminds me that one of these days on the context dev list we 
should discuss this one


\catcode`€=\mathshiftcatcode

\starttext
€e=mc^2€
\stoptext

for typesetting math with continental style presets.

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] halign broken

2013-04-18 Thread Aditya Mahajan
 
 which reminds me that one of these days on the context dev list we should 
 discuss this one
 
 \catcode`€=\mathshiftcatcode
 
 \starttext
€e=mc^2€
 \stoptext
 
 for typesetting math with continental style presets.

And maybe make it default whenever one wishes to use comma as a decimal 
separator :)

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

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

Re: [NTG-context] \halign

2011-02-25 Thread Eythan Weg

Wolfgang Schuster schuster.wolfg...@googlemail.com
Thu, 24 Feb 2011 22:20:01 +0100

   Am 24.02.2011 um 17:56 schrieb Eythan Weg:
   

Hi,

I have just installed beta. 

The line:

\starttext
  \halign{\hfil#\hfil\quad\cr This That\cr12\cr} 
\stoptext

is not typeset and the  are left in place.  What could be the problem?
   
   Since a while ^, _ and  can be used in text mode like any other character.
   
   You can disable this with \donknuthmode at the begin of your document or
   use the \aligntab where you would normally use  but the best thing is
   to use one of contexts build in table environment.
   
   Wolfgang

Thank you.  I think that \halign, being a primitive of tex, should be
respected.  If a user wants to use it, it should be usable
unconditionally.  

Eythan 

___
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] \halign

2011-02-25 Thread Khaled Hosny
On Fri, Feb 25, 2011 at 11:16:06AM -0500, Eythan Weg wrote:
 
 Wolfgang Schuster schuster.wolfg...@googlemail.com
 Thu, 24 Feb 2011 22:20:01 +0100
 
Am 24.02.2011 um 17:56 schrieb Eythan Weg:

 
 Hi,
 
 I have just installed beta. 
 
 The line:
 
 \starttext
   \halign{\hfil#\hfil\quad\cr This That\cr12\cr} 
 \stoptext
 
 is not typeset and the  are left in place.  What could be the problem?

Since a while ^, _ and  can be used in text mode like any other character.

You can disable this with \donknuthmode at the begin of your document or
use the \aligntab where you would normally use  but the best thing is
to use one of contexts build in table environment.

Wolfgang
 
 Thank you.  I think that \halign, being a primitive of tex, should be
 respected.  If a user wants to use it, it should be usable
 unconditionally.  

I've no idea from where you came with this impression, is is usually the
other way around; people are advised not to use low level TeX code where
context has higher level interfaces, else you are on your own and should
be aware of the implications/side effects.

I, for one, grateful that I know longer need to escape regular
characters in my documents just to keep supporting some obscure TeX
feature.

Regards,
 Khaled

-- 
 Khaled Hosny
 Egyptian
 Arab
___
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] \halign

2011-02-25 Thread Hans Hagen

On 25-2-2011 5:16, Eythan Weg wrote:


Wolfgang Schusterschuster.wolfg...@googlemail.com
Thu, 24 Feb 2011 22:20:01 +0100

Am 24.02.2011 um 17:56 schrieb Eythan Weg:


  Hi,

  I have just installed beta.

  The line:

  \starttext
\halign{\hfil#\hfil\quad\cr This  That\cr12\cr}
  \stoptext

  is not typeset and the  are left in place.  What could be the problem?

Since a while ^, _ and  can be used in text mode like any other character.

You can disable this with \donknuthmode at the begin of your document or
use the \aligntab where you would normally use  but the best thing is
to use one of contexts build in table environment.

Wolfgang

Thank you.  I think that \halign, being a primitive of tex, should be
respected.  If a user wants to use it, it should be usable
unconditionally.


in context a more abstract coding is advertised; if you want to use 
halign in for instance a macro definition, you can surround it by


\unprotect

macro def

\protect

anyhow, when using halign directly in your document, don't expect too 
much from spacing


-
  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] \halign

2011-02-24 Thread Wolfgang Schuster

Am 24.02.2011 um 17:56 schrieb Eythan Weg:

 
 Hi,
 
 I have just installed beta. 
 
 The line:
 
 \starttext
   \halign{\hfil#\hfil\quad\cr This That\cr12\cr} 
 \stoptext
 
 is not typeset and the  are left in place.  What could be the problem?

Since a while ^, _ and  can be used in text mode like any other character.

You can disable this with \donknuthmode at the begin of your document or
use the \aligntab where you would normally use  but the best thing is
to use one of contexts build in table environment.

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
___