Re: [NTG-context] MKIV/MKII Survey

2010-09-26 Thread Vedran Miletić
2010/9/26 Mojca Miklavec mojca.miklavec.li...@gmail.com:
 (was: Info about creating modules for beginners.)

 On Sun, Sep 26, 2010 at 19:51, Peter Münster wrote:

 Hello,

 It would be interesting, to know how many people actually use mkii.
 Perhaps a survey on the wiki...?

 I would be interested in that as well. However, a very relevant
 question would be - how to get unbiased results? (I guess there is
 quite some correlation between being active mailing list user and
 being MKIV user, apart from the fact that a newbie might simply type
 the command context without ever realizing the difference between
 MKII and MKIV.)

 Mojca

 PS: if we do make a Survey, I would prefer any free tool that's better
 in creating surveys (as opposed to change the number on wiki by
 one).

When we did survey on the topic of attitude towards mathematics two
years ago, we used LimeSurvey[1] and it was quite good.

-- 
Vedran Miletić

[1] http://www.limesurvey.org/
___
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] Making checkboxes

2010-09-06 Thread Wolfgang Schuster

Am 06.09.2010 um 13:50 schrieb Cecil Westerhof:

 Op maandag 6 sep 2010 12:55 CEST schreef Wolfgang Schuster:
 
 \def\CheckBoxes[#1]%
 {\par
 \getcommalistsize[#1]% count the number of arguments
 \processcommalist[#1]\doCheckBoxes}
 
 \def\doCheckBoxes#1%
 {\hskip1em[ ] #1\par}
 
 I changed the code to:
\def\CheckBoxes[#1]%
 {\par
  \getcommalistsize[#1]% count the number of arguments
  \processcommalist[#1]\doCheckBoxes}
 
\def\doCheckBoxes#1%
 {\hskip1em[ ] #1\par}
 
\starttext

How about this:

\def\CheckBoxes[#1]%
  {\startitemize[packed]
   \processcommalist[#1]\doCheckBoxes
   \stopitemize}

\def\doCheckBoxes#1%
  {\sym{\mathematics{\Box}}#1\par}

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] Making checkboxes

2010-09-06 Thread Cecil Westerhof
Op maandag 6 sep 2010 14:58 CEST schreef Wolfgang Schuster:

 How about this:

 \def\CheckBoxes[#1]%
 {\startitemize[packed]
 \processcommalist[#1]\doCheckBoxes
 \stopitemize}

 \def\doCheckBoxes#1%
 {\sym{\mathematics{\Box}}#1\par}

Does not work either.

I have now (I added a SimpleCheckBoxes that does reasonable what I
want, but where you always need three checkbox parameters):
\def\SimpleCheckBoxes#1,#2,#3,#4\par{
  #1\par
  \hskip2.5em[\hskip1em] #2\par
  \hskip2.5em[\hskip1em] #3\par
  \hskip2.5em[\hskip1em] #4\par}

\def\CheckBoxes[#1]%
 {\startitemize[packed]
  \processcommalist[#1]\doCheckBoxes
  \stopitemize}

\def\doCheckBoxes#1%
 {\sym{\mathematics{\Box}}#1\par}

\starttext

Intelligent way\par
\CheckBoxes Yes, No,   A little bit

\blank
Always three checkboxes and with the initial question\par
\SimpleCheckBoxes Does this what you want?, Yes,   No, A little bit

\stoptext

This gives:
Intelligent way
es, No, A little bit
Always three checkboxes and with the initial question
Does this what you want?
 [ ] Yes
 [ ] No
 [ ] A little bit

I attached the pdf also.



feedback-form.pdf
Description: Generated pdf

-- 
Cecil Westerhof
M cldwester...@gmail.com

O ascii ribbon campaign - stop html mail - www.asciiribbon.org

Please do not send me Microsoft Office/Apple iWork documents.
Send OpenDocument instead! http://fsf.org/campaigns/opendocument/
___
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] Making checkboxes

2010-09-06 Thread Cecil Westerhof
I ran it with batchmode and silent, so I did not see errors, but it is
not correct.
I get:
! Use of \CheckBoxes doesn't match its definition.
l.19 \CheckBoxes Y
  es, No, A little bit

H gives:
If you say, e.g., `\def\a1{...}', then you must always
put `1' after `\a', since control sequence names are
made up of letters only. The macro here has not been
followed by the required stuff, so I'm ignoring it.

So '\def\CheckBoxes[#1]%' is wrong, but what should it be?

2010/9/6 Cecil Westerhof cldwester...@gmail.com:
 Op maandag 6 sep 2010 14:58 CEST schreef Wolfgang Schuster:

 How about this:

 \def\CheckBoxes[#1]%
 {\startitemize[packed]
 \processcommalist[#1]\doCheckBoxes
 \stopitemize}

 \def\doCheckBoxes#1%
 {\sym{\mathematics{\Box}}#1\par}

 Does not work either.

 I have now (I added a SimpleCheckBoxes that does reasonable what I
 want, but where you always need three checkbox parameters):
    \def\SimpleCheckBoxes#1,#2,#3,#4\par{
      #1\par
      \hskip2.5em[\hskip1em] #2\par
      \hskip2.5em[\hskip1em] #3\par
      \hskip2.5em[\hskip1em] #4\par}

    \def\CheckBoxes[#1]%
     {\startitemize[packed]
      \processcommalist[#1]\doCheckBoxes
      \stopitemize}

    \def\doCheckBoxes#1%
     {\sym{\mathematics{\Box}}#1\par}

    \starttext

    Intelligent way\par
    \CheckBoxes Yes, No,   A little bit

    \blank
    Always three checkboxes and with the initial question\par
    \SimpleCheckBoxes Does this what you want?, Yes,   No, A little bit

    \stoptext

 This gives:
    Intelligent way
    es, No, A little bit
    Always three checkboxes and with the initial question
    Does this what you want?
         [ ] Yes
         [ ] No
         [ ] A little bit

 I attached the pdf also.



 --
 Cecil Westerhof
 M cldwester...@gmail.com

 O ascii ribbon campaign - stop html mail - www.asciiribbon.org

 Please do not send me Microsoft Office/Apple iWork documents.
 Send OpenDocument instead! http://fsf.org/campaigns/opendocument/





-- 
Cecil Westerhof
___
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] scriptfont0 undefined

2010-08-16 Thread Alan BRASLAU
scriptfont0 appears to be undefined.
This error occurs under certain circumstances
that I have not fully understood.

Alan

-- ! \scriptfont0 is undefined (character 54).
\mathematics ... #1\else \Ustartmath #1\Ustopmath 
  \fi 
l.1 \mathematics{1\times10^{6}}
   
\MPgraphformat ...a {metapost.format_n(#1,#2)}
  
l.11 \MPLIBsettext{11}{\MPgraphformat {g}{1e6}
  }
inserted text ...603;]===], [===[;]===], false)}
  
\processMPgraphic ...le \!!es , \MPaskedfigure )}}
  \egroup \placeMPgraphic 
\d...
l.366 \stopMPcode
 }
___
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] abbreviations as macros (Aditya Mahajan)

2010-08-08 Thread Armin Varmaz
Message: 5
Date: Sat, 7 Aug 2010 11:10:21 -0400 (EDT)
From: Aditya Mahajan [
To: mailing list for ConTeXt users 
Subject: Re: [NTG-context] abbreviations as macros
Message-ID: [
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed

On Sat, 7 Aug 2010, ivo welch wrote:


If you never need to use a full form of the abbreviation, then you can 
just use the same in ConTeXt. The equivalent of \ensuremath is \math; 
everything else is the same.

\define\NPV{\text{NPV\math{_0}}

I would, however, write this slightly differently (even in LaTeX) as

\math{\text{NPV}_0}

but that is just a stylistic issue.

 Is there a recommended way to do this on conTeXt?

The usual way of defining abbreviations in ConTeXt is

\abbreviation [NPV] {\math{\text{NPV}_0}} {full form}

Then you can use

\NPV\ for a short form of the abbreviation and \infull{NPV} for the full 
form. The advantage is that you can also get a list of used abbreviations.


Aditya

Hi Aditya,

can you tell me how I can ensure as in AMSmath that the font size in 
abbreviations automatically match the font size of current text?  see my 
example below. 

Best Armin

 EXAMPLE

\definealternativestyle[ImportantStyle][{\definedfont[Kurier-Bold at 24pt]}]


\definetextbackground[zhu]
 [location=paragraph,
 background=color,backgroundcolor=orange,
 leftoffset=0.5\bodyfontsize,rightoffset=.5\bodyfontsize,
 topoffset=.5\bodyfontsize,bottomoffset=.5\bodyfontsize,
 style=ImportantStyle,
 frame=off]


\startsetups important:start
 \starttextbackground[zhu] 
\stopsetups


\startsetups important:stop
 \endgraf
 \stoptextbackground
\stopsetups


\definestartstop
 [important]
 [before=\setups{important:start},
 after=\setups{important:stop}]

\abbreviation [NPV] {\math{\text{NPV}}} {full form} 

\starttext

this looks normal $x$, \NPV.

\startimportant
this looks bad \mathematics{x}, \NPV.
\stopimportant

this looks normal $x$, \NPV.

\stoptext

 END EXAMPLE
___
WEB.DE DSL SOMMER-SPECIAL: Surf  Phone Flat 16.000 für 
nur 19,99 ¿/mtl.!* http://web.de/DSL-Doppel-Flatrate/
___
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] \qedhere equivalent in ConTeXt

2010-08-07 Thread Emanuele Sacco
Thank you very much, but still does not work to me..

%%%

\definedescription
[proof]
[text=Proof.]

\setupdescriptions
 [proof]
 [width=broad,
  distance=0.5em,
  location=serried,
  headstyle=it,
  indentnext=yes,
  indenting=yes,
  closesymbol=\mathematics{\square},
  closecommand=\ifmmode\eqno\else\wordright\fi]



\starttext

\startproof
Questa \`e una dimostrazione
\startformula
a=b.
\stopformula
\stopproof

\stoptext

%%


systems : begin file esempio at line 19
! Missing } inserted.
inserted text
}
to be read again
   \endgroup
\@@stopdescription ...l \dostopparbasedattributes
  \endgroup \descriptionpara...
l.26 \stopproof

? H
I've inserted something that you may have forgotten.
(See the inserted text above.)
With luck, this will get me unwedged. But if you
really didn't forget anything, try typing `2' now; then
my insertion and my current dilemma will both disappear.

?




Emanuele Sacco

2010/8/6 Wolfgang Schuster schuster.wolfg...@googlemail.com:
 Am 05.08.10 22:17, schrieb Emanuele Sacco:

 

 \definedescription
 [proof]
 [text=Proof.]

 \setupdescriptions[proof]
 [width=broad,distance=0.5em,
 location=serried,
 headstyle=it,
 indentnext=yes,
 indenting=yes,
 closesymbol=$\square$]

 \setupdescriptions
  [proof]
  [width=broad,
   distance=0.5em,
   location=serried,
   headstyle=it,
   indentnext=yes,
   indenting=yes,
   closesymbol=\mathematics{\square},
   closecommand=\ifmmode\eqno\else\wordright\fi]

 Wolfgang




-- 
Al mondo ci sono 10 tipi di persone: quelli che conoscono il sistema
binario e quelli che non lo conoscono.
___
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] \qedhere equivalent in ConTeXt

2010-08-07 Thread Thomas Schmitz

On Sat, 7 Aug 2010 10:54:52 +0200
 Emanuele Sacco emanuelesa...@gmail.com wrote:

Thank you very much, but still does not work to me..

%%%

\definedescription
[proof]
[text=Proof.]

\setupdescriptions
[proof]
[width=broad,
 distance=0.5em,
 location=serried,
 headstyle=it,
 indentnext=yes,
 indenting=yes,
 closesymbol=\mathematics{\square},
 closecommand=\ifmmode\eqno\else\wordright\fi]



\starttext

\startproof
Questa \`e una dimostrazione
\startformula
a=b.
\stopformula
\stopproof

\stoptext

%%


This works with mkiv, but not with mkii. Wolfgang couldn't 
know which you were using since your replies were always 
rather short on details.


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] \qedhere equivalent in ConTeXt

2010-08-07 Thread Emanuele Sacco
You are absolutely right.
Thanks to all.

2010/8/7 Thomas Schmitz tschm...@uni-bonn.de:
 On Sat, 7 Aug 2010 10:54:52 +0200
  Emanuele Sacco emanuelesa...@gmail.com wrote:

 Thank you very much, but still does not work to me..

 %%%

 \definedescription
 [proof]
 [text=Proof.]

 \setupdescriptions
 [proof]
 [width=broad,
  distance=0.5em,
  location=serried,
  headstyle=it,
  indentnext=yes,
  indenting=yes,
  closesymbol=\mathematics{\square},
  closecommand=\ifmmode\eqno\else\wordright\fi]



 \starttext

 \startproof
 Questa \`e una dimostrazione
 \startformula
 a=b.
 \stopformula
 \stopproof

 \stoptext

 %%

 This works with mkiv, but not with mkii. Wolfgang couldn't know which you
 were using since your replies were always rather short on details.

 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
 ___




-- 
Al mondo ci sono 10 tipi di persone: quelli che conoscono il sistema
binario e quelli che non lo conoscono.
___
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] \qedhere equivalent in ConTeXt

2010-08-06 Thread Wolfgang Schuster

Am 05.08.10 22:17, schrieb Emanuele Sacco:



\definedescription
[proof]
[text=Proof.]

\setupdescriptions[proof]
[width=broad,distance=0.5em,
location=serried,
headstyle=it,
indentnext=yes,
indenting=yes,
closesymbol=$\square$]


\setupdescriptions
  [proof]
  [width=broad,
   distance=0.5em,
   location=serried,
   headstyle=it,
   indentnext=yes,
   indenting=yes,
   closesymbol=\mathematics{\square},
   closecommand=\ifmmode\eqno\else\wordright\fi]

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] Grammar

2010-07-28 Thread John Haltiwanger
On Tue, Jul 27, 2010 at 10:57 PM, Marcin Borkowski
mb...@atos.wmid.amu.edu.pl wrote:
 Dnia Tue, Jul 27, 2010 at 01:06:27PM +, John Haltiwanger napisa#322;(a):
 On Tue, Jul 27, 2010 at 8:47 AM, Marcin Borkowski
 mb...@atos.wmid.amu.edu.pl wrote:
  Hi,
 
  what an interesting discussion!
 
  My personal point of view is that the so-called political correctness
  is something I actively fight against, by means of NOT using they or
  Afroamericans or other such strange inventions.  These new words
  somehow remind me of Orwell's 1984...

 So what do you write instead? Negro?

 And what's wrong with Negro?  AFAIK, it means black, so it just
 describes the reality.  This is what a word should do, right?  And btw,
 the term Afroamerican doesn't really make much sense to me: what would
 you call a Negro, born in France, and living in Germany, when you wanted
 to distinguish him from a white man?  (Please note that by man, I mean
 a human being of any sex;).)

 To be more serious: I accept that there might be a problem caused by the
 fact that I am not a native speaker of English.  I suspect that somehow
 the neutral term Negro started being used in a derogatory fashion, and
 that it might be unpleasant to black people to be called Negroes.  And
 that's why I usually say just black people.

So what is your issue here then? You are already working by the rules
I proposed:

using the words that the group wishes to be called by (or at least not
using the words which they don't).

BTW, 'Negro' is definitely not a term to be used for referring to
black Americans. IIRC, it is a positive term in Brazil. The point is
to be aware of these things and to respect people's wishes regarding
them, rather than blithely pretending that any name you use should
automatically be fine simply because, well, YOU don't see the problem
with using the term Negro (for instance).

 'Political correctness' can be onerous, and often contradictory to my
 anti-authoritarian nature, but in the end it is not the Man who
 issues requests for language changes so much as the marginalized
 groups that take issue with existing phrasing. Afroamericans, for
 instance, was deprecated sometime around that year 1984.. It all boils
 down to whether you care about what the people concerned are saying,
 which is why I note the author's position when I encounter it. (Rather
 than throwing their paper away, ala Khaled).

 Well, onerous might not be the best word.  Scary might be better.

 You see, I am quite convinced that trying to manipulate language by
 hand is a very bad idea.  Maybe this is partly because I live in a
 former Communist country (Poland); we have seen such things in the past.
 Another reason maybe that it seems to me that one of the first groups to
 talk about political correctness (maybe even coining the phrase, I
 don't know) were feminists, who did so much more harm to women in
 general than we usually imagine.

I understand your sensitivity vis a vis Regime Imposed language
tuning. You have got to be kidding me with that anti-feminist talk,
though. I'm not going to go there with you, especially after your
explanation below.

 This is always a contentious issue when software/coder types are
 involved, one of the serious reasons why female participation in IT
 (in general) and FLoSS (in particular) are so low: many men in these
 circles will not, or can not, give room to critical complaints. The
 problem always originates in the person complaining---they need to be
 less serious, no one around here cares so stfu, etc. This is a serious
 issue, and this is probably one of the least contentious starting
 points for encountering it. That theory would be thrown away because
 it attempts to consciously address real gender inequalities is a
 depressing thought.

 I am not sure that I understood your point, but I am quite convinced
 that the low percentage of women in mathematics or IT is caused
 primarily by the simple fact that an average female brain is not well
 fit for this particular purpose.  (Of course, we all know notable
 exceptions.  Also note that better/worse fit for one particular
 purpose is completely unrelated to better/worse in general.)

I'd laugh at this if it wasn't the same shit that's been going around
for years in the math/IT circles. Socialization is the cause behind
this, not natural differences in brain structure. If the society has
decided to accept and repeat this fact over and over, and men will
generally act as if it is true (pushing out females who make the
attempt), then it will come to appear as true. But that doesn't make
it any less BS.

Put out some science for that one, dude.
___
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

Re: [NTG-context] Grammar

2010-07-28 Thread Thomas A. Schmitz


On Jul 28, 2010, at 11:29 AM, John Haltiwanger wrote:


On Tue, Jul 27, 2010 at 10:57 PM, Marcin Borkowski


I am not sure that I understood your point, but I am quite convinced
that the low percentage of women in mathematics or IT is caused
primarily by the simple fact that an average female brain is not well
fit for this particular purpose.  (Of course, we all know notable
exceptions.  Also note that better/worse fit for one particular
purpose is completely unrelated to better/worse in general.)


I'd laugh at this if it wasn't the same shit that's been going around
for years in the math/IT circles. Socialization is the cause behind
this, not natural differences in brain structure. If the society has
decided to accept and repeat this fact over and over, and men will
generally act as if it is true (pushing out females who make the
attempt), then it will come to appear as true. But that doesn't make
it any less BS.


No no, I've seen excellent scientific research on this question. It  
was in a German periodical of 1938. The article explained why women  
can't do math. I also gave a rigorous demonstration that Poles are  
genetically inferior to Germans and can only be plumbers or thieves...


But seriously: Marcin, I would recommend you stop posting on this. All  
you show is your complete lack of intellectual awareness. You're  
embarrassing yourself, and that's all.


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] Grammar

2010-07-28 Thread Marcin Borkowski
Dnia Wed, Jul 28, 2010 at 11:39:09AM +0200, Thomas A. Schmitz napisa#322;(a):
 
 On Jul 28, 2010, at 11:29 AM, John Haltiwanger wrote:
 
 On Tue, Jul 27, 2010 at 10:57 PM, Marcin Borkowski
 
 I am not sure that I understood your point, but I am quite convinced
 that the low percentage of women in mathematics or IT is caused
 primarily by the simple fact that an average female brain is not well
 fit for this particular purpose.  (Of course, we all know notable
 exceptions.  Also note that better/worse fit for one particular
 purpose is completely unrelated to better/worse in general.)
 
 I'd laugh at this if it wasn't the same shit that's been going around
 for years in the math/IT circles. Socialization is the cause behind
 this, not natural differences in brain structure. If the society has
 decided to accept and repeat this fact over and over, and men will
 generally act as if it is true (pushing out females who make the
 attempt), then it will come to appear as true. But that doesn't make
 it any less BS.
 
 No no, I've seen excellent scientific research on this question. It  
 was in a German periodical of 1938. The article explained why women  
 can't do math. I also gave a rigorous demonstration that Poles are  
 genetically inferior to Germans and can only be plumbers or thieves...
 
 But seriously: Marcin, I would recommend you stop posting on this. All  
 you show is your complete lack of intellectual awareness. You're  
 embarrassing yourself, and that's all.

Why?  Only because I don't believe some claims I find to be highly
controversial?  And BTW, where's the famous freedom of speech?  I do not
claim that I have any research behind my opinion, but I claim that
neither have you.  Any experiment in social science involves so many
factors that obtaining any certain results is imho nearly impossible.
And I do not find anything which would mean that women are worse than
men just because they are different.  Of course, it might be the case
that I am just not right, but I don't think that being not right is
embarassing when you have no proofs in either direction.

In other words: I cannot imagine an experiment which might prove any of
us wrong on this subject, and I can see some hints which support your
claim and some which support mine.

Regards

-- 
Marcin Borkowski (http://mbork.pl)
___
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] Grammar

2010-07-28 Thread Marcin Borkowski
Dnia Wed, Jul 28, 2010 at 09:29:49AM +, John Haltiwanger napisa#322;(a):
 On Tue, Jul 27, 2010 at 10:57 PM, Marcin Borkowski
 mb...@atos.wmid.amu.edu.pl wrote:
  Dnia Tue, Jul 27, 2010 at 01:06:27PM +, John Haltiwanger 
  napisa#322;(a):
  On Tue, Jul 27, 2010 at 8:47 AM, Marcin Borkowski
  mb...@atos.wmid.amu.edu.pl wrote:
   Hi,
  
   what an interesting discussion!
  
   My personal point of view is that the so-called political correctness
   is something I actively fight against, by means of NOT using they or
   Afroamericans or other such strange inventions.  These new words
   somehow remind me of Orwell's 1984...
 
  So what do you write instead? Negro?
 
  And what's wrong with Negro?  AFAIK, it means black, so it just
  describes the reality.  This is what a word should do, right?  And btw,
  the term Afroamerican doesn't really make much sense to me: what would
  you call a Negro, born in France, and living in Germany, when you wanted
  to distinguish him from a white man?  (Please note that by man, I mean
  a human being of any sex;).)
 
  To be more serious: I accept that there might be a problem caused by the
  fact that I am not a native speaker of English.  I suspect that somehow
  the neutral term Negro started being used in a derogatory fashion, and
  that it might be unpleasant to black people to be called Negroes.  And
  that's why I usually say just black people.
 
 So what is your issue here then? You are already working by the rules
 I proposed:
 
 using the words that the group wishes to be called by (or at least not
 using the words which they don't).

I guess the difference lies at least in one point:  black man is
something that *means* a black man.  Afroamerican means nothing or
something different.  I prefer to use words in *their* meanings.

And (though I am not sure about it at all) I think it might be the case
that the introduction of black people instead of Negroes might have
been more spontaneous, and Afroamericans seems to be supported by some
governmental/lobbyist groups.

 BTW, 'Negro' is definitely not a term to be used for referring to
 black Americans. IIRC, it is a positive term in Brazil. The point is
 to be aware of these things and to respect people's wishes regarding
 them, rather than blithely pretending that any name you use should
 automatically be fine simply because, well, YOU don't see the problem
 with using the term Negro (for instance).

The point is, is it the wishes of the people involved, or the wishes of
some groups who *claim* to represent them?

  'Political correctness' can be onerous, and often contradictory to my
  anti-authoritarian nature, but in the end it is not the Man who
  issues requests for language changes so much as the marginalized
  groups that take issue with existing phrasing. Afroamericans, for
  instance, was deprecated sometime around that year 1984.. It all boils
  down to whether you care about what the people concerned are saying,
  which is why I note the author's position when I encounter it. (Rather
  than throwing their paper away, ala Khaled).
 
  Well, onerous might not be the best word.  Scary might be better.
 
  You see, I am quite convinced that trying to manipulate language by
  hand is a very bad idea.  Maybe this is partly because I live in a
  former Communist country (Poland); we have seen such things in the past.
  Another reason maybe that it seems to me that one of the first groups to
  talk about political correctness (maybe even coining the phrase, I
  don't know) were feminists, who did so much more harm to women in
  general than we usually imagine.
 
 I understand your sensitivity vis a vis Regime Imposed language
 tuning. You have got to be kidding me with that anti-feminist talk,
 though. I'm not going to go there with you, especially after your
 explanation below.

Well, you don't have to.  Maybe it would be a good idea to mention that
I know some women who have the same opinion as me on feminism.

  This is always a contentious issue when software/coder types are
  involved, one of the serious reasons why female participation in IT
  (in general) and FLoSS (in particular) are so low: many men in these
  circles will not, or can not, give room to critical complaints. The
  problem always originates in the person complaining---they need to be
  less serious, no one around here cares so stfu, etc. This is a serious
  issue, and this is probably one of the least contentious starting
  points for encountering it. That theory would be thrown away because
  it attempts to consciously address real gender inequalities is a
  depressing thought.
 
  I am not sure that I understood your point, but I am quite convinced
  that the low percentage of women in mathematics or IT is caused
  primarily by the simple fact that an average female brain is not well
  fit for this particular purpose.  (Of course, we all know notable
  exceptions.  Also note that better/worse fit for one particular
  purpose

Re: [NTG-context] Grammar

2010-07-27 Thread Marcin Borkowski
Dnia Tue, Jul 27, 2010 at 01:06:27PM +, John Haltiwanger napisa#322;(a):
 On Tue, Jul 27, 2010 at 8:47 AM, Marcin Borkowski
 mb...@atos.wmid.amu.edu.pl wrote:
  Hi,
 
  what an interesting discussion!
 
  My personal point of view is that the so-called political correctness
  is something I actively fight against, by means of NOT using they or
  Afroamericans or other such strange inventions.  These new words
  somehow remind me of Orwell's 1984...
 
 So what do you write instead? Negro?

And what's wrong with Negro?  AFAIK, it means black, so it just
describes the reality.  This is what a word should do, right?  And btw,
the term Afroamerican doesn't really make much sense to me: what would
you call a Negro, born in France, and living in Germany, when you wanted
to distinguish him from a white man?  (Please note that by man, I mean
a human being of any sex;).)

To be more serious: I accept that there might be a problem caused by the
fact that I am not a native speaker of English.  I suspect that somehow
the neutral term Negro started being used in a derogatory fashion, and
that it might be unpleasant to black people to be called Negroes.  And
that's why I usually say just black people.

 'Political correctness' can be onerous, and often contradictory to my
 anti-authoritarian nature, but in the end it is not the Man who
 issues requests for language changes so much as the marginalized
 groups that take issue with existing phrasing. Afroamericans, for
 instance, was deprecated sometime around that year 1984.. It all boils
 down to whether you care about what the people concerned are saying,
 which is why I note the author's position when I encounter it. (Rather
 than throwing their paper away, ala Khaled).

Well, onerous might not be the best word.  Scary might be better.

You see, I am quite convinced that trying to manipulate language by
hand is a very bad idea.  Maybe this is partly because I live in a
former Communist country (Poland); we have seen such things in the past.
Another reason maybe that it seems to me that one of the first groups to
talk about political correctness (maybe even coining the phrase, I
don't know) were feminists, who did so much more harm to women in
general than we usually imagine.

 This is always a contentious issue when software/coder types are
 involved, one of the serious reasons why female participation in IT
 (in general) and FLoSS (in particular) are so low: many men in these
 circles will not, or can not, give room to critical complaints. The
 problem always originates in the person complaining---they need to be
 less serious, no one around here cares so stfu, etc. This is a serious
 issue, and this is probably one of the least contentious starting
 points for encountering it. That theory would be thrown away because
 it attempts to consciously address real gender inequalities is a
 depressing thought.

I am not sure that I understood your point, but I am quite convinced
that the low percentage of women in mathematics or IT is caused
primarily by the simple fact that an average female brain is not well
fit for this particular purpose.  (Of course, we all know notable
exceptions.  Also note that better/worse fit for one particular
purpose is completely unrelated to better/worse in general.)

 I for one have always thought it would be interesting to develop a
 Unicode character that provides a symbol representing a neutral gender
 pronoun. Then, anyone reading can insert he/she or another option to
 their own taste.

Regards

-- 
Marcin Borkowski (http://mbork.pl)

Emacs: Escape-Meta-Alt-Control-Shift.
___
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] font size in math mode

2010-07-27 Thread Armin Varmaz
Hi Hans, hi guys,


thanks for the explanation! 


Does this mean that each time I want to change the font size of the text (e.g. 
for a floating object or framed text) I must do this manually for mathematics? 
or is there a way to adopt the font size of the text to mathematics? see below 
for an example what I mean. Here, I used definetextbackground but the effect 
remains in floating objects as well. I tried different font styles and 
different font types, too.


Armin  

** EXAMPLE


\definealternativestyle[ImportantStyle][{\definedfont[Kurier-Bold at 24pt]}]


\definetextbackground[zhu]
 [location=paragraph,
 background=color,backgroundcolor=orange,
 leftoffset=0.5\bodyfontsize,rightoffset=.5\bodyfontsize,
 topoffset=.5\bodyfontsize,bottomoffset=.5\bodyfontsize,
 style=ImportantStyle,
 frame=off]


\startsetups important:start
 \starttextbackground[zhu]
\stopsetups


\startsetups important:stop
 \endgraf
 \stoptextbackground
\stopsetups


\definestartstop
 [important]
 [before=\setups{important:start},
 after=\setups{important:stop}]


\starttext


this looks normal $x$.


\startimportant
this uses the environment definetextbackground \mathematics{x}.
\stopimportant
\stoptext

** END EXAMPLE
___
WEB.DE DSL ab 19,99 Euro/Monat. Bis zu 150,- Euro Startguthaben und 
50,- Euro Geldprämie inklusive! https://freundschaftswerbung.web.de
___
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] font size in math mode

2010-07-27 Thread Hans Hagen

On 27-7-2010 1:40, Armin Varmaz wrote:

Hi Hans, hi guys,


thanks for the explanation!


Does this mean that each time I want to change the font size of the text (e..g. 
for a floating object or framed text) I must do this manually for mathematics? 
or is there a way to adopt the font size of the text to mathematics? see below 
for an example what I mean. Here, I used definetextbackground but the effect 
remains in floating objects as well. I tried different font styles and 
different font types, too.


indeed, as math is using another font (or more fonts), so best then do:

\switchtobodyfont[small]\bf

or so. An other alternative is to define a few more sizes:

\setupbodyfontenvironment[default][p=0.8,q=0.6]

\definefontsize[p] \definefontsize[q]

\usetypescript[palatino]

test $x$ {\tfp test $x$} {\tfq test $x$} test




-
  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] font size in math mode

2010-07-23 Thread Armin Varmaz

Hi guys

is there a way to put the size fonts in formulas and the size of symbols in \mathematics to the local size font, e.g. used in a text box? I found that ConTeXt does not use the appropriate font size in {\tfxx } or in \tfx. below a mini example.

what am I doing wrong? maybe I damaged my context installation somehow.

Armin

**

\starttext
this looks normal $x$.

this looks normal \mathematics{x}.

{\tfxx this looks bad $x$.}

{\tfxx this looks bad \mathematics{x}, too.}

{\tfd interestingly this looks good \mathematics{x}.}

{\tfc this looks good \mathematics{x}.}

{\tfb this looks good \mathematics{x}.}

{\tfa this looks good \mathematics{x}.}

{\tfxx this looks bad \mathematics{x}.}

\stoptext 

Neu: WEB.DE De-Mail - Einfach wie E-Mail, sicher wie ein Brief!  Jetzt De-Mail-Adresse reservieren: https://produkte.web.de/go/demail02

___
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] font size in math mode

2010-07-23 Thread Hans Hagen

On 23-7-2010 9:23, Armin Varmaz wrote:

Hi guys

is there a way to put the size fonts in formulas and the size of symbols in
\mathematics to the local size font, e.g. used in a text box? I found that
ConTeXt does not use the appropriate font size in {\tfxx } or in \tfx. below a
mini example.

what am I doing wrong? maybe I damaged my context installation somehow.

Armin

**

\starttext

this looks normal $x$.

this looks normal \mathematics{x}.

{\tfxx this looks bad $x$.}

{\tfxx this looks bad \mathematics{x}, too.}

{\tfd interestingly this looks good \mathematics{x}.}

{\tfc this looks good \mathematics{x}.}

{\tfb this looks good \mathematics{x}.}

{\tfa this looks good \mathematics{x}.}

{\tfxx this looks bad \mathematics{x}.}

\stoptext


the x sizes are just for text while the a-d sized are for titles and so

nowadays the a-d sizes could be defined in terms of larger bodyfont 
sizes as font class switching is pretty fast


for smaller sizes you can switch to a smaller bodyfont

\definealternativestyle [bigger]  [\setbigbodyfont  \tf] []
\definealternativestyle [smaller] [\setsmallbodyfont\tf] []

\starttext

{
1\smaller this looks bad \mathematics{x}, too. \the\bodyfontsize\par
2\smaller this looks bad \mathematics{x}, too. \the\bodyfontsize\par
3\smaller this looks bad \mathematics{x}, too. \the\bodyfontsize\par
4\smaller this looks bad \mathematics{x}, too. \the\bodyfontsize\par
}

{
1\bigger this looks bad \mathematics{x}, too. \the\bodyfontsize\par
2\bigger this looks bad \mathematics{x}, too. \the\bodyfontsize\par
3\bigger this looks bad \mathematics{x}, too. \the\bodyfontsize\par
4\bigger this looks bad \mathematics{x}, too. \the\bodyfontsize\par
}

i'll add the bigger and smaller shortcuts




-
  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] Chart tricks

2010-06-16 Thread Vyatcheslav Yatskovsky

Hello,

Please, help me with the chart. I need one cell to be offsetted and (if 
possible) larger. The code:


\usemodule[chart]
\starttext
\setupFLOWcharts
[option=test,
nx=5,
ny=4,
dx=1\bodyfontsize,
dy=1\bodyfontsize,
width=12\bodyfontsize,
height=7\bodyfontsize,
maxwidth=\textwidth]

\startFLOWchart [grid]
\startFLOWcell
\shape {5}
\location {2,1}
\text {Higher mathematics}
\stopFLOWcell   
\startFLOWcell
\shape {5}
\location {2,2}
\text {This should bigger and on the center}
\stopFLOWcell   
\stopFLOWchart

\FLOWchart[grid]
\stoptext

To give you idea what I want to achieve (roughly), I attached an image 
chart.png.


Rgrds,
Vyatcheslav
attachment: chart.png___
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] Drawing a diagram

2010-06-14 Thread Vyatcheslav Yatskovsky

On 14.06.2010 15:27, ntg-context-requ...@ntg.nl wrote:

That actual picture was drawn with the flowchart module.

http://wiki.contextgarden.net/Flow_Charts

Thank you, Taco.

I cannot find one thing about charts: is it possible to offset and 
enlarge just one chart symbol?


Specifically, I need My main discipline to occupy four cells in the 
center, or just be shifted...


\usemodule[chart]
\starttext
\setupFLOWcharts
[option=test,
nx=5,
ny=4,
dx=1\bodyfontsize,
dy=1\bodyfontsize,
width=12\bodyfontsize,
height=7\bodyfontsize,
maxwidth=\textwidth]

\startFLOWchart [grid]
\startFLOWcell
\shape {5}
\location {2,1}
\text {Higher mathematics}
\stopFLOWcell   
\startFLOWcell
\shape {5}
\location {2,2}
\text {My main discipline}
\stopFLOWcell   
\stopFLOWchart

\FLOWchart[grid]
\stoptext

--
Best Regards,
Vyatcheslav Yatskovsky
___
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] error: unable to define unbatangRegular as \*Myface12ptrmtfa*

2010-05-27 Thread Jeong Dalyoung
Dear all,

Today, I updated ConTeXt Minimal using first-setup.sh in my Mac.

I compiled a file which was compiled well before update.
But I got a strange result in the output.

All english sentences are shown well except korean sentences. In the log file,

...
systems : end file myBstyle at line 4
(/Users/graph/ConTeXtMini/tex/texmf-local/tex/context/type-kor.tex)
!define font: font with name unbatangRegular is not found
!define font: unknown font unbatangRegular, loading aborted
!define font: unable to define unbatangRegular as \*Myface12ptrmtf*
systems : begin file geo-euclid at line 11
(/Users/graph/Documents/Mathematics/geometry/geo-euclid.tex
structure   : chapter @ level 2 : 0.1 - Euclidean Geoemtry
!define font: font with name unbatangRegular is not found
!define font: unknown font unbatangRegular, loading aborted
!define font: unable to define unbatangRegular as \*Myface12ptrmtfc*
!define font: font with name unbatangRegular is not found
...

There is no change in the typescript file and the location of the fonts.

Here is a part of typescript file type-kor defining unbatangRegular;

% unfonts batang
\starttypescript[serif][unbatang][uc]
% Regular variant:
\definefontsynonym[unbatangRegular][file:UnBatang.ttf][encoding=uc]
\definefontsynonym[unbatangBold][file:UnBatangBold.ttf][encoding=uc]
\definefontsynonym[unbatangItalic][file:UnGraphic.ttf][encoding=uc]
\definefontsynonym[unbatangBoldItalic][file:UnGraphicBold.ttf] [encoding=uc]
\stoptypescript
% mid-level names:
\starttypescript[serif][unbatang][name]
\definefontsynonym[Serif][unbatangRegular]
\definefontsynonym[SerifBold][unbatangBold]
\definefontsynonym[SerifItalic][unbatangItalic]
\definefontsynonym[SerifBoldItalic][unbatangBoldItalic]
% The fallbacks
\definefontsynonym[SerifSlanted][Serif]
\definefontsynonym[SerifBoldSlanted][SerifBold]
\definefontsynonym[SerifCaps][Serif]
\stoptypescript
...

More interesting thing is that korean defined as bold face is shown. So I 
change the whole text as bold using {\bf whole text (english + korean)}, then 
every sentences is clearly shown in bold face. I checked luatools 
UnBatang.ttf which is defined as unbatangregular, it locates where it is.

ConTeXtMini graph$ luatools UnBatang.ttf
/Users/graph/Library/Fonts/UnBatang.ttf

Both current version and ConTeXt  ver: 2010.05.24 13:05 MKIV  fmt: 2010.5.27  
int: english/english version work same.

Why isn't it able to define unbatangRegular while it can use the 
unbatangBold?

I am using Mac, ConTeXtMinimal.
Thank you.

Best regards,

Dalyoung

___
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] How to place a (right) brace in a TABLE?

2010-05-20 Thread Vladimir Lomov
** Wolfgang Schuster [2010-05-20 13:04:15 +0200]:

''  = Wolfgang Schuster
'' = Vladimir Lomov

Hi.

(Sorry for unclear question in topic.)

I want to put a brace (right or left isn't matter now) in a TABLE (may
be another table environment) like in below scheme

a11 a12| a13
a21 a22| a23
a31 a32  a33
a41 a42  a43
a51 a52| a53
a61 a62| a63

Here '|' marks place and elements which should be grouped by a brace.

Thanks in advance, Vladimir Lomov.

P.S. I'm new in context and don't have any idea how to achieve this. I
thought about graphics (metapost) to draw a brace or join two cells and
draw big brace. And, yes I use mkiv and latest beta (context minimal).

 You can play with this:

 \def\linkeklammer
   {\setbox\scratchbox\hbox{$\left\{\vrule height .5\vsize depth
 .5\vsize width 0pt\relax\right.$}%
\rightaligned{\hbox to
 .5\wd\scratchbox{\raise\dp\scratchbox\box\scratchbox\hss}}}

 \def\rechteklammer
   {\setbox\scratchbox\hbox{$\left.\vrule height .5\vsize depth
 .5\vsize width 0pt\relax\right\}$}%
\leftaligned{\hbox to
 .5\wd\scratchbox{\hss\raise\dp\scratchbox\box\scratchbox}}}

 \defineoverlay[linkeklammer] [\linkeklammer]
 \defineoverlay[rechteklammer][\rechteklammer]

 \starttext

 \bTABLE
   \bTR[align={middle,middle},frame=off,offset=1ex]
 \bTD[background=linkeklammer] text \eTD
 \bTD text\\text\\text \eTD
 \bTD[background=rechteklammer] text \eTD
   \eTR
 \eTABLE

 \stoptext

 and this:

 \startuseMPgraphic{accolade}
 z1  = (-233,0) ;
 z2  = (-220,22) ;
 z3  = (-155,211) ;
 z4  = (-200,690) ;
 z5  = (-142,1033) ;
 z6  = (-97,1106) ;
 z7  = (-71,1125) ;
 z8  = (-61,1104) ;
 z9  = (-80,1077) ;
 z10 = (-108,1002) ;
 z11 = (-129,666) ;
 z12 = (-117,207) ;
 z13 = (-197,19) ;
 z14 = (-208,0) ;
 z15 = (-197,-19) ;
 z16 = (-117,-207) ;
 z17 = (-129,-666) ;
 z18 = (-108,-1026) ;
 z19 = (-80,-1077) ;
 z20 = (-61,-1104) ;
 z21 = (-71,-1125) ;
 z22 = (-97,-1106) ;
 z23 = (-143,-1031) ;
 z24 = (-199,-673) ;
 z25 = (-155,-211) ;
 z26 = (-220,-22) ;
 fill z1 for i=2 upto 14: .. z[i] endfor  z14 for j=15 upto 26: ..
 z[j] endfor .. z1  cycle ;
 \stopuseMPgraphic

 \defineoverlay[leftbrace] [\leftaligned
 {\scale[height=\overlayheight]{\useMPgraphic{accolade}}}]
 \defineoverlay[rightbrace][\rightaligned{\mirror{\scale[height=\overlayheight]{\useMPgraphic{accolade]


 \starttext

 \framedtext[frame=off,loffset=1em,roffset=1em,background={leftbrace,rightbrace}]{\input
 knuth\par}

 \setupTABLE[frame=off,offset=1ex]
 \setupTABLE[row][each][align={middle,lohi}]
 \bTABLE
   \bTR
 \bTD[nr=3,background=leftbrace] drei \eTD
 \bTD[nr=2,background=leftbrace] zwei \eTD
 \bTD f \eTD
 \bTD o \eTD
 \bTD u \eTD
 \bTD r \eTD
 \bTD [nr=3,background=rightbrace] three \eTD
   \eTR
   \bTR
 \bTD [background=leftbrace] eins \eTD
 \bTD null \eTD
 \bTD [background=rightbrace] one \eTD
 \bTD [nr=2,background=rightbrace] two \eTD
   \eTR
   \bTR
 \bTD v \eTD
 \bTD i \eTD
 \bTD e \eTD
 \bTD r \eTD
   \eTR
 \eTABLE

 \stoptext

Thank you Wolfgang for examples. Now I got idea of background. Nice.

But actually I want something different. I couldn't describe this more
clearly than before so I attach PDF file that shows what I want to do.
(I made it with the help of asymptote: first I made a table in LaTeX,
then the table was put in background and after braces and letters were
placed on top of the table.)

I thought may be there is context (mkiv) way to do this, i.e. one
could specify which rows in a column to be grouped and what symbol will
be put after a brace.

If there is no simple (elegant, context-way?) solution then I have to
use non-elegant (imho, ugly) way: add an additional column with brace
and symbol.

---
WBR, Vladimir Lomov.

P.S. I'm impressed how you made a brace in metapost. I alway wonder how
people could write numbers that gives a nice figure (may be by triali
and error?).

-- 
The reason that every major university maintains a department of
mathematics is that it's cheaper than institutionalizing all those people.


smp.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] ConTeXt name/branding

2010-04-27 Thread Mojca Miklavec
On Tue, Apr 27, 2010 at 10:27, Patrick Gundlach wrote:
 Hi Scott,

 that's a good idea, we should rename it to 'latex 3'. That name is still free 
 and it would fill the expectations of almost all TeX users out there.

+1

And I'm sure that the number of users would greatly increase :) :) :)

Whenever I tell someone that I'm not using LaTeX any more and that I
use something better instead, nobody ever believes me. (There cannot
exist any program that's better than LaTeX. That's one of the first
few axioms in mathematics :)

If I told them I was using LaTeX 3, it would gain everyone's attention
and everyone would want to see how it looks (still LaTeX, but probably
better since it carries a bigger version number).

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
___


Re: [NTG-context] MetaPost Animation

2010-04-16 Thread Boštjan Vesnicer
Hi Troy

Here is a simple solution:

\def\MyGraphics#1{%
\startMPcode
path p,q;
p:=fullcircle scaled 72;
L:=length p;
N:=20;
q:=subpath (0,#1/N*L) of p;
draw q withcolor red;
fill fullcircle scaled 3 shifted point length q of q withcolor blue;
setbounds currentpicture to unitsquare shifted (-0.5,-0.5) scaled 75;
\stopMPcode}

\starttext
\dostepwiserecurse{0}{20}{1}{%
\startTEXpage
\MyGraphics{\recurselevel}
\stopTEXpage}
\stoptext

Regards, Bostjan

On Thu, Apr 15, 2010 at 7:53 PM, Troy Henderson thend...@gmail.com wrote:

 I am trying to create an animation in ConTeXt + MetaPost.  In
 particular, I would like to have ConTeXt + MetaPost generate each
 individual frame of the animation, and then I would like to place each
 of these graphics on the page in succession.  I am looking for a
 ConTeXt way without placing the MetaPost code in a separate source
 file, running MetaPost, and using \externalfigure.  The following
 MetaPost sample code generate 21 graphics images  (numbered .0 to
 .20), but I have no idea how to have ConTeXt generate these graphics
 without a manual external MetaPost run and have them included in a way
 that is consistent with \startuseMPgraphic or similar.

 Thanks in advance,

 Troy Henderson

 path p,q;
 p:=fullcircle scaled 72;
 L:=length p;
 N:=20;
 for n=0 upto N:
beginfig(n);
q:=subpath (0,n/N*L) of p;
draw q withcolor red;
fill fullcircle scaled 3 shifted point length q of q
 withcolor blue;
setbounds currentpicture to unitsquare shifted (-0.5,-0.5)
 scaled 75;
endfig;
 endfor;
 end


 --
 Troy Henderson
 Assistant Professor
 Department of Mathematics
 University of Mobile
 http://www.tlhiv.org

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


[NTG-context] MetaPost Animation

2010-04-15 Thread Troy Henderson
I am trying to create an animation in ConTeXt + MetaPost.  In
particular, I would like to have ConTeXt + MetaPost generate each
individual frame of the animation, and then I would like to place each
of these graphics on the page in succession.  I am looking for a
ConTeXt way without placing the MetaPost code in a separate source
file, running MetaPost, and using \externalfigure.  The following
MetaPost sample code generate 21 graphics images  (numbered .0 to
.20), but I have no idea how to have ConTeXt generate these graphics
without a manual external MetaPost run and have them included in a way
that is consistent with \startuseMPgraphic or similar.

Thanks in advance,

Troy Henderson

path p,q;
p:=fullcircle scaled 72;
L:=length p;
N:=20;
for n=0 upto N:
beginfig(n);
q:=subpath (0,n/N*L) of p;
draw q withcolor red;
fill fullcircle scaled 3 shifted point length q of q withcolor 
blue;
setbounds currentpicture to unitsquare shifted (-0.5,-0.5) 
scaled 75;
endfig;
endfor;
end


-- 
Troy Henderson
Assistant Professor
Department of Mathematics
University of Mobile
http://www.tlhiv.org
___
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] Labelling with textext

2010-02-13 Thread Troy Henderson
I'm trying to typeset a numerical label (in math mode) and have space
for a - sign (but not actually typeset the -) after the number in the
case where the number itself is negative.  I am trying this

label.bot(textext($  decimal(x)  \hphantom{-}$),(x*u,ay*u));

which fails.  If I remove the \hphantom command, i.e.,

label.bot(textext($  decimal(x)  $),(x*u,ay*u));

the command is successful, but the number being labeled is not exactly
horizontally centered below the point in question since the - symbol
preceding the number pushes it a little to the right.  Thoughts on how
to achieve my desired \hphantom effect?

Thanks,

-- 
Troy Henderson
Assistant Professor
Department of Mathematics
University of Mobile
http://www.tlhiv.org
___
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] \showmathcharacters problems with TeXlive 2009 on Win 7 64bit

2010-02-10 Thread Hans Hagen

On 10-2-2010 17:03, comm...@googlemail.com wrote:

\mainlanguage[de]
\enableregime[windows]
\setuplayout[backspace=1cm, rightmargin=0.58cm, width=fit, topspace=1cm,
header=1cm, footer=1cm, height=fit]

\starttext

\showmathcharacters

\stoptext


ok, this was the problem:

the math definition files are read and then the column width is 
calculated which is used in a second read


as the files to be used now have the mkii suffix, no file is read and we 
end up with 24 columns which is too much for tex's calculations


I now intercept that as well as fixedthe loading (to use mkii files)

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
-
%D \module
%D   [ file=math-run,
%D  version=2001.23.04,
%Dtitle=\CONTEXT\ Math Macros,
%D subtitle=Runtime Macros,
%D   author=Hans Hagen,
%D date=\currentdate,
%Dcopyright=Hans Hagen \ Ton Otten]
%C
%C This module is part of the \CONTEXT\ macro||package and is
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
%C details.

\writestatus{loading}{ConTeXt Math Macros / Runtime Macros}

\unprotect

\ifx\showmathmodern\undefined \global\chardef\showmathmodern\zerocount \fi

\gdef\showmathcharacters% nearly \showcharacters
  {\par
   \bgroup
   
\ifcase\showmathmodern\or\ifx\modern\undefined\chardef\showmathmodern\zerocount\fi\fi
   \setuptextrules[\c!bodyfont=,\c!style=]
   \starttextrule{math characters -- \currentmathcollection}
   \whitespace
   \dontcomplain
   \forgetall
   \def\startmathcollection[##1]{}
   \let\stopmathcollection\relax
   \dimen0\zeropoint
   \dimen2\zeropoint
   \def\definemathsymbol   {\dosixtupleempty\dodefinemathsymbol}
   \def\definemathcharacter{\dosixtupleempty\dodefinemathcharacter}
   \def\definemathcommand  {\dotripleempty  \dodefinemathcommand}
   %\newcounter\mathcolor
   \def\dodefinemathsymbol[##1][##2][##3][##4][##5][##6]%
 {%\doifcolorelse{math \purefamilyhex{##3}}{}
  %  {\increment\mathcolor
  %   \definecolor[math \purefamilyhex{##3}][\mathcolor]}%
  \setbox0\hbox spread 1em{\mathematics{\getvalue{##1}{}{}{}}}%
  \ifdim\wd0\dimen0 \dimen0=\wd0 \fi
  \setbox2\hbox spread 1em{\hbox to 1em{\tttf\purefamilyhex{##3}\hss}\box0 
##1}%
  \ifdim\wd2\dimen2 \dimen2=\wd2 \fi}
   \def\dodefinemathcharacter[##1][##2][##3][##4][##5][##6]{}
   \def\dodefinemathcommand  [##1][##2][##3]##4{}
   \readsysfile{\f!mathprefix tex.mkii}\!!doneatrue\!!doneafalse
   \readsysfile{\f!mathprefix ams.mkii}\!!donebtrue\!!donebfalse
   \if!!donea
 \if!!doneb
   \edef\encwidth{\the\dimen0}
   \dimen0=\hsize
   \advance\dimen0 2em
   \advance\dimen2 2em
   \ifcase\showmathmodern\or\advance\dimen2 4em\fi
   \divide \dimen0 by \dimen2 \advance\dimen0 1sp
   \edef\enccols{\number\dimen0}
   \startcolumns[\c!n=\enccols,\c!distance=2em]
   \def\dodefinemathsymbol[##1][##2][##3][##4][##5][##6]%
 {%\localcolortrue
  %\color
  %  [math \purefamilyhex{##3}]
 {\hbox
{\ifcase\showmathmodern\or
   \hbox to 
\encwidth{\modern\let\mathcollection\nomathcollection\mathematics{\getvalue{##1}{}{}{}}\hss}%
 \fi
 \hbox to \encwidth{\mathematics{\getvalue{##1}{}{}{}}\hss}%
 \hbox to 1em{\tttf\purefamilyhex{##3}\hss}##1}\par}}
   \readsysfile{\f!mathprefix tex.mkii}\donothing\donothing
   \readsysfile{\f!mathprefix ams.mkii}\donothing\donothing
   \stopcolumns
 \else
   \par \tttf no chars in \f!mathprefix ams\par
 \fi
   \else
 \par \tttf no chars in \f!mathprefix tex\par
   \fi
   \stoptextrule
   \egroup}

% \definecolor[math \purefamilyhex{mr}] [darkred]
% \definecolor[math \purefamilyhex{mi}] [darkgreen]
% \definecolor[math \purefamilyhex{sy}] [darkblue]
% \definecolor[math \purefamilyhex{ex}] [darkmagenta]
% \definecolor[math \purefamilyhex{nn}] [darkyellow]
% \definecolor[math \purefamilyhex{ma}] [lightred]
% \definecolor[math \purefamilyhex{mb}] [lightgreen]
% \definecolor[math \purefamilyhex{mc}] [lightblue]
% \definecolor[math \purefamilyhex{md}] [lightmagenta]

\gdef\showmathtoken#1%
  {\starttabulate[|lT|lT|lT|l|]
   \NC token \NC #1 \NC \NR
   \NC collection\NC \ifcsna...@mt@\mathcollection#1\endcsname
   \mathcollection
 \else\ifcsna...@mt@\nomathcollection#1\endcsname
   \nomathcollection
 \else
   ?%
 \fi\fi \NC \NR
   \NC visualization \NC \mathematics{\getvalue{#1}} \NC \NR
   \NC definition\NC \tttf 
\...@ea

Re: [NTG-context] What do you miss in ConTeXt?

2010-02-09 Thread Alan BRASLAU
On Tuesday 09 February 2010 03:50:27 Curiouslearn wrote:
 
 I hope (and this perhaps has nothing to do with the brilliant Context
 development team) is that journals start accepting Context files.
 While I use context for my personal and class notes, for articles I am
 still forced to go to latex because journals do not accept context
 files.
 

In fact, not many journals even accept LaTeX: I sometimes have to submit
so-called .txt files!

As Otared Kavian pointed out, the mathematics journals are a bit more
advanced (as are the purely physics journals), and LaTeX is even a
standard. Unfortunately, arXiv.org (still) has problems with ConTeXt,
as the submitted source is detected as TeX but the compilation fails.
One is thus obligated to translate to LaTeX:
  Your (La)TeX, AMS(La)TeX, or PDFLaTeX submission will be processed 
automatically by our AutoTeX software.

Now, if only my administration and funding agencies would stop sending 
MS-Word files...

Alan
___
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] What do you miss in ConTeXt?

2010-02-09 Thread John Haltiwanger
On Tue, Feb 9, 2010 at 9:32 AM, Alan BRASLAU alan.bras...@cea.fr wrote:

 On Tuesday 09 February 2010 03:50:27 Curiouslearn wrote:
 
  I hope (and this perhaps has nothing to do with the brilliant Context
  development team) is that journals start accepting Context files.
  While I use context for my personal and class notes, for articles I am
  still forced to go to latex because journals do not accept context
  files.
 

 In fact, not many journals even accept LaTeX: I sometimes have to submit
 so-called .txt files!

 As Otared Kavian pointed out, the mathematics journals are a bit more
 advanced (as are the purely physics journals), and LaTeX is even a
 standard. Unfortunately, arXiv.org (still) has problems with ConTeXt,
 as the submitted source is detected as TeX but the compilation fails.
 One is thus obligated to translate to LaTeX:
  Your (La)TeX, AMS(La)TeX, or PDFLaTeX submission will be processed
 automatically by our AutoTeX software.

 Now, if only my administration and funding agencies would stop sending
 MS-Word files...

 Alan

 ___
 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

 ___



Perhaps not an appropriate solution in all cases, but the application Pandoc
is able to generate standalone LaTeX files. One has to use something other
than ConTeXt as an input language (it can translate LaTeX input but so far
no ConTeXt; I use Markdown but reStructuredText and HTML are also available.
The standalone LaTeX files generated (meaning they include the header setup)
compile fine, at least the ones I've tested (ConTeXt standalone seems to
require Mk.II).

I must say I'm very impressed with this software. It turned all of my s
into \quotation{}, for instance, and it knows to do {\it italics} rather
than \it{italics}. One could also generate a Word document (via
OpenOffice.org ODT format output). Not to mention HTML.
___
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] What do you miss in ConTeXt?

2010-02-08 Thread Otared Kavian

On 8 févr. 2010, at 12:25, Wolfgang Schuster wrote:

 Hi all,
 
 ConTeXt has many features but sometimes there is something missing, what 
 feature or package do you miss which is already available in another TeX 
 system or unavailable in any TeX system?
 
 Wolfgang

Hi Wolfgang and all ConTeXters,

Thanks for asking us the question.
I haven't really missed any particular feature, since each time I wanted to do 
something less elementary, I found out that the feature is actually waiting 
there, and I have just to be a little bit patient and look in the manuals or on 
th wiki. And if I am not patient (that is most of the time…) some wizards on 
the list are so patient and so wise that they know how to do things.

Now, that said, I do all my presentations with ConTeXt, and there is one thing 
which should be added for more ease of use: a stepwise procedure which can do 
better than the RawSteps module I use (see 
http://wiki.contextgarden.net/RawSteps), and which would also work with the 
simpleslides modules set up by Thomas A. Schmitz and Aditya Mahajan.

Another problem one may encounter is that, as far as I know, the Mathematics 
journals do not accept yet a paper written in ConTeXt. So at some point, when 
submitting the source file of the paper, one has to « translate » ConTeXt 
commands into plain-TeX or LaTeX.  I wish I had a script, for instance
go-back-2-latex.lua
(or any other language) which would take as input the file
my-beautiful-article.tex
written in ConTeXt and turn it to 
my-ugly-article.in-latex.tex. 
Actually I do this manually and, despite being time consuming, I prefer to 
write in ConTeXt and to translate my paper into LaTeX at the very last step.

Best wishes: OK


___
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] Random numbers in metapost

2009-12-31 Thread Taco Hoekwater

David Arnold wrote:

Hi,

Does anyone have any strategies for drawing random numbers from
various statistics distributions in Metapost? For example, say,
drawing 100 random numbers from a beta distribution?


Assuming you are using mkiv: create a lua function and use its
calculated results to create the metapost code. Metapost only knows
about uniformdeviate and normaldeviate, and metapost is not a good
language to program mathematics in.

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] Random numbers in metapost

2009-12-31 Thread David Arnold
Taco et al,

I think I've found a way. Anthony Phan has written a brilliant stats package 
for Metapost.

http://www-math.univ-poitiers.fr/~phan/statsmac.html

I think (haven't tried yet) I can select a number at random from the uniform 
distribution on [0,1], then use one of Anthony's functions such as:

poissonicdf(expr p, lambda). Inverse cumulative distribution function of 
P(lambda).

See Anthony's manual at:

http://www-math.univ-poitiers.fr/~phan/downloads/metapost/statsman.pdf

David.


On Dec 31, 2009, at 5:13 AM, Taco Hoekwater wrote:

 David Arnold wrote:
 Hi,
 Does anyone have any strategies for drawing random numbers from
 various statistics distributions in Metapost? For example, say,
 drawing 100 random numbers from a beta distribution?
 
 Assuming you are using mkiv: create a lua function and use its
 calculated results to create the metapost code. Metapost only knows
 about uniformdeviate and normaldeviate, and metapost is not a good
 language to program mathematics in.
 
 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
 ___

___
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 referencelist doesn't show up with mkiv

2009-09-22 Thread Janneman

Hi All!

It seems to be broken in some way when I try this

example

\usemodule[bib]
\usemodule[bibltx]
\setupbibtex[database=7titlar]



\starttext
\cite[Carlsen2008amt]
\cite[Dash2008fik]
\cite[Häggström2008tso]
\cite[Klisinska2009tft]
\cite[Lantz-Andersson2009fie]
\cite[Långström2008msf]
\cite[Sumpter2009oao]

\completepublications



\stoptext

The result is that citations do work but no publicationlist under 
References heading.


I've attached the logs and bib and also the generated bbl file
and is running
ConTeXt  ver: 2009.09.14 12:39 MKIV  fmt: 2009.9.14  int: english/english



Regards

Janneman
@book{Carlsen2008amt,
author={Carlsen, Martin},
title={Appropriating mathematical tools through problem solving in collaborative smallgroup settings},
publisher={University of Agder},
address={Kristiansand},
year={2008},
ISBN={978-82-7117-639-6},
keywords={Matematikutbildning -- gymnasieskolan},
note={Diss. (sammanfattning) Kristiansand : University of Agder, 2008},
}



@book{Dash2008fik,
author={Dash, Ingrid},
title={Flexibility in knowing school mathematics in the contexts of a Swedish and an Indian school class [Elektronisk resurs]},
publisher={Department of Education, Lund University},
address={Lund},
year={2008},
keywords={Matematikundervisning -- Sverige Matematikundervisning -- Indien Pedagogisk metodik},
note={Diss. Lund : Lunds universitet, 2009},
}



@book{Häggström2008tso,
author={H{\a}ggstr{\o}m, Johan},
title={Teaching systems of linear equations in Sweden and China : what is made possible to learn?},
publisher={Acta Universitatis Gothoburgensis},
address={G{\o}teborg},
year={2008},
ISBN={978-91-7346-621-9},
keywords={Matematikundervisning -- Sverige Matematikundervisning -- Kina Ekvationer},
note={Diss. G{\o}teborg : G{\o}teborgs universitet, 2008},
}



@book{Klisinska2009tft,
author={Klisińska, Anna},
title={The fundamental theorem of calculus : a case study into the didactic transposition of proof},
publisher={Lule{\aa} Tekniska Universitet},
address={Lule{\aa}},
year={2009},
ISBN={978-91-86233-46-4},
keywords={Matematikundervisning},
note={Diss. Lule{\aa} : Lule{\aa} universitet, 2009},
}



@book{Lantz-Andersson2009fie,
author={Lantz-Andersson, Annika},
title={Framing in educational practices : learning activity, digital technology and the logic of situated action},
publisher={Acta Universitatis Gothoburgensis},
address={G{\o}teborg},
year={2009},
ISBN={978-91-7346-654-7},
keywords={Utbildning via Internet Matematikundervisning -- gymnasieskolan Interaktiva multimedier},
note={Diss. G{\o}teborg : G{\o}teborgs universitet, 2009},
}



@book{Långström2008msf,
author={L{\aa}ngstr{\o}m, Peder},
title={Matematikelevers strategier f{\o}r fel- och hj{\a}lps{\o}kning},
publisher={Department of Mathematics and Mathematics Statistics, Ume{\aa} University},
address={Ume{\aa}},
year={2008},
ISBN={978-91-7264-554-7},
keywords={Matematikundervisning -- gymnasieskolan},
note={Licentiatavhandling Ume{\aa} : Ume{\aa} universitet, 2008},
}



@book{Sumpter2009oao,
author={Sumpter, Lovisa},
title={On aspects of mathematical reasoning : affect and gender},
publisher={Department of Mathematics and Mathematical Statistics, Ume{\aa} Universitet},
address={Ume{\aa}},
year={2009},
ISBN={978-91-7264-791-6},
keywords={Matematikundervisning -- gymnasieskolan Matematiskt t{\a}nkande -- genusaspekter},
note={Diss. (sammanfattning) Ume{\aa} : Ume{\aa} universitet, 2009},
}
\setuppublicationlist[samplesize={Sum09},totalnumber=7]

\startpublication[k=Carlsen2008amt,t=book,
a={{Carlsen}},y=2008,
n=1,s=Car08]
\author[]{Martin}[M.]{}{Carlsen}
\pubyear{2008}
\title{Appropriating mathematical tools through problem solving in
  collaborative smallgroup settings}
\isbn{978-82-7117-639-6}
\city{Kristiansand}
\pubname{University of Agder}
\note{Diss. (sammanfattning) Kristiansand : University of Agder, 2008}
\keywords{Matematikutbildning -- gymnasieskolan}
\stoppublication

\startpublication[k=Dash2008fik,t=book,
a={{Dash}},y=2008,
n=2,s=Das08]
\author[]{Ingrid}[I.]{}{Dash}
\pubyear{2008}
\title{Flexibility in knowing school mathematics in the contexts of a Swedish
  and an Indian school class [Elektronisk resurs]}
\city{Lund}
\pubname{Department of Education, Lund University}
\note{Diss. Lund : Lunds universitet, 2009}
\keywords{Matematikundervisning -- Sverige Matematikundervisning -- Indien
  Pedagogisk metodik}
\stoppublication

\startpublication[k=Häggström2008tso,t=book,
a={{H{\a}ggstr{\o}m}},y=2008,
n=3,s=H{\a}g08]
\author[]{Johan}[J.]{}{H{\a}ggstr{\o}m}
\pubyear{2008}
\title{Teaching systems of linear equations in Sweden and China : what is made
  possible to learn?}
\isbn{978-91-7346-621-9}
\city{G{\o}teborg}
\pubname{Acta Universitatis Gothoburgensis}
\note{Diss. G{\o}teborg : G{\o}teborgs universitet, 2008}
\keywords{Matematikundervisning -- Sverige Matematikundervisning -- Kina
  Ekvationer}
\stoppublication

\startpublication[k=Klisinska2009tft,t=book,
a={{Klisińska}},y=2009,
n=4,s=Kli09]
\author

[NTG-context] Mark IV

2009-09-22 Thread David Arnold

All,

Hans recommended I contact the list with my inquiry. I'm running  
Leopard on a Mac, using Mactex, texlive 2008. I've updated my context  
with:


sudo ctxtools --updatecontext

On a first run of ctxtools, I get this error:

loading : ConTeXt Core Macros / Environments
! Undefined control sequence.
argument ...def \...@ea \noexpand \csname \e!start
  \v!setups  
\endcsname {\beg...


\expanded ...\long \xdef \@@expanded {\noexpand #1
  }\@@expanded
l.212 ...xpand\csname\e!stop\v!setups\endcsname}}}

I hit s several time to scroll through the errors til it finishes,  
then run the command again:


sudo ctxtools --updatecontext

This time it seems to complete with no errors. This seem OK to folks?

Now, I'd like to give MKIV a try. I see the following instructions:

http://wiki.contextgarden.net/Running_Mark_IV

Are they adequate for my platform? That is, will they work if I follow  
them to the letter? Or do folks have other advice?


Thanks.


David Arnold
College of the Redwoods
Mathematics Department
Eureka, CA 95501
(707) 476-4222
http://msemac.redwoods.edu/~darnold/index.php



___
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] Urgent: Strange index problems

2009-09-10 Thread Xan

Thank VERY much,
Taco.

Do you recomand to substitute any $$ i \index with \mathematics?

Regards,
Xan.
___
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] Urgent: Strange index problems

2009-09-10 Thread Xan

En/na Xan ha escrit:

Thank VERY much,
Taco.

Do you recomand to substitute any $$ i \index with \mathematics?

Regards,
Xan.


Sorry Taco, Bad news. It does not work: the same problem

Xan.

___
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] Urgent: Strange index problems

2009-09-10 Thread Xan

En/na Xan ha escrit:

En/na Xan ha escrit:

Thank VERY much,
Taco.

Do you recomand to substitute any $$ i \index with \mathematics?

Regards,
Xan.


Sorry Taco, Bad news. It does not work: the same problem

Xan.



Even with no math I get the same error:

\startmydefinition Siguin $G$ un grup, $X$ un conjunt finit de 
generadors de $G$, $\sigma \colon G \to {(X \cup X^{-1})}^*$ una secció 
i $k \geq 0$. La {\em amplada mitjana $k$-èssima de 
\sigma}\index[amplada+mitjana respecte de k+1 valors]{amplada+mitjan 
respecte de \mathematics k+1 valors}, o {\em amplada mitjana de $k+1$ 
valors de $\sigma$}\index[amplada+mitjana respecte de k+1 
valors]{amplada+mitjan respecte de k+1 valors}, és la funció 
$\varphi_{\sigma, k} \colon \naturalnumbers \to 
\naturalnumbers$\mysymbol{$\varphi_{\sigma}$} definida per 
$\varphi_{\sigma, k} (0) = 0$ i, per a tot $n  0$,

\startformula
\varphi_{\sigma, k} (n)=  \max \{\frac{1}{k+1} \sum_{i=0}^k D_{\sigma, 
g, h} (t+i) \mid t \in \naturalnumbers, (g, h) \in K_{G, X} (n) \}.

\stopformula
Quan $\sigma$ sigui clara pel context o sigui una secció genèrica, 
escriurem simplement $\varphi_k (n)$\mysymbol{$\varphi_k$}. De forma 
trivial, $\varphi_0 = \varphi$ i $\varphi_1 = \lambda_{0,1}$.

\stopmydefinition

If I comment this code, then all is ok.

Can you see all the code and take a sight if you detect the error?

Xan.
___
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] Urgent: Strange index problems

2009-09-10 Thread Xan
Yes, Taco. With all files except source file deleted, and \mathematics 
instead of $$ \index works.


Is it any know bug or so? Why is the reason of that?. Just curious.

Xan.
___
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] Urgent: Strange index problems

2009-09-10 Thread Hans Hagen

Xan wrote:
Yes, Taco. With all files except source file deleted, and \mathematics 
instead of $$ \index works.


Is it any know bug or so? Why is the reason of that?. Just curious.


there will no new tuc file made when you have a 'fatal' error; normally 
that works out ok, unless there is a fatal error in the tuc file itself 
in which case you're kind of stuck (this only happens when there is a 
bug in the context code or something that context cannot recover from)


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
___


Re: [NTG-context] Urgent: Strange index problems

2009-09-10 Thread Xan

Xan wrote:
/ Yes, Taco. With all files except source file deleted, and \mathematics 

// instead of $$ \index works.
// 
// Is it any know bug or so? Why is the reason of that?. Just curious.

/
there will no new tuc file made when you have a 'fatal' error; normally 
that works out ok, unless there is a fatal error in the tuc file itself 
in which case you're kind of stuck (this only happens when there is a 
bug in the context code or something that context cannot recover from)



Hans


I was refering to what \mathematics works and $$ does not.

Thanks,
Xan.

___
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] Urgent: Strange index problems

2009-09-10 Thread Hans Hagen

Xan wrote:

Xan wrote:
/ Yes, Taco. With all files except source file deleted, and \mathematics 

// instead of $$ \index works.
// // Is it any know bug or so? Why is the reason of that?. Just 
curious.

/
there will no new tuc file made when you have a 'fatal' error; 
normally that works out ok, unless there is a fatal error in the tuc 
file itself in which case you're kind of stuck (this only happens when 
there is a bug in the context code or something that context cannot 
recover from)



Hans


I was refering to what \mathematics works and $$ does not.


there are only a few cases where $$ (in the sense of empty inline math) 
works ok so best use $ $ then; \mathematics does this automatically


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
___


Re: [NTG-context] Urgent: Strange index problems

2009-09-10 Thread Taco Hoekwater


Hi Hans,
Hans Hagen wrote:


I was refering to what \mathematics works and $$ does not.


there are only a few cases where $$ (in the sense of empty inline math) 
works ok so best use $ $ then; \mathematics does this automatically


You should go back in the thread a bit. It looks like Xan's \index
entry (containing the simple math formula $k$) got cut off just
before the closing $ for some reason that I can't figure out.

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] Urgent: Strange index problems

2009-09-10 Thread Hans Hagen

Taco Hoekwater wrote:


Hi Hans,
Hans Hagen wrote:


I was refering to what \mathematics works and $$ does not.


there are only a few cases where $$ (in the sense of empty inline 
math) works ok so best use $ $ then; \mathematics does this automatically


You should go back in the thread a bit. It looks like Xan's \index
entry (containing the simple math formula $k$) got cut off just
before the closing $ for some reason that I can't figure out.


btw, i noticed in one of the examples ...

{amplada+mitjan respecte de \mathematics k+1 valors}

so, that's then $k$ and not $k+1$

anyhow, what is the smallest example showing the problem? I can get $x$ 
in an index here


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
___


Re: [NTG-context] Urgent: Strange index problems

2009-09-09 Thread Taco Hoekwater

Hi Xan,

I forwarded your 'complete' document to myself but count not
run it at all (my pgf is too old, I guess). At a guess, and
especially because you said it is urgent, you could try this
for the offending \index entry:

\index
   [amplada+mitjana respecte de k+1 valors]
   {amplada+mitjan respecte de \mathematics{k+1} valors}


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] Problem with \digits

2009-09-07 Thread Flavien Lambert
Dear all, I tried to compile some of my old files with the latest minimals
(MKIV) but encountered the error described below. Is there any way to use
the digit macro with MKIV ?
Regards,

2009/6/16 richard.steph...@converteam.com


 Hello,

 I am using mkiv beta (14-Jun-09) and the \digits command does not like the
 decimal point. Any suggestions?
 Test code and log file follow:

 Richard

 Test code
 \starttext
 \digits{1.6}
 \stoptext

 Log file
 This is LuaTeX, Version beta-0.40.5-2009061023 (Web2C 2009)
  \write18 enabled.
 (testdigits.tex
 color   : system all is global activated
 color   : system gray is global activated
 color   : mpcmyk color space is supported
 color   : mpspot color space is supported
 color   : system rgb is global activated
 color   : system all is global activated

 ConTeXt  ver: 2009.06.14 21:01 MKIV  fmt: 2009.6.16  int: english/english

 system  : cont-new loaded
 (C:/Tools/context/texmf-context/tex/context/base/cont-new.tex
 systems : beware: some patches loaded from cont-new.tex
 (C:/Tools/context/texmf-context/tex/context/base/cont-new.mkiv)
 (C:/Tools/context/texmf-context/tex/context/base/cont-mtx.tex))
 system  : cont-fil loaded
 (C:/Tools/context/texmf-context/tex/context/base/cont-fil.tex
 loading : ConTeXt File Synonyms
 )
 system  : cont-sys.rme loaded
 (C:/Tools/context/texmf-context/tex/context/user/cont-sys.rme
 (C:/Tools/context/texmf-context/tex/context/base/type-tmf.tex)
 (C:/Tools/context/texmf-context/tex/context/base/type-siz.tex
 (C:/Tools/context/texmf-context/tex/context/base/type-siz.mkiv))
 (C:/Tools/context/texmf-context/tex/context/base/type-otf.tex
 (C:/Tools/context/texmf-context/tex/context/base/type-otf.mkiv)))
 system  : testdigits.top loaded
 (testdigits.top)
 fonts   : preloading latin modern fonts
 bodyfont: 12pt rm is loaded
 language: language en is active
 systems : begin file testdigits at line 1
 ! \textfont1 is undefined (character 58).
 \mathematics #1-\relax \ifmmode #1\else $#1$
 \fi
 \doscandigit ...\digitoutputmode ,\else .\fi \fi }
  \egroup
 \digitsep ...x \digitsepbox \hbox {\doscandigit #1
  }\fi \chardef \skipdigit
 0...
 \scandigits #1-\if #1.\digitsep 1
  \else \if #1,\digitsep 2\else \if
 #...@\digi...
 \dodohandletokenstwo *#1-\dododohandletokens {#1}
  \dohandletokens
 argument 1.
 6
 ...
 l.2 \digits{1.6}

 ?



 Converteam UK Ltd. Registration Number: 5571739 and Converteam Ltd.
 Registration Number: 2416188
 Registered in England and Wales.
 Registered office: Boughton Road, Rugby, Warwickshire, CV21 1BU.

 CONFIDENTIALITY : This e-mail and any attachments are confidential and may
 be privileged. If you are not a named recipient, please notify the sender
 immediately and do not disclose the contents to another person, use it for
 any purpose or store or copy the information in any medium.

 Please consider the environment before printing this e-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

 ___




-- 
Flavien.

Quantum objects are completely crazy but, at least, they are all crazy in
the same way. R.P. Feynman.
___
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] Problems with cite (minimal example) (was Re: Buggy source code-- references disappears when I put sections and If I put subjects, \completecontent has void list.)

2009-08-18 Thread Xan
Now I have a minimal example with the same result. Please, see the docs 
attached. the invocation of \cite produces empty references.


I get (in memoria-ng.log):

chapter : 1 Preliminars
publications: warning: cite argument grillet unknown on 139
references  : unknown reference [][0]


Can you help me show me where is the error?

Thanks in advance,
Xan.
@book{grillet,
author = Pierre Antoine Grillet,
title = Abstract Algebra,
edition = second,
year = 2007,
publishers = Springer,
series = Graduate Texts in Mathematics,
address = New York
}

@book{robinson,
author = Derek J. S. Robinson,
title = A Course in the Theory of Groups,
edition = second,
year = 1996,
publishers = Springer,
series = Graduate Texts in Mathematics,
address = New York
}

@book{cgt,
author = Roger C. Lyndon and Paul E. Schupp,
title = Combinatorial Group Theory,
series = Classics in Mathematics,
publishers = Springer,
address = Berlin,
year = 2001
}

@book{magnus,
author = Wilhelm Magnus and Abraham Karrass and Donald Solitar,
title = Combinatorial Group Theory: presentations of Groups in Terms of Generators and Relations,
publishers = Dover,
year = 2004,
address =New York
}

@unpublished{millerIII,
title = Combinatorial Group Theory,
author = Charles F. {{Miller III}},
year = 2004
}

@incollection{millerIII-article,
title = Some presentations of the trivial group,
author = Charles F. {{Miller III}} and Paul E. Schupp,
booktitle = Groups, Languages and Geometry. 1998 AMS-IMS-SIAM Joint Summer Research Conference on Geometric Group Theory and Computer Science, July 5-9, 1998, Mount Holyoke College,
year = 1999,
publisher = American Mathematical Society,
series = Contemporary Mathematics,
editors = Robert H. Gilman,
volume = 250,
pages = 113-115
}

@book{meier,
title = Groups, Graphs and Trees. An Introduction to the Geometry of Infinite Groups,
author = John Meier,
publishers = Cambride University Press,
series = London Mathematical Society Student Texts,
volume = 73,
address = Cambridge,
year= 2008
}

@book{crm,
title = The Geometry of The Word Problem for Finitely Generated Groups,
author = Noel Brady and Tim Riley and Hamish Short,
publishers = Springer,
year = 2007,
address = Berlin,
series = Advanced Courses in Mathematics CRM Barcelona
}

@article{novikov,
 author = P. S. Novikov,
 title = On the algorithmic unsolvability of the word problem in group theory,
 journal = Proceedings of Steklov Mathematical Institute,
 year = 1955,
 volume = 44,
 pages = 1-145,
 note = . Traducció anglesa a l'American Mathematical Society Translations (2) 9 (1958), 1-122
}

@article{stillwell,
title = The Word Problem and the isomorphism problem for groups,
author = John Stillwell,
journal = Bulletin (New Series) of the American Mathematical Society,
volume = 6,
number = 1,
year = 1982,
month = Jan
}

@incollection{millerIIIa2,
author = Charles F. {{Miller III}},
title = Decision problems for groups: survey and reflections,
booktitle = Algorithms and Classification in Combinatorial Group Theory,
year = 1992,
publisher = Springer-Verlag,
address = Berlin,
editor = Gilbert Baumslag and Charles F. {{Miller III}},
pages = 1-59,
series = MSRI Publications,
volume = 23
}

@incollection{bridson-tutorial,
 author= Martin R. Bridson,
 title = {{The geometry of the word problem}},
 booktitle= Invitations to Geometry and Topology,
 year = 2002,
 publisher = Oxford University Press,
 editor = Martin R. Bridson, Simon M. Salamon,
 pages=29-92
}

@incollection{gersten,
author = S. M. Gersten,
title = Isoperimetric and isodiametric functions of finite presentations,
booktitle = Geometric Group Theory volume 1,
editor = G. Niblo and M. Roller,
series = London Mathematical Society Lecture Note Series,
volume = 181,
pages = 79-96,
publisher = Cambridge University Press,
address = Cambridge,
year = 1993
}

@article{dehn,
author = Max Dehn,
title = Über unendliche diskontinuierliche Gruppen,
journal = Mathematische Annalen,
volume = 71,
year = 1912,
pages = 116-144,
note = Traducció anglesa per J. Stillwell: On infinite discontinuous groups, in {\em Papers on group theory and topology}. Springer-Verlag, 1987
}

@book{miller-llibre,
author = Charles F. {{Miller III}},
title = On group-theoretic decision problems and their classification,
publisher = Princeton University Press,
year = 1971,
series = Annals of Mathematics Studies,
editors = Phillip A. Griffiths and John N. Mather and Elias M. Stein,
address = Princeton
}

@article{seress,
title = An Introduction to Computational group theory,
author = Seress, \'{A}[kos],
journal = Notices of the American Mathematical Society,
year = 1997,
month = Jun/Jul,
volume = 44,
number = 6,
pages = 671-679
}

@misc{openproblems,
author = Gilbert Baumslag and Alexei G. Myasnikov and Vladimir Shpilrain,
title = Open problems in combinatorial group theory
}

@article{sacerdote,
author = George S. Sacerdote,
title = Some Undecidable Problems in Group Theory,
journal = Proceedings of the American Mathematical Society

[NTG-context] Possible Bug(s) in bibl-ams.tex (mkii)

2009-08-12 Thread Xan

Hi,

1) First of all, I want to say that

\setuppublicationlayout[incollection]{%
  \insertartauthors{}{}{\insertthekey{}{, }{}}%
  \insertarttitle{, \bgroup }{\egroup}{}%
  \inserttitle
   {, in %
   \bgroup\it}%
   {\egroup
\inserteditors{, edited by }%
   {}%
   {}
\insertseries
 {\insertvolume{, number }{~in }{ }}%
 {}%
 {}%
\insertchap{\unskip, }{ }{ }%
\insertpubyear{(%
  \insertpublisher{}%{, }%{}%
 }{)\insertEdition{, }{ ed. }{}}{}%
\insertpages{\unskip, p.~}{. }{\unskip. }%
   }%
   {In \insertcrossref{}{}{}%
\insertchap{\unskip, }{ }{ }%
\insertpages{\unskip, p.~}{. }{\unskip. }%
   }%
  \insertNote{ }{.}{}%
}

must be:

\setuppublicationlayout[incollection]{%
  \insertartauthors{}{}{\insertthekey{}{, }{}}%
  \insertarttitle{, \bgroup }{\egroup}{}%
  \inserttitle
   {, in %
   \bgroup\it}%
   {\egroup
\inserteditors{, edited by }%
   {}%
   {}
\insertseries
 {\insertvolume{\unskip, number }{~in }{ }}%
 {}%
 {}%
\insertchap{\unskip, }{ }{ }%
\insertpubyear{(%
  \insertpublisher{}%{, }%{}%
 }{)\insertEdition{, }{ ed. }{}}{}%
\insertpages{\unskip, p.~}{. }{\unskip. }%
   }%
   {In \insertcrossref{}{}{}%
\insertchap{\unskip, }{ }{ }%
\insertpages{\unskip, p.~}{. }{\unskip. }%
   }%
  \insertNote{ }{.}{}%
}

with \unskip before number (in 
/usr/share/texmf/context/bib/bibl-ams.tex) . Else a white space between 
coma and precedent text is putting. I used ConTeXt ver 2007.09.28 MKII 
but I think this error is in more actual versions.


2) For the other hand, if we want to that publisher is inserted, we have 
to put uncomment lines in publisher:


  \insertpublisher{}{, }{}%

With this change, context puts me the year of publication. Mysteriously 
with the original, ConTeXt puts me the publisher (is this correct Taco???).


For example, in @incollection{millerIIIa2,
author = Charles F. {{Miller III}},
title = Decision problems for groups: survey and reflections,
booktitle = Algorithms and Classification in Combinatorial Group Theory,
year = 1992,
publisher = Springer-Verlag,
address = Berlin,
editor = Gilbert Baumslag and Charles F. {{Miller III}},
pages = 1-59,
series = MSRI Publications,
volume = 23
}

I get (in the past)

C.F M;iller III, Decision problems for groups: survey and reflections, 
in {\em Algorithms and Classification in Combinatorial Group Theory}, 
edited by G. Baumslag and C. F. Miller III, number 23 in MSRI 
Publications (Springer-Verlag, Berlin), p. 1-59.


Now I get,

C.F M;iller III, Decision problems for groups: survey and reflections, 
in {\em Algorithms and Classification in Combinatorial Group Theory}, 
edited by G. Baumslag and C. F. Miller III, number 23 in MSRI 
Publications (Springer-Verlag, Berlin, 1992), p. 1-59.



For the other hand, in @article, for example in
@article{stillwell,
title = The Word Problem and the isomorphism problem for groups,
author = John Stillwell,
journal = Bulletin (New Series) of the American Mathematical Society,
volume = 6,
number = 1,
year = 1982,
month = Jan
}

I think it could be a dot after number, but I can't put manually: if we 
have pages after, we have dot and comma. Actually, I think we need if 
clause, but I don't know how get it. Taco, you surely do it better ;-). 
Always the bib entries should be final dot (isn't?).


3) For the other hand, I think we need a dot between pages and note in 
@article. For example in


@article{novikov,
author = P. S. Novikov,
title = On the algorithmic unsolvability of the word problem in group 
theory,

journal = Proceedings of Steklov Mathematical Institute,
year = 1955,
volume = 44,
pages = 1-145,
note = Traducció anglesa a l'American Mathematical Society 
Translations (2) 9 (1958), 1-122

}

we don't have . Traducció  See the dot.

4) Finally, @inbook, I have dot between title and address and year. For 
example in


@book{grillet,
author = Pierre Antoine Grillet,
title = Abstract Algebra,
edition = second,
year = 2007,
publishers = Springer,
series = Graduate Texts in Mathematics,
address = New York
}
I get

P. A. Grillet, {\em Abstract Algebra}. (New York, 2007), second ed.

and it should be:

P. A. Grillet, {\em Abstract Algebra} (New York, 2007), second ed.


Well I hope you note this. Not of all,
Xan.

___
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] I can't put footnote

2009-07-23 Thread Xan
,textdistance=1em,
stopper={.\space},location=serried,left={\bgroup\bf},right={\egroup},width=fit,before={\bgroup\startframedtext[background=screen,frame=off,width=broad]},after={\stopframedtext\egroup}]

%% Lema 
\defineenumeration
  [lema]
  [text={Lema}, % Què es mostra
   before={\blank[big]}, % abans de lema, un bigskip
   after={\blank[big]}, % després de lema, un bigskip
   headstyle=bold, % Negreta per la capçaleras
   %between=\blank, % Entre Lemmes una línia en blanc
   titledistance=.5em, % espai entre número i parèntesis.
   textdistance=.5em, % espai entre ) i text
   stopper={.\space}, % Com acaba. Després de parèntesis un '.'
   location=serried,
   width=fit, % que ocupi tot l'espai
   style=italic, % estil del text
   title=yes, % si puc posar o no arguments opcionals
   titlestyle=bf, % estil del títol
   way=bytext, % enumerar en tot el document
   conversion=numbers,indenting=yes] % enumera amb arabic

%% Proposició, corol·laris, teoremes.
%% Comparteix els nombres amb lema
%% Si volem que vagin a part, hem de posar 'number=proposition'
\defineenumeration
  [proposition]
  [lema]
  [text={Proposició}]

\defineenumeration
  [corollary]
  [lema]
  [text={Corol·lari}]

\defineenumeration
  [theorem]
  [lema]
  [text={Teorema}]


%% Definició
\defineenumeration
  [definition]
  [lema]
  [text={Definició},style=tf,titlestyle=bf,indenting=yes]

\defineenumeration
  [notation]
  [definition]
  [text={Notació},style=tf,titlestyle=bf,indenting=yes]

\defineenumeration
  [note]
  [definition]
  [text={Nota},style=tf,titlestyle=bf,indenting=yes]

%% Demostració

\defineenumeration[demo][text={Demostració.\space},number=no,location=serried,width=fit,headstyle=italic,indentnext=yes,between=\blank,textdistance=.5em,closesymbol={\mathematics{\Box}},style=normal,indenting=yes]

% Table of contents
%% dots between... and subsubsubsection are not listed
\setupcombinedlist[content][level=4,alternative=c] 
%% section = bold. % width= 10mm -- less space between num-letter
%% line break after section.
\setuplist[section][style=bold,width=10mm] 
\setuplist[section][before=\blank]
%% margin = 10 mm. Put the subsection just bottom section.
\setuplist[subsection][margin=10mm,width=10mm]
\setuplist[subsubsection][margin=20mm,width=10mm]

%\setuplist[subsection] %[distance=1em] % section = bold. % 
% Això ho trec d'un manual:
%\setuplist[subsection]
%  [margin=1em,
%  numbercommand=\NumCom]
%\def\NumCom#1{\hbox to 2em{\hfill #1}}

% Set Índex like Índex de continguts
\setupheadtext [ca] [content=Índex]


% Definitions/abbreviations
\define[1]\dist{d(\sigma_g(#1), \sigma_h(#1))}
\define[1]\imp{{\bgroup\startframedtext[background=screen,frame=on,width=broad]#1\stopframedtext\egroup}}
%\define[1]\imp{{\bgroup\startframedtext[background=color,backgroundcolor=lightblue,frame=on,width=broad]#1\stopframedtext\egroup}}


% SPLIT
\def\startsplit
  {\startalign} % no number by default
\def\stopsplit
  {\doalignNR[+][]\crcr % for a number on last line
   \stopalign}

% Other
\setupunderbar[alternative=b] % Fix underline style
% For putting underline with spaces: \underbar{\dorecurse{40}~}

% Define new register for the Index of Symbols
\defineregister[symbol][symbols]


% Start the text
\starttext
%\version[concept]

a\footnote{A}

\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] I can't change startitemize[n]-- startitemize[1]

2009-07-23 Thread Xan
   after={\blank[big]}, % després de lema, un bigskip
   headstyle=bold, % Negreta per la capçaleras
   %between=\blank, % Entre Lemmes una línia en blanc
   titledistance=.5em, % espai entre número i parèntesis.
   textdistance=.5em, % espai entre ) i text
   stopper={.\space}, % Com acaba. Després de parèntesis un '.'
   location=serried,
   width=fit, % que ocupi tot l'espai
   style=italic, % estil del text
   title=yes, % si puc posar o no arguments opcionals
   titlestyle=bf, % estil del títol
   way=bytext, % enumerar en tot el document
   conversion=numbers,indenting=yes] % enumera amb arabic

%% Proposició, corol·laris, teoremes.
%% Comparteix els nombres amb lema
%% Si volem que vagin a part, hem de posar 'number=proposition'
\defineenumeration
  [proposition]
  [lema]
  [text={Proposició}]

\defineenumeration
  [corollary]
  [lema]
  [text={Corol·lari}]

\defineenumeration
  [theorem]
  [lema]
  [text={Teorema}]


%% Definició
\defineenumeration
  [definition]
  [lema]
  [text={Definició},style=tf,titlestyle=bf,indenting=yes]

\defineenumeration
  [notation]
  [definition]
  [text={Notació},style=tf,titlestyle=bf,indenting=yes]

\defineenumeration
  [nota]
  [definition]
  [text={Nota},style=tf,titlestyle=bf,indenting=yes]

%% Demostració

\defineenumeration[demo][text={Demostració.\space},number=no,location=serried,width=fit,headstyle=italic,indentnext=yes,between=\blank,textdistance=.5em,closesymbol={\mathematics{\Box}},style=normal,indenting=yes]

% Table of contents
%% dots between... and subsubsubsection are not listed
\setupcombinedlist[content][level=4,alternative=c] 
%% section = bold. % width= 10mm -- less space between num-letter
%% line break after section.
\setuplist[section][style=bold,width=10mm] 
\setuplist[section][before=\blank]
%% margin = 10 mm. Put the subsection just bottom section.
\setuplist[subsection][margin=10mm,width=10mm]
\setuplist[subsubsection][margin=20mm,width=10mm]

%\setuplist[subsection] %[distance=1em] % section = bold. % 
% Això ho trec d'un manual:
%\setuplist[subsection]
%  [margin=1em,
%  numbercommand=\NumCom]
%\def\NumCom#1{\hbox to 2em{\hfill #1}}

% Set Índex like Índex de continguts
\setupheadtext [ca] [content=Índex]


% Definitions/abbreviations
\define[1]\dist{d(\sigma_g(#1), \sigma_h(#1))}
\define[1]\imp{{\bgroup\startframedtext[background=screen,frame=on,width=broad]#1\stopframedtext\egroup}}
%\define[1]\imp{{\bgroup\startframedtext[background=color,backgroundcolor=lightblue,frame=on,width=broad]#1\stopframedtext\egroup}}


% SPLIT
\def\startsplit
  {\startalign} % no number by default
\def\stopsplit
  {\doalignNR[+][]\crcr % for a number on last line
   \stopalign}

% Other
\setupunderbar[alternative=b] % Fix underline style
% For putting underline with spaces: \underbar{\dorecurse{40}~}

% Define new register for the Index of Symbols
\defineregister[symbol][symbols]


% Start the text
\starttext
%\version[concept]

\subsubsubject{Paraules sobre un alfabet}

En aquest apartat farem memòria de la definició de paraula (sobre un alfabet) 
i introduirem certes notacions i operacions estàndards que farem servir 
posteriorment.

Recordem que un {\em alfabet}\index{alfabet} és un conjunt qualsevol de 
símbols, els quals anomenarem {\em lletres}\index{lletres}. Si $A$ és un 
alfabet, aleshores una {\em paraula $w$ sobre $A$}\index{paraula} és una 
successió finita de lletres de $A$, que escriurem com $w = w_1 \ldots w_k$. 
Indicarem amb $\varepsilon$ la paraula que no té cap lletra, la qual 
anomenarem {\em paraula buida}\index{paraula+buida}. Quan $w$ consti de dues o 
més lletres iguals consecutives, per comoditat, podrem agrupar-les usant la 
notació multiplicativa. Per exemple si $A = \{a,b\}$, aleshores $ab^3a^2b$ 
denotarà la paraula $abbbaab$. 

La {\em concatenació}\index{concatenació de paraules} de dues paraules $w_1$, 
$w_2$ sobre $A$, que indicarem amb $w_1 \cdot w_2$, és la juxtaposició de 
$w_1$ i $w_2$, és a dir, si $w_1 = a_1 \ldots a_k$ i $w_2 = b_1 \ldots b_s$, 
aleshores
\startformula
w_1 \cdot w_2 = a_1 \ldots a_k b_1 \ldots b_s,
\stopformula
amb la convenció que $w_1 \cdot \varepsilon = \varepsilon \cdot w_1 = w_1$. 
Sovint ometrem el símbol $\cdot$ i escriurem $u v$ per denotar $u \cdot v$.

Si $w$ és una paraula sobre $A$, aleshores $l(w)$\symbol{$l(w)$} denotarà la 
seva {\em longitud}\index{longitud+d'una paraula}, és a dir, el seu nombre de 
símbols. De forma clara, $l(u \cdot v) = l(u) + l(v)$, per a qualssevol 
paraules $u, v$ sobre $A$. D'altra banda, indicarem amb $w(t)$ el {\em prefix 
de $w$ de longitud $t$}\index{paraula+prefix de longitud $t$,}. Formalment, si 
$w = \varepsilon$, $w(t) = \varepsilon$ i si $w = w_1 \ldots w_k$, aleshores 
$w(t) = w_1 \ldots w_t$.

Per últim, indicarem amb $A^*$ el {\em monoide lliure sobre $A$}\index{monoide 
lliure}, és a dir, el conjunt de totes les paraules sobre $A$.

\subsubsubject{Grups lliures}

En aquesta secciÃ

[NTG-context] Strange behaviour of startitemize[1]

2009-07-22 Thread Xan
={\stopframedtext\egroup}]

%% Lema 
\defineenumeration
  [lema]
  [text={Lema}, % Què es mostra
   before={\blank[big]}, % abans de lema, un bigskip
   after={\blank[big]}, % després de lema, un bigskip
   headstyle=bold, % Negreta per la capçaleras
   %between=\blank, % Entre Lemmes una línia en blanc
   titledistance=.5em, % espai entre número i parèntesis.
   textdistance=.5em, % espai entre ) i text
   stopper={.\space}, % Com acaba. Després de parèntesis un '.'
   location=serried,
   width=fit, % que ocupi tot l'espai
   style=italic, % estil del text
   title=yes, % si puc posar o no arguments opcionals
   titlestyle=bf, % estil del títol
   way=bytext, % enumerar en tot el document
   conversion=numbers,indenting=yes] % enumera amb arabic

%% Proposició, corol·laris, teoremes.
%% Comparteix els nombres amb lema
%% Si volem que vagin a part, hem de posar 'number=proposition'
\defineenumeration
  [proposition]
  [lema]
  [text={Proposició}]

\defineenumeration
  [corollary]
  [lema]
  [text={Corol·lari}]

\defineenumeration
  [theorem]
  [lema]
  [text={Teorema}]


%% Definició
\defineenumeration
  [definition]
  [lema]
  [text={Definició},style=tf,titlestyle=bf,indenting=yes]

\defineenumeration
  [notation]
  [definition]
  [text={Notació},style=tf,titlestyle=bf,indenting=yes]

\defineenumeration
  [note]
  [definition]
  [text={Nota},style=tf,titlestyle=bf,indenting=yes]

%% Demostració

\defineenumeration[demo][text={Demostració.\space},number=no,location=serried,width=fit,headstyle=italic,indentnext=yes,between=\blank,textdistance=.5em,closesymbol={\mathematics{\Box}},style=normal,indenting=yes]

% Table of contents
%% dots between... and subsubsubsection are not listed
\setupcombinedlist[content][level=4,alternative=c] 
%% section = bold. % width= 10mm -- less space between num-letter
%% line break after section.
\setuplist[section][style=bold,width=10mm] 
\setuplist[section][before=\blank]
%% margin = 10 mm. Put the subsection just bottom section.
\setuplist[subsection][margin=10mm,width=10mm]
\setuplist[subsubsection][margin=20mm,width=10mm]

%\setuplist[subsection] %[distance=1em] % section = bold. % 
% Això ho trec d'un manual:
%\setuplist[subsection]
%  [margin=1em,
%  numbercommand=\NumCom]
%\def\NumCom#1{\hbox to 2em{\hfill #1}}

% Set Índex like Índex de continguts
\setupheadtext [ca] [content=Índex]


% Definitions/abbreviations
\define[1]\dist{d(\sigma_g(#1), \sigma_h(#1))}
\define[1]\imp{{\bgroup\startframedtext[background=screen,frame=on,width=broad]#1\stopframedtext\egroup}}
%\define[1]\imp{{\bgroup\startframedtext[background=color,backgroundcolor=lightblue,frame=on,width=broad]#1\stopframedtext\egroup}}


% SPLIT
\def\startsplit
  {\startalign} % no number by default
\def\stopsplit
  {\doalignNR[+][]\crcr % for a number on last line
   \stopalign}

% Other
\setupunderbar[alternative=b] % Fix underline style
% For putting underline with spaces: \underbar{\dorecurse{40}~}

% Define new register for the Index of Symbols
\defineregister[symbol][symbols]


% Start the text
\starttext
\version[concept]

\subsubsubject{El problema de la paraula}

\startitemize[1]
\item $\pi(x^{-1}) = \pi(x)^{-1}$ per a tot $x \in X$.
\item Per a tota paraula $w = w_1 \ldots w_r$ sobre $X \cup X^{-1}$,
\startformula
\pi(w) = \pi(w_1) \cdots \pi(w_r) \in G.
\stopformula
\stopitemize



\stoptext

\startitemize[1]
\item $\pi(x^{-1}) = \pi(x)^{-1}$ per a tot $x \in X$.
\item Per a tota paraula $w = w_1 \ldots w_r$ sobre $X \cup X^{-1}$,
\startformula
\pi(w) = \pi(w_1) \cdots \pi(w_r) \in G.
\stopformula
\stopitemize

\startdefinition
Sigui $X$ un conjunt qualsevol i $R \subseteq F(X) \times F(X)$ una relació 
binària sobre el grup lliure $F(X)$. Una {\em presentació ${\cal P}$ amb 
generadors $X$ i relacions $R$}\index{presentació}, que indicarem amb ${\cal 
P} = \langle X \mid R \rangle$, és el grup quocient $F(X)/\langle \langle R_* 
\rangle \rangle$, on
\startformula
R_* = \{uv^{-1} \mid (u, v) \in R\} \subseteq F(X).
\stopformula
Quan ens convengui diferenciar entre la presentació com a un parell ordenat de 
símbols i el grup quocient en si, indicarem amb ${\cal P}$ la presentació i 
$G({\cal P})$ el grup que aquesta representa.
\stopdefinition___
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] I can't put footnote

2009-07-22 Thread Xan
  [proposition]
  [lema]
  [text={Proposició}]

\defineenumeration
  [corollary]
  [lema]
  [text={Corol·lari}]

\defineenumeration
  [theorem]
  [lema]
  [text={Teorema}]


%% Definició
\defineenumeration
  [definition]
  [lema]
  [text={Definició},style=tf,titlestyle=bf,indenting=yes]

\defineenumeration
  [notation]
  [definition]
  [text={Notació},style=tf,titlestyle=bf,indenting=yes]

\defineenumeration
  [note]
  [definition]
  [text={Nota},style=tf,titlestyle=bf,indenting=yes]

%% Demostració

\defineenumeration[demo][text={Demostració.\space},number=no,location=serried,width=fit,headstyle=italic,indentnext=yes,between=\blank,textdistance=.5em,closesymbol={\mathematics{\Box}},style=normal,indenting=yes]

% Table of contents
%% dots between... and subsubsubsection are not listed
\setupcombinedlist[content][level=4,alternative=c] 
%% section = bold. % width= 10mm -- less space between num-letter
%% line break after section.
\setuplist[section][style=bold,width=10mm] 
\setuplist[section][before=\blank]
%% margin = 10 mm. Put the subsection just bottom section.
\setuplist[subsection][margin=10mm,width=10mm]
\setuplist[subsubsection][margin=20mm,width=10mm]

%\setuplist[subsection] %[distance=1em] % section = bold. % 
% Això ho trec d'un manual:
%\setuplist[subsection]
%  [margin=1em,
%  numbercommand=\NumCom]
%\def\NumCom#1{\hbox to 2em{\hfill #1}}

% Set Índex like Índex de continguts
\setupheadtext [ca] [content=Índex]


% Definitions/abbreviations
\define[1]\dist{d(\sigma_g(#1), \sigma_h(#1))}
\define[1]\imp{{\bgroup\startframedtext[background=screen,frame=on,width=broad]#1\stopframedtext\egroup}}
%\define[1]\imp{{\bgroup\startframedtext[background=color,backgroundcolor=lightblue,frame=on,width=broad]#1\stopframedtext\egroup}}


% SPLIT
\def\startsplit
  {\startalign} % no number by default
\def\stopsplit
  {\doalignNR[+][]\crcr % for a number on last line
   \stopalign}

% Other
\setupunderbar[alternative=b] % Fix underline style
% For putting underline with spaces: \underbar{\dorecurse{40}~}

% Define new register for the Index of Symbols
\defineregister[symbol][symbols]


% Start the text
\starttext
\version[concept]

\subsubsubject{Paraules sobre un alfabet}

En aquest apartat farem memòria de la definició de paraula (sobre un alfabet) 
i introduirem certes notacions i operacions estàndards que farem servir 
posteriorment.

Recordem que un {\em alfabet}\index{alfabet} és un conjunt qualsevol de 
símbols, els quals anomenarem {\em lletres}\index{lletres}. Si $A$ és un 
alfabet, aleshores una {\em paraula $w$ sobre $A$}\index{paraula} és una 
successió finita de lletres de $A$, que escriurem com $w = w_1 \ldots w_k$. 
Indicarem amb $\varepsilon$ la paraula que no té cap lletra, la qual 
anomenarem {\em paraula buida}\index{paraula+buida}. Quan $w$ consti de dues o 
més lletres iguals consecutives, per comoditat, podrem agrupar-les usant la 
notació multiplicativa. Per exemple si $A = \{a,b\}$, aleshores $ab^3a^2b$ 
denotarà la paraula $abbbaab$. 

La {\em concatenació}\index{concatenació de paraules} de dues paraules $w_1$, 
$w_2$ sobre $A$, que indicarem amb $w_1 \cdot w_2$, és la juxtaposició de 
$w_1$ i $w_2$, és a dir, si $w_1 = a_1 \ldots a_k$ i $w_2 = b_1 \ldots b_s$, 
aleshores
\startformula
w_1 \cdot w_2 = a_1 \ldots a_k b_1 \ldots b_s,
\stopformula
amb la convenció que $w_1 \cdot \varepsilon = \varepsilon \cdot w_1 = w_1$. 
Sovint ometrem el símbol $\cdot$ i escriurem $u v$ per denotar $u \cdot v$.

Si $w$ és una paraula sobre $A$, aleshores $l(w)$\symbol{$l(w)$} denotarà la 
seva {\em longitud}\index{longitud+d'una paraula}, és a dir, el seu nombre de 
símbols. De forma clara, $l(u \cdot v) = l(u) + l(v)$, per a qualssevol 
paraules $u, v$ sobre $A$. D'altra banda, indicarem amb $w(t)$ el {\em prefix 
de $w$ de longitud $t$}\index{paraula+prefix de longitud $t$,}. Formalment, si 
$w = \varepsilon$, $w(t) = \varepsilon$ i si $w = w_1 \ldots w_k$, aleshores 
$w(t) = w_1 \ldots w_t$.

Per últim, indicarem amb $A^*$ el {\em monoide lliure sobre $A$}\index{monoide 
lliure}, és a dir, el conjunt de totes les paraules sobre $A$.

\subsubsubject{Grups lliures}

En aquesta secció construirem el {\em grup lliure} de base $X$ un conjunt 
qualsevol i descriurem algunes de les seves propietats a mode de teoremes.

Donat $X$ un conjunt qualsevol, agafem un conjunt d'inverses formals de $X$, 
que indicarem amb $X^{-1}$, format per símbols $x^{-1}$ per a cada $x \in X$. 
Formalment, $X^{-1}$ és un conjunt del mateix cardinal que $X$ juntament amb 
una funció bijectiva ${}^{-1} \colon X \to X^{-1}$, de manera que, per a tot 
$x \in X$, la imatge de $x$ per ${}^{-1}$ s'escriu $x^{-1}$. Amb aquests 
conjunts podem formar el monoide lliure ${(X \cup X^{-1})}^*$ els elements del 
qual són llistes finites d'elements de $X$ i de les seves inverses formals. 
Enfatitzem que els elements de $X^{-1}$ són inverses formals: si $X = \{a, 
b\}$, aleshores $b$, $aba

Re: [NTG-context] I can't put footnote

2009-07-22 Thread Xan
=proposition'
\defineenumeration
  [proposition]
  [lema]
  [text={Proposició}]

\defineenumeration
  [corollary]
  [lema]
  [text={Corol·lari}]

\defineenumeration
  [theorem]
  [lema]
  [text={Teorema}]


%% Definició
\defineenumeration
  [definition]
  [lema]
  [text={Definició},style=tf,titlestyle=bf,indenting=yes]

\defineenumeration
  [notation]
  [definition]
  [text={Notació},style=tf,titlestyle=bf,indenting=yes]

\defineenumeration
  [note]
  [definition]
  [text={Nota},style=tf,titlestyle=bf,indenting=yes]

%% Demostració

\defineenumeration[demo][text={Demostració.\space},number=no,location=serried,width=fit,headstyle=italic,indentnext=yes,between=\blank,textdistance=.5em,closesymbol={\mathematics{\Box}},style=normal,indenting=yes]

% Table of contents
%% dots between... and subsubsubsection are not listed
\setupcombinedlist[content][level=4,alternative=c] 
%% section = bold. % width= 10mm -- less space between num-letter
%% line break after section.
\setuplist[section][style=bold,width=10mm] 
\setuplist[section][before=\blank]
%% margin = 10 mm. Put the subsection just bottom section.
\setuplist[subsection][margin=10mm,width=10mm]
\setuplist[subsubsection][margin=20mm,width=10mm]

%\setuplist[subsection] %[distance=1em] % section = bold. % 
% Això ho trec d'un manual:
%\setuplist[subsection]
%  [margin=1em,
%  numbercommand=\NumCom]
%\def\NumCom#1{\hbox to 2em{\hfill #1}}

% Set Índex like Índex de continguts
\setupheadtext [ca] [content=Índex]


% Definitions/abbreviations
\define[1]\dist{d(\sigma_g(#1), \sigma_h(#1))}
\define[1]\imp{{\bgroup\startframedtext[background=screen,frame=on,width=broad]#1\stopframedtext\egroup}}
%\define[1]\imp{{\bgroup\startframedtext[background=color,backgroundcolor=lightblue,frame=on,width=broad]#1\stopframedtext\egroup}}


% SPLIT
\def\startsplit
  {\startalign} % no number by default
\def\stopsplit
  {\doalignNR[+][]\crcr % for a number on last line
   \stopalign}

% Other
\setupunderbar[alternative=b] % Fix underline style
% For putting underline with spaces: \underbar{\dorecurse{40}~}

% Define new register for the Index of Symbols
\defineregister[symbol][symbols]


% Start the text
\starttext
%\version[concept]

\subsubsubject{El problema de la paraula}

Sigui $G$ un grup i $X$ un subconjunt de $G$. Aleshores l'aplicació $\pi 
\colon {(X \cup X^{-1})}^* \to G$\symbol{$\pi$} consistent a enviar cada lletra 
$x \in X$ a l'element corresponent $\pi(x) = x \in G$ es pot estendre de manera 
natural a totes les paraules de $X \cup X^{-1}$ de la forma següent:
\startitemize[n]
\item $\pi(x^{-1}) = \pi(x)^{-1}$ per a tot $x \in X$.
\item Per a tota paraula $w = w_1 \ldots w_r$ sobre $X \cup X^{-1}$,
\startformula
\pi(w) = \pi(w_1) \cdots \pi(w_r) \in G.
\stopformula
\stopitemize
Per tant, $\pi$ és un morfisme de monoides entre ${(X \cup X^{-1})}^*$ i $G$. 
De forma òbvia, si $X$ és un conjunt de generadors de $G$, aleshores $\pi$ 
és exhaustiva. En particular, si ${\cal P} = \langle X \mid R \rangle$ és una 
presentació, aleshores, com que $X$ és un conjunt de generadors de $G({\cal 
P})%$\footnote{Recordem que abusem del llenguatge, identificant $\iota(X)$ i 
$X$, i que, realment, $\iota(X)$ és el generador de $G(\cal{P})$.}
, llavors $\pi \colon {(X \cup X^{-1})}^* \to G({\cal P})$ és un morfisme 
exhaustiu.

\stoptext
This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6) (format=cont-en 
2009.3.12)  22 JUL 2009 22:38
entering extended mode
 %-line parsing enabled.
 (/usr/share/texmf/web2c/natural.tcx)
**debug.context emergencyend
(./debug.context

ConTeXt  ver: 2007.09.28 16:52 MKII  fmt: 2009.3.12  int: english/english

language: language en is active
system  : cont-new loaded
(/usr/share/texmf/tex/context/base/cont-new.tex
systems : beware: some patches loaded from cont-new.tex
(/usr/share/texmf/tex/context/base/cont-new.mkii)
(/usr/share/texmf/tex/context/base/cont-mtx.tex))
system  : cont-old loaded
(/usr/share/texmf/tex/context/base/cont-old.tex
loading : Context Old Macros
)
system  : cont-fil loaded
(/usr/share/texmf/tex/context/base/cont-fil.tex
loading : Context File Synonyms
)
system  : cont-sys.rme loaded
(/etc/texmf/tex/context/user/cont-sys.rme
(/usr/share/texmf/tex/context/base/type-tmf.tex)
(/usr/share/texmf/tex/context/base/type-siz.tex)
(/usr/share/texmf/tex/context/base/type-one.tex)
(/usr/share/texmf/tex/context/base/type-akb.tex))
bodyfont: 12pt rm is loaded
language: patterns en-ec:ec-1-2:3 uk-ec:ec-2-2:3 de-texnansi:tex
nansi-3-2:3 de-ec:ec-4-2:3 fr-texnansi:texnansi-5-2:3 fr-ec:ec-6-2:3
 es-ec:ec-7-2:3 pt-texnansi:texnansi-8-2:3 pt-ec:ec-9-2:3 it-texnansi
:texnansi-10-2:3 it-ec:ec-11-2:3 nl-texnansi:texnansi-12-2:3 nl-ec:ec-
13-2:3 cz-il2:il2-14-2:3 cz-ec:ec-15-2:3 sk-il2:il2-16-2:3 sk-ec:ec
-17-2:3 pl-pl0:pl0-18-2:3 pl-ec:ec-19-2:3 pl-qx:qx-20-2:3 loaded
specials: tex,postscript,rokicki loaded
\openout3 = `debug.tui

[NTG-context] Problem with \digits

2009-06-16 Thread richard . stephens

Hello,

I am using mkiv beta (14-Jun-09) and the \digits command does not like the
decimal point. Any suggestions?
Test code and log file follow:

Richard

Test code
\starttext
\digits{1.6}
\stoptext

Log file
This is LuaTeX, Version beta-0.40.5-2009061023 (Web2C 2009)
 \write18 enabled.
(testdigits.tex
color   : system all is global activated
color   : system gray is global activated
color   : mpcmyk color space is supported
color   : mpspot color space is supported
color   : system rgb is global activated
color   : system all is global activated

ConTeXt  ver: 2009.06.14 21:01 MKIV  fmt: 2009.6.16  int: english/english

system  : cont-new loaded
(C:/Tools/context/texmf-context/tex/context/base/cont-new.tex
systems : beware: some patches loaded from cont-new.tex
(C:/Tools/context/texmf-context/tex/context/base/cont-new.mkiv)
(C:/Tools/context/texmf-context/tex/context/base/cont-mtx.tex))
system  : cont-fil loaded
(C:/Tools/context/texmf-context/tex/context/base/cont-fil.tex
loading : ConTeXt File Synonyms
)
system  : cont-sys.rme loaded
(C:/Tools/context/texmf-context/tex/context/user/cont-sys.rme
(C:/Tools/context/texmf-context/tex/context/base/type-tmf.tex)
(C:/Tools/context/texmf-context/tex/context/base/type-siz.tex
(C:/Tools/context/texmf-context/tex/context/base/type-siz.mkiv))
(C:/Tools/context/texmf-context/tex/context/base/type-otf.tex
(C:/Tools/context/texmf-context/tex/context/base/type-otf.mkiv)))
system  : testdigits.top loaded
(testdigits.top)
fonts   : preloading latin modern fonts
bodyfont: 12pt rm is loaded
language: language en is active
systems : begin file testdigits at line 1
! \textfont1 is undefined (character 58).
\mathematics #1-\relax \ifmmode #1\else $#1$
 \fi
\doscandigit ...\digitoutputmode ,\else .\fi \fi }
  \egroup
\digitsep ...x \digitsepbox \hbox {\doscandigit #1
  }\fi \chardef \skipdigit
0...
\scandigits #1-\if #1.\digitsep 1
  \else \if #1,\digitsep 2\else \if
#...@\digi...
\dodohandletokenstwo *#1-\dododohandletokens {#1}
  \dohandletokens
argument 1.
 6
...
l.2 \digits{1.6}

?



Converteam UK Ltd. Registration Number: 5571739 and Converteam Ltd. 
Registration Number: 2416188  
Registered in England and Wales.  
Registered office: Boughton Road, Rugby, Warwickshire, CV21 1BU.  

CONFIDENTIALITY : This e-mail and any attachments are confidential and may be 
privileged. If you are not a named recipient, please notify the sender 
immediately and do not disclose the contents to another person, use it for any 
purpose or store or copy the information in any medium.  

Please consider the environment before printing this e-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] Problems with bibtex and @incollection

2009-06-06 Thread Xan

Hi,

When I put one reference as @incollection Bibtex does not show me the 
title of the article in the book, but yes the booktitle. Why?. Anyone 
could help me please.


I attached the files

Xan.

Please CC me
@article{bridson,
 author = Martin R. Bridson,
 title = On the geometry of normal forms in discrete groups,
 journal = Proceedings of the London Mathematical Society,
 year = 1993,
 volume = 67,
 pages = 595-616
}

@article{riley,
author = Tim R. Riley,
title = The geometry of groups satisfying weak almost-convexity or weak geodesic-combability conditions,
journal = Journal of Group Theory,
year = 2002,
volume= 5,
pages = 513-525
}

@book{epstein,
 author = Epstein, David B. A. and J. W. Cannon and D. F. Holt and S. V. F. Levy and M. S. Paterson and W. P. Thurston,
 title = Word processing in groups,
 publishers=Jones and Barlett Publishers,
 year= 1992
}


@book{delaharpe,
 author= de la Harpe, Pierre,
 title = Topics in Geometric Group Theory,
 publishers = University of Chicago Press,
 series= Chicago Lectures in Mathematics,
 year = 2000
}

@incollection{bridson-tutorial,
 author= Martin R. Bridson,
 title = {{The geometry of the word problem}},
 booktitle= Invitations to Geometry and Topology,
 year = 2002,
 publisher = Oxford University Press,
 editor = Martin R. Bridson, Simon M. Salamon,
 pages=29-92
}% interface=en output=pdftex
%\environment capcalera.context % Capçalera

% Regime
\enableregime[utf]

% Choose a font
\setupbodyfont [cmr,11pt]

% Be tolerant with paragraph building
\setuptolerance [horizontal,verytolerant,stretch]

% Choose a language, and associated hyphenation rules.
%\language [ca]
\mainlanguage[ca]


% Page number
\setuppagenumbering [location={footer}]

% White space between paragraphs
%\setupwhitespace [big]

% Paper size
\setuppapersize [a4]

% Margins
%\setuplayout  [grid=yes, footer=0.5\footerheight, header=0.5\headerheight]
%\setuplayout[footer=2cm, header=2cm]
%\showlayout
%\showframe
%\showsetups
% Format de marges
\setuplayout[topspace=1.5cm, % marge d'adalt
margin=1.5cm, %marges dels costats
header=1.0cm,%separació entre adalt i primera línia
footer=1.0cm,%separació entre abaix i darrera línia
width=fit,height=fit,backspace=2cm]



% Enable colors and activate hyperlinks
\setupcolors [state=start]
\definecolor[lightblue][r=0.5, g=0.5, b=1.0]
%\setupinteraction [state=start, color=lightBlue]
%\setupurl[style=small, space=yes]
\setupurl[space=yes]

% Enumerate the URLs
%\useURL[wiki][http://wiki.contextgarden.net][][\ConTeXt\ wiki]
%\useURL[nagorko-pdf][http://www.math.bgu.ac.il/~barakw/probseminar/nagorko/slides.pdf][][http://www.math.bgu.ac.il/\~{}barakw/\quad\quad\quad\quad
 probseminar/nagorko/slides.pdf]
%\useURL[govern-me][http://sgtrelinst.caib.es/llibrestil/00index.html][][http://sgtrelinst.caib.es/llibrestil/00index.html]
%\useURL[context-manual-pdf][http://www.pragma-ade.com/general/manuals/cont-eni.pdf][][http://www.pragma-ade.com/general/manuals/
 cont-eni.pdf]
%\useURL [contextgarden] [{http://www.contextgarden.net}]

%\useURL 
[mccammond][{http://www.math.ucsb.edu/~jon.mccammond/geogrouptheory/}][] [{\tf 
http://www.math.ucsb.edu/\~{}jon.mccammond/geogrouptheory/}]


% Fonts
%% Chapters...
\setupheads[align=flushleft]
\setuphead[chapter][style={\tfd\bf}]
\setuphead[section][style={\bfc}, header=nomarking]
\setuphead[subsection][style={\bfb}]
\setuphead[subsubsection][style={\bfa}]
%\setuphead[section][textstyle=bold]

% Bibliography options
% BIBTEX
\usemodule[bib]
\usemodule[bibltx]
\setupbibtex[database=tfm,sort=author]
\setuppublications [alternative=ams,numbering=yes, sorttype=bbl, 
criterium=cite]%
\setupheadtext[ca][pubs=Referències]
\setuppublicationlist[authoretallimit=3]
\setuppublicationlist[authoretaltext={\it\  et al.}]
\setuppublicationlist[authoretaldisplay=1]

%Indentation
\setupheads[indentnext=yes] 
\setupindenting[yes,small,first]
%\setupformulae[indentnext=yes]

% Vertical spaces between paragraphs
\setupwhitespace[small]

%Itemize
\setupitemize[each][identnext=yes,margin=2em]
\setupitemize[each][headstyle=bold]
%\setupitemize[a][right=),stopper=]

% Mathematical packets
\usemodule[newmat]
\usemodule[math-ams]

% Heads and footers
\setupfootertexts[\pagenumber/\lastpage]
\setupfooter[text][before=\hrule]
\setupheader[text][after=\hrule]
\setupheadertexts[{\tfx Màster de Matemàtiques}][{\tfx 
\jobname.\ConTeXt{}.\currentdate}]

% hyphenating
\hyphenation{do-cu-ment}
\hyphenation{pro-ble-ma}
\hyphenation{es-crip-tu-ra}
\hyphenation{ge-ne-ra-lit-za-ció}
\hyphenation{cor-res-po-nents}

% Modules
\usemodule[tikz]
\usemodule[pgfmath]
\usetikzlibrary[mindmap,arrows,calc,decorations.pathmorphing,decorations.markings]
%\usetikzlibrary[trees]


% AMSTHM equivalent
%% Exercici
\defineenumeration
  [exercici]
  
[text={Problema},headstyle=bold,between=\blank,titledistance=0em,textdistance=1em,
stopper={.\space},location=serried,left={\bgroup\bf},right={\egroup},width=fit,before={\bgroup\startframedtext[background=screen,frame

Re: [NTG-context] Theorems with arguments like amsthm-- demostration space

2009-05-30 Thread Aditya Mahajan

On Sat, 30 May 2009, Xan wrote:

Thinking about spaces anyone knows how to put less space between 
text Demostració and the text itself in this environment?:


width=fit, distance=0.5em (or whatever you want the distance to be)


\definedescription[demo][location=serried,text={Demostració.},
headstyle=bold,indentnext=yes,between=\blank,textdistance=0em,
closesymbol=\mathematics{\Box}]

\starttext
\startdemo Hola
\stopdemo

\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] Indent after formula in enumeration

2009-05-30 Thread Xan

Hi,

I have

\setupformulae[indentnext=auto]

but when I put a \startformula \stopformula in demo environment it does not 
indent.
Why? What can I do for getting that?


My environment is:

\defineenumeration[demo][text={Demostració.\space},
number=no,location=serried,width=fit,headstyle=italic,
indentnext=yes,between=\blank,textdistance=.5em,closesymbol={\mathematics{\Box}},style=normal]


Thanks a lot,
Xan.


___
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] Indent after formula in enumeration

2009-05-30 Thread Aditya Mahajan

On Sat, 30 May 2009, Xan wrote:


Hi,

I have

\setupformulae[indentnext=auto]

but when I put a \startformula \stopformula in demo environment it does not 
indent.

Why? What can I do for getting that?


My environment is:

\defineenumeration[demo][text={Demostració.\space},
number=no,location=serried,width=fit,headstyle=italic,
indentnext=yes,between=\blank,textdistance=.5em,closesymbol={\mathematics{\Box}},style=normal]


indenting=yes

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] Indent after formula in enumeration

2009-05-30 Thread Xan

Thanks Aditya, but it does not work what it should?

With:
\defineenumeration[demo][text={Demostració.\space},number=no,
location=serried,width=fit,headstyle=italic,indentnext=yes,
between=\blank,textdistance=.5em,closesymbol={\mathematics{\Box}},
style=normal,indenting=yes]

and
\starttext

\startdemo Si $\text{area}(u) = N$ i $\text{area}(v) = M$, aleshores
\startformula
\startmathalignment
\NC u \NC  = \prod_{i=1}^N x_i^{-1} r_i x_i, \NR[+]
\NC v \NC  = \prod_{j=1}^M y_j^{-1} s_j y_j, \NR[+]
\stopmathalignment
\stopformula%
per a alguns $x_i, y_j \in F(A)$, $r_i, s_j \in R$, on aquestes 
igualtats són dins el grup lliure $F(A)$. Com que $w = u v$ també dins 
el grup lliure, tenim que

\placeformula[-] \startformula \startsplit
 \NC w = u v \NC = \bigl( \prod_{i = 1}^N x_i^{-1} r_i x_i \bigr) \cdot 
\bigl( \prod_{j=1}^M y_j^{-1} s_j y_j \bigr) \NR
 \NC \NC = (x_1^{-1} r_1 x_1)\cdots (x_N^{-1} r_N x_N) \cdot (y_1^{-1} 
s_1 y_1) \cdots (y_M^{-1} s_M y_M) \NR

 \NC \NC =  \prod_{k=1}^{M+N} z_k^{-1} t_k z_k
\stopsplit \stopformula
on
\startformula
 z_k = \startcases
   \NC x_k\MC 1 \leq k \leq N \NR
   \NC y_{k-N} \MC N+1 \leq k \leq N+M, \NR
 \stopcases t_k = \startcases
   \NC r_k\MC 1 \leq k \leq N \NR
   \NC s_{k-N} \MC N+1 \leq k \leq N+M. \NR
 \stopcases
\stopformula
Llavors, per definició, $\text{area}(w) \leq N+M = \text{area}(u) + 
\text{area}(v)$.

\stopdemo

\stoptext


I have that per a alguns is indenting but on is not.

Why?

Xan.

PS: Please, CCme
___
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] Indent after formula in enumeration

2009-05-30 Thread Xan

En/na Xan ha escrit:

Thanks Aditya, but it does not work what it should?

With:
\defineenumeration[demo][text={Demostració.\space},number=no,
location=serried,width=fit,headstyle=italic,indentnext=yes,
between=\blank,textdistance=.5em,closesymbol={\mathematics{\Box}},
style=normal,indenting=yes]

and
\starttext

\startdemo Si $\text{area}(u) = N$ i $\text{area}(v) = M$, aleshores
\startformula
\startmathalignment
\NC u \NC  = \prod_{i=1}^N x_i^{-1} r_i x_i, \NR[+]
\NC v \NC  = \prod_{j=1}^M y_j^{-1} s_j y_j, \NR[+]
\stopmathalignment
\stopformula%
per a alguns $x_i, y_j \in F(A)$, $r_i, s_j \in R$, on aquestes 
igualtats són dins el grup lliure $F(A)$. Com que $w = u v$ també dins 
el grup lliure, tenim que

\placeformula[-] \startformula \startsplit
 \NC w = u v \NC = \bigl( \prod_{i = 1}^N x_i^{-1} r_i x_i \bigr) 
\cdot \bigl( \prod_{j=1}^M y_j^{-1} s_j y_j \bigr) \NR
 \NC \NC = (x_1^{-1} r_1 x_1)\cdots (x_N^{-1} r_N x_N) \cdot (y_1^{-1} 
s_1 y_1) \cdots (y_M^{-1} s_M y_M) \NR

 \NC \NC =  \prod_{k=1}^{M+N} z_k^{-1} t_k z_k
\stopsplit \stopformula
on
\startformula
 z_k = \startcases
   \NC x_k\MC 1 \leq k \leq N \NR
   \NC y_{k-N} \MC N+1 \leq k \leq N+M, \NR
 \stopcases t_k = \startcases
   \NC r_k\MC 1 \leq k \leq N \NR
   \NC s_{k-N} \MC N+1 \leq k \leq N+M. \NR
 \stopcases
\stopformula
Llavors, per definició, $\text{area}(w) \leq N+M = \text{area}(u) + 
\text{area}(v)$.

\stopdemo

\stoptext


I have that per a alguns is indenting but on is not.

Why?

Xan.

PS: Please, CCme

I have

%Indentation
\setupheads[indentnext=yes]
\setupindenting[yes,small,first]
\setupformulae[indentnext=yes]

in headers.

if I put setupformulae[identnext=yes] and ident=yes for enumerations 
_always_ have indenting after formula even if the text is following.


Xan.
___
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] presentation module

2009-04-30 Thread Marcin Borkowski
Dnia Thu, Apr 30, 2009 at 10:21:30AM +0800, Yue Wang napisa#322;(a):
 On Thu, Apr 30, 2009 at 12:56 AM, Aditya Mahajan adit...@umich.edu wrote:
  On Thu, 30 Apr 2009, Yue Wang wrote:
 
  Hi,
 
  you can find that on http://modules.contextgarden.net/
 
  but anyway, you won't know how easy it is to place figure/text
  wherever you want in Keynote.
  In ConTeXt, you cannot achieve that.
 
  Sure you can. Use a background layer, and then you can place the text
  whereever you want. Not as easy as in Keynote or powerpoint, but it can be
  done.
 
 
 achieve the easiness I mean.
 positioning/adjusting graphics/text using a mouse is much easier than
 do that with keyboard,
 and one should compile/adjust xs and ys many times in order to get the
 right result.

Well, using the keyboard and not the mouse is IMHO one of the TeX (and
LateX, and ConTeXt, and METAPOST, and METAFUN, and tikz) advantages: I
may have repeatable (and uniform throughout the document) results
without having to put a (physical) ruler onto my monitor;)...

My experience shows that the best way to prepare a complicated document,
and especially one containing complicated mathematics/graphics/tables,
is to:
1. think about it
2. sketch it on a piece of paper
3. think a bit more
4. write down the important coordinates etc.
5. type into the computer what I have done in part 4.

This way you don't really have to adjust it too many times (maybe twice
or thrice).

 not to say how to create beautiful 2d/3d charts and tables,
 make simple drawings,

metafun or tikz

 get fancy templates,
 apply some advanced features to graphics/texts (like mirror, or
 believable shade)
 Well, I know in theory everything above is doable using TeX,
 but extra amount of work should be done, and the ConTeXt approach
 (using metafun?) quite unproductive.

As I said: the bulk of the work when preparing a good document is
*thinking* (and writing the *text*).  Even two or three hours of typing
don't really make a difference, especially if you get nicer results than
when using mouse (each picture etc. in slightly different position
and/or size...)

 So unless someone develop a good GUI frontend for TeX,
 using TeX for unstructured documents (like presentation slides) is
 always not a good idea.

This might be debatable, but I would risk a following statement: if you
consider your presentation slides unstructured, maybe it's time to
devote more thinking to it...

But a GUI would be nice in fact, especially for tikz.  I agree that
in some cases it would be faster to use it than to type everything.

Regards

-- 
Marcin Borkowski (http://mbork.pl)

- Why vim users don't use the ESC key?
- It's too far on the keyboard.  It's faster to type ctrl-[.
___
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] presentation module

2009-04-30 Thread Yue Wang
On Thu, Apr 30, 2009 at 2:01 PM, Marcin Borkowski
mb...@atos.wmid.amu.edu.pl wrote:
 Dnia Thu, Apr 30, 2009 at 10:21:30AM +0800, Yue Wang napisa#322;(a):
 On Thu, Apr 30, 2009 at 12:56 AM, Aditya Mahajan adit...@umich.edu wrote:
  On Thu, 30 Apr 2009, Yue Wang wrote:
 
  Hi,
 
  you can find that on http://modules.contextgarden.net/
 
  but anyway, you won't know how easy it is to place figure/text
  wherever you want in Keynote.
  In ConTeXt, you cannot achieve that.
 
  Sure you can. Use a background layer, and then you can place the text
  whereever you want. Not as easy as in Keynote or powerpoint, but it can be
  done.


 achieve the easiness I mean.
 positioning/adjusting graphics/text using a mouse is much easier than
 do that with keyboard,
 and one should compile/adjust xs and ys many times in order to get the
 right result.

 Well, using the keyboard and not the mouse is IMHO one of the TeX (and
 LateX, and ConTeXt, and METAPOST, and METAFUN, and tikz) advantages: I
 may have repeatable (and uniform throughout the document) results
 without having to put a (physical) ruler onto my monitor;)...

 My experience shows that the best way to prepare a complicated document,
 and especially one containing complicated mathematics/graphics/tables,
 is to:
 1. think about it
 2. sketch it on a piece of paper
 3. think a bit more
 4. write down the important coordinates etc.
 5. type into the computer what I have done in part 4.

 This way you don't really have to adjust it too many times (maybe twice
 or thrice).



Please design a few fancy slides in both Powerpoint/Keynote and TeX,
and compare the efforts you should take.
Good exercises to follow are Steve Jobs' WWDC presentations and Al
Gore's An Inconvenient Truth.
After doing so, you can come back and tell us that only twice
re-compilation are needed to design a good presentation.


 not to say how to create beautiful 2d/3d charts and tables,
 make simple drawings,

 metafun or tikz


there is an old saying in China: 站着说话不腰疼.
(you won't hurt your hip when you stand still while speaking)


 get fancy templates,
 apply some advanced features to graphics/texts (like mirror, or
 believable shade)
 Well, I know in theory everything above is doable using TeX,
 but extra amount of work should be done, and the ConTeXt approach
 (using metafun?) quite unproductive.

 As I said: the bulk of the work when preparing a good document is
 *thinking* (and writing the *text*).  Even two or three hours of typing
 don't really make a difference, especially if you get nicer results than
 when using mouse (each picture etc. in slightly different position
 and/or size...)

It is funny to say ConTeXt results will be better... Please try the
grid positioning feature in Keynote or InDesign CS4.
but even the picture are in slightly different position/size, the
viewer wont notice that.

As a contrast, trying again and again for tuning/positioning/compiling
TeX document (and lookup TeX commands on manual) will distract me from
real thinking


 So unless someone develop a good GUI frontend for TeX,
 using TeX for unstructured documents (like presentation slides) is
 always not a good idea.

 This might be debatable, but I would risk a following statement: if you
 consider your presentation slides unstructured, maybe it's time to
 devote more thinking to it...




I admit it is easy to create bulletpoint presentations in ConTeXt
(even easier than Keynote and PowerPoint, \item will do all the
stuffs)
But bear in mind structured presentation handout \neq structured
presentation slides
As far as I know, for most time, the presentation handout should be
structured (point 1, point 2, point3.1, point 3.2 ...) so the speaker
can cover the topic throughly.
However, a structured presentation slide (e.g., bulletpoint) is too
monotonous-dull to put the audience to sleep easily.
Only by careful reorganization of materials can the speaker makes an
awesome presentation.
That's why Steve Job's presentations are all unstructured, but the
audience know clearly what the key points are, and excited-scream
when watching his presentation.
TeX and XML are good for creating structured stuffs (books, journal
papers) where only item point/chapter/float/ref are needed, but
concerning unstructured stuffs like presentation slides, it will be
difficult to do that in just a few \items or \sections.


 But a GUI would be nice in fact, especially for tikz.  I agree that
 in some cases it would be faster to use it than to type everything.

 Regards

 --
 Marcin Borkowski (http://mbork.pl)

 - Why vim users don't use the ESC key?
 - It's too far on the keyboard.  It's faster to type ctrl-[.
 ___
 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

[NTG-context] sagemath in context

2009-04-28 Thread curiouslearn
Hi,

I know that Context is developing rapidly and the top guys here are all very
busy with these development efforts. But I thought I would just float this 
idea. 

There is an open source mathematics software system called sagemath which aims
to be a viable substitute to Mathematica and Maple. The link is 

http://www.sagemath.org/

There exists a latex package called sagetex, which allows using sagemath
functions from within latex. The following link on ctan has some examples

http://www.ctan.org/tex-archive/macros/latex/contrib/sagetex/

Do you think it is possible to do a similar thing in Context? It would be really
cool if this functionality is added to Context. 

What do the experts here think?

___
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] sagemath in context

2009-04-28 Thread Yue Wang
Hi,

This is a very small package, and it is not heavily dependent on LaTeX.
So the ConTeXt module will be easy to write. (it is quite like the
gnuplot context module)
You can write your own and submit that to CTAN.

Yue Wang

On Tue, Apr 28, 2009 at 8:38 PM, curiouslearn curiousle...@gmail.com wrote:
 Hi,

 I know that Context is developing rapidly and the top guys here are all very
 busy with these development efforts. But I thought I would just float this 
 idea.

 There is an open source mathematics software system called sagemath which aims
 to be a viable substitute to Mathematica and Maple. The link is

 http://www.sagemath.org/

 There exists a latex package called sagetex, which allows using sagemath
 functions from within latex. The following link on ctan has some examples

 http://www.ctan.org/tex-archive/macros/latex/contrib/sagetex/

 Do you think it is possible to do a similar thing in Context? It would be 
 really
 cool if this functionality is added to Context.

 What do the experts here think?

 ___
 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] sagemath in context

2009-04-28 Thread Aditya Mahajan

On Tue, 28 Apr 2009, curiouslearn wrote:


Hi,

I know that Context is developing rapidly and the top guys here are all very
busy with these development efforts. But I thought I would just float this idea.

There is an open source mathematics software system called sagemath which aims
to be a viable substitute to Mathematica and Maple. The link is

http://www.sagemath.org/

There exists a latex package called sagetex, which allows using sagemath
functions from within latex. The following link on ctan has some examples

http://www.ctan.org/tex-archive/macros/latex/contrib/sagetex/

Do you think it is possible to do a similar thing in Context?


Have a look at the r module in the distribtuion, m-r.tex. It does 
something similar, but uses R instead on sage. It should be possible to 
copy code from there and translate it for sage.



It would be really
cool if this functionality is added to Context.


Simple things like multiplication and basic algebra can be done using 
calcmath. See, for example, 
http://www.tug.org/pipermail/tugindia/2008-December/004714.html


But we should not write a CAS in lua. There are plenty of good ones out 
there.



What do the experts here think?


How much does it rely on SAGE. For example, one the examples in the 
manual says that \sage{matrix([1,2], [3,4])^2} is converted into a

\begin{array}
...
\end{array}

block. Most likely, this conversion is done by sage. Is it possible to 
change a few functions in sage so that the output is in ConTeXt syntax?


Regarding graphics, gnuplot tries hard to ensure that document fonts are 
used in plots. I don't know how easy it is to do such things with sage and 
R.


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] Height of square root

2009-04-18 Thread Taco Hoekwater

Tomas Kisela wrote:

Hi everybody,

There's my issue:
If I switch a size of body font, the height of square root doesn't adapt well for letters 
exceeding a baseline (in my example y). Here is my code:

\starttext
\startformula 
 \sqrt{x^2+y^2} \sqrt{x^2+a^2}

\stopformula
\switchtobodyfont[17pt]
\startformula 
 \sqrt{x^2+y^2} \sqrt{x^2+a^2}

\stopformula
\switchtobodyfont[23pt]
\startformula 
 \sqrt{x^2+y^2} \sqrt{x^2+a^2}

\stopformula
\stoptext

Do you have any ideas what's the problem and how can I fix it?


There is a bug in math-dim.lua: the \Umathradicalvgap parameters are not
set up properly. Attached is an improved version. Hans, can you put the
fix in the next beta?

Best wishes,
Taco


if not modules then modules = { } end modules ['math-dim'] = {
version   = 1.001,
comment   = companion to math-ini.tex,
author= Hans Hagen, PRAGMA-ADE, Hasselt NL,
copyright = PRAGMA ADE / ConTeXt Development Team,
license   = see context related readme files
}

-- Beware: only Taco really understands what these dimensions do so if you
-- run into problems ...

local abs, next = math.abs, next

mathematics = mathematics or { }

local defaults = {
['axis']={
['default']={ AxisHeight, axis_height },
},
['accent_base_height']={
['default']={ AccentBaseHeight, x_height },
},
['fraction_del_size']={
['default']={ 0, delim2 },
['cramped_display_style']={ 0, delim1 },
['display_style']={ 0, delim1 },
 },
['fraction_denom_down']={
['default']={ FractionDenominatorShiftDown, denom2 },
['cramped_display_style']={ FractionDenominatorDisplayStyleShiftDown, 
denom1 },
['display_style']={ FractionDenominatorDisplayStyleShiftDown, 
denom1 },
 },
['fraction_denom_vgap']={
['default']={ FractionDenominatorGapMin, default_rule_thickness },
['cramped_display_style']={ FractionDenominatorDisplayStyleGapMin, 
3*default_rule_thickness },
['display_style']={ FractionDenominatorDisplayStyleGapMin, 
3*default_rule_thickness },
 },
['fraction_num_up']={
['default']={ FractionNumeratorShiftUp, num2 },
['cramped_display_style']={ FractionNumeratorDisplayStyleShiftUp, 
num1 },
['display_style']={ FractionNumeratorDisplayStyleShiftUp, num1 },
 },
 ['fraction_num_vgap']={
['default']={ FractionNumeratorGapMin, default_rule_thickness },
['cramped_display_style']={ FractionNumeratorDisplayStyleGapMin, 
3*default_rule_thickness },
['display_style']={ FractionNumeratorDisplayStyleGapMin, 
3*default_rule_thickness },
 },
['fraction_rule']={
['default']={ FractionRuleThickness, default_rule_thickness },
 },
['limit_above_bgap']={
['default']={ UpperLimitBaselineRiseMin, big_op_spacing3 },
 },
['limit_above_kern']={
['default']={ 0, big_op_spacing5 },
 },
['limit_above_vgap']={
['default']={ UpperLimitGapMin, big_op_spacing1 },
 },
['limit_below_bgap']={
['default']={ LowerLimitBaselineDropMin, big_op_spacing4 },
 },
['limit_below_kern']={
['default']={ 0, big_op_spacing5 },
 },
['limit_below_vgap']={
['default']={ LowerLimitGapMin, big_op_spacing2 },
 },

--~ ['']={
--~ ['default']={ DisplayOperatorMinHeight, . },
--~ },

['overbar_kern']={
['default']={ OverbarExtraAscender, default_rule_thickness },
 },
['overbar_rule']={
['default']={ OverbarRuleThickness, default_rule_thickness },
 },
['overbar_vgap']={
['default']={ OverbarVerticalGap, 3*default_rule_thickness },
 },
['quad']={
['default']={ font_size(f), math_quad },
 },
['radical_kern']={
['default']={ RadicalExtraAscender, default_rule_thickness },
 },
['radical_rule']={
['default']={ RadicalRuleThickness, not set },
 },
['radical_vgap']={
['default']={ RadicalVerticalGap, 
default_rule_thickness+(abs(default_rule_thickness)/4) },
['display_style']={ RadicalDisplayStyleVerticalGap, 
default_rule_thickness+(abs(math_x_height)/4) },
 },
['space_after_script']={
['default']={ SpaceAfterScript, script_space },
 },
['stack_denom_down']={
['default']={ StackBottomShiftDown, denom2 },
['cramped_display_style']={ StackBottomDisplayStyleShiftDown, 
denom1 },
['display_style']={ StackBottomDisplayStyleShiftDown, denom1 },
 },
['stack_num_up']={
['default']={ StackTopShiftUp, num3 },
['cramped_display_style']={ StackTopDisplayStyleShiftUp, num1 },
['display_style']={ StackTopDisplayStyleShiftUp, num1 },
 },
['stack_vgap']={
['default']={ StackGapMin, 3*default_rule_thickness },
['cramped_display_style']={ StackDisplayStyleGapMin, 
7*default_rule_thickness },
['display_style']={ StackDisplayStyleGapMin, 
7*default_rule_thickness

Re: [NTG-context] Numerals in mkiv

2009-04-18 Thread Hans Hagen

Otared Kavian wrote:

Hi Hans,

It seems that Arabic or Persian numerals (for instance in section 
numbers) in mkiv begin at 0, instead of 1… well it is true that in 
Mathematics natural integers begin with 0, but not in books in those 
languages :-)

Here is a minimal example:

\setupdirections[bidi=global]
\pagedir TRT
\bodydir TRT
\pardir TRT
\textdir TRT

\starttypescript[serif][arabic]
\usetypescript[serif][fallback]
\definefontsynonym [Serif][name:SimpleNaskhi] [features=arabic]
\stoptypescript

\starttypescript  [arabic]
  \definetypeface [arabic][rm] [serif] [arabic]  [default]
\stoptypescript

\usetypescript[arabic]
\setupbodyfont[arabic,12pt]

%%
% heading numbers:
   \setuphead[section][conversion=persiannumerals] %,numberstyle={arabic}]
%%%

\starttext
\dorecurse{5}{%
\section{بخش}\par
آزمایش
}
\stoptext

Pardon me if I have been missing something already explained elsewhere.


it all depends how we define conversions

- numeric (1,2,3,4)
- alphabetic (a,b,c,d)

numeric is used in chapter numbering and alphabetic for instance in 
itemized (ok, all can be used everywhere but those are most common)


so, the question is ... how do we define the commands ... maybe we need:


\def\abjadnumerals #1{\ctxlua{converters.abjadnumerals(\number#1)}}
\def\abjadnodotnumerals#1{\ctxlua{converters.abjadnodotnumerals(\number#1)}}
\def\abjadnaivenumerals#1{\ctxlua{converters.abjadnumerals(\number#1)}}

\defineconversion [arabicnumerals][\abjadnumerals]
\defineconversion [persiannumerals]   [\abjadnumerals]

Idris ... any ideas about this? We never finished this so it's about time

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
___


Re: [NTG-context] Height of square root

2009-04-18 Thread Tomas Kisela
Thanks a lot.

Tomas

__
 Od: t...@elvenkind.com
 Komu: mailing list for ConTeXt users ntg-context@ntg.nl
 Datum: 18.04.2009 10:12
 Předmět: Re: [NTG-context] Height of square root

Tomas Kisela wrote:
 Hi everybody,
  There's my issue:
 If I switch a size of body font, the height of square root doesn't adapt 
 well for letters exceeding a baseline (in my example y). Here is my code:
  starttext
 startformula   sqrt{x^2+y^2} sqrt{x^2+a^2}
 stopformula
 switchtobodyfont[17pt]
 startformula   sqrt{x^2+y^2} sqrt{x^2+a^2}
 stopformula
 switchtobodyfont[23pt]
 startformula   sqrt{x^2+y^2} sqrt{x^2+a^2}
 stopformula
 stoptext
  Do you have any ideas what's the problem and how can I fix it?

There is a bug in math-dim.lua: the Umathradicalvgap parameters are not
set up properly. Attached is an improved version. Hans, can you put the
fix in the next beta?

Best wishes,
Taco



if not modules then modules = { } end modules ['math-dim'] = {
version   = 1.001,
comment   = companion to math-ini.tex,
author= Hans Hagen, PRAGMA-ADE, Hasselt NL,
copyright = PRAGMA ADE / ConTeXt Development Team,
license   = see context related readme files
}

-- Beware: only Taco really understands what these dimensions do so if you
-- run into problems ...

local abs, next = math.abs, next

mathematics = mathematics or { }

local defaults = {
['axis']={
['default']={ AxisHeight, axis_height },
},
['accent_base_height']={
['default']={ AccentBaseHeight, x_height },
},
['fraction_del_size']={
['default']={ 0, delim2 },
['cramped_display_style']={ 0, delim1 },
['display_style']={ 0, delim1 },
 },
['fraction_denom_down']={
['default']={ FractionDenominatorShiftDown, denom2 },
['cramped_display_style']={ 
 FractionDenominatorDisplayStyleShiftDown, denom1 },
['display_style']={ FractionDenominatorDisplayStyleShiftDown, 
 denom1 },
 },
['fraction_denom_vgap']={
['default']={ FractionDenominatorGapMin, default_rule_thickness },
['cramped_display_style']={ FractionDenominatorDisplayStyleGapMin, 
 3*default_rule_thickness },
['display_style']={ FractionDenominatorDisplayStyleGapMin, 
 3*default_rule_thickness },
 },
['fraction_num_up']={
['default']={ FractionNumeratorShiftUp, num2 },
['cramped_display_style']={ FractionNumeratorDisplayStyleShiftUp, 
 num1 },
['display_style']={ FractionNumeratorDisplayStyleShiftUp, num1 },
 },
 ['fraction_num_vgap']={
['default']={ FractionNumeratorGapMin, default_rule_thickness },
['cramped_display_style']={ FractionNumeratorDisplayStyleGapMin, 
 3*default_rule_thickness },
['display_style']={ FractionNumeratorDisplayStyleGapMin, 
 3*default_rule_thickness },
 },
['fraction_rule']={
['default']={ FractionRuleThickness, default_rule_thickness },
 },
['limit_above_bgap']={
['default']={ UpperLimitBaselineRiseMin, big_op_spacing3 },
 },
['limit_above_kern']={
['default']={ 0, big_op_spacing5 },
 },
['limit_above_vgap']={
['default']={ UpperLimitGapMin, big_op_spacing1 },
 },
['limit_below_bgap']={
['default']={ LowerLimitBaselineDropMin, big_op_spacing4 },
 },
['limit_below_kern']={
['default']={ 0, big_op_spacing5 },
 },
['limit_below_vgap']={
['default']={ LowerLimitGapMin, big_op_spacing2 },
 },

--~ ['']={
--~ ['default']={ DisplayOperatorMinHeight, . },
--~ },

['overbar_kern']={
['default']={ OverbarExtraAscender, default_rule_thickness },
 },
['overbar_rule']={
['default']={ OverbarRuleThickness, default_rule_thickness },
 },
['overbar_vgap']={
['default']={ OverbarVerticalGap, 3*default_rule_thickness },
 },
['quad']={
['default']={ font_size(f), math_quad },
 },
['radical_kern']={
['default']={ RadicalExtraAscender, default_rule_thickness },
 },
['radical_rule']={
['default']={ RadicalRuleThickness, not set },
 },
['radical_vgap']={
['default']={ RadicalVerticalGap, 
 default_rule_thickness+(abs(default_rule_thickness)/4) },
['display_style']={ RadicalDisplayStyleVerticalGap, 
 default_rule_thickness+(abs(math_x_height)/4) },
 },
['space_after_script']={
['default']={ SpaceAfterScript, script_space },
 },
['stack_denom_down']={
['default']={ StackBottomShiftDown, denom2 },
['cramped_display_style']={ StackBottomDisplayStyleShiftDown, 
 denom1 },
['display_style']={ StackBottomDisplayStyleShiftDown, denom1 },
 },
['stack_num_up']={
['default']={ StackTopShiftUp, num3 },
['cramped_display_style']={ StackTopDisplayStyleShiftUp, num1 },
['display_style']={ StackTopDisplayStyleShiftUp, num1

Re: [NTG-context] Demostrations ala AMS

2009-04-17 Thread Wolfgang Schuster


Am 17.04.2009 um 15:40 schrieb Xan:

The **problem** is how to put qed symbol (for example $\Box$ in my  
case) at the end of demo. I try with after but it's not works: \Box  
appears in the next line at the begginning. Can someone help me?


AFAIK closesymbol=\mathematics{\Box}

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
___


[NTG-context] Numerals in mkiv

2009-04-17 Thread Otared Kavian

Hi Hans,

It seems that Arabic or Persian numerals (for instance in section  
numbers) in mkiv begin at 0, instead of 1… well it is true that in  
Mathematics natural integers begin with 0, but not in books in those  
languages :-)

Here is a minimal example:

\setupdirections[bidi=global]
\pagedir TRT
\bodydir TRT
\pardir TRT
\textdir TRT

\starttypescript[serif][arabic]
\usetypescript[serif][fallback]
\definefontsynonym [Serif][name:SimpleNaskhi] [features=arabic]
\stoptypescript

\starttypescript  [arabic]
  \definetypeface [arabic][rm] [serif] [arabic]  [default]
\stoptypescript

\usetypescript[arabic]
\setupbodyfont[arabic,12pt]

%%
% heading numbers:
   \setuphead[section][conversion=persiannumerals]  
%,numberstyle={arabic}]

%%%

\starttext
\dorecurse{5}{%
\section{بخش}\par
آزمایش
}
\stoptext

Pardon me if I have been missing something already explained elsewhere.

Best regards: OK
___
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] Symbol interferes with floating picture

2009-03-25 Thread Wolfgang Schuster


Am 25.03.2009 um 14:05 schrieb Vyatcheslav Yatskovsky:


Hello,

I defined a command producing itemization symbol:
\def\dash{\symbol[dash]\hskip0.25em}

When I insert floating picture, lines starting with dash symbols  
'ignore' the floating mode and are placed over the picture.


\def\dash{\dontleavehmode\mathematics{-}\hskip.25em\relax}

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] Itemize symbol

2009-03-24 Thread Wolfgang Schuster


Am 24.03.2009 um 23:19 schrieb Vyatcheslav Yatskovsky:

I need a symbol that produces a dash like found in itemizations.  
Standard '--' gives slightly different, light dash. From the  
Acrobat, I know that the font is txsy.


\symbol[dash] or $-$

In the page you specified, there is a trick how to produce diamond  
(\diamond). But there is no \dash symbol defined.



From symb-mis.tex:

\definesymbol [bullet][\mathematics{\bullet}]
\definesymbol [dash]  [\mathematics{-}]
\definesymbol [star]  [\mathematics{\star}]
\definesymbol [triangle]  [\mathematics{\triangleright}]
\definesymbol [circle][\mathematics{\circ}]
\definesymbol [square][\mathematics{\square}]
\definesymbol [diamond]   [\mathematics{\diamond}]

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
___


[NTG-context] \digits

2009-02-24 Thread Wolfgang Schuster
On Sun, Feb 15, 2009 at 5:04 PM, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:
 Hi,

 the \digits command cause a error message with the last beta in MkIV.


 % engine=luatex
 \starttext
 \digits{1.000}
 \stoptext


 ! \textfont 1 is undefined (character :).
 \mathematics #1-\relax \ifmmode #1\else $#1$
                                             \fi
 \doscandigit ...\digitoutputmode ,\else .\fi \fi }
                                                  \egroup
 \digitsep ...x \digitsepbox \hbox {\doscandigit #1
                                                  }\fi \chardef \skipdigit
 0...
 \scandigits #1-\if #1.\digitsep 1
                                  \else \if #1,\digitsep 2\else \if
 #...@\digi...
 \next *#1-\dododohandletokens {#1}
                                   \dohandletokens
 argument 1.
             000
 ...
 l.3 \digits{1.000}


 Best regards,
 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] MkIV \digits bug

2009-02-19 Thread Wolfgang Schuster


Am 15.02.2009 um 17:04 schrieb Wolfgang Schuster:


Hi,

the \digits command cause a error message with the last beta in MkIV.


% engine=luatex
\starttext
\digits{1.000}
\stoptext


! \textfont 1 is undefined (character :).
\mathematics #1-\relax \ifmmode #1\else $#1$
\fi
\doscandigit ...\digitoutputmode ,\else .\fi \fi }
 \egroup
\digitsep ...x \digitsepbox \hbox {\doscandigit #1
 }\fi \chardef  
\skipdigit 0...

\scandigits #1-\if #1.\digitsep 1
 \else \if #1,\digitsep 2\else \if  
#...@\digi...

\next *#1-\dododohandletokens {#1}
  \dohandletokens
argument 1.
000
...
l.3 \digits{1.000}


Best regards,
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
___


[NTG-context] MkIV \digits bug

2009-02-15 Thread Wolfgang Schuster

Hi,

the \digits command cause a error message with the last beta in MkIV.


% engine=luatex
\starttext
\digits{1.000}
\stoptext


! \textfont 1 is undefined (character :).
\mathematics #1-\relax \ifmmode #1\else $#1$
 \fi
\doscandigit ...\digitoutputmode ,\else .\fi \fi }
  \egroup
\digitsep ...x \digitsepbox \hbox {\doscandigit #1
  }\fi \chardef  
\skipdigit 0...

\scandigits #1-\if #1.\digitsep 1
  \else \if #1,\digitsep 2\else \if  
#...@\digi...

\next *#1-\dododohandletokens {#1}
   \dohandletokens
argument 1.
 000
...
l.3 \digits{1.000}


Best regards,
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
___


[NTG-context] Unicode Math - what it is

2009-02-13 Thread Michail Vidiassov

Dear All,

sorry for a stupid question, the unicode math that is about to come
means formula input using Unicode Math instead of tex commands as 
suggested in

Unicode Nearly Plain-Text Encoding of Mathematics

http://www.unicode.org/notes/tn28/UTN28-PlainTextMath-v2.pdf

or use of the Unicode fonts with math ranges in rendering
the result?
BTW, what are the options for getting a unicode math font?
Taking one from MS Office 2007? Waiting for Stix fonts (what happened yo 
them, there seems to be a delay fir yunpublihrt reason.?


 Sincerely, Nichail
___
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] Unicode Math - what it is

2009-02-13 Thread Yue Wang
Hi,

On Wed, Feb 11, 2009 at 5:04 AM, Michail Vidiassov mas...@iaas.msu.ru wrote:
 Dear All,

 sorry for a stupid question, the unicode math that is about to come
 means formula input using Unicode Math instead of tex commands as suggested
 in
 Unicode Nearly Plain-Text Encoding of Mathematics

Yes, you can do that in XeTeX.
(I don't think this is a good idea to do so. math characters are
difficult to input using standard keyboard.)



 http://www.unicode.org/notes/tn28/UTN28-PlainTextMath-v2.pdf

 or use of the Unicode fonts with math ranges in rendering
 the result?

You should be very careful by doing so.

Math support is very different from standard text.
It requires more parameters than normal text to determine the position
of the glyphs (normal fonts won't contain these information).
Yes, you can use these fonts, but for most of the time you will get
ugly results.


 BTW, what are the options for getting a unicode math font?

There is an OpenType Math font naming Asana Math which is free
available on CTAN.

 Taking one from MS Office 2007?

Yes. ConTeXt also provides typescript for that.

 Waiting for Stix fonts (what happened yo
 them, there seems to be a delay fir yunpublihrt reason.?


Maybe you should wait for the TeX Gyre Math font. However, I think TG
fonts still need improvements.



 Sincerely, Nichail
 ___
 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
 ___


Yue Wang
___
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] Unicode Math - what it is

2009-02-13 Thread Mojca Miklavec
On Tue, Feb 10, 2009 at 10:04 PM, Michail Vidiassov wrote:
 Dear All,

 sorry for a stupid question, the unicode math that is about to come
 means formula input using Unicode Math instead of tex commands as suggested
 in
 Unicode Nearly Plain-Text Encoding of Mathematics

 http://www.unicode.org/notes/tn28/UTN28-PlainTextMath-v2.pdf

No. No in the sense that it's just about support for modern math fonts
(that are about to come). Users should not notice the difference in
general, for example when using plain math with LM, Antykwa, TeX
Gyre (px, tx), ...

The answer to your question might as well be a tiny bit of yes because
I'm not sure what exactly you are asking. The side effect of this
transition is also that you should be able to use mathematical greek
italic alpha instead of \alpha or α, or mathematical italic letter a
instead of just plain $a$, but I doubt that any sane user would want
to do that by typing those characters directly with a keyboard.

I have an impression that the document (even thoug the page is not
accessible) is about the way to input math in Word. Is there any
feature in TeX (input) that you are missing?

 or use of the Unicode fonts with math ranges in rendering
 the result?

Yes.

 BTW, what are the options for getting a unicode math font?
 Taking one from MS Office 2007? Waiting for Stix fonts (what happened yo
 them, there seems to be a delay fir yunpublihrt reason.?

Stix is not (and probably will not be) supported unless someone else
writes support for those fonts or unless they publish the proper
OpenType version. You can already use Cambria Math or Asana Math in
mkiv with the non-released LuaTeX with ConTeXt beta from Pragma.

Other math fonts (LM, px, tx, ...) are currently remapped to the
proper Unicode range to make them behave as if they were proper
OpenType math fonts. But they still need some testing and fixes.

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


Re: [NTG-context] Unicode Math - what it is

2009-02-13 Thread Joel C. Salomon
On Tue, Feb 10, 2009 at 4:04 PM, Michail Vidiassov mas...@iaas.msu.ru wrote:
 Unicode Nearly Plain-Text Encoding of Mathematics
 http://www.unicode.org/notes/tn28/UTN28-PlainTextMath-v2.pdf

Unicode Tech Note #28 is completely unrelated to TeX. It is a
suggestion for a different method of encoding math, distinct from TeX,
MathML, c., but with the advantage that it looks nearly like plain
(Unicode) text. The paper was written by Murray Sargent of Microsoft,
who works with the MS Office Math component and maintains a blog about
it at http://blogs.msdn.com/murrays/. The input to Office 2007+ Math
is based on this paper, and you can in fact switch an equation in Word
between display and linear formats. (The internal format is
XML-based OMML.)

—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] Unicode Math - what it is

2009-02-13 Thread Michail Vidiassov
Dear Mojca and All,

 sorry for a stupid question, the unicode math that is about to come
 means formula input using Unicode Math instead of tex commands as
 suggested in Unicode Nearly Plain-Text Encoding of Mathematics

 The answer to your question might as well be a tiny bit of yes because
 I'm not sure what exactly you are asking. The side effect of this
 transition is also that you should be able to use mathematical greek
 italic alpha instead of \alpha or α, or mathematical italic letter a
 instead of just plain $a$, but I doubt that any sane user would want to do
 that by typing those characters directly with a keyboard.

 I have an impression that the document (even thoug the page is not
 accessible) is about the way to input math in Word. Is there any feature in
 TeX (input) that you are missing?

Alternative URL is
http://www.activemath.org/workshops/MathUI/07/proceedings/Sargent-TwoSyntaxes-MathUI07.pdf

And the system described is that tiny bit of yes on steroids -
not only variables, but also operators, like using the unicode N-ARY
SUMMATION instead of \sum

As to the user sanity - inconvenient input may be balanced by easy reading -
if formulae get very long math symbols come convenient.
And no need to give up typing in favour of mousing things out of glyph
tables - replace on input or search-and-replace on command are in almost
any editor nowdays, to say nothing of sed.

 BTW, what are the options for getting a unicode math font?
 Taking one from MS Office 2007? Waiting for Stix fonts

 Stix is not (and probably will not be) supported
Are there any information about their plans to release anything?
They promised to make fonts proper after beta release, but later
turned silent.
 You can already use Cambria Math or Asana Math in mkiv with the
 non-released LuaTeX with ConTeXt beta from Pragma.
How? What are the typescripts?

   Sincerely, Michail

___
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] What is wrong with this flowchart

2009-02-13 Thread Cecil Westerhof
2009/2/13 Yue Wang yuleo...@gmail.com:
 Please upgrade your ConTeXt distribution.

I have done this, but it has an unexpected side effect. A tex-file
that worked without a problem, now gives:
systems : begin file NPW at line 130
! Math formula deleted: Insufficient symbol fonts.
\mathematics #1-\relax \ifmmode #1\else $#1$
 \fi
\dodosymbol ...bol \csname \??ss :#1:#2\endcsname
  \relax }\relax
\donormalsymbol ...bol \redosymbol \currentsymbol
  \fi \fi
to be read again
   \relax
\dodosymbol ...name \??ss :#1:#2\endcsname \relax
  }\relax
\donormalsymbol ...bol \redosymbol \currentsymbol
  \fi \fi
...
l.136 \item G
 een dierenasiel

On line 130 it says: \starttext.
How do I find which fonts it is missing? And where do I get them?

-- 
Cecil Westerhof
___
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] Newcomer bibliography question

2008-12-31 Thread Andrey Riabushenko
-91},
  language={ukrainian},
}

@Article{binomial-tree,
  author={Cox, John C. and Ross, Stephen A. and Rubinstein, Mark},
  title={Option Pricing: A Simplified Approach},
  journal={Journal of Financial economics},
  year=1979,
  volume={7},
  number={3},
  pages={229-263},
  LANGUAGE={ukrainian} 
}


@PHDTHESIS {
japan,
AUTHOR=Thomas Lux and Taisei Kaizoji,
TITLE=Forecasting Volatility and Volume in the Tokyo Stock Market: Long Memory, Fractality and Regime Switching,
SCHOOL=Department of Economics. University of Kiel,
ADDRESS=Olshausenstr. 40, 24118 Kiel, Germany,
YEAR=2006
}

@MANUAL {
	msm,
	AUTHOR=Thomas Lux,
	TITLE=The Markov-Switching Multifractal Model of Asset Returns: GMM Estimation and Linear Forecasting of Volatility,
	ORGANIZATION=Department of Economics. University of Kiel,
	ADDRESS=Olshausenstr. 40, 24118 Kiel, Germany,
	YEAR=2006
}	


@MANUAL {
	perevoz,
	AUTHOR=Vladislav Perevozchikov,
	TITLE=Which Companies Go Public in Ukraine,
	ORGANIZATION=Economics education and research consortium,
	YEAR=2007
}	



@MANUAL {
calvet,
AUTHOR=Laurent Calvet and Adlai Fisher,
TITLE=Regime-Switching and the Estimation of Multifractal Processes,
ORGANIZATION={Harvard University. Cambridge, Massachusetts},
YEAR=2004,
}

@ARTICLE {
calvet2,
AUTHOR=Laurent Calvet and Adlai Fisher,
TITLE=Forecasting Multifractal Volatility,
JOURNAL=Journal of Econometrics,
VOLUME=44,
YEAR=2001
}


@ARTICLE {
calvet3,
AUTHOR=Laurent Calvet and Adlai Fisher,
TITLE=Multifractalily in Asset Returns: Theory and Evidence,
JOURNAL=The Review of Economics and Statistics,
VOLUME=31,
YEAR=2002
}

@ARTICLE {
garch,
AUTHOR=T. Bollerslev,
TITLE=Generalized Autoregressive Conditional Heteroskedasticity,
JOURNAL=Journal of Econometrics,
VOLUME=31,
YEAR=1986
}

@ARTICLE {
arch,
AUTHOR=R. F. Engle,
TITLE=Autoregressive Conditional Heteroskedasticity with Estimates of the Variance of United Kingdom Inflation,
JOURNAL=Econometrica,
VOLUME=50,
YEAR=1982
}

@ARTICLE {
mad-optim,
TITLE=A Reformulation of a Mean-Absolute Deviation Portfolio Optimization Model,
AUTHOR=Charles D. Feinstein and Mukund N. Thapa,
JOURNAL=Management Science,
VOLUME=39,
YEAR=1993,
PAGES={1552--1553}
}

@ARTICLE {
sharpe,
AUTHOR = William F. Sharpe,
TITLE=Mutual Fund Performance Measurement,
JOURNAL=Journal of Bussiness,
YEAR=1966,
PAGES={118--138}
}

@ARTICLE {
accuracy,
AUTHOR = Rob J. Hyndman and Anne B. Koehler,
TITLE = Another Look of Measures of Forecast Accuracy,
JOURNAL = {International Journal of Forecasting},
YEAR = 2006,
VOLUME = 22,
PAGES = {679--688}
}

@MANUAL {
mandelbrot1,
AUTHOR = Benoit Mandelbrot,
TITLE=The Fractal Geometry of Nature,
ORGANIZATION=W.H. Freeman and Company, New York,
YEAR=1977
}

@MANUAL {
kaye,
AUTHOR = Brian Kaye,
TITLE=A Random Walk Through Fractal Dimensions,
ORGANIZATION=VCH Publishers, New York,
YEAR=1989
}

@MANUAL {
   falconer,
   AUTHOR = K. Falconer,
   TITLE = Geometry of Fractal Sets,
   ORGANIZATION = Cambridge University Press,
   YEAR=1985
}

@MANUAL {
mandelbrot,
AUTHOR=Benoit Mandelbrot and Adlai Fisher and Laurent Calvet,
TITLE=A Multifractal Model of Asset Returns,
ORGANIZATION={Department of Mathematics, Yale University and IBM T. J. Watson Research Center},
YEAR=1996,
MONTH=oct
}



@MANUAL {
rproject,
title = {R: A Language and Environment for Statistical Computing},
author = {{R Development Team}},
organization = {R Foundation for Statistical Computing},
address = {Vienna, Austria},
year = {2006},
note = {{ISBN} 3-900051-07-0},
url = {http://www.R-project.org},
}

@BOOK {
	peters,
	AUTHOR=Edgar E. Peters,
	TITLE=Chaos and Order in the Capital Markets,
	PUBLISHER=John Wiley \ Sons, Inc,
	YEAR=1994
}

@BOOK {
	peters2,
	AUTHOR=Edgar E. Peters,
	TITLE=Fractal Market Analysis. Applying Chaos Theory to Investment and Economics,
	PUBLISHER=John Wiley \ Sons, Inc,
	YEAR=1991
}


@BOOK {
	taylor,
	AUTHOR=S. Taylor,
	TITLE=Modelling Financial Time Series,
	PUBLISHER=John Wiley \ Sons, Inc,
	YEAR=1986
}

@BOOK {
	ga,
	AUTHOR=Lance D. Chambers,
	TITLE=The practical handbook of genetic algortihms, Applications.,
	PUBLISHER=Chapman \ Hall/CRC,
	YEAR=2001
}
___
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] Unescaped $ and in texts

2008-12-17 Thread Aditya Mahajan

On Wed, 17 Dec 2008, Wolfgang Schuster wrote:


Can't we add a new mode to ConTeXt to use $ and  in text
without escaping them with a backslash,  is not needed
to write tables and for inline math \formula could be used.


Also add # to the list. Basically, we can just define a catcode regime 
where only \ { and } are special. Inside math mode (activated by \formula, 
\math, \mathematics, or \startformula) we can switch to a catcode regime 
where _ and ^ are also set to appropriate catcodes. I would go as far as 
to say that we should make this default, but I don't think everyone will 
like that. So, for me a \justwritenaturally macro will do :-)


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] Unescaped $ and in texts

2008-12-17 Thread Wolfgang Schuster


Am 17.12.2008 um 21:46 schrieb Aditya Mahajan:


On Wed, 17 Dec 2008, Wolfgang Schuster wrote:


Can't we add a new mode to ConTeXt to use $ and  in text
without escaping them with a backslash,  is not needed
to write tables and for inline math \formula could be used.


Also add # to the list. Basically, we can just define a catcode  
regime where only \ { and } are special. Inside math mode (activated  
by \formula, \math, \mathematics, or \startformula) we can switch to  
a catcode regime where _ and ^ are also set to appropriate catcodes.  
I would go as far as to say that we should make this default, but I  
don't think everyone will like that. So, for me a  
\justwritenaturally macro will do :-)


I wasn't sure if I should add # to the list bit it makes sense.

\nonknuthmode takes care to tread _ and ^ as subscript and superscript
in math mode and as normal chars in text mode.

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] Unescaped $ and in texts

2008-12-17 Thread Hans Hagen

Aditya Mahajan wrote:

On Wed, 17 Dec 2008, Wolfgang Schuster wrote:


Can't we add a new mode to ConTeXt to use $ and  in text
without escaping them with a backslash,  is not needed
to write tables and for inline math \formula could be used.


Also add # to the list. Basically, we can just define a catcode regime 
where only \ { and } are special. Inside math mode (activated by 
\formula, \math, \mathematics, or \startformula) we can switch to a 
catcode regime where _ and ^ are also set to appropriate catcodes. I 


there is already \nonknuthmode -)

would go as far as to say that we should make this default, but I don't 
think everyone will like that. So, for me a \justwritenaturally macro 
will do :-)


we can discuss this some time next year or so; it is slightly more 
complex than changing a few catcoded because we need to make sure that 
modules etc are loaded under a different catcode regime then


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
___


Re: [NTG-context] bug: \bot and \top in markiv

2008-11-20 Thread Aditya Mahajan

On Thu, 20 Nov 2008, Chen Shen wrote:


Hi,

A small problem: the definition of \bot and \top in math mode should
be interchanged. Thanks.


Thanks for reporting this.

Hans, in math-ini.lua the unicode slots for top and bot are interchanged
(char-ini.lua is correct). top is 0x22A5 (Unicode DOWN TACK) and bot is 
0x22A4 (Unicode TOP TACK). Who came up with these unicode names.


Chen, if you want an immediate solution, replace math-ini.lua with the 
attached file and regenerate formats.


Adityaif not modules then modules = { } end modules ['math-ini'] = {
version   = 1.001,
comment   = companion to math-ini.tex,
author= Hans Hagen, PRAGMA-ADE, Hasselt NL,
copyright = PRAGMA ADE / ConTeXt Development Team,
license   = see context related readme files
}

--[[ldx--
pMath definitions. This code may move./p
--ldx]]--

-- if needed we can use the info here to set up xetex definition files
-- the 8000 hackery influences direct characters (utf) as indirect \char's

local texsprint, format, utfchar, utfbyte = tex.sprint, string.format, 
utf.char, utf.byte

mathematics   = mathematics   or { }
mathematics.data  = mathematics.data  or { }
mathematics.slots = mathematics.slots or { }

mathematics.classes = {
ord = 0,  -- mathordcomm mathord
op  = 1,  -- mathopcomm  mathop
bin = 2,  -- mathbincomm mathbin
rel = 3,  -- mathrelcomm mathrel
open= 4,  -- mathopencommmathopen
close   = 5,  -- mathclosecomm   mathclose
punct   = 6,  -- mathpunctcomm   mathpunct
alpha   = 7,  -- mathalphacomm   firstofoneargument
accent  = 8,
radical = 9,
inner   = 0,  -- mathinnercomm   mathinner
nothing = 0,  -- mathnothingcomm firstofoneargument
choice  = 0,  -- mathchoicecomm  @@mathchoicecomm
box = 0,  -- mathboxcomm @@mathboxcomm
limop   = 1,  -- mathlimopcomm   @@mathlimopcomm
nolop   = 1,  -- mathnolopcomm   @@mathnolopcomm
}

mathematics.classes.alphabetic  = mathematics.classes.alpha
mathematics.classes.unknown = mathematics.classes.nothing
mathematics.classes.punctuation = mathematics.classes.punct
mathematics.classes.normal  = mathematics.classes.nothing
mathematics.classes.opening = mathematics.classes.open
mathematics.classes.closing = mathematics.classes.close
mathematics.classes.binary  = mathematics.classes.bin
mathematics.classes.relation= mathematics.classes.rel
mathematics.classes.fence   = mathematics.classes.unknown
mathematics.classes.diacritic   = mathematics.classes.accent
mathematics.classes.large   = mathematics.classes.op
mathematics.classes.variable= mathematics.classes.alphabetic
mathematics.classes.number  = mathematics.classes.nothing

mathematics.families = {
mr = 0, bs  =  8,
mi = 1, bi  =  9,
sy = 2, sc  = 10,
ex = 3, tf  = 11,
it = 4, ma  = 12,
sl = 5, mb  = 13,
bf = 6, mc  = 14,
nn = 7, md  = 15,
}

mathematics.families.letters   = mathematics.families.mr
mathematics.families.numbers   = mathematics.families.mr
mathematics.families.variables = mathematics.families.mi
mathematics.families.operators = mathematics.families.sy
mathematics.families.lcgreek   = mathematics.families.mi
mathematics.families.ucgreek   = mathematics.families.mr
mathematics.families.vargreek  = mathematics.families.mi
mathematics.families.mitfamily = mathematics.families.mi
mathematics.families.calfamily = mathematics.families.sy

mathematics.families[0] = mathematics.families.mr
mathematics.families[1] = mathematics.families.mi
mathematics.families[2] = mathematics.families.sy
mathematics.families[3] = mathematics.families.ex

function mathematics.mathcode(target,class,family,slot)
if class = 7 then
return (\\omathcode%s=\%X%02X%04X ):format(target,class,family,slot)
end
end
function 
mathematics.delcode(target,small_family,small_slot,large_family,large_slot)
return (\\odelcode%s=\%02X%04X\%02X%04X 
):format(target,small_family,small_slot,large_family,large_slot)
end
function mathematics.radical(small_family,small_slot,large_family,large_slot)
return (\\radical%s=\%02X%04X%\02X%04X 
):format(target,small_family,small_slot,large_family,large_slot)
end
function mathematics.mathchar(class,family,slot)
return (\\omathchar\%X%02X%04X ):format(class,family,slot)
end
function mathematics.mathaccent(class,family,slot)
return (\\omathaccent\%X%02X%04X ):format(class,family,slot)
end
function mathematics.delimiter(class,family,slot,largefamily,largeslot)
return (\\odelimiter\%X%02X%04X\%02X%04X 
):format(class,family,slot,largefamily,largeslot)
end
function mathematics.mathchardef(name,class,family,slot) -- we can avoid this 
one
return (\\omathchardef\\%s\%X%02X%04X ):format(name,class,family,slot)
end

function 
mathematics.setmathsymbol(name,class,family,slot,largefamily,largeslot,unicode)
class = mathematics.classes[class] or class -- no real checks needed
family

Re: [NTG-context] PhD Thesis in ConTeXt

2008-10-23 Thread Marcin Borkowski
Dnia Thu, Oct 23, 2008 at 04:37:23PM +0200, Taco Hoekwater napisa#322;(a):
 
 Hi,
 
 Aditya Mahajan wrote:
  On Wed, 22 Oct 2008, Alan BRASLAU wrote:
  
  My question to the mailing list: is this task structured? Is this being
  managed by anyone?
  
  Unfortunately, not. 
 
 Aditya's reply sums it up pretty well. I just want to add a quick note.
 
 After at least half a dozen reiterations of this discussion (and it
 is indeed always exactly the same discussion), I have now reached the
 point where I no longer feel the slightest need to take any action any
 more. From where I stand, it seems that the unhappy people just want
 to complain about, but are not willing to help improve the existing
 documentation, and that the happy people just want to post pointers
 but fail to see a real need to improve anything.

I'm (relatively) new here (I've been subscribed to the list for a few
years, but only recently started to use ConTeXt more seriously), but I'd
like to take the risk and add my point of view.

I miss a good documentation *a lot*.  OTOH, if I were to choose among
the uber-community and uber-manual, I'd prefer the first one (maybe
that's why people prefer the status quo;)).

I would love to help improve the existing docs, though.  Having
uber-manuals *and* uber-community would smash this poor LaTeX-thing out
of the market;P.

The question is: what do I do?  I post something to the wiki from time
to time, but I don't want to engage myself too much - I'm currently
involved in at least one *big* project (which is, btw, connected with
writing some LaTeX document classes); together with my work (doing and
teaching mathematics) this takes *a lot* of time...  What's more, I
can't really help writing manuals for something I don't completely
understand...

 I myself would be much more willing to spend time on (managing|writing)
 the manual if there were any people showing an active interest in it.

Assume that I finally learn how to use that SVN thing and that I try (in
some indefinite time, though) post my remarks on the existing docs, my
examples of files so that they could be either introduced into the
manuals or deemed non-ConTeXt-esque enough;) or my suggestions of
rewriting something: would this help?

And a general remark: of course, my point is not to wipe out LaTeX.  It
has its place.  But popularizing ConTeXt would be great (and I'm doing
it all the time among my friends!).  And good manuals are a *must*
then...  Obviously, writing a good manual takes really much time (and
from some point of view is harder than actually writing code, I guess -
it's very similar in maths, when it's way easier to jot down some notes
for yourself than to prepare some proof for actual publication...)  As I
said before (in another post), it's completely obvious for me that
neither Hans nor you, Taco, have time for writing a good
documentation...

 Best wishes,
 Taco

Best,

-- 
Marcin Borkowski (http://mbork.pl)


___
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] Miktex

2008-09-30 Thread David Arnold

Mojca,

I saw your note on blog.miktex.org:

If you still want to run ConTeXt on MikTeX while it has been removed,  
you may create a file texmfstart.bat in C:\Program Files\MiKTeX 2.7 
\miktex\bin with the content:


@echo off
ruby C:\Program Files\MiKTeX 2.7\scripts\context\ruby\texmfstart.rb  
%*


and extract www.pragma-ade.com/context/current/cont-tmf.zip into C: 
\Program Files\MiKTeX 2.7. Then, update filename database and  
generate formats, and everything should work again.


Mojca

I followed this advice, installed texmfstart.bat, unzipped cont- 
tmf.zip properly, updated the filename database, then got stuck.


At the dos prompt:

$ texmfstart --help

Worked just fine. However,

$ texmfstart texexec --help

Did not work. What am I missing? If I recall I'll need to do:

$ texmfstart texexec --make --all

Or some such thing.




David Arnold
College of the Redwoods
Mathematics Department
Eureka, CA 95501
(707) 476-4222
http://online.redwoods.edu/instruct/darnold/


___
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] Experience on writing a thesis with MKIV

2008-09-28 Thread Mikael Persson
Wow, that looks very nice!

I hope you do not feel I am stealing your thread now (I do not mean
to). I did also finish my thesis (in mathematics) recently, written
in ConTeXt. For this I had a lot of help with your doc Using
\startalign and friends, thank you.

The thesis is available at

http://www.math.chalmers.se/~mickep/mp-thesis-final.pdf

and a short presentation of the third paper

http://www.math.chalmers.se/~mickep/pres.pdf

Some comments:
* At our university the thesis should be printed on the (not really
standard) G5 paper. No problem in defining and using it with ConTeXt.
* The bibliography uses Taco's module. I am happy of being able to
have different bibliographies in one file.
* As a mathematician I was a bit tired of the computer modern fonts (I
really like them, but I see them to often), so I decided to go with
the utopia/fourier fonts. This forced me to work with mkii, since I
did not get these fonts to work with mkiv (This is still a problem, I
am not sure how to go on with it for future documents).
* Typesetting math worked very smoothly. There is one place where I
hade to add some negative vertical space (I could not reproduce this
in a minimal file).
* I'm very happy with the way MetaPost and ConTeXt work together.
* The presentation is inspired by Thomas A. Schmitz' files at
http://www.tug.org/pracjourn/2006-2/schmitz/ (thanks!)
* The presentation uses Wolfram's Mathematica fonts which I find being
very clear.

I will happily continue to use ConTeXt in future projects.

/Micke P

On Sat, Sep 27, 2008 at 6:35 PM, Aditya Mahajan [EMAIL PROTECTED] wrote:
 Hi everyone,

 I finished my thesis, writing both my thesis and my presentation using
 ConTeXt.

 Thesis: http://www.eecs.umich.edu/~adityam/publications/thesis/thesis.pdf

 Source:
 http://www.eecs.umich.edu/~adityam/publications/thesis/thesis.tar.gz

 Presentation:
 http://www.eecs.umich.edu/~adityam/publications/thesis/thesis-presentation.pdf

 Overall it was a pleasant experience, but there were some difficulties. I
 am summarizing my experience here. Hopefully, others will find it useful.

 * Layout and Formatting: It was extremely simple to set up the layout and
 formatting according to the thesis specifications. Due to the ease of
 changing formatting, I experimented quite a bit with the formatting before
 settling down to what is in the thesis (The school wanted nothing
 fancy).

 * Organizing large projects: The product-component structure made it easy
 to work on single chapters. However, I could not get correct numbering for
 the components (If I compiled chapter-02, it got numbered 1). In the end,
 I was just compiling the whole thesis at the time, since it was pretty
 fast (~10 sec).

 * Fonts: Using different fonts with MKIV was really easy. For the
 presentation, I did have some trouble in getting Euler to work with the
 minimals. Hopefully, this will be corrected soon.

 * Math: The math alignments worked very nicely, but I had to do a lot of
 manual tweaking at a lot of places. Also, equations seem to like to have a
 tendency of starting on a new page. I tried changing penalties for
 predisplay and postdisplay (which are set to zero), but it invariably led
 to bad page breaks at other places.

  At some places, the equation overlapped with the previous material. I am
 not sure what was causing this (medium interline spacing, wrong
 calculation of the width of the previous line, or something else). In the
 end, I simply put a few manual \break[small] here and there.

  Being able to write unicode math made simplified reading math markup.

 * Metapost: TeX-MP interaction is fast and easy. However, debugging
 metapost errors is difficult because context does not stop compiling on
 encountering a metapost error.

 * Bibliography. For a large part, the bib module was very easy. In the
 end, there were a few glitches with the formatting of the bibliography
 (too title space between entries) which I had to manually correct. (Look
 for \help inside the bbl file).

  The bbl file sorted authors with multiple entries incorrectly. If I had
 authors with four publications in a year, say 2000, the came out as 2000d,
 2000c, 2000b, 2000a. I wanted 2000a, 2000b, 2000c, and 2000d, so in the
 end I just edited the bbl file by hand.

  There was also problem with maybe year. If I had 2000a and 2000b in the
 bib file, but only referred to 2000b in the thesis, the year came out as
 2000b rather than 2000. For this also, I edited the bbl file by hand.


 Overall, ConTeXt made writing the thesis fairly easy. I mean the
 typesetting part of it. For those who are wondering, ConTeXt does not help
 with the content of the thesis :-) I would like to thank Hans and Taco for
 providing ConTeXt and everyone on the mailing list for answering my
 various questions.


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

Re: [NTG-context] Context on Miktex

2008-09-20 Thread Martin Scholz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

David Arnold schrieb:
 All,
 
 On http://blog.miktex.org/post/2008/05/ConTeXt-support.aspx I read that
 Miktex version of Context is broken. I also read Mojca's workaround,
 pasted below. Has anyone tried this and does it work? Any conflicts or
 difficulties?
 
 Second question: Can I get mptopdf to work in the Miktex tree without
 installing Context?
 
 Mojca's workaround:
 
 May 31. 2008 00:37
 
 
 If you still want to run ConTeXt on MikTeX while it has been removed,
 you may create a file texmfstart.bat in C:\Program Files\MiKTeX
 2.7\miktex\bin with the content:
 
 
 @echo off
 ruby C:\Program Files\MiKTeX 2.7\scripts\context\ruby\texmfstart.rb %*
 
 
 and extract www.pragma-ade.com/context/current/cont-tmf.zip
 http://www.pragma-ade.com/context/current/cont-tmf.zip into C:\Program
 Files\MiKTeX 2.7. Then, update filename database and generate formats,
 and everything should work again.
 
 Mojca
 
 Mojca
 
 
 David Arnold
 College of the Redwoods
 Mathematics Department
 Eureka, CA 95501
 (707) 476-4222
 http://online.redwoods.edu/instruct/darnold/
 
 
 
 
 
 ___
 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
 ___

Hi David,

I had the same problem and now totaly switched from miktex to texlive.
Texlive has context in a new version in it and up to date a online
installer so that you only need about 2 MB for the first download and
the rest will come by launching the installer.
My advice would be to switch away from miktex to texlive it now has the
same onlineupdatefunktion as miktex.

Greetings
Martin
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFI1ZmYyi7jREQ9xVsRAg7hAJoC0Tess/lXGkmSNBrpzM82IMUWegCgg+Zf
14VhnMx9Yqr16mMaEtQZRLU=
=xtMm
-END 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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Feature request: \newitemize or something like this

2008-09-01 Thread Wolfgang Schuster
On Wed, Aug 27, 2008 at 10:12 AM, Wolfgang Schuster
[EMAIL PROTECTED] wrote:
 On Wed, Aug 27, 2008 at 10:03 AM, Marcin Borkowski
 [EMAIL PROTECTED] wrote:
 Hi there!

 I have a feature request (or a question how to do it;)) concerning
 itemizations.  Currently, they are much like LaTeX (say, with the
 enumitem package).  I think this is not the best idea.  I can hardly
 imagine using more than two levels of itemize in my documents; on the
 other hand, I like to introduce different kinds of itemize on the
 _first_ level.  Imagine I'm typesetting a paper on mathematics (which
 I'm doing all the time;)).  I want another kind of itemize for lists of:
 * equivalent conditions (as in: the following are equivalent: ...);
 * statements connected by an or clause (as in: at least one of these
  holds: ...;
 * statements connected by an and clause (as in: assume that these
  conditions are satisfied: ...).

 What I usually do (in LaTeX) is to define a few environments, like
 equivenumerate, orenumerate, andenumerate etc., and make them use
 (a), (b), ..., (i), (ii), ..., or (1), (2), ... respectively.  This way
 I have a clear visual clue in my papers on what's going where, and on
 the other hand, I separate content and presentation.

 Would it be possible in ConTeXt?  If yes, how to do this?  Maybe it's
 worth mentioning in the new manual?

 (As usual, I'll try to post the answer on the wiki when I have some
 spare time!)


 Take a look at page 20.

 http://wolfgang.schuster.googlepages.com/erlangen.pdf

The source is also available: http://wolfgang.schuster.googlepages.com/baytex

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
___


[NTG-context] Feature request: \newitemize or something like this

2008-08-27 Thread Marcin Borkowski
Hi there!

I have a feature request (or a question how to do it;)) concerning
itemizations.  Currently, they are much like LaTeX (say, with the
enumitem package).  I think this is not the best idea.  I can hardly
imagine using more than two levels of itemize in my documents; on the
other hand, I like to introduce different kinds of itemize on the
_first_ level.  Imagine I'm typesetting a paper on mathematics (which
I'm doing all the time;)).  I want another kind of itemize for lists of:
* equivalent conditions (as in: the following are equivalent: ...);
* statements connected by an or clause (as in: at least one of these
  holds: ...;
* statements connected by an and clause (as in: assume that these
  conditions are satisfied: ...).

What I usually do (in LaTeX) is to define a few environments, like
equivenumerate, orenumerate, andenumerate etc., and make them use
(a), (b), ..., (i), (ii), ..., or (1), (2), ... respectively.  This way
I have a clear visual clue in my papers on what's going where, and on
the other hand, I separate content and presentation.

Would it be possible in ConTeXt?  If yes, how to do this?  Maybe it's
worth mentioning in the new manual?

(As usual, I'll try to post the answer on the wiki when I have some
spare time!)

-- 
Marcin Borkowski (http://mbork.faculty.fmcs.amu.edu.pl)

___
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] Feature request: \newitemize or something like this

2008-08-27 Thread Wolfgang Schuster
On Wed, Aug 27, 2008 at 10:03 AM, Marcin Borkowski
[EMAIL PROTECTED] wrote:
 Hi there!

 I have a feature request (or a question how to do it;)) concerning
 itemizations.  Currently, they are much like LaTeX (say, with the
 enumitem package).  I think this is not the best idea.  I can hardly
 imagine using more than two levels of itemize in my documents; on the
 other hand, I like to introduce different kinds of itemize on the
 _first_ level.  Imagine I'm typesetting a paper on mathematics (which
 I'm doing all the time;)).  I want another kind of itemize for lists of:
 * equivalent conditions (as in: the following are equivalent: ...);
 * statements connected by an or clause (as in: at least one of these
  holds: ...;
 * statements connected by an and clause (as in: assume that these
  conditions are satisfied: ...).

 What I usually do (in LaTeX) is to define a few environments, like
 equivenumerate, orenumerate, andenumerate etc., and make them use
 (a), (b), ..., (i), (ii), ..., or (1), (2), ... respectively.  This way
 I have a clear visual clue in my papers on what's going where, and on
 the other hand, I separate content and presentation.

 Would it be possible in ConTeXt?  If yes, how to do this?  Maybe it's
 worth mentioning in the new manual?

 (As usual, I'll try to post the answer on the wiki when I have some
 spare time!)


Take a look at page 20.

http://wolfgang.schuster.googlepages.com/erlangen.pdf

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
___


[NTG-context] Some Progress on Installing mswincontext.zip

2008-08-27 Thread David Arnold

All,

As Idris and Hans expected, Ruby was the culprit. I had installed  
Ruby before downloading mswincontext.zip, as that was what I used to  
do in the old days with a Miktex installation.


After following exactly these directions:  http:// 
blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/173018


Scite now works on context documents.

I tried to add metapost.properties to the global with import  
metapost. I can Build a file, but the Go command does not work  
because I don't have gv installed. So I opened metapost.properties  
and tried changing the gv command to gsview32 (and even tried c: 
\Program Files\ghostgum\gsview\gsview32.exe), but neither worked.


Any suggestions how I can get the go command to work?

Secondly, what would I do to compile a metapost file in scite  
directly into PDF? I am aware of context way with processMPbuffer and  
other assorted tricks, and I am aware of mptopdf, but what I am  
looking for is to configure Scite to compile the metapost file and  
open it in acrobat reader.


Here is the test file I am trying to compile.

beginfig(1);

numeric u; 10u=4in;
drawdblarrow (-5u,0)--(5u,0);
drawdblarrow (0,-5u)--(0,5u);

endfig;

end.

David Arnold
College of the Redwoods
Mathematics Department
Eureka, CA 95501
(707) 476-4222
http://online.redwoods.edu/instruct/darnold/


___
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] MacTex Update

2008-08-22 Thread Otared Kavian

Hi David,

Recently I updated to MacTeX 2008 which can be found at (thanks to  
Mojca…)

www.uoregon.edu/~koch/MacTeX-2008.mpkg.zip

After that, in a Terminal window I just did the usual thing:
sudo ctxtools --updatecontext
and my ConTeXt installation was updated smoothly.

In order to update as well LuaTeX (which doesn't work out of the box),  
I have written a script named generate-lua containing the following  
lines:


%%% begin file generate-lua

source ok-lua
cd /usr/local/texlive/texmf-local/scripts/context/lua
sudo chmod 755 mtxrun.lua
sudo chmod 755 luatools.lua
cd
mtxrun --selfupdate
luatools --selfupdate
luatools --generate
luatools --ini --verbose --compile cont-en
texexec --make --luatex en

%%% end file generate-lua

Then, when I need to have a working LuaTeX, in a Terminal window I say
sh generate-lua

In the above script another file is sourced, namely the file ok- 
lua (also sourced at each opening of a Terminal window, since I  
have added the command source ok-lua into my .bashrc file) and it  
contains the following lines:


%%% begin file ok-lua

export TEXMFCACHE=/tmp
export TEXMFCNF=/usr/local/texlive/2008/texmf/web2c/
export TEXMF={/Users/kavian/Library/texmf,/usr/local/texlive/2008/ 
texmf-config,
/usr/local/texlive/2008/texmf-var,/usr/local/texlive/2008/../texmf- 
local,/usr/local/texlive/2008/texmfdist,/usr/local/texlive/2008/texmf,/ 
usr/local/texlive/texmf-local}
export LUAINPUTS={/usr/local/texlive/texmf-local/tex/context/base,/ 
usr/local/texlive/texmf-local/scripts/context/lua}

export OSFONTDIR={/Users/kavian/Library/Fonts,/Library/Fonts}
export TEXMFSCRIPTS={$TEXMF/scripts/context/,$TEXMF/tex/context/base}

%%% end file ok-lua
(In case you copy and paste the above lines, beware of the wrong  
linebreaks due to the e-mail client).
In order to update to the latest binary of LuaTeX itself, I use svnX  
which can be found at


http://www.apple.com/downloads/macosx/development_tools/svnx.html

Using this application svnX one goes to the following URL in the  
window called Repositories


svn://scm.foundry.supelec.fr/svn/luatex

(one's User name is one's name, and the Password is one's e-mail  
address).
Then you download the latest trunk, and once the download is done,  
you say

sh build.sh
which builds a binary on your machine. Then you copy the binaries  
created with the above command (the script tells you where the  
binaries have been created), into

/usr/texbin/
(at this point you need to copy with sudo).

I have done this several times and I haven't had any problem… for the  
last two weeks :-)
Then if again something changes in the futur, our gurus (who are lucky  
enough to be at the meeting in Slovenia…) will help us!


Best regards: OK

On 21 août 08, at 20:49, David Arnold wrote:


All,

If you have a MacTex installation, how  can you safely update the  
context installation that comes with MacTex?


David Arnold
College of the Redwoods
Mathematics Department
Eureka, CA 95501
(707) 476-4222
http://online.redwoods.edu/instruct/darnold/


___
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] MacTex Update

2008-08-21 Thread David Arnold

All,

If you have a MacTex installation, how  can you safely update the  
context installation that comes with MacTex?


David Arnold
College of the Redwoods
Mathematics Department
Eureka, CA 95501
(707) 476-4222
http://online.redwoods.edu/instruct/darnold/


___
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] Miktex still broken

2008-08-21 Thread David Arnold

All,

The context in Miktex is still broken. Has anyone got experience  
installing the standalone version of context on windows alongside  
Miktex?


And one specific question, will the mptopdf command work in this dual  
installation?


Thanks.

David Arnold
College of the Redwoods
Mathematics Department
Eureka, CA 95501
(707) 476-4222
http://online.redwoods.edu/instruct/darnold/


___
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] InDesign/InCopy vs. TeX and friends

2008-06-01 Thread Matthias Weber
One thing that hasn't been emphasized enough in this thread is the  
beneficial effect of TeX for the scientific community,
in particular the mathematical, physical, and chemical sciences. TeX  
has made it possible to easilyfreely
prepare and distribute manuscripts. There even is a preprint server  
(www.arxiv.org) that accepts mostly TeX,
giving worldwide access to many papers that would after their  
publication only be available through
expensive journals. I don't know whether anybody has ever estimated  
the costs that all these benefits
would have if one was using alternatives to TeX. It must be in the  
billions of dollars.

Besides the ability of TeX to typeset formulas and its costs,  it is  
its level of standardization that makes it
so useful for scientists: TeX is an extremely well-defined system.
My 15 year old TeX files still `TeX',  despite changing computers and  
operating systems multiple times.
The only drawback for the scientific community is that there is no  
easy way to parse TeX into
Mathematics, i.e. make the formulas one can typeset intelligible to a  
computer algebra system.
This is of course possible now with MathML.

Matthias
___
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] header to register

2008-01-30 Thread Idris Samawi Hamid
On Wed, 30 Jan 2008 01:43:46 -0700, Thomas A. Schmitz  
[EMAIL PROTECTED] wrote:

 \starttext
 text\textellipsis

 text\unknown
 \stoptext

 I prefer the second line (there a short discussion about this topic a
 long time ago).

 Wolfgang


 Hi Wolfgang,

 isn't this just a bug in lmodern? In any decent font, \textellipsis in
 fact gives exactly the output you get from \unknown here. There may be
 historical reasons why the glyph looks that way in cm and lm, but it
 certainly is unexpected compared to other fonts.

Or a bug in mkii:

enco-utf.tex:
Line 3055 : \def\textellipsis  {…} % HORIZONTAL ELLIPSIS

enco-def.tex:
\definecharacter textellipsis {\mathematics\cdots}

try this:

===
% engine=luatex

\starttext
text\textellipsis

text\unknown
\stoptext
===

Another big difference. \textellipsis behaves differently in mkii and mkiv.

Also, the lm ellipsis seems way too packed...

Best wishes
Idris

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
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] header to register

2008-01-30 Thread Henning Hraban Ramm
Am 2008-01-30 um 16:48 schrieb Idris Samawi Hamid:

 isn't this just a bug in lmodern? In any decent font,  
 \textellipsis in
 fact gives exactly the output you get from \unknown here. There  
 may be
 historical reasons why the glyph looks that way in cm and lm, but it
 certainly is unexpected compared to other fonts.

 Or a bug in mkii:

 enco-utf.tex:
 Line 3055 : \def\textellipsis  {…} % HORIZONTAL ELLIPSIS

 enco-def.tex:
 \definecharacter textellipsis {\mathematics\cdots}

At least with Century Schoolbook on MkII \textellipsis is vertically  
shifted (like the colon · ), while \unknown or \dots sits on the  
baseline (…).

Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

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


<    1   2   3   4   5   6   7   >