Re: [NTG-context] Booktabs equivalent in Context

2007-08-09 Thread Wolfgang Schuster
2007/8/9, Hamid Kamrani [EMAIL PROTECTED]:
 Aditya,

 In the example you give with CMID you have only two column preambles
 whereas the table has 3 columns and if one adds the missing preamble
 then one gets an error. Some how your new code breaks the calculation
 for number of columns.

 -Hamid

He forgot only to put a \NC before the \AR.

The correct code should be

\starttable[s0|l|l|l|]
 \HL[3]
 \NC Monat \NC 1965  \NC 1966  \NC\AR
 \NC \CMID \NC \CMID \NC \CMID \DR
 \NC September \NC 2000  \NC 1700 \NC\AR
 \HL[3]
\stoptable

Wolfgang

 On 8/8/07, Aditya Mahajan [EMAIL PROTECTED] wrote:
  Quoting Johannes Graumann [EMAIL PROTECTED]:
 
   Aditya Mahajan wrote:
  
   Hi,
  
   The question of how to get tables equivalent to latex's booktabs
   package has been discussed quite a few times in the past. Booktabs
   package provides (top|mid|bottom)rule commands and a cmidrule command.
   The top and bottom rules are 0.08em thick, the midrule is 0.05em thick,
   and the cmidrules are 0.03em thick. The cmidrules do not extend beyond
   the columns edge. Here is an example of how to do something similar
   using tables in context http://wiki.contextgarden.net/Table#Booktabs.
  
   To me this looks exactly similar to the example in the booktabs manual.
   Am I missing something, or is it fair to say that context can generate
   booktabs like tables?
 
   Hello,
  
   I'm one of the booktab-equivalent requesters and in my case the request is
   motivated by the (sadly German-only)
   http://www.ctan.org/tex-archive/info/german/tabsatz/tabsatz.pdf
   Please compare examples on pages 4 and 5 for the cmidrule functionality 
   I'm
   missing in ConTeXt. The clarity you can give classy looking tables with
   trimmed cmidrules is even more evident in the example on page 9. There's
   lots of more use of this in the document, but it gets too esoteric to be
   easily grasped quickly (IMHO).
 
  Here is one attempt, which works correctly. Of course the best solution
  is to forget about the \omit and set the halign preamble correctly. But
  I have not been able to figure that out yet.
 
  \starttext
 
  \def\CMID{\normalTABLEshortrule}
 
  \unprotect
  \def\TableNC
{\checkTABLEautorow
 \nextTABLEgrayline
 \ifnum\currentTABLEcolumn\maxTABLEcolumn
   \setTABLEerror\TABLEmissingrow
   \handleTABLEerror
 \else
   \global\advance\currentTABLEcolumn \plusone
   \ifnum\currentTABLEcolumn=1\relax
 \normalTABLEquote
   \else
 \fancyTABLEquote
\fi
 \fi}
 
  \def\fancyTABLEquote  {\unskip\!ttRightGlue\omit\hskip2em} % 
  \protect
 
  \setuptables[rulethickness=0.03em]
 
  \starttable[s0|l|l|]
\HL[3]
\NC Monat \NC 1965  \NC 1966  \AR
\NC \CMID \NC \CMID \NC \CMID \DR
\NC September \NC 2000  \NC 1700 \AR
\HL[3]
  \stoptable
 
  \stoptext
 
 
  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  : https://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  : https://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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Difference between MKIV and MKII

2007-08-09 Thread Hans Hagen
Aditya Mahajan wrote:
 Hi,
 
 I get significantly different white spaces (and hence page breaks) 
 while using mkiv and mkii. Is this expected, or should I try to create 
 minimal example exhibiting such problems?

indeed


-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Booktabs equivalent in Context

2007-08-09 Thread Aditya Mahajan

On Thu, 9 Aug 2007, Wolfgang Schuster wrote:


2007/8/9, Hamid Kamrani [EMAIL PROTECTED]:

Aditya,

In the example you give with CMID you have only two column preambles
whereas the table has 3 columns and if one adds the missing preamble
then one gets an error. Some how your new code breaks the calculation
for number of columns.

-Hamid


He forgot only to put a \NC before the \AR.


Sorry about that. I thought I pasted from a correctly running example.

Here is another attempt, which I feel is the cleanest way to go about 
this whole thing. Right now the skip between the columns is not 
configurable, but it should be possible to use the get the value of 
the skip.


The attached code typesets an example that Wolfgang had sent off-list. 
I have only changed two lines of the table.tex.


Aditya
\TracingFormats=2

\starttext
\unprotect
% SET VRULE: Invoked by the key |
\def\!tfSetVrule{%
  \!thToksEdef\!taRuleColumnTemplate={%
\noexpand\hfil
\noexpand\vrule
\noexpand\!thWidth
\ifnum \!tgCode=1
  \ifx \!tgValue\empty
\the\LineThicknessFactor  % Default integer
  \else
\!tgValue % User-specified integer
  \fi
  \!taLTU % \LineThicknessUnit
\else
  \!tgValue   % User-specified dimension
\fi
%
\noexpand\hfil
\the\!taRuleColumnTemplate%  % has \tabskips, when column number=0
\ifnum\!taColumnNumber=\zerocount\else\tabskip2em\fi}%ADDED (should be 
configurable)
  \!tfAdjoinPriorColumn}

\def\!tfAdjoinPriorColumn{%
  \ifnum \!taColumnNumber=0
\!taPreamble=\!taRuleColumnTemplate % New \tabskip may have been added
\ifnum \TracingFormats0
  \!tfShowRuleTemplate
\fi
  \else
\ifx\!tfRowOfWidths\empty  % no w keys specified yet, not even this col
\else
  \!tfUpdateRowOfWidths
\fi
% Adjoin positioning glues to left and right of template
\!thToksEdef\!taDataColumnTemplate={%
  \the \!taLeftGlue
  \the \!taDataColumnTemplate
  \the \!taRightGlue
  \tabskip\zeropoint}%ADDED
\ifnum \TracingFormats0
  \!tfShowTemplates
\fi
% Adjoin data- and rule-column templates to preamble
\!thToksEdef\!taPreamble={%
  \the\!taPreamble
  
  \the\!taDataColumnTemplate
  
  \the\!taRuleColumnTemplate}
  \fi
%
% START NEW COLUMN
  \advance \!taColumnNumber 1
  % Initialize data-column template, restoring last regular tabskip
  % after a once only tabskip
  \if!taOnceOnlyTabskip
\!thToksEdef\!taDataColumnTemplate={%
   \tabskip \the\!taLastRegularTabskip}
  \else
\!taDataColumnTemplate{##}%
  \fi
  % Remaining initializations
  \!taRuleColumnTemplate{}% # is inserted by \SetVrule, or \SetAlternateVrule
  \!taLeftGlue{\hfil}% % Default positioning is center
  \!taRightGlue{\hfil}%
  \!taMinimumColumnWidth=0pt
  \def\!tfWidthText{}%
  \!taOnceOnlyTabskipfalse% Set true by key o
  \ReadFormatKeys}

\def\CM{\normalTABLEshortrule}

\protect



\starttable[s0|l|l|c|]
  \HL[3]
% \TABLEnoalign{\unprotect\showthe\!taPreamble\protect}
  \NC \Use3[c]{Kase-Ubersicht} \NC \AR
  \HL[2]
  \NC Kase\NC Herkunftsland \NC Preis (Euro) \NC \AR
  \NC \CM \NC \CM   \NC \CM  \NC \DR
  \NC Edamer  \NC Holland   \NC 12.23\NC \AR
  \NC Gouda   \NC Holland   \NC 9.34 \NC \AR
  \NC Emmentaler  \NC Allgau\NC 2.34 \NC \AR
  \NC Andechser Bierkase  \NC Bayern\NC 1.-- \NC \AR
  \HL[3]
\stoptable
\stoptext
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Change line spacing of the publication list

2007-08-09 Thread Roy Zuo
Hi,

I find that when the lines pacing of the text is set by
\setupinterlinespace, the line spacing of publication list is not
affected at all. I am just wondering if it is possible to change the
line spacing of the publication list produced by bibtex to make the
article have a uniform look.

Thanks in advance.

Roy
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Change line spacing of the publication list

2007-08-09 Thread Taco Hoekwater
Roy Zuo wrote:
 Hi,
 
 I find that when the lines pacing of the text is set by
 \setupinterlinespace, the line spacing of publication list is not
 affected at all. 

Seems to work here, what version are you using?


Best wishes,

Taco

PS  \setuppublicationlist[before={\setupinterlinespace[line=5pc]}]
perhaps helps

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Booktabs equivalent in Context

2007-08-09 Thread Wolfgang Schuster
2007/8/9, Aditya Mahajan [EMAIL PROTECTED]:
 On Thu, 9 Aug 2007, Wolfgang Schuster wrote:

  2007/8/9, Hamid Kamrani [EMAIL PROTECTED]:
  Aditya,
 
  In the example you give with CMID you have only two column preambles
  whereas the table has 3 columns and if one adds the missing preamble
  then one gets an error. Some how your new code breaks the calculation
  for number of columns.
 
  -Hamid
 
  He forgot only to put a \NC before the \AR.

 Sorry about that. I thought I pasted from a correctly running example.

 Here is another attempt, which I feel is the cleanest way to go about
 this whole thing. Right now the skip between the columns is not
 configurable, but it should be possible to use the get the value of
 the skip.

 The attached code typesets an example that Wolfgang had sent off-list.
 I have only changed two lines of the table.tex.

 Aditya

Hi Aditya,

what do you think about

\setuptables
  [\c!columndistance=2em]

\def\!tfSetVrule{%
  \!thToksEdef\!taRuleColumnTemplate={%
\noexpand\hfil
\noexpand\vrule
\noexpand\!thWidth
\ifnum \!tgCode=1
  \ifx \!tgValue\empty
\the\LineThicknessFactor  % Default integer
  \else
\!tgValue % User-specified integer
  \fi
  \!taLTU % \LineThicknessUnit
\else
  \!tgValue   % User-specified dimension
\fi
%
\noexpand\hfil
\the\!taRuleColumnTemplate%  % has \tabskips, when column number=0
\ifnum\!taColumnNumber=\zerocount\else\tabskip\@@ticolumndistance\fi}%ADDED
(should be configurable)
  \!tfAdjoinPriorColumn}

I changed your hard code 2em value for \tabskip to a parameter in \setuptables.

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] [Dev-luatex] Example: Sorting in LuaTeX

2007-08-09 Thread Hans Hagen
Jonathan Sauer wrote:
 Hello Hans,
 
 Caveat: In TeX, braces can be used to hide the delimiter; this is 
 not possible in the above code. I plan to code a 
 string.findOutsideBraces function to handle braces correctly, but
 I 
 wonder if this should not be a library routine.
 the embedded libaries and extensions are kept to the minimum, 
 if only because we want to avoid endless discussions about 
 what could go in there; lua is fast enough anyway; concerning 
 braces .. watch the %b option on expressions, can be handy 
 for nested braces
 
 Right. I am still learning Lua and had known about patterns, but not
 about %b. That indeed looks promising. I will look into it.

simple example ...

\def\sortedsequence#1#2{\directlua 0 {
 do
 local sep = \luaescapestring{#1}
 local str = \luaescapestring{#2}
 local tab = { }
 for s in string.gmatch(str,([^..sep..]+)) do
 tab[\string ##tab+1] = s
 end
 table.sort(tab)
 tex.sprint(table.concat(tab,sep))
 end
}}

\sortedsequence{,}{qq,aa,cc,bb,ee,xx}



-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] installing MKIV

2007-08-09 Thread Joel C. Salomon
On 8/8/07, Peter Rolf [EMAIL PROTECTED] wrote:
So you don't even need lua anymore.
  i see. but on windows you waste more than 7mb disk space this way.
  installing the lua binaries costs only 288kb. so where is the benefit?
 
  - no need to install anything else (no huge ruby/perl or whatever)
  - bytcode compiler in sync with luatex internals
  - texlua has the libs that we need built in
 
 it's just that i don't see the need for three identical files, when you
 can use one with different (mode switching) parameters. yes, i know.
 it's an early beta.

If you're concerned about the the 7 MB -- or in my case, not sure
you'll remember to update all three files at once -- and you're on a
machine with NTFS, you can create hard links.

--Joel
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] OpenType in ConTeXt

2007-08-09 Thread Oliver Buerschaper
 Yes. Best read the magazine has mentioned, and lookup
 \definefontfeature.

http://www.pragma-ade.com/general/magazines/mag-0012.pdf

By the way, is there a This way number 11?

Cheerio,
Oliver
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] installing MKIV

2007-08-09 Thread Peter Rolf
Joel C. Salomon schrieb:
 On 8/8/07, Peter Rolf [EMAIL PROTECTED] wrote:
   So you don't even need lua anymore.
 i see. but on windows you waste more than 7mb disk space this way.
 installing the lua binaries costs only 288kb. so where is the benefit?
 - no need to install anything else (no huge ruby/perl or whatever)
 - bytcode compiler in sync with luatex internals
 - texlua has the libs that we need built in

 it's just that i don't see the need for three identical files, when you
 can use one with different (mode switching) parameters. yes, i know.
 it's an early beta.
 
 If you're concerned about the the 7 MB -- or in my case, not sure
 you'll remember to update all three files at once -- and you're on a
 machine with NTFS, you can create hard links.

Hi Joel,

I don't think that there will be mulitple copies anymore.
And you are right: you can use hard links (NTFS only, so this is no
general solution)

on Windows XP:

fsutil hardlink create new file name old file name

In comparison to the symlinks that I created with 'junction', these
links are found. Thanks for the pointer.

Best, Peter


 --Joel
 ___
 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  : https://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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Booktabs equivalent in Context

2007-08-09 Thread Hamid Kamrani
Wolfgang,

It is not just a matter of forgetting the NC. When you add that NC
then the tabbing and alignment is incorrect for the last column. The
rules should not extend beyond the last column and in this case they
do.

Aditya's formatted correctly but had the wrong syntax. Yours has the
right syntax but formats incorrectly.

-Hamid


On 8/9/07, Wolfgang Schuster [EMAIL PROTECTED] wrote:
 2007/8/9, Hamid Kamrani [EMAIL PROTECTED]:
  Aditya,
 
  In the example you give with CMID you have only two column preambles
  whereas the table has 3 columns and if one adds the missing preamble
  then one gets an error. Some how your new code breaks the calculation
  for number of columns.
 
  -Hamid

 He forgot only to put a \NC before the \AR.

 The correct code should be

 \starttable[s0|l|l|l|]
  \HL[3]
  \NC Monat \NC 1965  \NC 1966  \NC\AR
  \NC \CMID \NC \CMID \NC \CMID \DR
  \NC September \NC 2000  \NC 1700 \NC\AR
  \HL[3]
 \stoptable

 Wolfgang

  On 8/8/07, Aditya Mahajan [EMAIL PROTECTED] wrote:
   Quoting Johannes Graumann [EMAIL PROTECTED]:
  
Aditya Mahajan wrote:
   
Hi,
   
The question of how to get tables equivalent to latex's booktabs
package has been discussed quite a few times in the past. Booktabs
package provides (top|mid|bottom)rule commands and a cmidrule command.
The top and bottom rules are 0.08em thick, the midrule is 0.05em thick,
and the cmidrules are 0.03em thick. The cmidrules do not extend beyond
the columns edge. Here is an example of how to do something similar
using tables in context http://wiki.contextgarden.net/Table#Booktabs.
   
To me this looks exactly similar to the example in the booktabs manual.
Am I missing something, or is it fair to say that context can generate
booktabs like tables?
  
Hello,
   
I'm one of the booktab-equivalent requesters and in my case the request 
is
motivated by the (sadly German-only)
http://www.ctan.org/tex-archive/info/german/tabsatz/tabsatz.pdf
Please compare examples on pages 4 and 5 for the cmidrule functionality 
I'm
missing in ConTeXt. The clarity you can give classy looking tables with
trimmed cmidrules is even more evident in the example on page 9. There's
lots of more use of this in the document, but it gets too esoteric to be
easily grasped quickly (IMHO).
  
   Here is one attempt, which works correctly. Of course the best solution
   is to forget about the \omit and set the halign preamble correctly. But
   I have not been able to figure that out yet.
  
   \starttext
  
   \def\CMID{\normalTABLEshortrule}
  
   \unprotect
   \def\TableNC
 {\checkTABLEautorow
  \nextTABLEgrayline
  \ifnum\currentTABLEcolumn\maxTABLEcolumn
\setTABLEerror\TABLEmissingrow
\handleTABLEerror
  \else
\global\advance\currentTABLEcolumn \plusone
\ifnum\currentTABLEcolumn=1\relax
  \normalTABLEquote
\else
  \fancyTABLEquote
 \fi
  \fi}
  
   \def\fancyTABLEquote  {\unskip\!ttRightGlue\omit\hskip2em} % 
   \protect
  
   \setuptables[rulethickness=0.03em]
  
   \starttable[s0|l|l|]
 \HL[3]
 \NC Monat \NC 1965  \NC 1966  \AR
 \NC \CMID \NC \CMID \NC \CMID \DR
 \NC September \NC 2000  \NC 1700 \AR
 \HL[3]
   \stoptable
  
   \stoptext
  
  
   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  : https://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  : https://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  : https://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

___
If your question is 

Re: [NTG-context] Booktabs equivalent in Context

2007-08-09 Thread Aditya Mahajan
Quoting Wolfgang Schuster [EMAIL PROTECTED]:

 2007/8/9, Aditya Mahajan [EMAIL PROTECTED]:
 On Thu, 9 Aug 2007, Wolfgang Schuster wrote:

  2007/8/9, Hamid Kamrani [EMAIL PROTECTED]:
  Aditya,
 
  In the example you give with CMID you have only two column preambles
  whereas the table has 3 columns and if one adds the missing preamble
  then one gets an error. Some how your new code breaks the calculation
  for number of columns.
 
  -Hamid
 
  He forgot only to put a \NC before the \AR.

 Sorry about that. I thought I pasted from a correctly running example.

 Here is another attempt, which I feel is the cleanest way to go about
 this whole thing. Right now the skip between the columns is not
 configurable, but it should be possible to use the get the value of
 the skip.

 The attached code typesets an example that Wolfgang had sent off-list.
 I have only changed two lines of the table.tex.

 Aditya

 Hi Aditya,

 what do you think about

 \setuptables
  [\c!columndistance=2em]

This goes against the way I understand table macros. With this, you can 
only have equal width columns. In tables, you can specify specific 
widths of specific s and o keys.

AFAIU, the table macros divide that the specified tabskip by 2, and 
place it in the data column. Since the rule column comes next, the rule 
column automatically gets the same tabskip, so in appearance we the 
specified column width.

This is also the reason why cmidrules do not work. If you specify a 
hrule inside a data column, it spans half of the visual space between 
the columns. What needs to be done is that the glue be added inside a 
local group to the rule column, with the global tabskip set to zero.

The previous solution that I posted adds a 2em tabskip glue to the rule 
column, and a 0pt tabskip glue to the data column. After thinking again 
about it, I think that this is not the right way. There is no need to 
add a 0pt glue to the data column. We can add the glue to the rule 
column inside a group.

I will see if I can get this working.

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] tikz

2007-08-09 Thread Idris Samawi Hamid
Dear gang,

The tikz module does not work in MKIV: Moving

\tex\latex\xkeyval

to

\tex\context\pgf\latex\xkeyval

seems to solve the problem.

And Happy Birthday Mojca!

Best wishes
Idris

-- 
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] tikz

2007-08-09 Thread Hans Hagen
Idris Samawi Hamid wrote:
 Dear gang,
 
 The tikz module does not work in MKIV: Moving
 
 \tex\latex\xkeyval
 
 to
 
 \tex\context\pgf\latex\xkeyval

at least add \third

\tex\context\third\

 seems to solve the problem.
 
 And Happy Birthday Mojca!
 
 Best wishes
 Idris
 


-- 

-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] OpenType in ConTeXt

2007-08-09 Thread Taco Hoekwater
Hans van der Meer wrote:
 No access to this link. Does it really exist?

Yes, but something seens wrong with the web server right now.
Try this link instead:

   http://context.aanhet.net/general/magazines/mag-0012.pdf

Best wishes,

Taco
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] OpenType in ConTeXt

2007-08-09 Thread Hans Hagen
Oliver Buerschaper wrote:
 Yes. Best read the magazine has mentioned, and lookup
 \definefontfeature.

http://www.pragma-ade.com/general/magazines/mag-0012.pdf
 
 By the way, is there a This way number 11?

no, well, there is an unifinished file on my disk -)

-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] OpenType in ConTeXt

2007-08-09 Thread Peter Münster
On Thu, 9 Aug 2007, Hans van der Meer wrote:

 No access to this link. Does it really exist?
 My browser says on entering http://www.pragma-ade.com/general/ 
 magazines/:
 
 Access forbidden!

This is what I use as starting point:
http://www.pragma-ade.com/dir
Cheers, Peter

-- 
http://pmrb.free.fr/contact/
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] tikz

2007-08-09 Thread Idris Samawi Hamid
On Thu, 09 Aug 2007 11:43:09 -0600, Aditya Mahajan [EMAIL PROTECTED]  
wrote:

 The tikz module does not work in MKIV: Moving

 \tex\latex\xkeyval

 to

 \tex\context\pgf\latex\xkeyval

 seems to solve the problem.

 shouldn't there be a xkeyval.tex in /tex/generic/xkeyval?
 /tex/latex/xkeyval should contain something for latex, and not for
 context.

 I wish all packages on CTAN were distributed in TDS :-/

not ctan:

http://modules.contextgarden.net/TikZ

Idris

-- 
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] tikz

2007-08-09 Thread Aditya Mahajan
Quoting Idris Samawi Hamid [EMAIL PROTECTED]:

 On Thu, 09 Aug 2007 11:43:09 -0600, Aditya Mahajan [EMAIL PROTECTED]
 wrote:

 The tikz module does not work in MKIV: Moving

 \tex\latex\xkeyval

 to

 \tex\context\pgf\latex\xkeyval

 seems to solve the problem.

 shouldn't there be a xkeyval.tex in /tex/generic/xkeyval?
 /tex/latex/xkeyval should contain something for latex, and not for
 context.

 I wish all packages on CTAN were distributed in TDS :-/

 not ctan:

 http://modules.contextgarden.net/TikZ

move the /tex/latex/xkeyval directory to /tex/generic/xkeyval directory.

Had tikz and xkeyval been available in TDS on CTAN, there would be no 
need for having a separate context module for them.

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] tikz

2007-08-09 Thread Aditya Mahajan
Quoting Idris Samawi Hamid [EMAIL PROTECTED]:

 Dear gang,

 The tikz module does not work in MKIV: Moving

 \tex\latex\xkeyval

 to

 \tex\context\pgf\latex\xkeyval

 seems to solve the problem.

shouldn't there be a xkeyval.tex in /tex/generic/xkeyval? 
/tex/latex/xkeyval should contain something for latex, and not for 
context.

I wish all packages on CTAN were distributed in TDS :-/

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] OpenType in ConTeXt

2007-08-09 Thread John R. Culleton
On Tuesday 07 August 2007, Hans Hagen wrote:
 Hans van der Meer wrote:
  On Aug 7, 2007, at 9:16, Taco Hoekwater wrote:
  Does LuaTeX already support OpenType things like
  SmallCaps, Old Style Figures, Alternates, Ligatures, etc?
 
  Yes. Best read the magazine has mentioned, and lookup
  \definefontfeature.
 
 http://www.pragma-ade.com/general/magazines/mag-0012.pdf
 
  I seem not to be able to reach/allowed on this link.
  Nor did I find it in the download/magazine section of the pragma
  site. How do I get this?

 it's really there

 Hans

I should mention that when I (involuntarily) changed Cable ISPs I lost 
the ability to transmit mail directly to this list.  ntg.nl is 
apparently not in their DNS server.  So I must transmit posts here 
via my wexfordpress.com mail server maintained by doteasy.com, a 
Canadian company.  Perhaps the other person is having a similar 
difficulty basd on domain name servers. 


-- 
John Culleton
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] obtaining luatex

2007-08-09 Thread Hans Hagen
Hans van der Meer wrote:
 The link http://www.luatex.org/binaries/osx-mixed/luatex.tar.bz2; on 
 the luatex home/download page gives a 404 Error: file not found on the 
 server.

this page is under construction (see bottom line page), setting up some 
automatic mechanisms to haandle the uploads takes a while

Hans

-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] setting up mswincontext pathes for external use

2007-08-09 Thread Vyatcheslav Yatskovsky
Hello,

From itegrated SciTe everything in Windows stand-alone context distribution 
works OK. 

But I want to run binaries using an external shell, and use another editor. 

I lack path settings. Hans told me that setuptex.bat take care about pathes, 
but after I run it nothing happens -- even texexec is not in path. The help 
inside is in unknown language :) How to setup the paths?

Best,
Vyatcheslav

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] obtaining luatex

2007-08-09 Thread Hans van der Meer
The link http://www.luatex.org/binaries/osx-mixed/luatex.tar.bz2; on  
the luatex home/download page gives a 404 Error: file not found on  
the server.


Hans van der Meer



___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Difference between MKIV and MKII

2007-08-09 Thread Aditya Mahajan
Quoting Hans Hagen [EMAIL PROTECTED]:

 Aditya Mahajan wrote:
 Hi,

 I get significantly different white spaces (and hence page breaks)
 while using mkiv and mkii. Is this expected, or should I try to create
 minimal example exhibiting such problems?

 indeed

Here is a minimal example. The spaces around formulas are more.

\starttext

\dorecurse{10}
{
\input tufte
\startformula
  E = mc^2
\stopformula
\par
}

\stoptext

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] setting up mswincontext pathes for external use

2007-08-09 Thread Aditya Mahajan
Quoting Vyatcheslav Yatskovsky [EMAIL PROTECTED]:

 Hello,

 From itegrated SciTe everything in Windows stand-alone context 
 distribution works OK.

 But I want to run binaries using an external shell, and use another editor.

 I lack path settings. Hans told me that setuptex.bat take care about 
 pathes, but after I run it nothing happens -- even texexec is not in 
 path. The help inside is in unknown language :) How to setup the 
 paths?

C:\isoimage\usr\local\context\tex\setuptex.bat

should set up the paths correctly. If you copy setuptex to some other 
location, then you need to use

setuptex.bat C:\isoimage\usr\local\context\tex

(that is path to your tex distribution). I use this to setup paths 
while using gvim as my editor and use miktex and context standalone 
distributions side by side.

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Batch Files and texmf

2007-08-09 Thread Idris Samawi Hamid
Dear gang,

To all you expert script writers and batch wizards on Windows, I have a  
question:

I want to create a batch file to open a program so that it will search the  
contents of C:\ConTeXt, which contains my entire system, including  
subdirectories. For example, if foo.tex is a file in C:\ConTeXt, and  
goo.exe is some program, then for

 goo.bat foo.tex

I want goo to seach C:\ConTeXt for foo.tex. Is there a straightforward way  
to edit the following to get this effect?


rem batch file

goo %


Any pointers will be appreciated.

Best wishes
Idris

-- 
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] [ot] \relax

2007-08-09 Thread luigi scarso
Martina was born on thursday,August 09 2007 (09/08/07).
Mum and  baby are allright, daddy  a bit blurred, as the photo says .
luigi
attachment: martina.jpg___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Batch Files and texmf

2007-08-09 Thread Hamid Kamrani
That is a pretty interesting ConTeXt question. I mean it makes a
laudable effort to bring ConTeXt into its context!!

On 8/9/07, Idris Samawi Hamid [EMAIL PROTECTED] wrote:
 Dear gang,

 To all you expert script writers and batch wizards on Windows, I have a
 question:

 I want to create a batch file to open a program so that it will search the
 contents of C:\ConTeXt, which contains my entire system, including
 subdirectories. For example, if foo.tex is a file in C:\ConTeXt, and
 goo.exe is some program, then for

  goo.bat foo.tex

 I want goo to seach C:\ConTeXt for foo.tex. Is there a straightforward way
 to edit the following to get this effect?

 
 rem batch file

 goo %
 

 Any pointers will be appreciated.

 Best wishes
 Idris

 --
 Professor Idris Samawi Hamid
 Department of Philosophy
 Colorado State University
 Fort Collins, CO 80523

 --
 Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
 ___
 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  : https://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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] PDF comments' questions

2007-08-09 Thread Zhichu Chen
Hi everybody,

I get confused about some PDF specials.

I know I could add

\enableregime[utf]
\PDFunicodetrue
\input spec-tst.tex

at the top of my source file so that I can use unicode characters in
\comment or something alike.

But when I used some macros inside \comment, like
\comment[chapter \chinesenumber{1}]{\getmarking[chapter][current]}
everything went wrong (this is a Chinese book).

It seems that \sanitizePDFencoding\AAA\to\BBB will work only when \AAA is
text.

Meanwhile, \uchar{86}{222} and 回 should be the same, but the first generates
error while the second one works fine. It's like there's something very
mysterious that take care of the characters. How could I filter the macro
and get the text string? Currently, I just wanna know how to get
\uchar{86}{222} or \chinesenumber{counter} work as if they are really texts.



-- 
Best Regards
Chen


  Zhi-chu Chen | Shanghai Synchrotron Radiation Facility
 No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China
 tel: 086 21 5955 3405 | zhichu.chen.googlepages.com
   | www.sinap.ac.cn

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Booktabs equivalent in Context

2007-08-09 Thread Wolfgang Schuster
2007/8/9, Aditya Mahajan [EMAIL PROTECTED]:
 Quoting Wolfgang Schuster [EMAIL PROTECTED]:

  2007/8/9, Aditya Mahajan [EMAIL PROTECTED]:
  On Thu, 9 Aug 2007, Wolfgang Schuster wrote:
 
   2007/8/9, Hamid Kamrani [EMAIL PROTECTED]:
   Aditya,
  
   In the example you give with CMID you have only two column preambles
   whereas the table has 3 columns and if one adds the missing preamble
   then one gets an error. Some how your new code breaks the calculation
   for number of columns.
  
   -Hamid
  
   He forgot only to put a \NC before the \AR.
 
  Sorry about that. I thought I pasted from a correctly running example.
 
  Here is another attempt, which I feel is the cleanest way to go about
  this whole thing. Right now the skip between the columns is not
  configurable, but it should be possible to use the get the value of
  the skip.
 
  The attached code typesets an example that Wolfgang had sent off-list.
  I have only changed two lines of the table.tex.
 
  Aditya
 
  Hi Aditya,
 
  what do you think about
 
  \setuptables
   [\c!columndistance=2em]

 This goes against the way I understand table macros. With this, you can
 only have equal width columns. In tables, you can specify specific
 widths of specific s and o keys.

look into the tabsatz and boktabs manual and you see all columns in them
have the same distance, it was only meant as a alternative to your hard coded
columndistance in the examples.

If you can do this with another method like the tabskip there nothing
against them.

Wolfgang

 AFAIU, the table macros divide that the specified tabskip by 2, and
 place it in the data column. Since the rule column comes next, the rule
 column automatically gets the same tabskip, so in appearance we the
 specified column width.

 This is also the reason why cmidrules do not work. If you specify a
 hrule inside a data column, it spans half of the visual space between
 the columns. What needs to be done is that the glue be added inside a
 local group to the rule column, with the global tabskip set to zero.

 The previous solution that I posted adds a 2em tabskip glue to the rule
 column, and a 0pt tabskip glue to the data column. After thinking again
 about it, I think that this is not the right way. There is no need to
 add a 0pt glue to the data column. We can add the glue to the rule
 column inside a group.

 I will see if I can get this working.

 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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___