Re: [NTG-context] Text in a box now broken

2011-11-24 Thread Hans Hagen

On 24-11-2011 02:37, Kip Warner wrote:

On Wed, 2011-11-23 at 20:08 +0100, Hans Hagen wrote:

google: context wiki textbackground


Thanks, but I still don't know what was wrong with the old method. In
any case, I am experimenting now with textbackground. Thanks again for
your help.


the old one is fixed anyway


-
  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] xtable (\getbuffer vs. \processxtablebuffer)

2011-11-24 Thread Andreas Harder
Hi Hans,

it seems \processtablebuffer ignores the table settings (at least the 
stretch-option).

\starttext

\startbuffer[my:xtable]
  \startxtable[option=stretch]
\startxrow
  \startxcell alpha \stopxcell
  \startxcell beta  \stopxcell
  \startxcell gamma \stopxcell
\stopxrow
  \stopxtable
\stopbuffer

\getbuffer[my:xtable]\blank
\processxtablebuffer[my:xtable]

\stoptext


Regards
Andreas
___
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] Regression: A^\prime causes `Missing { inserted ...`

2011-11-24 Thread Paul Menzel
Dear ConTeXt folks,


having upgraded

ConTeXt  ver: 2011.10.14 22:47 MKIV  fmt: 2011.10.15  int: 
english/english.

to

ConTeXt  ver: 2011.11.23 18:58 MKIV  fmt: 2011.11.24  int: 
english/english

With

\starttext
\placeformula
\startformula
A^\prime
\stopformula
\stoptext

I get the following error.

fontsfallback modern rm 12pt is loaded
! Missing { inserted.

system   tex  error on line 4 in file 
exponent-regression.tex: Missing { inserted ...

1 \starttext
2   \placeformula
3   \startformula
4 A^\prime
5   \stopformula
6 \stoptext
7 

to be read again 
   ^
\prime ...char \textfont \zerocount FE325\relax ^
  \bgroup \expandafter 
\dodo...
l.4 A^\prime
  
?

As a workaround `A^{\prime}` can be used.


Thanks,

Paul
\starttext
	\placeformula
	\startformula
		A^\prime
	\stopformula
\stoptext


signature.asc
Description: This is a digitally signed message part
___
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] BibTeX files for ConTeXt books?

2011-11-24 Thread Paul Menzel
Dear ConTeXt folks,


there are some ConTeXt related books for sale [1]. Are there BibTeX
files for those available?


Thank,

Paul


[1] http://www.h2o-books.com/catalog/5


signature.asc
Description: This is a digitally signed message part
___
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] url: subscripts not displayed

2011-11-24 Thread Paul Menzel
Dear ConTeXt folks,


using

ConTeXt  ver: 2011.11.23 18:58 MKIV  fmt: 2011.11.24  int: english/english

in the following “minimal” example the subscript in H₂O Books is not
displayed in the *URL*.

\setupinteraction[state=start]

% Define \Site[id][url]{description} to put in a clickable link
% with footnoted URL

\def\Site[#1][#2]#3{\useURL[#1][#2][][#3]\from[#1]\footnote[#1]{\tt\hyphenatedurl{#2}}}

\setupbibtex[database=bib]
\starttext
Everybody should read the \MetaFun\ manual \cite{hh2010}. Buy it at 
\Site[h2obooks][http://www.h2o-books.com/]{H₂O Books}.

I like \Site[context][http://www.contextgarden.net]{\ConTeXt}. This 
sentence has a footnote.\footnote{This is a footnote.}

\completepublications[criterium=all]
\stoptext


Thanks,

Paul
@BOOK{hh2010,
  title = {MetaFun manual},
  year = 2010,
  month = 10,
  isbn = {978-94-90688-02-8},
  author = {Hans Hagen},
  publisher = {H₂O Books},
  pages = 375,
}


coloring-references.pdf
Description: Adobe PDF document
\setupinteraction[state=start]

% Define \Site[id][url]{description} to put in a clickable link
% with footnoted URL
\def\Site[#1][#2]#3{\useURL[#1][#2][][#3]\from[#1]\footnote[#1]{\tt\hyphenatedurl{#2}}}

\setupbibtex[database=bib]
\starttext
Everybody should read the \MetaFun\ manual \cite{hh2010}. Buy it at \Site[h2obooks][http://www.h2o-books.com/]{H₂O Books}.

I like \Site[context][http://www.contextgarden.net]{\ConTeXt}. This sentence has a footnote.\footnote{This is a footnote.}

\completepublications[criterium=all]
\stoptext


signature.asc
Description: This is a digitally signed message part
___
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] url: subscripts not displayed

2011-11-24 Thread Wolfgang Schuster

Am 24.11.2011 um 13:07 schrieb Paul Menzel:

 Dear ConTeXt folks,
 
 
 using
 
ConTeXt  ver: 2011.11.23 18:58 MKIV  fmt: 2011.11.24  int: english/english
 
 in the following “minimal” example the subscript in H₂O Books is not
 displayed in the *URL*.


It’s not in the font:

\starttext
H₂O Books
\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
___

[NTG-context] Fonts with subscripts (was: url: subscripts not displayed)

2011-11-24 Thread Paul Menzel
Am Donnerstag, den 24.11.2011, 13:31 +0100 schrieb Wolfgang Schuster:
 Am 24.11.2011 um 13:07 schrieb Paul Menzel:

  using
  
 ConTeXt  ver: 2011.11.23 18:58 MKIV  fmt: 2011.11.24  int: 
  english/english
  
  in the following “minimal” example the subscript in H₂O Books is not
  displayed in the *URL*.
 
 It’s not in the font:
 
 \starttext
 H₂O Books
 \stoptext

Thank you again. And I am sorry that I always forget about that.

It is also not in XITS.

Neither

\setupbodyfont[xits]

or

\setupbodyfont[euler]

or

\usetypescript[palatino] \setupbodyfont[palatino,10pt,rm]

worked. Is there a font having subscripts included?


Thanks,

Paul


signature.asc
Description: This is a digitally signed message part
___
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] \unit and Hertz, lux, and degrees/minutes/seconds

2011-11-24 Thread Wolfgang Schuster

Am 24.11.2011 um 13:36 schrieb robin.kirk...@csiro.au 
robin.kirk...@csiro.au:

 On Monday, 21 November 2011 20:52, Hans Hagen wrote:
 
 Over the weekend I've discovered a couple more problems with \unit so I'll
 make up some test cases and desired output and post it in a few days.
 
 ok, I'll wait for that then
 
 Hans, all,
 
 I attach a document (source and PDF) with some \unit test cases that don't 
 currently work
 (even with the most recent beta). It also has a number of suggestions for 
 improvement.
 Some of this should be construed as personal opinion, but hopefully it isn't 
 too controversial.

Nice summary, you should write a My Way about units once this things are fixed.

A few comments from me:

\type{1234}\tex{unit}\arg{m} should print equivalently to 
\tex{unit}\arg{1234m}
and \tex{unit}\arg{1234 m}. (I have a lot of text that uses a \tex{unit}
macro like that.)

Maybe it’s possible with MkIV to check if the text before the \unit command was
a number but of the number is part of the unit them put in the command, such
things are always tricky with TeX and it’s better to force users to use proper 
input.

Within \type{phys-dim.lua} all the units and all the prefixes seem to have
capitalised names; in fact, they should be all lowercase (even when they
are named after some person). The exception is Celsius.

I think this is a feature because Hans saves also a lowercase version of all
keywords and you can use both as input.

I wonder whether \tex{unit} should only parse and format units, and have
another macro \tex{quan} or \tex{quantity} to handle number+unit 
combinations
(obviously using \tex{digit} and \tex{unit}).

Please don’t suggest this, one of the nice features is that you don’t have
to care which command you need but it would be nice to drop the old
formatting options for \digits in the \unit command.

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] Fonts with subscripts (was: url: subscripts not displayed)

2011-11-24 Thread Wolfgang Schuster

Am 24.11.2011 um 13:43 schrieb Paul Menzel:

 Am Donnerstag, den 24.11.2011, 13:31 +0100 schrieb Wolfgang Schuster:
 Am 24.11.2011 um 13:07 schrieb Paul Menzel:
 
 using
 
   ConTeXt  ver: 2011.11.23 18:58 MKIV  fmt: 2011.11.24  int: english/english
 
 in the following “minimal” example the subscript in H₂O Books is not
 displayed in the *URL*.
 
 It’s not in the font:
 
 \starttext
 H₂O Books
 \stoptext
 
 Thank you again. And I am sorry that I always forget about that.
 
 It is also not in XITS.
 
 Neither
 
\setupbodyfont[xits]
 
 or
 
\setupbodyfont[euler]
 
 or
 
\usetypescript[palatino] \setupbodyfont[palatino,10pt,rm]
 
 worked. Is there a font having subscripts included?

\def\ShowSubscript[#1]{\switchtobodyfont[#1]#1: “₂”\par}

\starttext
\ShowSubscript[dejavu]
\ShowSubscript[antykwa-torunska]
\ShowSubscript[antykwa-poltawskiego]
\ShowSubscript[iwona]
\ShowSubscript[cambria]
\ShowSubscript[libertine]
\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] \unit and Hertz, lux, and degrees/minutes/seconds

2011-11-24 Thread Romain Diss
Le jeudi 24 novembre 2011, robin.kirk...@csiro.au a écrit :
 I attach a document (source and PDF) with some \unit test cases that don't
 currently work (even with the most recent beta). It also has a number of
 suggestions for improvement. Some of this should be construed as personal
 opinion, but hopefully it isn't too controversial.
As Wolfgang said, it's a nice summary and I agree with most of the 
suggestions. However. this points out some conventions which are specific to 
certain languages:
- for example, in french, the percent symbol is preceded by a space.
- again in french, the liter symbol is lowercase l (althought the uppercase L 
is also temporarly accepted).

All the best.

-- 
Romain Diss
romain.d...@yahoo.fr
___
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] [solved] Fonts with subscripts

2011-11-24 Thread Paul Menzel
Am Donnerstag, den 24.11.2011, 14:30 +0100 schrieb Wolfgang Schuster:
 Am 24.11.2011 um 13:43 schrieb Paul Menzel:

[…]

 Is there a font having subscripts included?
 
 \def\ShowSubscript[#1]{\switchtobodyfont[#1]#1: “₂”\par}
 
 \starttext
 \ShowSubscript[dejavu]
 \ShowSubscript[antykwa-torunska]
 \ShowSubscript[antykwa-poltawskiego]
 \ShowSubscript[iwona]
 \ShowSubscript[cambria]
 \ShowSubscript[libertine]
 \stoptext

Nice! So in this set only cambria and libertine cannot display
subscripts. (Please find the output attached.)

ConTeXt  ver: 2011.11.23 18:58 MKIV  fmt: 2011.11.24  int: 
english/english


Thanks,

Paul
\def\ShowSubscript[#1]{\switchtobodyfont[#1]#1: “₂”\par}

\starttext
\ShowSubscript[dejavu]
\ShowSubscript[antykwa-torunska]
\ShowSubscript[antykwa-poltawskiego]
\ShowSubscript[iwona]
\ShowSubscript[cambria]
\ShowSubscript[libertine]
\stoptext


showsubscript.pdf
Description: Adobe PDF document


signature.asc
Description: This is a digitally signed message part
___
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] Regression: A^\prime causes `Missing { inserted ...`

2011-11-24 Thread Xenia
Am 24.11.2011 11:46, schrieb Paul Menzel:
 Dear ConTeXt folks,
 
 
 having upgraded
 
 ConTeXt  ver: 2011.10.14 22:47 MKIV  fmt: 2011.10.15  int: 
 english/english.
 
 to
 
 ConTeXt  ver: 2011.11.23 18:58 MKIV  fmt: 2011.11.24  int: 
 english/english
 
 With
 
 \starttext
   \placeformula
   \startformula
   A^\prime
   \stopformula
 \stoptext
 
 I get the following error.
 
 fontsfallback modern rm 12pt is loaded
 ! Missing { inserted.
 
 system   tex  error on line 4 in file 
 exponent-regression.tex: Missing { inserted ...
 
 1 \starttext
 2 \placeformula
 3 \startformula
 4   A^\prime
 5 \stopformula
 6 \stoptext
 7 
 
 to be read again 
^
 \prime ...char \textfont \zerocount FE325\relax ^
   \bgroup 
 \expandafter \dodo...
 l.4   A^\prime
   
 ?
 
 As a workaround `A^{\prime}` can be used.

Right, for me A' produces the same result. But maybe this is a font-issue.
___
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] [solved] Fonts with subscripts

2011-11-24 Thread Wolfgang Schuster

Am 24.11.2011 um 14:56 schrieb Wolfgang Schuster:

 
 Am 24.11.2011 um 14:48 schrieb Paul Menzel:
 
 Am Donnerstag, den 24.11.2011, 14:30 +0100 schrieb Wolfgang Schuster:
 Am 24.11.2011 um 13:43 schrieb Paul Menzel:
 
 […]
 
 Is there a font having subscripts included?
 
 \def\ShowSubscript[#1]{\switchtobodyfont[#1]#1: “₂”\par}
 
 \starttext
 \ShowSubscript[dejavu]
 \ShowSubscript[antykwa-torunska]
 \ShowSubscript[antykwa-poltawskiego]
 \ShowSubscript[iwona]
 \ShowSubscript[cambria]
 \ShowSubscript[libertine]
 \stoptext
 
 Nice! So in this set only cambria and libertine cannot display
 subscripts. (Please find the output attached.)
 
 
 No, I get subscripts for all listed fonts but it’s possible we use different 
 versions of the them.

Mine are:

Linux Libertine O Regular: Version 4.6.5
Cambria Regular: 5.97

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] [solved] Fonts with subscripts

2011-11-24 Thread Paul Menzel
Am Donnerstag, den 24.11.2011, 14:56 +0100 schrieb Wolfgang Schuster:
 Am 24.11.2011 um 14:48 schrieb Paul Menzel:
 
  Am Donnerstag, den 24.11.2011, 14:30 +0100 schrieb Wolfgang Schuster:
  Am 24.11.2011 um 13:43 schrieb Paul Menzel:
  
  […]
  
  Is there a font having subscripts included?
  
  \def\ShowSubscript[#1]{\switchtobodyfont[#1]#1: “₂”\par}
  
  \starttext
  \ShowSubscript[dejavu]
  \ShowSubscript[antykwa-torunska]
  \ShowSubscript[antykwa-poltawskiego]
  \ShowSubscript[iwona]
  \ShowSubscript[cambria]
  \ShowSubscript[libertine]
  \stoptext
  
  Nice! So in this set only cambria and libertine cannot display
  subscripts. (Please find the output attached.)
 
 No, I get subscripts for all listed fonts but it’s possible we use different 
 versions of the them.

Even more trivial. I do not have Cambria installed and Libertine is also
not found although I have the Debian package (fonts-linuxlibertine,
5.1.3-1) installed. I guess I need to update the cache somehow.


Thanks,

Paul


signature.asc
Description: This is a digitally signed message part
___
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] Regression: A^\prime causes `Missing { inserted ...`

2011-11-24 Thread Hans Hagen

On 24-11-2011 11:46, Paul Menzel wrote:

Dear ConTeXt folks,


having upgraded

 ConTeXt  ver: 2011.10.14 22:47 MKIV  fmt: 2011.10.15  int: 
english/english.

to

 ConTeXt  ver: 2011.11.23 18:58 MKIV  fmt: 2011.11.24  int: 
english/english

With

 \starttext
\placeformula
\startformula
A^\prime
\stopformula
 \stoptext

I get the following error.

 fonts  fallback modern rm 12pt is loaded
 ! Missing { inserted.

 system  tex  error on line 4 in file exponent-regression..tex: 
Missing { inserted ...

 1 \starttext
 2  \placeformula
 3  \startformula
 4  A^\prime
 5  \stopformula
 6 \stoptext
 7

 to be read again
^
 \prime ...char \textfont \zerocount FE325\relax ^
   \bgroup \expandafter 
\dodo...
 l.4A^\prime

 ?

As a workaround `A^{\prime}` can be used.


Forget about superscripting prime .. that's a traditional tex thing as 
in cm/lm fonts the prime is so big that it has to be (super)scripted to 
look okay.


The prime in unicode is a normal one so that's what we now support, also 
for the lm fonts. Just compare:


\startformula
A\prime
\hbox spread 1em{\hss or\hss}
A^{\prime}
\hbox spread 1em{\hss or\hss}
A'
\stopformula

Keep in mind that most users expect ' to be a prime.

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] [solved] Fonts with subscripts

2011-11-24 Thread Christian
   Am Donnerstag, den 24.11.2011, 14:30 +0100 schrieb Wolfgang Schuster:
   Am 24.11.2011 um 13:43 schrieb Paul Menzel:
  
   […]
  
   Is there a font having subscripts included?
  
   \def\ShowSubscript[#1]{\switchtobodyfont[#1]#1: “₂”\par}
  
   \starttext
   \ShowSubscript[dejavu]
   \ShowSubscript[antykwa-torunska]
   \ShowSubscript[antykwa-poltawskiego]
   \ShowSubscript[iwona]
   \ShowSubscript[cambria]
   \ShowSubscript[libertine]
   \stoptext
  
   Nice! So in this set only cambria and libertine cannot display
   subscripts. (Please find the output attached.)
 
  No, I get subscripts for all listed fonts but it’s possible we use different
 versions of the them.
 
 Even more trivial. I do not have Cambria installed and Libertine is also not
 found although I have the Debian package (fonts-linuxlibertine,
 5.1.3-1) installed. I guess I need to update the cache somehow.
 
 
 Thanks,
 
 Paul

Just a note: There is also an Opentype feature called scientific inferiors, 
for example in Libertine. The subscript glyph you are looking for is called 
'two.inferior' and can be accessed via this feature.

___
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] [solved] Regression: A^\prime causes `Missing { inserted ...`

2011-11-24 Thread Paul Menzel
Am Donnerstag, den 24.11.2011, 15:59 +0100 schrieb Hans Hagen:
 On 24-11-2011 11:46, Paul Menzel wrote:

  having upgraded
 
   ConTeXt  ver: 2011.10.14 22:47 MKIV  fmt: 2011.10.15  int: 
  english/english.
 
  to
 
   ConTeXt  ver: 2011.11.23 18:58 MKIV  fmt: 2011.11.24  int: 
  english/english
 
  With
 
   \starttext
  \placeformula
  \startformula
  A^\prime
  \stopformula
   \stoptext
 
  I get the following error.
 
   fonts  fallback modern rm 12pt is loaded
   ! Missing { inserted.
 
   system  tex  error on line 4 in file exponent-regression..tex: 
  Missing { inserted ...
 
   1 \starttext
   2  \placeformula
   3  \startformula
   4A^\prime
   5  \stopformula
   6 \stoptext
   7
 
   to be read again
  ^
   \prime ...char \textfont \zerocount FE325\relax ^
 \bgroup 
  \expandafter \dodo...
   l.4A^\prime
 
   ?
 
  As a workaround `A^{\prime}` can be used.
 
 Forget about superscripting prime .. that's a traditional tex thing as 
 in cm/lm fonts the prime is so big that it has to be (super)scripted to 
 look okay.
 
 The prime in unicode is a normal one so that's what we now support, also 
 for the lm fonts. Just compare:
 
 \startformula
  A\prime
  \hbox spread 1em{\hss or\hss}
  A^{\prime}
  \hbox spread 1em{\hss or\hss}
  A'
 \stopformula
 
 Keep in mind that most users expect ' to be a prime.

Interesting. Thank you for the clarification. I will use A' from now on
I guess.


Thanks,

Paul


prime.pdf
Description: Adobe PDF document
\starttext
\startformula
 A\prime
 \hbox spread 1em{\hss or\hss}
 A^{\prime}
 \hbox spread 1em{\hss or\hss}
 A'
\stopformula
\stoptext


signature.asc
Description: This is a digitally signed message part
___
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] xtable (\getbuffer vs. \processxtablebuffer)

2011-11-24 Thread Hans Hagen

On 24-11-2011 11:24, Andreas Harder wrote:

Hi Hans,

it seems \processtablebuffer ignores the table settings (at least the 
stretch-option).

\starttext

\startbuffer[my:xtable]
   \startxtable[option=stretch]
 \startxrow
   \startxcell alpha \stopxcell
   \startxcell beta  \stopxcell
   \startxcell gamma \stopxcell
 \stopxrow
   \stopxtable
\stopbuffer

\getbuffer[my:xtable]\blank
\processxtablebuffer[my:xtable]

\stoptext


fixed in next beta but no nesting of xtables ... too much coding and it 
would nil the advantage (if there is any) anyway


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] Regression: A^\prime causes `Missing { inserted ...`

2011-11-24 Thread Khaled Hosny
On Thu, Nov 24, 2011 at 03:59:53PM +0100, Hans Hagen wrote:
 On 24-11-2011 11:46, Paul Menzel wrote:
 Dear ConTeXt folks,
 
 
 having upgraded
 
  ConTeXt  ver: 2011.10.14 22:47 MKIV  fmt: 2011.10.15  int: 
  english/english.
 
 to
 
  ConTeXt  ver: 2011.11.23 18:58 MKIV  fmt: 2011.11.24  int: 
  english/english
 
 With
 
  \starttext
  \placeformula
  \startformula
  A^\prime
  \stopformula
  \stoptext
 
 I get the following error.
 
  fonts  fallback modern rm 12pt is loaded
  ! Missing { inserted.
 
  system  tex  error on line 4 in file exponent-regression..tex: 
  Missing { inserted ...
 
  1 \starttext
  2   \placeformula
  3   \startformula
  4 A^\prime
  5   \stopformula
  6 \stoptext
  7
 
  to be read again
 ^
  \prime ...char \textfont \zerocount FE325\relax ^
\bgroup 
  \expandafter \dodo...
  l.4 A^\prime
 
  ?
 
 As a workaround `A^{\prime}` can be used.
 
 Forget about superscripting prime .. that's a traditional tex thing
 as in cm/lm fonts the prime is so big that it has to be
 (super)scripted to look okay.

What about A_\prime? (that is one of the stated reasons in TeXBook on
why \prime in CM is big).

Regards,
 Khaled
___
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] Regression: A^\prime causes `Missing { inserted ...`

2011-11-24 Thread Hans Hagen

On 24-11-2011 17:26, Khaled Hosny wrote:


What about A_\prime? (that is one of the stated reasons in TeXBook on
why \prime in CM is big).


Is that used at all? (For that purpose we could have \bigprime or so.)

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] Regression: A^\prime causes `Missing { inserted ...`

2011-11-24 Thread Khaled Hosny
On Thu, Nov 24, 2011 at 05:31:12PM +0100, Hans Hagen wrote:
 On 24-11-2011 17:26, Khaled Hosny wrote:
 
 What about A_\prime? (that is one of the stated reasons in TeXBook on
 why \prime in CM is big).
 
 Is that used at all? (For that purpose we could have \bigprime or so.)

No idea, I'm not a mathematician. I don't know how \prime is done in
MkIV, but with OpenType Math the sizing is handled by the ssty¹ feature,
so A^\prime and A_\prime should result in properly sized prime as long
as ssty is applied and no other special tricks are involved. \prime on
its own would still show a small glyph in most fonts, but this shouldn't
be an issue.

¹ ssty maps prime to a bigger glyphs that would be in proper size when
scaled down for script size.

Regards,
 Khaled 
___
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] xtable (\getbuffer vs. \processxtablebuffer)

2011-11-24 Thread Andreas Harder

On 24.11.2011, at 17:19, Hans Hagen wrote:

 On 24-11-2011 11:24, Andreas Harder wrote:
 Hi Hans,
 
 it seems \processtablebuffer ignores the table settings (at least the 
 stretch-option).
 
 \starttext
 
 \startbuffer[my:xtable]
   \startxtable[option=stretch]
 \startxrow
   \startxcell alpha \stopxcell
   \startxcell beta  \stopxcell
   \startxcell gamma \stopxcell
 \stopxrow
   \stopxtable
 \stopbuffer
 
 \getbuffer[my:xtable]\blank
 \processxtablebuffer[my:xtable]
 
 \stoptext
 
 fixed in next beta but no nesting of xtables ... too much coding and it would 
 nil the advantage (if there is any) anyway

Okay, thanks!

Andreas
___
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] caption none

2011-11-24 Thread Thomas A. Schmitz
Has something changed here? With the latest beta, \placefigure[none] 
places a caption; and didn't use to:


\starttext

\placefigure[here]{none}{\externalfigure[cow][width=5cm]}

\stoptext

Or has this behavior been replaced with something else?

Thomas
___
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] caption none

2011-11-24 Thread Wolfgang Schuster

Am 24.11.2011 um 21:02 schrieb Thomas A. Schmitz:

 Has something changed here? With the latest beta, \placefigure[none] places a 
 caption; and didn't use to:
 
 \starttext
 
 \placefigure[here]{none}{\externalfigure[cow][width=5cm]}
 
 \stoptext
 
 Or has this behavior been replaced with something else?


This was always possible:

\placefigure[here,none]{}{…}

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] \unit and Hertz, lux, and degrees/minutes/seconds

2011-11-24 Thread Pontus Lurcock
On Thu 24 Nov 2011, Romain Diss wrote:

 - again in french, the liter symbol is lowercase l (althought the
 uppercase L is also temporarly accepted).

Not only in French, but in most of Europe, I think:
http://en.wikipedia.org/wiki/Litre#Symbol . Should probably be
explicitly configurable.

Pont
___
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] float names and lists

2011-11-24 Thread Idris Samawi Hamid ادريس سماوي حامد

Dear gang,

Consider the following:

=
\definefloat[tablecw]   
% \setupfloat[tablecw]  
\setupcaption[tablecw][prefix=Table]

\starttext
  \setupfloats[location=middle]
  \placetable
  [here]
  [tablecw:test]{A Caption.}
  {\starttable[|c|c|c|]
  \HL
  \VL Test \VL  Test  \VL Test  \VL\FR
  \HL
  \stoptable}

  \setupfloats[location=middle]
  \placetablecw
  [here]
  [tablecw:test]{A Caption.}
  {\starttable[|c|c|c|]
  \HL
  \VL Test \VL  Test  \VL Test  \VL\FR
  \HL
  \stoptable}

  \placelistoftables

  % \placelistoftablescws
 \stoptext
=

Two challenges:

1. How do I change the prefix that heads the caption of a table? For  
example, \definefloat[tablecw] produces


Tablecw 1

I want to keep the command name of the float but change the prefix. I  
tried things like


\setupcaption[tablecw][prefix=My Table]
\setupcaption[tablecw][name=My Table]

but no success.

2. \placelistoftablescws produces an undefined control sequence: What am I  
missing here?


Best wishes
Idris

--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shīʿī Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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] caption none

2011-11-24 Thread Thomas A. Schmitz

On 11/24/2011 09:12 PM, Wolfgang Schuster wrote:

This was always possible:

\placefigure[here,none]{}{…}

Wolfgang


OK, I see, now it's only the combination of these two keywords that gets 
rid of the caption. Conscious decision or side effect?


Thomas
___
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] Double height rows using natural tables?

2011-11-24 Thread Pavneet Arora
I have tried various combinations and have so far been unsuccessful in getting a 
row of double height using natural tables.  I am following up and enclosing a 
minimal example, along with the a previous incarnation using TABLE, which does 
give me the intended layout.


Any suggestions on how to do the same using natural tables would be greatly 
appreciated.


advTHANKSance.


--
-
- Pavneet Arora

\setuppapersize[legal]
\setuplayout[header=0in,footer=0in,topspace=0.75in,backspace=1.25in]
\setuppagenumbering[location=]
\setupbodyfont[11pt]
\starttext
%\showlayout[pt,in]
%\showbodyfont
\define\unused{
{\inframed
 [foregroundstyle=type,
  background=color,
  backgroundcolor=gray,
  frame=off]
{\tt [Unused]}}
}
\def\spare{\dosingleempty\doSpare}
\def\doSpare[#1]{%
	\iffirstargument
		{\tt [#1]}
	\else
		{\tt [15A]}
	\fi
	{\tt [Spare]}
}
\startalignment[center]
{\tfb Electrical Room Electrical Panel}
\blank
{\tfa\sc Electrical Panel}
\blank
{\tfa Panel Model: Siemens}
\blank
{\tfb \tt [DRAFT---To Be Verified]}
\blank[2*big]
\stopalignment

\setupTABLE[frame=off]
\setupTABLE[r][each][height=0.35in]
\setupTABLE[c][1,3][align={center,lohi},width=0.75in]
\setupTABLE[c][2,4][align={flushleft,lohi},width=2.25in,loffset=0.1in]
\setupTABLE[r][4,6][topframe=on]
\setupTABLE[r][1][topframe=on,bottomframe=on]
\setupTABLE[r][last][bottomframe=on]

\midaligned{
\bTABLE
\bTABLEbody
	\bTR
		\bTD Circuit \eTD
		\bTD Description \eTD
		\bTD Circuit \eTD
		\bTD Description \eTD
	\eTR
%	\bTR
%		\bTD [nr=2] 5 \eTD \bTD [nr=2] Bedrooms 2+3 Arc Fault Plugs \eTD
%		\bTD [nr=2] 6 \eTD \bTD [nr=2] Roof Heating Cable \eTD
%	\eTR
	\bTR
		\bTD [nr=2] 7 \eTD \bTD [nr=2] Bedroom 4 Arc Fault Plug \eTD
		\bTD [nr=2] 8 \eTD \bTD [nr=2] \unused \eTD
	\eTR
\eTABLEbody
\eTABLE
}
\stoptext


test.pdf
Description: Adobe PDF document
\setuppapersize[letter]
\setuplayout[header=0in,footer=0in,topspace=0.75in,backspace=1.25in]
\setuppagenumbering[location=]
\switchtobodyfont[11pt]
\starttext
\startalignment[center]
\placetable[here][]{none}
\starttable[|cw(0.75in)|lw(1.5in)|cw(0.75in)|lw(1.5in)|]
\HL
\NC {\sc Circuit} \NC {\sc Description} \VL {\sc Circuit} \NC {\sc Description} \NC\SR
\HL
\NC \LOW{7} \NC \LOW{Bedrooms 2+3 Arc Fault Plug} \VL \LOW{8} \NC \LOW{\tt Unused} \NC\FR
\DC \DC \VL \NC \NC\MR
\HL
\NC \LOW{9} \NC \LOW{Bedroom 4 Arc Fault Plug} \VL \LOW{10} \NC \LOW{\tt Spare} \NC\FR
\DC \DC \VL \NC \NC\MR
\HL
\stoptable
\stoptext


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

[NTG-context] Something similar to MarVoSym package for ConTeXt

2011-11-24 Thread Pavneet Arora
I am in need of some networking and other computer communications symbols.  Is 
there something similar to the MarVoSym package for LaTeX?  Or if there is a 
symbol font recommendation, that would be helpful as well.


Many thanks.

--
-
- Pavneet Arora


___
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] Double height rows using natural tables?

2011-11-24 Thread Christian
 I have tried various combinations and have so far been unsuccessful in
 getting a row of double height using natural tables.  I am following up and
 enclosing a minimal example, along with the a previous incarnation using
 TABLE, which does give me the intended layout.
 
 Any suggestions on how to do the same using natural tables would be greatly
 appreciated.

use the height parameter for the table row. also, I don't thik you've 
understood the meaning of 'nr=2'.
I suggest you read the wiki entry on TABLES: http://wiki.contextgarden.net/TABLE


and here's your table back ;P :

\bTABLE
\bTABLEbody
\bTR
\bTD Circuit \eTD
\bTD Description \eTD
\bTD Circuit \eTD
\bTD Description \eTD
\eTR

\bTR[height=0.7in]
\bTD  7 \eTD \bTD  Bedroom 4 Arc Fault Plug \eTD
\bTD  8 \eTD \bTD  \unused \eTD
\eTR
\eTABLEbody
\eTABLE

___
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] Something similar to MarVoSym package for ConTeXt

2011-11-24 Thread Christian
 I am in need of some networking and other computer communications
 symbols.  Is there something similar to the MarVoSym package for LaTeX?  Or
 if there is a symbol font recommendation, that would be helpful as well.
 
 Many thanks.

Hello,

It is recommended to check the wiki before asking on the list.
http://wiki.contextgarden.net/Symbols

Have fun!

___
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] Text in a box now broken

2011-11-24 Thread Kip Warner
On Thu, 2011-11-24 at 09:44 +0100, Hans Hagen wrote:
 the old one is fixed anyway

Thanks anyways.

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
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] Double height rows using natural tables?

2011-11-24 Thread Pavneet Arora
Thank you, Christian.  However, I find explicitly setting the row height a bit 
awkward.  What happens if I changed the height value in my \setupTABLE 
directive?  Then I would have to change all references to height in the table 
explicitly.  Also, my made up example is *only* of double rows.  However, I have 
the earlier example where this is a mixture of row spans across different 
columns.  It was just by chance that I was in a situation with all adjacent 
cells in a particular row requiring a row span.


Why would that be considered not an application of [nr=?]?  And if it indeed the 
case, shouldn't it be explicit that [nr=2] doesn't apply to an entire row?


Regards.


On 11-11-24 05:47 PM, Christian wrote:

I have tried various combinations and have so far been unsuccessful in
getting a row of double height using natural tables.  I am following up and
enclosing a minimal example, along with the a previous incarnation using
TABLE, which does give me the intended layout.

Any suggestions on how to do the same using natural tables would be greatly
appreciated.


use the height parameter for the table row. also, I don't thik you've 
understood the meaning of 'nr=2'.
I suggest you read the wiki entry on TABLES: http://wiki.contextgarden.net/TABLE


and here's your table back ;P :

\bTABLE
\bTABLEbody
\bTR
\bTD Circuit \eTD
\bTD Description \eTD
\bTD Circuit \eTD
\bTD Description \eTD
\eTR

\bTR[height=0.7in]
\bTD  7 \eTD \bTD  Bedroom 4 Arc Fault Plug \eTD
\bTD  8 \eTD \bTD  \unused \eTD
\eTR
\eTABLEbody
\eTABLE



--
-
- Pavneet Arora

Waroc Fine Audio + Custom Home Cinema
www.waroc.com  416.937.WAROC (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] Something similar to MarVoSym package for ConTeXt

2011-11-24 Thread Pavneet Arora

Just to answer my own question.  A list member suggested that I search
for the keyword `symbols'.  I had indeed referred to the wiki before
posting, but entered as a search the singular `symbol' rather than the
plural. What I got back as the lead item:

http://wiki.contextgarden.net/Reference/en/symbol

Thanks again for pointing me in the right direction.

--
-
- Pavneet Arora

Waroc Fine Audio + Custom Home Cinema
www.waroc.com  416.937.WAROC (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] Double height rows using natural tables?

2011-11-24 Thread Christian
If you want all rows double height except the first, just do it the other way 
around.
\setupTABLE[r][each][height=0.7in]
and then for the first row:
\bTR[height=0.35in]
Then it's only 2 digits to change :)

[nr=X] is for a cell spanning X rows. Hint: nr=number rows. So you'll get a 
single cell that reaches down X rows. it's not meant to be used to adjust the 
height of a row.

Check this out, lots of examples: 
http://www.pragma-ade.com/general/manuals/enattab.pdf


 Thank you, Christian.  However, I find explicitly setting the row height a bit
 awkward.  What happens if I changed the height value in my \setupTABLE
 directive?  Then I would have to change all references to height in the table
 explicitly.  Also, my made up example is *only* of double rows.  However, I
 have the earlier example where this is a mixture of row spans across
 different columns.  It was just by chance that I was in a situation with all
 adjacent cells in a particular row requiring a row span.
 
 Why would that be considered not an application of [nr=?]?  And if it indeed
 the case, shouldn't it be explicit that [nr=2] doesn't apply to an entire row?
 
 Regards.
 
 
 On 11-11-24 05:47 PM, Christian wrote:
  I have tried various combinations and have so far been unsuccessful
  in getting a row of double height using natural tables.  I am
  following up and enclosing a minimal example, along with the a
  previous incarnation using TABLE, which does give me the intended
 layout.
 
  Any suggestions on how to do the same using natural tables would be
  greatly appreciated.
 
  use the height parameter for the table row. also, I don't thik you've
 understood the meaning of 'nr=2'.
  I suggest you read the wiki entry on TABLES:
  http://wiki.contextgarden.net/TABLE
 
 
  and here's your table back ;P :
 
  \bTABLE
  \bTABLEbody
  \bTR
  \bTD Circuit \eTD
  \bTD Description \eTD
  \bTD Circuit \eTD
  \bTD Description \eTD
  \eTR
 
  \bTR[height=0.7in]
  \bTD  7 \eTD \bTD  Bedroom 4 Arc Fault Plug \eTD
  \bTD  8 \eTD \bTD  \unused \eTD
  \eTR
  \eTABLEbody
  \eTABLE
 
 
 --
 -
 - Pavneet Arora
 
 Waroc Fine Audio + Custom Home Cinema
 www.waroc.com  416.937.WAROC (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
 __
 _

___
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] Double height rows using natural tables?

2011-11-24 Thread Pavneet Arora

Yes, I get that part.  Perhaps, a larger example will illustrate .

Enclosed is a simple electrical panel.  Many are 40 or 60 circuits large.  Note 
that you have an assortment of cells spanning rows depending on breaker size. 
It is only by chance that in a particular case adjacent breaker might utilize 
the full slot.  Hence the [nr=2] approach.  So in the given panel, if circuits 
15 and 16 were both double-pole, it would be incorrect to label them as 15A/15B 
and 16A/16B.  Then for that particular 'row' I would need double height.


On 11-11-24 06:07 PM, Christian wrote:

If you want all rows double height except the first, just do it the other way 
around.
\setupTABLE[r][each][height=0.7in]
and then for the first row:
\bTR[height=0.35in]
Then it's only 2 digits to change :)

[nr=X] is for a cell spanning X rows. Hint: nr=number rows. So you'll get a 
single cell that reaches down X rows. it's not meant to be used to adjust the 
height of a row.

Check this out, lots of examples: 
http://www.pragma-ade.com/general/manuals/enattab.pdf



Thank you, Christian.  However, I find explicitly setting the row height a bit
awkward.  What happens if I changed the height value in my \setupTABLE
directive?  Then I would have to change all references to height in the table
explicitly.  Also, my made up example is *only* of double rows.  However, I
have the earlier example where this is a mixture of row spans across
different columns.  It was just by chance that I was in a situation with all
adjacent cells in a particular row requiring a row span.

Why would that be considered not an application of [nr=?]?  And if it indeed
the case, shouldn't it be explicit that [nr=2] doesn't apply to an entire row?

Regards.


On 11-11-24 05:47 PM, Christian wrote:

I have tried various combinations and have so far been unsuccessful
in getting a row of double height using natural tables.  I am
following up and enclosing a minimal example, along with the a
previous incarnation using TABLE, which does give me the intended

layout.


Any suggestions on how to do the same using natural tables would be
greatly appreciated.


use the height parameter for the table row. also, I don't thik you've

understood the meaning of 'nr=2'.

I suggest you read the wiki entry on TABLES:
http://wiki.contextgarden.net/TABLE


and here's your table back ;P :

\bTABLE
\bTABLEbody
\bTR
\bTD Circuit \eTD
\bTD Description \eTD
\bTD Circuit \eTD
\bTD Description \eTD
\eTR

\bTR[height=0.7in]
\bTD  7 \eTD \bTD  Bedroom 4 Arc Fault Plug \eTD
\bTD  8 \eTD \bTD  \unused \eTD
\eTR
\eTABLEbody
\eTABLE



--
-
- Pavneet Arora

Waroc Fine Audio + Custom Home Cinema
www.waroc.com  416.937.WAROC (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
__
_




--
-
- Pavneet Arora

Waroc Fine Audio + Custom Home Cinema
www.waroc.com  416.937.WAROC (9276)



FE-Pool-Storage-Room-Electrical.pdf
Description: Adobe PDF document
\setuppapersize[letter]
\setuplayout[header=0in,footer=0in,topspace=0.75in,backspace=1.25in]
\setuppagenumbering[location=]
\setupbodyfont[11pt]
%\usemodule[simplefonts]
%\setmainfont[GentiumBasic]
\starttext
%\showlayout[pt,in]
%\showbodyfont
\define\unused{{\tt [Unused]}}
\def\spare{\dosingleempty\doSpare}
\def\doSpare[#1]{%
	\iffirstargument
		{\tt [#1]}
	\else
		{\tt [15A]}
	\fi
	{\tt [Spare]}
}
\startalignment[center]
{\tfb\sc FE Pool Storage Room}
\blank
{\tfa\sc Electrical Panel}
\blank
{\tfa Panel Model: Cutler-Hammer CPL116 Ser. B}
\blank
{\tfb \tt [DRAFT---To Be Verified]}
\blank[2*big]
\stopalignment

\midaligned{
\setupTABLE[frame=off]
\setupTABLE[r][each][height=0.35in]
\setupTABLE[c][1,3][align={center,lohi},width=0.75in]
\setupTABLE[c][2,4][align={flushleft,lohi},width=2.25in,loffset=0.1in]
\setupTABLE[r][1][topframe=on,bottomframe=on]
\setupTABLE[r][last][bottomframe=on]
\setupTABLE[c][3][leftframe=on]
\setupTABLE[r][4][topframe=on]
\setupTABLE[r][6][topframe=on]
\setupTABLE[r][8][topframe=on]
\setupTABLE[r][10][topframe=on]
\setupTABLE[r][12][topframe=on]
\setupTABLE[r][16][topframe=on]
\setupTABLE[1,3,4][14][topframe=on]
\setupTABLE[2][13,15][topframe=on]
\bTABLE
\bTABLEbody
	\bTR
		\bTD Circuit \eTD
		\bTD Description \eTD
		\bTD Circuit \eTD
		\bTD Description \eTD
	\eTR
	\bTR
		\bTD [nr=2] 1 \eTD \bTD [nr=4] Baseboard Heater \eTD
		\bTD 2A \eTD \bTD[background=color,backgroundcolor=gray] \spare \eTD
	\eTR
	\bTR
		\bTD 2B \eTD 

Re: [NTG-context] Double height rows using natural tables?

2011-11-24 Thread Christian
Now I don't get it :D What do you want to accomplish? Maybe an annotated 
screenshot would help?

anyway, here's a another tip:
\setupTABLE[r][4][topframe=on]
\setupTABLE[r][6][topframe=on]
\setupTABLE[r][8][topframe=on]
\setupTABLE[r][10][topframe=on]
\setupTABLE[r][12][topframe=on]
\setupTABLE[r][16][topframe=on]
=
\setupTABLE[r][4,6,8,10,16][topframe=on]

 Yes, I get that part.  Perhaps, a larger example will illustrate .
 
 Enclosed is a simple electrical panel.  Many are 40 or 60 circuits large.  
 Note
 that you have an assortment of cells spanning rows depending on breaker
 size.
 It is only by chance that in a particular case adjacent breaker might utilize 
 the
 full slot.  Hence the [nr=2] approach.  So in the given panel, if circuits
 15 and 16 were both double-pole, it would be incorrect to label them as
 15A/15B and 16A/16B.  Then for that particular 'row' I would need double
 height.
 
 On 11-11-24 06:07 PM, Christian wrote:
  If you want all rows double height except the first, just do it the other 
  way
 around.
  \setupTABLE[r][each][height=0.7in]
  and then for the first row:
  \bTR[height=0.35in]
  Then it's only 2 digits to change :)
 
  [nr=X] is for a cell spanning X rows. Hint: nr=number rows. So you'll get a
 single cell that reaches down X rows. it's not meant to be used to adjust the
 height of a row.
 
  Check this out, lots of examples:
  http://www.pragma-ade.com/general/manuals/enattab.pdf
 
 
  Thank you, Christian.  However, I find explicitly setting the row
  height a bit awkward.  What happens if I changed the height value in
  my \setupTABLE directive?  Then I would have to change all references
  to height in the table explicitly.  Also, my made up example is
  *only* of double rows.  However, I have the earlier example where
  this is a mixture of row spans across different columns.  It was just
  by chance that I was in a situation with all adjacent cells in a 
  particular row
 requiring a row span.
 
  Why would that be considered not an application of [nr=?]?  And if it
  indeed the case, shouldn't it be explicit that [nr=2] doesn't apply to an
 entire row?
 
  Regards.
 
 
  On 11-11-24 05:47 PM, Christian wrote:
  I have tried various combinations and have so far been unsuccessful
  in getting a row of double height using natural tables.  I am
  following up and enclosing a minimal example, along with the a
  previous incarnation using TABLE, which does give me the intended
  layout.
 
  Any suggestions on how to do the same using natural tables would be
  greatly appreciated.
 
  use the height parameter for the table row. also, I don't thik
  you've
  understood the meaning of 'nr=2'.
  I suggest you read the wiki entry on TABLES:
  http://wiki.contextgarden.net/TABLE
 
 
  and here's your table back ;P :
 
  \bTABLE
  \bTABLEbody
\bTR
\bTD Circuit \eTD
\bTD Description \eTD
\bTD Circuit \eTD
\bTD Description \eTD
\eTR
 
\bTR[height=0.7in]
\bTD  7 \eTD \bTD  Bedroom 4 Arc Fault Plug \eTD
\bTD  8 \eTD \bTD  \unused \eTD
\eTR
  \eTABLEbody
  \eTABLE
 
 
  --
  -
  - Pavneet Arora
 
  Waroc Fine Audio + Custom Home Cinema www.waroc.com
 416.937.WAROC
  (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
 
 __
  _
 
 
 --
 -
 - Pavneet Arora
 
 Waroc Fine Audio + Custom Home Cinema
 www.waroc.com  416.937.WAROC (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] TextBackground text area

2011-11-24 Thread Kip Warner
On Wed, 2011-11-23 at 21:52 -0500, Aditya Mahajan wrote:
 Why not just increase the value of leftoffset and rightoffset?

This seems to work, but I find a problem is that if the text box spans
multiple pages, bottomoffset / topoffset are ignored at the points where
the page breaks. Suggestions?

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
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] Double height rows using natural tables?

2011-11-24 Thread Pavneet Arora
From an earlier version using `unnatural' tables, I have enclosed the output 
PDF.  This situation can arise anywhere in the panel/table where you have 
adjacent rows allow of which should be spanning a double row.  In this case 
circuits 15 and 16 occupy a double slot on the panel with a single breaker; 
hence the layout should reflect this.  How would this be best achieved in the 
natural table model?  Shouldn't we just be dealing with spans independently of 
worrying about whether other adjacent columns will also require a row span?


On 11-11-24 06:23 PM, Christian wrote:

Now I don't get it :D What do you want to accomplish? Maybe an annotated 
screenshot would help?

anyway, here's a another tip:
\setupTABLE[r][4][topframe=on]
\setupTABLE[r][6][topframe=on]
\setupTABLE[r][8][topframe=on]
\setupTABLE[r][10][topframe=on]
\setupTABLE[r][12][topframe=on]
\setupTABLE[r][16][topframe=on]
=
\setupTABLE[r][4,6,8,10,16][topframe=on]


Yes, I get that part.  Perhaps, a larger example will illustrate .

Enclosed is a simple electrical panel.  Many are 40 or 60 circuits large.  Note
that you have an assortment of cells spanning rows depending on breaker
size.
It is only by chance that in a particular case adjacent breaker might utilize 
the
full slot.  Hence the [nr=2] approach.  So in the given panel, if circuits
15 and 16 were both double-pole, it would be incorrect to label them as
15A/15B and 16A/16B.  Then for that particular 'row' I would need double
height.

On 11-11-24 06:07 PM, Christian wrote:

If you want all rows double height except the first, just do it the other way

around.

\setupTABLE[r][each][height=0.7in]
and then for the first row:
\bTR[height=0.35in]
Then it's only 2 digits to change :)

[nr=X] is for a cell spanning X rows. Hint: nr=number rows. So you'll get a

single cell that reaches down X rows. it's not meant to be used to adjust the
height of a row.


Check this out, lots of examples:
http://www.pragma-ade.com/general/manuals/enattab.pdf



Thank you, Christian.  However, I find explicitly setting the row
height a bit awkward.  What happens if I changed the height value in
my \setupTABLE directive?  Then I would have to change all references
to height in the table explicitly.  Also, my made up example is
*only* of double rows.  However, I have the earlier example where
this is a mixture of row spans across different columns.  It was just
by chance that I was in a situation with all adjacent cells in a particular row

requiring a row span.


Why would that be considered not an application of [nr=?]?  And if it
indeed the case, shouldn't it be explicit that [nr=2] doesn't apply to an

entire row?


Regards.


On 11-11-24 05:47 PM, Christian wrote:

I have tried various combinations and have so far been unsuccessful
in getting a row of double height using natural tables.  I am
following up and enclosing a minimal example, along with the a
previous incarnation using TABLE, which does give me the intended

layout.


Any suggestions on how to do the same using natural tables would be
greatly appreciated.


use the height parameter for the table row. also, I don't thik
you've

understood the meaning of 'nr=2'.

I suggest you read the wiki entry on TABLES:
http://wiki.contextgarden.net/TABLE


and here's your table back ;P :

\bTABLE
\bTABLEbody
\bTR
\bTD Circuit \eTD
\bTD Description \eTD
\bTD Circuit \eTD
\bTD Description \eTD
\eTR

\bTR[height=0.7in]
\bTD  7 \eTD \bTD  Bedroom 4 Arc Fault Plug \eTD
\bTD  8 \eTD \bTD  \unused \eTD
\eTR
\eTABLEbody
\eTABLE



--
-
- Pavneet Arora

Waroc Fine Audio + Custom Home Cinema www.waroc.com

416.937.WAROC

(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


__

_




--
-
- Pavneet Arora

Waroc Fine Audio + Custom Home Cinema
www.waroc.com  416.937.WAROC (9276)





--
-
- Pavneet Arora

Waroc Fine Audio + Custom Home Cinema
www.waroc.com  416.937.WAROC (9276)



FE-Pool-Storage-Room-Electrical.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] caption none

2011-11-24 Thread Hans Hagen

On 24-11-2011 22:03, Thomas A. Schmitz wrote:

On 11/24/2011 09:12 PM, Wolfgang Schuster wrote:

This was always possible:

\placefigure[here,none]{}{…}

Wolfgang


OK, I see, now it's only the combination of these two keywords that gets
rid of the caption. Conscious decision or side effect?


the first key is the location

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] Feature request: criterium=component

2011-11-24 Thread Idris Samawi Hamid ادريس سماوي حامد

Dear inner circle,

I have two components, each a book in its own right, and each with  
multiple \part's, \chapter's, \section's etc. Through products and  
components I have all crossreferences between the two books set up, thanks  
to the mechanisms put in place this fall by Hans.


I compile both components through the product file. Problem: I cannot  
separate the list of Tables in component~1 from those in component~2. So a  
list of Tables in component~1 contains the tables in component~ and vice  
versa.


For TOC I was able to get around this by defining, for component~2, mirror  
section heads with different names but identical functionality to those in  
component~1. But for tables I have not been able to get this work-around  
to work:


http://archive.contextgarden.net/message/2024.203204.79333c77.en.html

So, in any case, it sames that adding a criterium=component option would  
be the most user-friendly way to handle this kind of case. Is it feasible?  
Thnx in advance and


Best wishes
Idris
--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shīʿī Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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] [Regression] math: alignment parameters confused

2011-11-24 Thread Paul Menzel
Dear ConTeXt folks,


Am Sonntag, den 20.11.2011, 20:09 +0100 schrieb Paul Menzel:

 there must be a regression between
 
 ConTeXt  ver: 2011.05.18 18:04 MKIV  fmt: 2011.7.24  int: english/english
 
 and
 
 ConTeXt  ver: 2011.10.14 22:47 MKIV  fmt: 2011.10.15  int: english/english.
 
 Using the minimal example
 
 \starttext
 \placeformula
 \startformula
 \startmathalignment[n=4, align={left, right, middle, left}]
 \NC A \NC B \NC C \NC D \NR
 \NC AA \NC BB \NC CC \NC DD \NR
 \stopmathalignment
 \stopformula
 \stoptext
 
 the last row is aligned like middle instead of left.

I can also reproduce this using the following version.

ConTeXt  ver: 2011.11.23 18:58 MKIV  fmt: 2011.11.24  int: 
english/english


Thanks,

Paul
\starttext
\placeformula
\startformula
\startmathalignment[n=4, align={left, right, middle, left}]
\NC A \NC B \NC C \NC D \NR
\NC AA \NC BB \NC CC \NC DD \NR
\stopmathalignment
\stopformula
\stoptext


2011.05.18--align.pdf
Description: Adobe PDF document


2011.11.24--align.pdf
Description: Adobe PDF document


signature.asc
Description: This is a digitally signed message part
___
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] [Regression] math: alignment parameters confused

2011-11-24 Thread Aditya Mahajan

On Fri, 25 Nov 2011, Paul Menzel wrote:


Dear ConTeXt folks,


Am Sonntag, den 20.11.2011, 20:09 +0100 schrieb Paul Menzel:


there must be a regression between

ConTeXt  ver: 2011.05.18 18:04 MKIV  fmt: 2011.7.24  int: english/english

and

ConTeXt  ver: 2011.10.14 22:47 MKIV  fmt: 2011.10.15  int: english/english.

Using the minimal example

\starttext
\placeformula
\startformula
\startmathalignment[n=4, align={left, right, middle, left}]
\NC A \NC B \NC C \NC D \NR
\NC AA \NC BB \NC CC \NC DD \NR
\stopmathalignment
\stopformula
\stoptext

the last row is aligned like middle instead of left.


I can also reproduce this using the following version.

   ConTeXt  ver: 2011.11.23 18:58 MKIV  fmt: 2011.11.24  int: 
english/english


Sorry, I don't have the time to debug any math related bugs right now. 
Hopefully, Hans or Taco will be able to look into it.


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] Double height rows using natural tables?

2011-11-24 Thread Christian
Ok, I don't understand occupy a double slot on the panel with a single 
breaker, that’s some tech-talk I guess,
but how about faking it:
use in you preamble
\dimen0=.35in
and then use for the header (or all the rows):
\bTR[height=\dimen0]
and for fake doubles
\bTR[height=2\dimen0]

This way you change dimen0, you change the whole thing.

P.S: apparently having ALL cells in a single row having [nr=2] does screw up 
the table  instead of doubling the cell height (what you wanted, I guess).

 -Ursprüngliche Nachricht-
 Von: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] Im
 Auftrag von Pavneet Arora
 Gesendet: Freitag, 25. November 2011 00:47
 Cc: 'mailing list for ConTeXt users'
 Betreff: Re: [NTG-context] Double height rows using natural tables?
 
  From an earlier version using `unnatural' tables, I have enclosed the output
 PDF.  This situation can arise anywhere in the panel/table where you have
 adjacent rows allow of which should be spanning a double row.  In this case
 circuits 15 and 16 occupy a double slot on the panel with a single breaker;
 hence the layout should reflect this.  How would this be best achieved in the
 natural table model?  Shouldn't we just be dealing with spans independently
 of worrying about whether other adjacent columns will also require a row
 span?
 
 On 11-11-24 06:23 PM, Christian wrote:
  Now I don't get it :D What do you want to accomplish? Maybe an
 annotated screenshot would help?
 
  anyway, here's a another tip:
  \setupTABLE[r][4][topframe=on]
  \setupTABLE[r][6][topframe=on]
  \setupTABLE[r][8][topframe=on]
  \setupTABLE[r][10][topframe=on]
  \setupTABLE[r][12][topframe=on]
  \setupTABLE[r][16][topframe=on]
  =
  \setupTABLE[r][4,6,8,10,16][topframe=on]
 
  Yes, I get that part.  Perhaps, a larger example will illustrate .
 
  Enclosed is a simple electrical panel.  Many are 40 or 60 circuits
  large.  Note that you have an assortment of cells spanning rows
  depending on breaker size.
  It is only by chance that in a particular case adjacent breaker might
  utilize the full slot.  Hence the [nr=2] approach.  So in the given
  panel, if circuits
  15 and 16 were both double-pole, it would be incorrect to label them
  as 15A/15B and 16A/16B.  Then for that particular 'row' I would need
  double height.
 
  On 11-11-24 06:07 PM, Christian wrote:
  If you want all rows double height except the first, just do it the
  other way
  around.
  \setupTABLE[r][each][height=0.7in]
  and then for the first row:
  \bTR[height=0.35in]
  Then it's only 2 digits to change :)
 
  [nr=X] is for a cell spanning X rows. Hint: nr=number rows. So
  you'll get a
  single cell that reaches down X rows. it's not meant to be used to
  adjust the height of a row.
 
  Check this out, lots of examples:
  http://www.pragma-ade.com/general/manuals/enattab.pdf
 
 
  Thank you, Christian.  However, I find explicitly setting the row
  height a bit awkward.  What happens if I changed the height value
  in my \setupTABLE directive?  Then I would have to change all
  references to height in the table explicitly.  Also, my made up
  example is
  *only* of double rows.  However, I have the earlier example where
  this is a mixture of row spans across different columns.  It was
  just by chance that I was in a situation with all adjacent cells in
  a particular row
  requiring a row span.
 
  Why would that be considered not an application of [nr=?]?  And if
  it indeed the case, shouldn't it be explicit that [nr=2] doesn't
  apply to an
  entire row?
 
  Regards.
 
 
  On 11-11-24 05:47 PM, Christian wrote:
  I have tried various combinations and have so far been
  unsuccessful in getting a row of double height using natural
  tables.  I am following up and enclosing a minimal example, along
  with the a previous incarnation using TABLE, which does give me
  the intended
  layout.
 
  Any suggestions on how to do the same using natural tables would
  be greatly appreciated.
 
  use the height parameter for the table row. also, I don't thik
  you've
  understood the meaning of 'nr=2'.
  I suggest you read the wiki entry on TABLES:
  http://wiki.contextgarden.net/TABLE
 
 
  and here's your table back ;P :
 
  \bTABLE
  \bTABLEbody
  \bTR
  \bTD Circuit \eTD
  \bTD Description \eTD
  \bTD Circuit \eTD
  \bTD Description \eTD
  \eTR
 
  \bTR[height=0.7in]
  \bTD  7 \eTD \bTD  Bedroom 4 Arc Fault Plug \eTD
  \bTD  8 \eTD \bTD  \unused \eTD
  \eTR
  \eTABLEbody
  \eTABLE
 
 
  --
  -
  - Pavneet Arora
 
  Waroc Fine Audio + Custom Home Cinema www.waroc.com
  416.937.WAROC
  (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
  

Re: [NTG-context] float names and lists

2011-11-24 Thread Idris Samawi Hamid ادريس سماوي حامد
On Thu, 24 Nov 2011 13:32:04 -0700, Idris Samawi Hamid ادريس   سماوي حامد  
isha...@colostate.edu wrote:


1. How do I change the prefix that heads the caption of a table? For  
example, \definefloat[tablecw] produces

 Tablecw 1
 I want to keep the command name of the float but change the prefix. I  
tried things like

 \setupcaption[tablecw][prefix=My Table]
\setupcaption[tablecw][name=My Table]
 but no success.


\setuplabeltext[tablecw=Table]

But challenge 2 remains unsolved.

Best wishes
Idris
--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shīʿī Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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] float names and lists

2011-11-24 Thread Idris Samawi Hamid ادريس سماوي حامد
On Thu, 24 Nov 2011 13:32:04 -0700, Idris Samawi Hamid ادريس   سماوي حامد isha...@colostate.edu wrote: 2. \placelistoftablescws produces an undefined control sequence: What am   I missing here?Experimenting from here, it seems there has been a protocol change:Given \definefloatwe used to have\placelistoffloatswith 's' at the end. Now it's just\placelistoffloatSo the following now works:\definefloat[tablecw]	\setuplabeltext[tablecw=Table]\starttext  \setupfloats[location=middle]  \placetable  [here]  [tablecw:test]{A Regular Caption.}  {\starttable[|c|c|c|]\HL  \VL Test \VL  Test  \VL Test  \VL\FR  \HL  \stoptable}\setupfloats[location=middle]  \placetablecw  [here]  [tablecw:test]{An Alternate Caption.}  {\starttable[|c|c|c|]\HL  \VL Test \VL  Test  \VL Test  \VL\FR  \HL  \stoptable}\placelistoftables\placelistoftablecw \stoptext Still, a criterium=component option etc would be quite useful, as mentioned in another message ...Best wishesIdris-- Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shīʿī Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523___
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] float names and lists

2011-11-24 Thread Wolfgang Schuster

Am 25.11.2011 um 03:02 schrieb Idris Samawi Hamid ادريس سماوي حامد:

 On Thu, 24 Nov 2011 13:32:04 -0700, Idris Samawi Hamid ادريس سماوي حامد 
 isha...@colostate.edu wrote:
 
  2. \placelistoftablescws produces an undefined control sequence: What am 
  I missing here?
 
 Experimenting from here, it seems there has been a protocol change: 
 
 Given \definefloat
 
 we used to have
 
 \placelistoffloats
 
 with 's' at the end. Now it's just
 
 \placelistoffloat

It works when you give \definefloat a second argument with the plural name of 
your float.

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
___

[NTG-context] Text in margin

2011-11-24 Thread Kip Warner
Hey list,

I am trying to get text to appear in the margin, small, and italicized.
The following doesn't appear to effect its size or italicization at all:

\setupinmargin[
background=color, 
color=colour_text,
backgroundcolor=colour_page,
bodyfont=3pt,
before={\switchtobodyfont[3pt]}
style=\ss\tfx\setupinterlinespace]

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
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
___