Re: [NTG-context] Multiplication table (with lines) in ConTeXt?

2011-05-04 Thread Wolfgang Schuster

Am 04.05.2011 um 06:45 schrieb Aditya Mahajan:

 \startsetups table:frame
 \setupTABLE[each][each][frame=off, align=middle]
 \setupTABLE[row][first][bottomframe=on]
 \setupTABLE[column][first][rightframe=on]
 \stopsetups
 
 \startTABLE[setups=table:frame]
 \NC $\times$ \NC 1 \NC 2 \NC ... \NC \NR
 
 \stopTABLE

and for the lazy people:

\starttext

\startsetups table:multiplication
  \setupTABLE[each][each][frame=off,align=middle,width=2em,height=2em]
  \setupTABLE[row][first][bottomframe=on]
  \setupTABLE[column][first][rightframe=on]
\stopsetups

\startluacode
context.bTABLE{setups=table:multiplication}
for i=0,6 do
context.bTR()
for j=0,6 do
context.bTD()
if i==0 and j==0 then
context(×)
elseif i==0 or j==0 then
context(i+j)
else
context(i*j)
end
context.eTD()
end
context.eTR()
end
context.eTABLE()
\stopluacode

\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] Bibliography question: one list of references per chapter and one overall list

2011-05-04 Thread Taco Hoekwater


On 05/02/11 16:31, Renald Buter wrote:
 Hello all,
 
 I am currently making up my thesis in ConTeXt. And I am thoroughly impressed 
 with
 the professional looking result I already have, although I have only recently 
 started 
 using ConTeXt.
 
 Now, I have a question regarding reference lists: I would like to have one
 list per chapter (which are original research papers), but also one big list 
 at the end of
 the thesis, as a separate chapter, containing all unique references in whole 
 thesis.
 
 At the moment, I'm using the bib module. This works perfectly if I compile 
 every single
 chapter separately (i.e. 'texexec chapter01.tex', for example). However, if I 
 compile
 the whole component (i.e. 'texexec thesis.tex'), I obviously get at every 
 chapter the
 same reference list, regardless whether the references were cited in that 
 particular
 chapter.
 
 Does anyone have suggestions on how to accomplish this (if at all possible)?

\completepublications[criterium=chapter]

should do this.

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


Re: [NTG-context] bibliography basics

2011-05-04 Thread Taco Hoekwater


On 05/03/11 14:38, Hagmann Jörg wrote:
 Using the attached minimal example with biblio.bib, how can I get an 
 alphabetical publication-list with surname-Initials etc. when using numbers 
 in the thext? Shouldn't that be default? It is when using authoryear in the 
 text (comment/uncomment the relevant lines).

\setupbibtex[sort=author]

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


Re: [NTG-context] Multiplication table (with lines) in ConTeXt?

2011-05-04 Thread Alasdair McAndrew
 It looks like it should work, but when I try it I get a very squashed
table, with lines between all rows and columns...  FWIW, I'm using MKII:

ConTeXt  ver: 2011.02.25 22:03 MKII  fmt: 2011.3.14  int: english/english

-Alasdair

On Wed, May 4, 2011 at 5:05 PM, Wolfgang Schuster 
schuster.wolfg...@googlemail.com wrote:


 Am 04.05.2011 um 06:45 schrieb Aditya Mahajan:

  \startsetups table:frame
  \setupTABLE[each][each][frame=off, align=middle]
  \setupTABLE[row][first][bottomframe=on]
  \setupTABLE[column][first][rightframe=on]
  \stopsetups
 
  \startTABLE[setups=table:frame]
  \NC $\times$ \NC 1 \NC 2 \NC ... \NC \NR
  
  \stopTABLE

 and for the lazy people:

 \starttext

 \startsetups table:multiplication
  \setupTABLE[each][each][frame=off,align=middle,width=2em,height=2em]
   \setupTABLE[row][first][bottomframe=on]
  \setupTABLE[column][first][rightframe=on]
 \stopsetups

 \startluacode
 context.bTABLE{setups=table:multiplication}
 for i=0,6 do
context.bTR()
for j=0,6 do
context.bTD()
if i==0 and j==0 then
context(×)
elseif i==0 or j==0 then
context(i+j)
else
context(i*j)
end
context.eTD()
end
context.eTR()
 end
 context.eTABLE()
 \stopluacode

 \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

 ___




-- 
Blog: http://amca01.wordpress.com
Web:  http://bit.ly/Alasdair
Facebook: http://www.facebook.com/alasdair.mcandrew
___
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] intertext error in mkiv

2011-05-04 Thread Julian Becker
This seems to be still broken :-(
The \intertext{} workaround however is still working, luckily

2010/11/23 Vladimir Lomov lomov...@gmail.com

 ** Aditya Mahajan [2010-11-23 11:17:55 -0500]:

  On Wed, 24 Nov 2010, Vladimir Lomov wrote:
 
 Hi.
 
 The example with start/stopintertext from 'mathalign.pdf' (My Way, Using
 \startalign and friends,
 Aditya Mahajan) gives error with current context (beta):
 example file=ex2.tex
 %%% Seems that there is a problem with \start/stopintertext . This
 command is described in mathalign.pdf
 %%% (MyWay).
 
 \starttext
 
 Here the start/stopintertext should give text between formulas
 \startformula
  \startalign
\NC \exp^{\imath t}=\cos t+\imath\sin t\NR
  \startintertext
This is famous Euler formula, below one is known as Moivre formula
  \stopintertext
\NC (\cos x + \imath\sin x)^{m} = \cos mx+\imath\sin mx \NR
  \stopalign
 \stopformula
 
 That's it.
 
 \stoptext
 /example
 
 error_message
 ! Misplaced \noalign.
 \startintertext #1\stopintertext -\noalign
{\dointertext {#1}}
 l.12   \stopintertext
 ?
 /error_message
 
 $ context --version
 
 MTXrun | main context file:
 /usr/local/opt/context/tex/texmf-context/tex/context/base/context.tex
 MTXrun | current version: 2010.11.20 12:51
 
 Is this a bug or I do something wrong?
 
  Bug, and it seems a rather old one. It also fails with 2010.05.24.
 
  I cannot debug this right now. A quick workaround is to use
  \intertext{...} instead.
 Ok, thanks.

 P.S. I thought that all start/stopXXX commands has cousin commands
 \XXX. Seems that I was wrong.

 --
 On the subject of C program indentation:
In My Egotistical Opinion, most people's C programs should be
indented six feet downward and covered with dirt.
-- Blair P. Houghton

 ___
 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

 ___




-- 
Julian Becker
Institut für Angewandte Physik, R.123
Westfälische Wilhelms-Universität Münster
Corrensstr. 2/4
48149 Münster / Westfalen
Tel. 0251 83-3 61 53
Mob. 0151 599 848 29
e-mail: j_bec...@uni-muenster.de

Keep thy heart with all diligence; for it is the wellspring of life.
___
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] Multiplication table (with lines) in ConTeXt?

2011-05-04 Thread Paul Menzel
Am Mittwoch, den 04.05.2011, 20:10 +1000 schrieb Alasdair McAndrew:
 It looks like it should work, but when I try it I get a very squashed
 table, with lines between all rows and columns...  FWIW, I'm using MKII:
 
 ConTeXt  ver: 2011.02.25 22:03 MKII  fmt: 2011.3.14  int: english/english

It works perfectly using MK IV.

ConTeXt  ver: 2011.04.30 17:02 MKIV  fmt: 2011.5.1  int: english/english


Thanks,

Paul


PS: Please do not top post or at least remove the unneeded full quote.


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] Multiplication table (with lines) in ConTeXt?

2011-05-04 Thread Paul Menzel
Am Mittwoch, den 04.05.2011, 09:05 +0200 schrieb Wolfgang Schuster:
 Am 04.05.2011 um 06:45 schrieb Aditya Mahajan:
 
  \startsetups table:frame
  \setupTABLE[each][each][frame=off, align=middle]
  \setupTABLE[row][first][bottomframe=on]
  \setupTABLE[column][first][rightframe=on]
  \stopsetups
  
  \startTABLE[setups=table:frame]
  \NC $\times$ \NC 1 \NC 2 \NC ... \NC \NR
  
  \stopTABLE
 
 and for the lazy people:
 
 \starttext
 
 \startsetups table:multiplication
   \setupTABLE[each][each][frame=off,align=middle,width=2em,height=2em]
   \setupTABLE[row][first][bottomframe=on]
   \setupTABLE[column][first][rightframe=on]
 \stopsetups
 
 \startluacode
 context.bTABLE{setups=table:multiplication}
 for i=0,6 do
   context.bTR()
   for j=0,6 do
   context.bTD()
   if i==0 and j==0 then
   context(×)
   elseif i==0 or j==0 then
   context(i+j)
   else
   context(i*j)

Alasdair takes modula 7 if I understood correctly. So it can be

if i*j  7 then
context(i*j)
else
context((i*j) % 7)
end

(Nice symmetry in the resulting table.)

   end
   context.eTD()
   end
   context.eTR()
 end
 context.eTABLE()
 \stopluacode
 
 \stoptext

Thank you Wolfang, I just wanted to reply and recommend using Lua. As
always you were too fast. ;-)


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] AMSTeX compatibility: `\dotsb` is not defined

2011-05-04 Thread Paul Menzel
Am Dienstag, den 03.05.2011, 22:25 +0200 schrieb Wolfgang Schuster:
 Am 03.05.2011 um 15:46 schrieb Paul Menzel:

  `\dotsb` is not defined although it is defined in AMSTeX (amsmath) [1].
 
 Why don’t you use \cdots, i can see no difference between your linked example 
 and mine below.
 
 \setupbodyfont[pagella]
 \starttext
 \formula{A_1+\cdots+A_N}\par
 \formula{A_1+⋯+A_N}
 \stoptext

That is correct.

I think the AMS introduced `\dotsb` to separate the content and the
markup, since some publishers use the lower dots »…« and not the
centered ones »⋯« between operators. So `\dotsb` could just be
redefined.

Additionally amsmath defines it and to be compatible ConTeXt could
define it too.

Aditya more or less wrote the same in here response.


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] Multiplication table (with lines) in ConTeXt?

2011-05-04 Thread Alasdair McAndrew
I gave the mod 7 table as an example; what I in fact want to display is the
Cayley table for the dihedral group D_4.

By the way - how do I upgrade to Mk IV?  I just downloaded the installer for
ConTeXt Minimals and let it do its thing.

This is getting very complicated...

-Alasdair

On Wed, May 4, 2011 at 8:43 PM, Paul Menzel 
paulepan...@users.sourceforge.net wrote:

 Am Mittwoch, den 04.05.2011, 09:05 +0200 schrieb Wolfgang Schuster:
  Am 04.05.2011 um 06:45 schrieb Aditya Mahajan:
 
   \startsetups table:frame
   \setupTABLE[each][each][frame=off, align=middle]
   \setupTABLE[row][first][bottomframe=on]
   \setupTABLE[column][first][rightframe=on]
   \stopsetups
  
   \startTABLE[setups=table:frame]
   \NC $\times$ \NC 1 \NC 2 \NC ... \NC \NR
   
   \stopTABLE
 
  and for the lazy people:
 
  \starttext
 
  \startsetups table:multiplication
\setupTABLE[each][each][frame=off,align=middle,width=2em,height=2em]
\setupTABLE[row][first][bottomframe=on]
\setupTABLE[column][first][rightframe=on]
  \stopsetups
 
  \startluacode
  context.bTABLE{setups=table:multiplication}
  for i=0,6 do
context.bTR()
for j=0,6 do
context.bTD()
if i==0 and j==0 then
context(×)
elseif i==0 or j==0 then
context(i+j)
else
context(i*j)

 Alasdair takes modula 7 if I understood correctly. So it can be

 if i*j  7 then
context(i*j)
 else
context((i*j) % 7)
 end

 (Nice symmetry in the resulting table.)

end
context.eTD()
end
context.eTR()
  end
  context.eTABLE()
  \stopluacode
 
  \stoptext

 Thank you Wolfang, I just wanted to reply and recommend using Lua. As
 always you were too fast. ;-)


 Thanks,

 Paul


 ___
 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] AMSTeX compatibility: `\dotsb` is not defined

2011-05-04 Thread Paul Menzel
Am Dienstag, den 03.05.2011, 23:54 -0400 schrieb Aditya Mahajan:
 On Tue, 3 May 2011, Paul Menzel wrote:

  `\dotsb` is not defined although it is defined in AMSTeX (amsmath) [1].
 
  Is `\dotsb` not defined intentionally?
 
 I do not completely understand why this command is needed. I think that 
 the intent of amstex is that the user should use \dotsb for dots between 
 binary operators and then change \dotsb to \cdots or \ldots depending on 
 convention. If so, we need to add them to \setupmathematics or perhaps add 
 a new command
 
 \setupmathdots[binary=middle,comma=low,...and others...]
 
 or something similar.

I think the question is the following. Does ConTeXt want to define all
commands amstex/amsmath defines?


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] Multiplication table (with lines) in ConTeXt?

2011-05-04 Thread Wolfgang Schuster

Am 04.05.2011 um 12:10 schrieb Alasdair McAndrew:

  It looks like it should work, but when I try it I get a very squashed table, 
 with lines between all rows and columns...  FWIW, I'm using MKII: 

To separate the content and style of a table Hans added a “setups” key to 
\bTABLE/\startTABLE in MkIV but as you use MkII this setting has no effect. You 
can apply the style to the table with the \setups command:

% engine=pdftex

\startsetups table:multiplication
  \setupTABLE[each][each][frame=off,align=middle,width=2em,height=2em]
  \setupTABLE[row][first][bottomframe=on]
  \setupTABLE[column][first][rightframe=on]
\stopsetups

\starttext

\start\setups[table:multiplication]
\startTABLE
\NC $\times$ \NC 0 \NC 1 \NC 2 \NC 3 \NC 4 \NC 5 \NC 6 \NC\NR
\NC0 \NC 0 \NC 0 \NC 0 \NC 0 \NC 0 \NC 0 \NC 0 \NC\NR
\NC1 \NC 0 \NC 1 \NC 2 \NC 3 \NC 4 \NC 5 \NC 6 \NC\NR
\NC2 \NC 0 \NC 2 \NC 4 \NC 6 \NC 1 \NC 3 \NC 5 \NC\NR
\NC3 \NC 0 \NC 3 \NC 6 \NC 2 \NC 5 \NC 1 \NC 4 \NC\NR
\NC4 \NC 0 \NC 4 \NC 1 \NC 5 \NC 2 \NC 6 \NC 3 \NC\NR
\NC5 \NC 0 \NC 5 \NC 3 \NC 1 \NC 6 \NC 4 \NC 2 \NC\NR
\NC6 \NC 0 \NC 6 \NC 5 \NC 4 \NC 3 \NC 2 \NC 1 \NC\NR
\stopTABLE
\stop

\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] Multiplication table (with lines) in ConTeXt?

2011-05-04 Thread Wolfgang Schuster

Am 04.05.2011 um 12:49 schrieb Alasdair McAndrew:

 I gave the mod 7 table as an example; what I in fact want to display is the 
 Cayley table for the dihedral group D_4.
 
 By the way - how do I upgrade to Mk IV?  I just downloaded the installer for 
 ConTeXt Minimals and let it do its thing.

Compile your document with “context filename” instead of “texexec filename”.

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] Multiplication table (with lines) in ConTeXt?

2011-05-04 Thread Paul Menzel
Dear Alasdair,


please adhere to the posting style the people helping you use [1].
Please use the interleaved style [2].


Am Mittwoch, den 04.05.2011, 20:49 +1000 schrieb Alasdair McAndrew:
 I gave the mod 7 table as an example; what I in fact want to display is the
 Cayley table for the dihedral group D_4.

Interesting. When you have that finished, it would be great if you could
share your TeX file.

 By the way - how do I upgrade to Mk IV?  I just downloaded the installer for
 ConTeXt Minimals and let it do its thing.
 
 This is getting very complicated...

Please open a new thread about that topic. Do not forget to include
useful information like what operating system you use.


Thanks,

Paul


[1] http://en.opensuse.org/openSUSE:Mailing_list_netiquette
[2] 
https://secure.wikimedia.org/wikipedia/en/wiki/Posting_style#Interleaved_style


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] AMSTeX compatibility: `\dotsb` is not defined

2011-05-04 Thread Hans Hagen

On 4-5-2011 12:52, Paul Menzel wrote:


I think the question is the following. Does ConTeXt want to define all
commands amstex/amsmath defines?


You need to convince Aditya then as he has to make up that list.

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] Still wrestling with multiplication tables

2011-05-04 Thread Alasdair McAndrew
Hello again,

So I decide to try with tables:

  \starttable[|m|m|m|m|m|m|m|m|m|]
\NC \VL I\NC R\NC R^2\NC R^3\NC F\NC FR\NC FR^2\NC FR^3\AR
\HL
\NC I \VL I\NC R\NC R^2\NC R^3\NC F\NC FR\NC FR^2\NC FR^3\NR
\NC R\VL R\NC R^2\NC R^3\NC I\NC FR\NC FR^2\NC FR^3\NC F\NR
\NC R^2\VL R^2\NC R^3\NC I\NC R\NC FR^2\NC FR^3\NC F\NC FR\NR
\NC R^3\VL R^3\NC I\NC R\NC R^2\NC FR^3\NC F\NC FR\NC FR^2\NR
\NC F\VL F\NC FR^3\NC FR^2\NC FR\NC I\NC R^3\NC R^2\NC R\NR
\NC FR\VL FR\NC F\NC FR^3\NC FR^2\NC R\NC I\NC R^3\NC R^2\NR
\NC FR^2\VL FR^2\NC FR\NC F\NC FR^3\NC R^2\NC R\NC I\NC R^3\NR
\NC FR^3\VL FR^3\NC FR^2\NC FR\NC F\NC R^3\NC R^2\NC R\NC I\NR
  \stoptable

This almost works, yet in the pdf output (texexec), there's an extra
column at the right full of [missing column].  What's going on here?

Actually, so far the best I've managed to do was to whip up a plain basic
array, and then insert two lines with TiKZ.  Clumsy, but so far it's the
only thing I've got to work...

-Alasdair
___
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] Still wrestling with multiplication tables

2011-05-04 Thread Aditya Mahajan

On May 4, 2011, at 9:35 AM, Alasdair McAndrew amc...@gmail.com wrote:

 Hello again,
 
 So I decide to try with tables:
 
   \starttable[|m|m|m|m|m|m|m|m|m|]
 \NC \VL I\NC R\NC R^2\NC R^3\NC F\NC FR\NC FR^2\NC FR^3\AR
 \HL
 \NC I \VL I\NC R\NC R^2\NC R^3\NC F\NC FR\NC FR^2\NC FR^3\NR
 \NC R\VL R\NC R^2\NC R^3\NC I\NC FR\NC FR^2\NC FR^3\NC F\NR
 \NC R^2\VL R^2\NC R^3\NC I\NC R\NC FR^2\NC FR^3\NC F\NC FR\NR
 \NC R^3\VL R^3\NC I\NC R\NC R^2\NC FR^3\NC F\NC FR\NC FR^2\NR
 \NC F\VL F\NC FR^3\NC FR^2\NC FR\NC I\NC R^3\NC R^2\NC R\NR
 \NC FR\VL FR\NC F\NC FR^3\NC FR^2\NC R\NC I\NC R^3\NC R^2\NR
 \NC FR^2\VL FR^2\NC FR\NC F\NC FR^3\NC R^2\NC R\NC I\NC R^3\NR
 \NC FR^3\VL FR^3\NC FR^2\NC FR\NC F\NC R^3\NC R^2\NC R\NC I\NR
   \stoptable
 
 This almost works, yet in the pdf output (texexec), there's an extra column 
 at the right full of [missing column].  What's going on here?

The syntax for tables is

\NC ... \NC ...\NC \NR


You are missing the last \NC

Aditya




 Actually, so far the best I've managed to do was to whip up a plain basic 
 array, and then insert two lines with TiKZ.  Clumsy, but so far it's the only 
 thing I've got to work...
 
 -Alasdair
 ___
 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] Still wrestling with multiplication tables

2011-05-04 Thread Alasdair McAndrew
On Wed, May 4, 2011 at 11:41 PM, Aditya Mahajan adit...@umich.edu wrote:


 On May 4, 2011, at 9:35 AM, Alasdair McAndrew amc...@gmail.com wrote:

  Hello again,
 
  So I decide to try with tables:
 
\starttable[|m|m|m|m|m|m|m|m|m|]
  \NC \VL I\NC R\NC R^2\NC R^3\NC F\NC FR\NC FR^2\NC FR^3\AR
  \HL
  \NC I \VL I\NC R\NC R^2\NC R^3\NC F\NC FR\NC FR^2\NC FR^3\NR
  \NC R\VL R\NC R^2\NC R^3\NC I\NC FR\NC FR^2\NC FR^3\NC F\NR
  \NC R^2\VL R^2\NC R^3\NC I\NC R\NC FR^2\NC FR^3\NC F\NC FR\NR
  \NC R^3\VL R^3\NC I\NC R\NC R^2\NC FR^3\NC F\NC FR\NC FR^2\NR
  \NC F\VL F\NC FR^3\NC FR^2\NC FR\NC I\NC R^3\NC R^2\NC R\NR
  \NC FR\VL FR\NC F\NC FR^3\NC FR^2\NC R\NC I\NC R^3\NC R^2\NR
  \NC FR^2\VL FR^2\NC FR\NC F\NC FR^3\NC R^2\NC R\NC I\NC R^3\NR
  \NC FR^3\VL FR^3\NC FR^2\NC FR\NC F\NC R^3\NC R^2\NC R\NC I\NR
\stoptable
 
  This almost works, yet in the pdf output (texexec), there's an extra
 column at the right full of [missing column].  What's going on here?

 The syntax for tables is

 \NC ... \NC ...\NC \NR


 You are missing the last \NC

 Aditya


Yay - that works beautifully!  (Even better if I finish each row with
\NC\AR).

Thanks,
Alasdair
___
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] Too much spacing in math mode between 'f' and 'l' (MkIV only)

2011-05-04 Thread Vedran Miletić
2011/5/4 Aditya Mahajan adit...@umich.edu

 On Tue, 3 May 2011, Vedran Miletić wrote:

  Hi,

 please consider this:

 \starttext
 \math{flow_1}
 \stoptext

 When compiled with MkIV, space between f and l is quite big and
 doesn't
 look very good. Is it a bug?


 Definitely looks like a bug in italic correction. In principle, the spacing
 with virtual fonts (mkiv) should be the same as type 1 fonts (mkii).


Thanks for clarification.



 But I agree with Severin that you should not be using \math{flow_1} to
 represent the first flow. I hope that this example was for illustrating the
 spacing bug.


Do you suggest I follow Severin's solution?

Regards,

Vedran Miletić
___
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] [t-rst] inclusion into Minimals, i. e. installation using `./first-setup.sh --extras='t-rst'`

2011-05-04 Thread Philipp Gesang
Hi Paul, Mojca  others,

sorry for the late answer, I was cut off from the list for a
couple of days.

On 2011-05-01 13:18:05, Mojca Miklavec wrote:
 On Sun, May 1, 2011 at 12:18, Paul Menzel wrote:
  Dear Philipp and ConTeXt folks,
 
  what needs to be done, that the module t-rst [1] can be installed using
  the following command.
 
         $ ./first-setup.sh --extras=t-rst
 
 1a. Somebody needs to check/confirmed that it is well-formed.

New version 0.3 conforms with the module/namespacing guidelines.
(Thanks to Wolfgang for his valuable suggestions.) As to the
quality … I’ll be happy to apply any patches.

 1b. At least somebody needs to find it useful and request it (which
 you just did; should it also be added to TeX Live?).

What would the inclusion into TL imply?

 2. Until we do something about it, it would be very very desirable to
 put it to modules.contextgarden.net (I know that it is painful).

If it’s possible now I’d try it asap.

 Once 1 and 2 are met, I just add a single line to sources that trigger
 inclusion of the module to minimals (and a separate one for inclusion
 into TeX Live).

Looks like context needs a package manager. (Something like
Arch’s PKGBUILDs, stored on the garden, could simplify the
minimals’ installation procedure a great deal.)

Best regards
Philipp

PS: Paul, thanks for the patches (was the same diff twice,
wasn’t it?).



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

-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments


pgpSpmdIoGkYk.pgp
Description: PGP signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

[NTG-context] formula numbering in unnumbered sections

2011-05-04 Thread Julian Becker
I came across the following problem recently: In my document I want chapters
and sections to be numbered, but not subsections, subsubsections etc.
Then, additionally I want my formulae to be numbered by chapter and section,
but not subsection.

In the following example the first equation gets numbered correctly as
(1.1), (1.2) and (3) in the first chapter, and as (2.1), (2.2) and (3) in
the second chapter respectively, which is not what I wanted. I'd rather have
the formulae numbered as   (1.1), (1.2) and (1.3) in the first chapter, and
as (2.1), (2.2) and (2.3).

Anybody has an idea how to accomplish this?

Thanks,
Julian

-

\setuphead[subsection][number=no]
\setupnumber[formula][key=chapter]
\starttext
\chapter{Wake up}
\placeformula
\startformula a^2+b^2=c^2
\stopformula
\section{Make Coffee}
\placeformula
\startformula c^2+d^2=e^2
\stopformula
\subsection{Now waking up for real}
\placeformula
\startformula a^2+b^2=c^2
\stopformula
\chapter{Wake up again}
\placeformula
\startformula a^2+b^2=c^2
\stopformula
\section{Make Coffee again}
\placeformula
\startformula c^2+d^2=e^2
\stopformula
\subsection{Now waking up for real}
\placeformula
\startformula a^2+b^2=c^2
\stopformula

\stoptext

-


Keep thy heart with all diligence; for it is the wellspring of life.
___
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] Index making

2011-05-04 Thread Willi Egger
Hi all,

Could some one tell me, why the index making in the following example does not 
come out as expected (as shown in the examplelines at the end)?

\startluacode
function Indexing(text)
   local data = text
   data = (string.gsub(data, ,, +))
   data = (string.gsub(data, + , +))
   return data
end
\stopluacode

\def\IndexItems#1{\index{\cldcontext{Indexing(#1)}}}

\starttext
We start with some text 
\IndexItems{Auto}

We have then more text
\IndexItems{Auto, motor}
\IndexItems{Auto, carburator}

Then we add non macro indexes:

\index{Glass lamp}
\index{Glass lamp+bulb}
\index{Glass lamp+bulb+wire}

\blank[3cm]

\placeregister[index]
\stoptext

Thanks, Willi
___
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] [t-rst] inclusion into Minimals, i. e. installation using `./first-setup.sh --extras='t-rst'`

2011-05-04 Thread Aditya Mahajan

On Wed, 4 May 2011, Philipp Gesang wrote:


Looks like context needs a package manager. (Something like
Arch’s PKGBUILDs, stored on the garden, could simplify the
minimals’ installation procedure a great deal.)


https://github.com/adityam/context-pkgbuild

(but this only installs the modules available with --extras=all).

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
___