[NTG-context] Double integral and subscripts

2007-08-05 Thread Shen Chen
Hi all,

I want to typeset double integral with subscript beneath the integral
symbol. 

I found [EMAIL PROTECTED] for double integral, and used the usual \limits in
plain tex:
[EMAIL PROTECTED] x \ge 0,\NR 0 \le y \le T\stopsubstack}

The subscript did go below the integral, but the two integral symbols are
separate from each other. Any tips? Thanks a lot!

Shenchen

___
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] Double integral and subscripts

2007-08-05 Thread Taco Hoekwater
Shen Chen wrote:
 Hi all,
 
 I want to typeset double integral with subscript beneath the integral
 symbol. 
 
 I found [EMAIL PROTECTED] for double integral, and used the usual \limits in
 plain tex:
 [EMAIL PROTECTED] x \ge 0,\NR 0 \le y \le T\stopsubstack}


 The subscript did go below the integral, but the two integral symbols are
 separate from each other. Any tips? Thanks a lot!

$$
[EMAIL PROTECTED]
 {\startsubstack x \ge 0,\NR 0 \le y \le \stopsubstack}
$$

(it should be possible to do this more elegant, though)
___
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] Double integral and subscripts

2007-08-05 Thread Aditya Mahajan
On Sun, 5 Aug 2007, Taco Hoekwater wrote:

 Shen Chen wrote:
 Hi all,

 I want to typeset double integral with subscript beneath the integral
 symbol.

 I found [EMAIL PROTECTED] for double integral, and used the usual \limits in
 plain tex:
 [EMAIL PROTECTED] x \ge 0,\NR 0 \le y \le T\stopsubstack}


 The subscript did go below the integral, but the two integral symbols are
 separate from each other. Any tips? Thanks a lot!

 $$
 [EMAIL PROTECTED]
 {\startsubstack x \ge 0,\NR 0 \le y \le \stopsubstack}
 $$

 (it should be possible to do this more elegant, though)

\iint\limits should work correctly. It is based on the same macro in 
amsmath.

If you always need \limits, I can provide an option for \displaylimits 
or \nolimits after int, iint, and iiint.

I did not know about [EMAIL PROTECTED], and it looks horrible 
(\int\!\!\!\int). This should be replaced by \iint and triint should 
be replaced by iiint.

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] Booktabs equivalent in Context

2007-08-05 Thread Aditya Mahajan
On Sat, 4 Aug 2007, Patrick Gundlach wrote:

 Hello Aditya,

 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?


 Any way to shorten the rule \DL[2]? IMO this is critical for nicely
 set tables.

 But the rest looks very, very good! So many thanks for that!

 I once had to typeset a huge table, with huge in the sense of 'lots of
 rows and lots of columns' on a A4 single page. This would not have
 been possible without the help of \cmidrule which is a rule between
 two rows but restricted to a number of columns and with the ability to
 trim the rule on the left, the right or both sides.


 Gnu  stuffed
  ---
 Emu  stuffed

 So the first rule should be aligned left with the other rules in that
 table, the two rules must not touch each other (this is the trick to
 avoid the ugly vertical rules!) In booktabs speak this would be
 \cmidrule(r){1-1} and \cmidrule(l){2-2}. (booktabs.pdf on a LaTeX
 installation).

Ah. Thank you for the explaination. I now understand the need for 
cmidrule. It should be possible to get something like this with TaBlE, 
but in the absense of the original PCTEX manual, I have not been able 
to understand how to set tables. thrd-tab.tex says that you can 
actually control the tokens for columns using alternate vrules, but I 
have not been able to get it to work.

 Is there something like \arraystretch(?) which is a factor that every
 vertical whitespace in a table is multiplied with? This way you can
 increase/decrease the height of a table without big trouble.

If you are happy with an integer scaling, and do not use \Lower (it 
may be possible to do this more correctly, with distance={{a}{b}{c}}, 
and action for unknown set so that we call 
\OpenUp{a}{b}\def\LOW{\Lower{c}}).

\unprotected\def\defineTABLEunits
   {\processaction
  [\@@tidistance]
  [  \v!none=\OpenUp00\def\LOW{\Lower6 },
\v!small=\OpenUp00\def\LOW{\Lower6 }, % == baseline
   \v!medium=\OpenUp11\def\LOW{\Lower7 },
  \v!big=\OpenUp22\def\LOW{\Lower8 },
  \v!unknown=\expandafter\OpenUp\@@tidistance]%AM: Added
\doifelse\@@tidistance\v!none
  {\chardef\TABLErowfactor\zerocount}
  {\chardef\TABLErowfactor\plustwo  }}

\setuptables[rulethickness=0.03em]

\startbuffer
\starttable[s0|l|i2l|i2r|]
   \HL[3]
   \NC \Use2[c]{Item} \NC\NC \AR
   \DL[2] \DC\DR
   \NC Animal\NC Description  \NC Price (\$) \NC \AR
   \HL[2]
   \NC Gnat  \NC per gram \NC 13.65  \NC \AR
   \NC   \NC each \NC  0.01  \NC \AR
   \NC Gnu   \NC stuffed  \NC 92.50  \NC \AR
   \NC Emu   \NC stuffed  \NC 33.33  \NC \AR
   \NC Armadillo \NC frozen   \NC  8.99  \NC \AR
   \HL[3]
\stoptable
\stopbuffer

\starttext

\getbuffer

\setuptables[distance=big]

\getbuffer
\setuptables[distance={{1}{10}}]

\getbuffer

\setuptables[distance=55]
\getbuffer

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


[NTG-context] Presentation style problem

2007-08-05 Thread Matthias Weber
Hello,

I've been using the green presentation style aka s-pre-02 in a few  
presentations. When I typeset these now,
using ConTeXt  ver: 2007.04.17 12:51 MKII  fmt: 2007.5.18  int:  
english/english, (or LiveConTeXt as of today),
the text runs right up to the green rectangle, leaving no margin  
(left, right, top, bottom). I have fiddled with various options of  
\setuplayout
to not much avail, curiously repeated typesetting gives different  
results (which stabilize after the second pass).

I am once again looking for the right incantation to get the text  
back nicely into its frame.

Thanks,

Matthias


\usemodule[pre-green]
%\setuplayout[leftmargin=.5cm,rightmargin=.5cm]

\starttext

\TitlePage{Title Page\\pre-green}

\Topics{Some Nice Quotes}

\Topic{A Few}

\Subject{Knuth} \input knuth
\Subject{Tufte} \input tufte

\Topic{Some More}

\Subject{Zapf}   \input zapf
\Subject{Bryson} \input bryson

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