Re: [NTG-context] Override MathML formula label

2019-07-28 Thread Hans Hagen

On 7/27/2019 8:23 AM, Duncan Hothersall wrote:

Hi all.

In processing MathML if I want a formula to be numbered I add a 
label="X" attribute to the  tag as per:


\usemodule[mathml]
\starttext
\xmlprocessdata{}{
  
   p=c-t
  
}{}
\stoptext

This will label the formula as (1). I know I can adjust how the 
automatic numbering is generated using \setupformulae, but how can I 
override the label used for a specific formula, say to set it to (36A)?

**

Basically I have a setup where formulae are mostly numbered sequentially 
but occasionally individual formulae need to have an out-of-sequence or 
differently formatted number.


Thanks as ever for any help.


\usemodule[mathml]

\startxmlsetups mml:formula
\edef\mmlformulalabel{\xmlatt{#1}{label}}
\edef\mmlformulatitle{\xmlatt{#1}{title}}
\doifsomethingelse {\mmlformulalabel\mmlformulatitle} {

\startplaceformula[reference=\mmlformulalabel,title=\mmlformulatitle]
\startformula
\xmlfirst{#1}{/mml:math}
\stopformula
\stopplaceformula
} {
\startformula
\xmlfirst{#1}{/mml:math}
\stopformula
}
\stopxmlsetups


\starttext
\xmlprocessdata {} {



p=c-t




p=c-t




p=c-t



}{}
\stoptext

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Override MathML formula label

2019-07-27 Thread Duncan Hothersall
Hi all.

In processing MathML if I want a formula to be numbered I add a label="X"
attribute to the  tag as per:

\usemodule[mathml]
\starttext
\xmlprocessdata{}{
 
  p=c-t
 
}{}
\stoptext

This will label the formula as (1). I know I can adjust how the automatic
numbering is generated using \setupformulae, but how can I override the
label used for a specific formula, say to set it to (36A)?

Basically I have a setup where formulae are mostly numbered sequentially
but occasionally individual formulae need to have an out-of-sequence or
differently formatted number.

Thanks as ever for any help.

Duncan
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Formula numbering conversion

2017-03-01 Thread Antoine Cailliau
Does anyone have a tip for me? I really want these tags in my document.

Many thanks in advance,

On 27 February 2017 at 19:22, Antoine Cailliau <antoinecaill...@gmail.com>
wrote:

> I try to replicate the following : https://mailman.ntg.nl/
> pipermail/ntg-context/2006/021038.html (i.e. the equivalent of \tag in
> latex/amsmath). More precisely this:
>
>> %8<--
>> \def\placeformulatag%
>>{\dosingleempty\doplaceformulatag}
>> \def\doplaceformulatag[#1]#2%
>>{\let\normalstopformula\stopformula
>> \def\stopformula%
>>  {\normalstopformula
>>   \restorenumber[formula]
>>   \egroup
>>   \let\stopformula\normalstopformula}
>>   \bgroup
>>   \savenumber[formula]
>>   \def\dummyconversion##1{#2}
>>   \defineconversion[dummyconversion][\dummyconversion]
>>   \setupformulas[conversion=dummyconversion]
>>   \placeformula[#1]}
>>
>> \starttext
>> \placeformulatag[tag]{test} \startformula
>>E = mc^2
>> \stopformula
>> See \in formula[tag] for a tagged formula
>> \stoptext
>> %8<-
>
>
> However, the following (simpler) code produce an "Undefined control
> sequence" when using \in command.
>
> \starttext
>> {
>>   \def\a#1{test}
>>   \defineconversion[a][\a]
>>   \setupformulae[numberconversion=a]
>>   \placeformula[test]
>>   \startformula E = mc^2 \stopformula
>> }
>> This is my reference: \in{formula}[test].
>> \stoptext
>
>
> The following code, does not produce the error, but is not practical for
> the reproducing the \tag command.
>
>>
>> \starttext
>> {
>>   \def\a#1{test}
>>   \defineconversion[a][\a]
>>   \setupformulae[numberconversion=a]
>>   \placeformula[test]
>>   \startformula E = mc^2 \stopformula
>>   This is my reference: \in{formula}[test].
>> }
>> \stoptext
>
>
> What am I doing wrong? I guess the command \a is no longer defined when
> the compiler hit \in but how can I ensure that such local definition stay
> accessible ?
>
> Thank you in advance,
>
> Antoine C.
>
>
> On 27 February 2017 at 17:28, Antoine Cailliau <antoinecaill...@gmail.com>
> wrote:
>
>> Thanks.
>>
>> I updated the wiki.
>>
>> On 27 February 2017 at 17:18, Pablo Rodriguez <oi...@gmx.es> wrote:
>>
>>> On 02/27/2017 04:55 PM, Antoine Cailliau wrote:
>>> > The following code is documented to change the numbering of the
>>> equations.
>>> > However, this still use numerals for the equations.
>>> > [...]
>>> > Is this a bug ? Is it the correct way to change the numbering ?
>>>
>>> Hi Antoine,
>>>
>>> it’s numberconversion (as it reads in “ConTeXt Commands”):
>>>
>>> \setupformulas[numberconversion=greek]
>>> \setupbodyfont[dejavu]
>>> \starttext
>>> \placeformula[test]
>>> \startformula E = mc^2 \stopformula
>>> \stoptext
>>>
>>> BTW, if this is wrong documented in the wiki, please correct it for
>>> future reference.
>>>
>>> Pablo
>>> --
>>> http://www.ousia.tk
>>> 
>>> ___
>>> 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/list
>>> info/ntg-context
>>> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
>>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>>> 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Formula numbering conversion

2017-02-27 Thread Antoine Cailliau
I try to replicate the following :
https://mailman.ntg.nl/pipermail/ntg-context/2006/021038.html (i.e. the
equivalent of \tag in latex/amsmath). More precisely this:

> %8<--
> \def\placeformulatag%
>{\dosingleempty\doplaceformulatag}
> \def\doplaceformulatag[#1]#2%
>{\let\normalstopformula\stopformula
> \def\stopformula%
>  {\normalstopformula
>   \restorenumber[formula]
>   \egroup
>   \let\stopformula\normalstopformula}
>   \bgroup
>   \savenumber[formula]
>   \def\dummyconversion##1{#2}
>   \defineconversion[dummyconversion][\dummyconversion]
>   \setupformulas[conversion=dummyconversion]
>   \placeformula[#1]}
>
> \starttext
> \placeformulatag[tag]{test} \startformula
>E = mc^2
> \stopformula
> See \in formula[tag] for a tagged formula
> \stoptext
> %8<-


However, the following (simpler) code produce an "Undefined control
sequence" when using \in command.

\starttext
> {
>   \def\a#1{test}
>   \defineconversion[a][\a]
>   \setupformulae[numberconversion=a]
>   \placeformula[test]
>   \startformula E = mc^2 \stopformula
> }
> This is my reference: \in{formula}[test].
> \stoptext


The following code, does not produce the error, but is not practical for
the reproducing the \tag command.

>
> \starttext
> {
>   \def\a#1{test}
>   \defineconversion[a][\a]
>   \setupformulae[numberconversion=a]
>   \placeformula[test]
>   \startformula E = mc^2 \stopformula
>   This is my reference: \in{formula}[test].
> }
> \stoptext


What am I doing wrong? I guess the command \a is no longer defined when the
compiler hit \in but how can I ensure that such local definition stay
accessible ?

Thank you in advance,

Antoine C.


On 27 February 2017 at 17:28, Antoine Cailliau <antoinecaill...@gmail.com>
wrote:

> Thanks.
>
> I updated the wiki.
>
> On 27 February 2017 at 17:18, Pablo Rodriguez <oi...@gmx.es> wrote:
>
>> On 02/27/2017 04:55 PM, Antoine Cailliau wrote:
>> > The following code is documented to change the numbering of the
>> equations.
>> > However, this still use numerals for the equations.
>> > [...]
>> > Is this a bug ? Is it the correct way to change the numbering ?
>>
>> Hi Antoine,
>>
>> it’s numberconversion (as it reads in “ConTeXt Commands”):
>>
>> \setupformulas[numberconversion=greek]
>> \setupbodyfont[dejavu]
>> \starttext
>> \placeformula[test]
>> \startformula E = mc^2 \stopformula
>> \stoptext
>>
>> BTW, if this is wrong documented in the wiki, please correct it for
>> future reference.
>>
>> Pablo
>> --
>> http://www.ousia.tk
>> 
>> ___
>> 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/list
>> info/ntg-context
>> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>> 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] setupformulas options (or defineformula) and effort to reduce the font in math formulas

2015-03-12 Thread Jaroslav Hajtmar

Hello Wolfgang.

After some searching and experimenting, here is my functional solution.
I wrote it into the wiki. I have not found there eg. defineformula 
command etc


Jaroslav Hajtmar



\defineformula[MY][
align=left,
strut=no,
 spacebefore=,
 spaceafter=,
]


% so you can modify the settings of defineforumla[MY]
\setupformulae[MY][align=right,strut=yes,spacebefore=medium,spaceafter=big]

% so we can create new start-stopsmallformula
\definestartstop[smallformula]
  [before={\startformula[small]},
   after=\stopformula,
]

% and we can so create new start-stopmysmallformula:
\definestartstop[mysmallformula]
  [before={\startMYformula[small]},
   after=\stopMYformula,
]

% and here is my shortcuts:
\let\bmyformula\startmysmallformula
\let\emyformula\stopmysmallformula



\starttext

\title{Example of use and behavior}

startformula:

\startformula
c^2 = a^2 + b^2
\stopformula

startformula$[$small$]$:

\startformula[small]
c^2 = a^2 + b^2
\stopformula

startformula[8pt]:

\startformula[8pt]
c^2 = a^2 + b^2
\stopformula

startsmallformula:

\startsmallformula
c^2 = a^2 + b^2
\stopsmallformula


startmysmallformula:

\startmysmallformula
c^2 = a^2 + b^2
\stopmysmallformula

startMYformula:

\startMYformula
c^2 = a^2 + b^2
\stopMYformula

startMYformula[5pt]:

\startMYformula[5pt]
c^2 = a^2 + b^2
\stopMYformula


bmyformula:

\bmyformula
c^2 = a^2 + b^2
\emyformula



\stoptext


http://wiki.contextgarden.net/defineformula


Dne 11.3.2015 v 18:18 Jaroslav Hajtmar napsal(a):

Thanx Wolfgang for reply.
I had no idea that it is possible in this way to change the font size. 
I could not figure a way for your solution set alignment formulas to 
right and how work \defineformula and \definestartstop together.


After defining a new MY formula in combination with your solution 
works it fine, as I had imagined.
Is there any possibility of setting of parameters a newly defined 
formulas? Or, it can not be done, and everything must be solved within 
the initial definition?


One more thanx
Jaroslav Hajtmar


\defineformula[MY][
align=right,
strut=yes,
spacebefore=,
spaceafter=,
]

\definestartstop[smallformula]
  [before={\startformula[small]},
   after=\stopformula,
]


% \setupformulas[align=right,strut=yes,spacebefore=,spaceafter=]
% 
\setupformulas[smallformula][align=right,strut=yes,spacebefore=,spaceafter=]

% \setupformulas[small][align=right,strut=yes,spacebefore=,spaceafter=]
% \setupsmallformulas[align=right,strut=yes,spacebefore=,spaceafter=]
% 
\setupsmallformulaformulas[align=right,strut=yes,spacebefore=,spaceafter=]

% \setupformulas[MY][align=right,strut=yes,spacebefore=,spaceafter=]
% 
\setupformulas[MYformula][align=right,strut=yes,spacebefore=,spaceafter=]

% \setupMYformulas[align=right,strut=yes,spacebefore=,spaceafter=]


\starttext

\startformula
c^2 = a^2 + b^2
\stopformula

\startformula[small]
c^2 = a^2 + b^2
\stopformula

\startformula[8pt]
c^2 = a^2 + b^2
\stopformula

\startsmallformula
c^2 = a^2 + b^2
\stopsmallformula

\startMYformula[small]
c^2 = a^2 + b^2
\stopMYformula

\startMYformula[5pt]
c^2 = a^2 + b^2
\stopMYformula


\stoptext



Dne 11.3.2015 v 0:52 Wolfgang Schuster napsal(a):
\startformula has a optional argument which let you change the font, 
e.g. \startformula[9pt].


\definestartstop[smallformula]
   [before={\startformula[small]},
after=\stopformula]

\starttext

\startformula
c^2  = a^2  + b^2
\stopformula

\startformula[small]
c^2  = a^2  + b^2
\stopformula

\startsmallformula
c^2  = a^2  + b^2
\stopsmallformula

\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  : 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] NTG-context] How to hack the lua files

2013-06-17 Thread Lance Larsen
Hans,

Thankyou for your suggestion of using the \usereferences tag to reference
formulas in another document. This is a good solution. However the example
below doesn't give usable results because the references to the external
formula output by test2.tex does not include the chapter number:

test1.tex:
-
\starttext
\chapter{Chapter 1}
\placeformula[one] \startformula x = y \stopformula
\placeformula[two] \startformula y = z \stopformula
\chapter{Chapter 2}
\placeformula[three] \startformula z = x \stopformula
\stoptext


test2.tex:
--
\usereferences[test1.tex]
\starttext
\in{formula}[test1.tex::one]
\in{formula}[test1.tex::two]
\in{formula}[test1.tex::three]
\stoptext

In the output of test1.tex, the formulas are labeled (1.1), (1.2), and
(2.1). In the output of test2.tex the references are labeled 'formula 1',
'formula 2', and 'formula 1' (i.e. the section number is not included).

Using the \usereferences tag works if I label formulas 'bytext' rather than
by 'bysection' and turn off chapter prefixes in test1.tex using the
following at the start of the document:

\setupformulae[way=bytext,prefixsegments=None]

I would really prefer to maintain numbering by section, but to do this, I
need test2.tex to show external references in the same way as test1.tex (by
including the section number in front of the equation number). Is there a
way to do this at present? If not, labeling formulas 'bytext' will work for
now even if it isn't ideal.

-Lance Larsen


On 6/7/2013 4:01 PM, Lance Larsen wrote:
 luigi,

 When I started exploring how to map equation references (eq:name) to
 equation numbers (4.2), I noticed that the 'tuc' file included the
equation
 reference (eq:name), but I was not able to identify anywhere where it
 indicates the actual equation label specified in the document. Below is an
 example of the tuc output. 'eq:DVOL_RVI_17' is equation (4.28) in the
 document:

 {
[metadata]=142,
[numberdata]=237,
[prefixdata]=11,
[references]={
 [block]=bodypart,
 [internal]=122,
 [realpage]=47,
 [reference]=eq:DVOL_RVI_17,
 [section]=79,
},
   }

 There is nowhere in the tuc file that contains 4 and 28 near each other. I
 checked this for other equations as well and concluded that the tuc file
 does not contain the actual equation numbers that are used.

because there are indirect references to for instance 'numberdata' where 
this info sits

 If I am missing something or you have any other suggestions that might
help
 me to extract this info, I would sure appreciate the help.

see previous mail

btw, if you just want to use references in another tex doc, this will do 
the trick:

\usereferences[somedoc]

\starttext

 \in{formula}[somedoc::a]

 \in{formula}[somedoc::b]

\stoptext



-
   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] Strange behavior of references when using annotation-module

2012-09-05 Thread Dominik Leopold Forkert
Hello,

I use the latest mkiv beta.

When using the annotation module, the output of\in[...] misses a
separation dot between chapter and formula number, e.g. 31 instead
of 3.1. When I omit the annotation module, there is no chapter
number at all in the \in[...] reference!

A minimal example of the problem:

\usemodule[annotation]

\setupformulae[way=bychapter,prefixsegments=chapter,prefixstopper=.]

\starttext
\chapter{A chapter}
\section{A section}

\placeformula[OK]
\startformula
a+b=c
\stopformula

In \in[OK] we noticed blabla ...
\stoptext


Another problem is that \smash seems not to work properly for me!

Both problems do not occur at all in mkii!


Best regards,

Dominik
___
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] Strange behavior of references when using annotation-module

2012-09-05 Thread Wolfgang Schuster

Am 05.09.2012 um 20:24 schrieb Dominik Leopold Forkert dracon...@gmail.com:

 Hello,
 
 I use the latest mkiv beta.
 
 When using the annotation module, the output of\in[...] misses a
 separation dot between chapter and formula number, e.g. 31 instead
 of 3.1. When I omit the annotation module, there is no chapter
 number at all in the \in[...] reference!
 
 A minimal example of the problem:
 
 \usemodule[annotation]
 
 \setupformulae[way=bychapter,prefixsegments=chapter,prefixstopper=.]
 
 \starttext
 \chapter{A chapter}
 \section{A section}
 
 \placeformula[OK]
 \startformula
 a+b=c
 \stopformula
 
 In \in[OK] we noticed blabla ...
 \stoptext

I fixed the bug in the annotation module but to show the chapter number you 
have to add “prefix=yes” to \setupformulas.

Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] space around formula

2012-07-20 Thread Meer, H. van der
The space around formula with \placeformula is a bit too large to my taste, 
even in the case of \setupformulae[spaceafter=small]. Because setting this to 
0pt didn't make much difference, I had to resort to spaceafter=-1ex. Why is 
there seemingly always such a large space around the formula? Why not a much 
tighter boundary?

Furthermore, it seems that there is no difference like above/below-displayskip 
and ditto displayshortskip as in Plain TeX. At least, I could not find it. Or 
did I miss that? I consulted the wiki, but the information is not found.

Hans van der Meer



___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] space around formula

2012-07-20 Thread luigi scarso
On Fri, Jul 20, 2012 at 10:11 PM, Meer, H. van der h.vanderm...@uva.nlwrote:

  The space around formula with \placeformula is a bit too large to my
 taste, even in the case of \setupformulae[spaceafter=small]. Because
 setting this to 0pt didn't make much difference, I had to resort to
 spaceafter=-1ex. Why is there seemingly always such a large space around
 the formula? Why not a much tighter boundary?

 spacebefore and spaceafter are
\blank[p_spacebefore]
and
\blank[p_spaceafter]
so if you setup blank
http://wiki.contextgarden.net/Command/setupblank
than also setup the space around the formula.
-- 
luigi
___
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] equation refs broken?

2011-11-20 Thread Hans van der Meer
Can someone confirm this? It seems that the equation reference mechanism is 
broken some time in the recent past.
I have a small example done in
(1) ConTeXt  ver: 2011.07.13 20:14 MKIV
(2) ConTeXt  ver: 2011.11.17 23:31 MKIV
These are respectively the first and last pdf's below.


If true, it is very serious for me, because the I cannot prepare the upcoming 
texts for my students!

Furthermore: \pagereference now introduces spurious white.

For the bad vertical spacing on the left I have submitted a tentative bugfix to 
Hans Hagen.



Hans van der Meer

\setuppapersize[A6][A6]
\setupformulae[spacebefore=0pt,spaceafter=0pt]
\starttext
\placeformula[eq:one]\startformula a = 1 \stopformula
\placeformula[-]\startformula a = 2 \stopformula
\placeformula[eq:three]\startformula a = 3 \stopformula
\pagereference[ref:p]
Refer equation-1: \in{equ=}[eq:one] in page \at[ref:p].\par
Refer equation-3: \in{equ=}[eq:three] in page \at[ref:p].\par
\stoptext




formularef.pdf
Description: Adobe PDF document


formularef.pdf
Description: Adobe PDF document
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

[NTG-context] wiki correction

2011-11-13 Thread Hans van der Meer
I think I spotted a small error in the parameterlisting of \setupformulae on 
the wiki:
parameter after dimension probably should be spaceafter dimension because 
calling with the former has no effect, the latter does.
Though using it does not change the difference in spaceafter between 
\placeformula and \placeformula[-].

Hans van der Meer



___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] extra white after equation

2011-11-13 Thread Meer, H. van der
I guess I have found the culprit in the bad placement of formulas without an 
equationnumber.

The minimal example I used is that found in strc-mat.mkiv, added a [-] in the 
middle one.
\setuppapersize[A6][A6]
\setupformulae[spacebefore=0pt,spaceafter=0pt]
% HERE REDEFINED \dododoformulanumber
\starttext
\placenamedformula[one]{first}  \startformula a = 1 \stopformula \endgraf
\placeformula[-]   \startformula a = 2 \stopformula \endgraf
\placenamedformula {second} \startformula a = 3 \stopformula \endgraf
\stoptext

It appears that in the case of an absent equationnumber extra stretching takes 
place at the position of the (now absent) equationnumber. Placing phantom ()'s 
remedies this. The effect is best seen by enabling the 
\rlap{\tracedformulamode}%-line.

May I ask Hans to take a look and change it in the next beta if this indeed a 
correct solution? For my suggestion for the change see below.
Thanks in advance.

Hans van der Meer




On 13 nov. 2011, at 14:57, Hans van der Meer wrote:

 I find that the placement of an equation number makes a difference on the 
 amount of white after the equation. Should they both give the same amount of 
 whitespace? Or is the difference intentional? But then why?
 I add a minimal example.



Output (1) as in Context ver: 2011.11.04 14:15 MKIV
Output (2) with redefined \ dododoformulanumber

% lines 240+ in strc-mat.mkiv
\def\dododoformulanumber
  {\ifconditional\handleformulanumber
 \hbox\bgroup
   % main counter
   \ifconditional\insidesubformulas
 % nothing
   \else
 \ifcase\formulasnumbermode
   \ifcase\placeformulanumbermode
 \dohandleformulanumbering
   \or
 \dohandleformulanumbering
   \or
 % nothing THIS SEEMS BAD
 \phantom{()}% THIS GIVES CORRECT SPACING
  \or
 \dohandleformulanumbering
   \fi
 \or
   \dohandleformulanumbering
 \or
   % nothing
 \or
   \dohandleformulanumbering
 \fi
   \fi
   % subcounter
   \ifconditional\insidesubformulas
 \ifcase\subformulasnumbermode
   % nothing
 \or
   \dohandlesubformulanumbering
 \or
   % nothing NOT CHECKED BUT PROBABLY SAME AS ABOVE
 \phantom{()}% PROBABLY HERE TOO
 \or
   \dohandlesubformulanumbering
 \fi
   \fi
  %\rlap{\tracedformulamode}%
 \egroup
   \fi}



equationwhite-bad.pdf
Description: equationwhite-bad.pdf


equationwhite-good.pdf
Description: equationwhite-good.pdf
___
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] A couple of setupcaptions questions

2011-08-04 Thread Jean Magnan de Bornier
Le 04 août à 19:24:20 Wolfgang Schuster schuster.wolfg...@googlemail.com 
écrit notamment:

| Am 04.08.2011 um 19:17 schrieb Jean Magnan de Bornier:

|  Le 04 août à 18:14:45 Wolfgang Schuster schuster.wolfg...@googlemail.com 
écrit notamment:
|  
|  | It’s no surprise that you don’t get a chapter prefix because there is
|  | no in your document. You forgot the title after \startcomponent and 
|  | ConTeXt took “\chapter{…}” as argument for the component title.
|  
|  Right, my mistake!
|  
|  However, with such mistake we have a prefix for formulas anyway!

| \setupcaptions[way=bysection,prefixsegments=chapter]
| \setupformulae[way=bysection,prefixsegments=section] 

| You use for the formula the section number as prefix while floats use 
chapters.

| In your example there had been section but no chapter and therefore
| you get a prefix for formulas but none for floats.

Wolfgang, thank you for your patience, I do need rest!

-- 
Jean
___
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] color all the formulae?

2010-12-15 Thread Yue Wang
Hi, Hans:

Is there some way to color all the formulae braced in $$ and
\start|stopformula?

I search setupcolors, only textcolor is available.

there are also no color key in setupformulae.

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  : http://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
\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]
\setupurl[space=yes]


% Fonts
%% Chapters...
\setupheads[align=flushleft]
\setuphead[chapter][style={\bfd}]
\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=memoria,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][indentnext=no,margin=2em] % [identnext=yes,margin=2em]
\setupitemize[each][headstyle=bold]
%\setupitemize[a][right=),stopper=]

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

% Heads and footers
%\setupfootertexts[][{\tfxx \currentdate}]
%\setupfootertexts[\pagenumber/\lastpage]
%\setupfooter[text][before=\hrule]
%\setupheader[text][after=\hrule]
%\setupheadertexts[{\tfx Màster de Matemàtiques}][{\tfx 
\jobname.\ConTeXt{}.\currentdate}]
%\setupheadertexts[][{\tfx \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}
\hyphenation{pa-rells}
\hyphenation{ge-ne-rat}
\hyphenation{re-so-lu-ble}
\hyphenation{ge-ne-ra-dors}
\hyphenation{re-pre-sen-ta-rem}

% 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=off,width=broad]},after={\stopframedtext\egroup}]

%% Lema
\defineenumeration
  [mylema]
  [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
  [myproposition]
  [mylema]
  [text={Proposició}]

\defineenumeration
  [mycorollary]
  [mylema]
  [text={Corol·lari}]

\defineenumeration
  [mytheorem]
  [mylema]
  [text={Teorema}]


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

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

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

%% Demostració

\defineenumeration[mydemo][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

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

2009-07-23 Thread Xan
 
  \??dd \c!number \endcsname 
\@@ddresetsubsubsubnumber ...entdescriptionnumber 
  }\resetnumber [\v!sub \v!s...

\@@ddresetsubsubnumber ...b \v!sub \c!number }{#1}
  \resetnumber [\v!sub \v!su...

\@@ddresetsubnumber ...!sub \v!sub \c!number }{#1}
  \resetnumber [\v!sub \@@de...

\@@ddsetnumber ... \s!reset \v!sub \c!number }{#1}
  \setnumber [\@@description...

\footnote -\setnote 
 [\v!footnote ]
l.234 a\footnote
{A}
? x
 
Here is how much of TeX's memory you used:
 11536 strings out of 57878
 228693 string characters out of 558687
 4753175 words of memory out of 5684965
 50568 multiletter control sequences out of 1+5
 166057 words of font info for 74 fonts, out of 120 for 2000
 199 hyphenation exceptions out of 8191
 48i,2n,59p,354b,509s stack positions out of 5000i,500n,6000p,20b,5000s
No pages of output.
PDF statistics:
 3 PDF objects out of 1000 (max. 8388607)
 1 compressed objects within 1 object stream
 0 named destinations out of 1000 (max. 131072)
 5 words of extra memory for PDF output out of 1 (max. 1000)

% interface=en output=pdftex
%\environment capcalera.context % Capçalera

% Regime
\enableregime[utf]

% Choose a font
\setupbodyfont [cmr,11pt] % 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=memoria,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][indentnext=no,margin=2em] % [identnext=yes,margin=2em]
\setupitemize[each][headstyle=bold]
%\setupitemize[a][right=),stopper=]

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

% Heads and footers
\setupfootertexts[][{\tfxx \currentdate}]
%\setupfootertexts[\pagenumber/\lastpage]
%\setupfooter[text][before=\hrule]
%\setupheader[text][after=\hrule]
%\setupheadertexts[{\tfx Màster de Matemàtiques}][{\tfx \jobname.\ConTeXt{}.\currentdate}]
%\setupheadertexts[][{\tfx \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}
\hyphenation{pa-rells}
\hyphenation{ge-ne-rat}

% 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

[NTG-context] I can't change startitemize[n]-- startitemize[1]

2009-07-23 Thread Xan

Hi Hans,

First of all, thank you very much for helping in the above problem.
Can you solve this now ? ;-)

When I change startitemize[n] to startitemize[1] in line 394 I get this 
error:


! Argument of \dodoregister has an extra }.
inserted text
   \par
to be read again
  }
\doattributes ...name #1...@ea \endcsname \fi {#4}
 \dostopattributes
\dolistitem ...evel \c!style \c!color {\listitem }
 \fi \fi 
}\ifconditional \f...


\complexdoitemgroupitem ...obreak \fi \dolistitem
 \relax \ifconditional 
\pac...

to be read again
  $
l.395 \item $
\pi(x^{-1}) = \pi(x)^{-1}$ per a tot $x \in X$.
? x


Why?

I attach the source file and log file.
This is a long file, I know, but I don't know why with 'n' works and '1' 
does not.



Thanks in advance,
Xan.

PS: Please, CCme.
% interface=en output=pdftex
%\environment capcalera.context % Capçalera

% Regime
\enableregime[utf]

% Choose a font
\setupbodyfont [cmr,11pt] % 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=memoria,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][indentnext=no,margin=2em] % [identnext=yes,margin=2em]
\setupitemize[each][headstyle=bold]
%\setupitemize[a][right=),stopper=]

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

% Heads and footers
\setupfootertexts[][{\tfxx \currentdate}]
%\setupfootertexts[\pagenumber/\lastpage]
%\setupfooter[text][before=\hrule]
%\setupheader[text][after=\hrule]
%\setupheadertexts[{\tfx Màster de Matemàtiques}][{\tfx 
\jobname.\ConTeXt{}.\currentdate}]
%\setupheadertexts[][{\tfx \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}
\hyphenation{pa-rells}
\hyphenation{ge-ne-rat}

% 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=off,width=broad]},after={\stopframedtext\egroup}]

%% Lema 
\defineenumeration
  [lema]
  [text={Lema}, % Què es mostra
   before={\blank[big]}, % abans de lema, un bigskip

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

2009-07-22 Thread Xan

Hi,

Sorry for perhaps silly question, but I receive and error for this code:

\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

that in the first item should be one less $:

subsubsubject   : - El problema de la paraula
! Argument of \dodoregister has an extra }.
inserted text
   \par
to be read again
  }
\doattributes ...name #1...@ea \endcsname \fi {#4}
 \dostopattributes
\dolistitem ...evel \c!style \c!color {\listitem }
 \fi \fi 
}\ifconditional \f...


\complexdoitemgroupitem ...obreak \fi \dolistitem
 \relax \ifconditional 
\pac...

to be read again
  $
l.237 \item $
\pi(x^{-1}) = \pi(x)^{-1}$ per a tot $x \in X$.
? x


The whole file is attached.


What's the problem. Sorry I don't see


Xan.
% interface=en output=pdftex
%\environment capcalera.context % Capçalera

% Regime
\enableregime[utf]

% Choose a font
\setupbodyfont [cmr,11pt] % 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=memoria,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][indentnext=no,margin=2em] % [identnext=yes,margin=2em]
\setupitemize[each][headstyle=bold]
%\setupitemize[a][right=),stopper=]

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

% Heads and footers
%\setupfootertexts[][{\tfx \currentdate}]
%\setupfootertexts[\pagenumber/\lastpage]
%\setupfooter[text][before=\hrule]
%\setupheader[text][after=\hrule]
%\setupheadertexts[{\tfx Màster de Matemàtiques}][{\tfx 
\jobname.\ConTeXt{}.\currentdate}]
%\setupheadertexts[][{\tfx \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}
\hyphenation{pa-rells}
\hyphenation{ge-ne-rat}

% 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=off,width=broad]},after

[NTG-context] I can't put footnote

2009-07-22 Thread Xan

Hi,

Anyone could help me please. I attach a document with I have problems.
When I comment out the footnote in line 402, then I get an error.

Can anyone could see what happens?

Thanks in advance,
Xan.
% interface=en output=pdftex
%\environment capcalera.context % Capçalera

% Regime
\enableregime[utf]

% Choose a font
\setupbodyfont [cmr,11pt] % 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=memoria,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][indentnext=no,margin=2em] % [identnext=yes,margin=2em]
\setupitemize[each][headstyle=bold]
%\setupitemize[a][right=),stopper=]

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

% Heads and footers
%\setupfootertexts[][{\tfx \currentdate}]
%\setupfootertexts[\pagenumber/\lastpage]
%\setupfooter[text][before=\hrule]
%\setupheader[text][after=\hrule]
%\setupheadertexts[{\tfx Màster de Matemàtiques}][{\tfx 
\jobname.\ConTeXt{}.\currentdate}]
%\setupheadertexts[][{\tfx \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}
\hyphenation{pa-rells}
\hyphenation{ge-ne-rat}

% 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=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

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

2009-07-22 Thread Xan

En/na Hans Hagen ha escrit:

Xan wrote:


No, with the version line commented I get the same error:


i don't get that error so i need a smaller test file

Hans


I hope this serves you. Now I have another error. What fails???

Xan.

% interface=en output=pdftex
%\environment capcalera.context % Capçalera

% Regime
\enableregime[utf]

% Choose a font
\setupbodyfont [cmr,11pt] % 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=memoria,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][indentnext=no,margin=2em] % [identnext=yes,margin=2em]
\setupitemize[each][headstyle=bold]
%\setupitemize[a][right=),stopper=]

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

% Heads and footers
%\setupfootertexts[][{\tfx \currentdate}]
%\setupfootertexts[\pagenumber/\lastpage]
%\setupfooter[text][before=\hrule]
%\setupheader[text][after=\hrule]
%\setupheadertexts[{\tfx Màster de Matemàtiques}][{\tfx 
\jobname.\ConTeXt{}.\currentdate}]
%\setupheadertexts[][{\tfx \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}
\hyphenation{pa-rells}
\hyphenation{ge-ne-rat}

% 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=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

[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

[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

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] MKIV bug

2009-01-17 Thread Yue Wang
Hi, Taco:


 Appears fine here as well, with context 2009.01.17 00:15. But I assume
 your test file was longer thatn just the little block below. Perhaps
 you should post a full file.

 Btw, the example breaks with cont-xp, but in a different way:
 it throws an error at me about an undefined control sequence
 (\currentformulassynchronize).


OK, in fact the whole file is just add \bye at the end of that piece of code.

This works well on both mkii and mkiv:
\starttext
\placeformula \startformula \startalign
 \NC v \NC = u + at \NR[eq:v]
 \NC h \NC = ut + \frac12 gt^2 \NR[eq:h]
\stopalign \stopformula
Equation (\in[eq:v]) tells the final velocity after
time $t$ and equation (\in[eq:h]) tells the distance
travelled in time $t$.
\stoptext

and this only works in MKII, not mkiv:
\placeformula \startformula \startalign
 \NC v \NC = u + at \NR[eq:v]
 \NC h \NC = ut + \frac12 gt^2 \NR[eq:h]
\stopalign \stopformula
Equation (\in[eq:v]) tells the final velocity after
time $t$ and equation (\in[eq:h]) tells the distance
travelled in time $t$.
\bye


Another problem which I reported a few weeks ago is still not solved.
when I use a sans font, like \setupbodyfont[iwona, ss,12pt], the label
for the equation still uses roman font unless i manually change them
by \setupformulae. I think this can be improved.


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
___


[NTG-context] different behavior between context versions

2008-12-20 Thread Yue Wang
Hi, Hans:

issue 1: Using context 2005.01.30, \indenting[yes] doesn't indent the
first paragraph. however, the latest version do. I think this is a bug

issue 2: Using context 2008.09.xx, the space factor after period = 1
by default (frechspacing is enabled by default).  however, it is not
enabled by default now.  (I think enable that is better). bug or
feature?

issue 3: when \setupbodyfont[ss], the equation number and braces are
still in roman. I think it is better to change them according to main
text font.

issue 4: i think key-vals like \setupinteraction[focus=standard] and
\setupformulae[indentnext=auto] should be documented in quick
reference or something.

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] Indention problem after formula

2008-04-20 Thread Peter Münster
On Sun, Apr 20 2008, Tobias Burnus wrote:

 \stopformula
 
 \indent Here, a new paragraph shall begin -- indented!

There are at least 3 possibilities:

1.) \indentation Here, a new paragraph shall begin -- indented!

2.) \setupformulae[indentnext=yes]

3.) \setupformulae[indentnext=auto]
(for me the best one)

Cheers, Peter

-- 
http://pmrb.free.fr/contact/

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] References and formulae numbers in upshape

2008-03-15 Thread Wolfgang Schuster
On Fri, 14 Mar 2008 22:30:30 +0100
Morgan Brassel [EMAIL PROTECTED] wrote:

 Le Friday 14 March 2008 09:00:49 Wolfgang Schuster, vous avez écrit :
  What do you want seems to be not possible but you could use the
  following solution although it is better to define a new command.
 
  \let\normalin\in
 
  \definereferenceformat
[figref]
[left=\normal,
 text=\normal Figure,
 command=\normalin]
 
  \let\in\figref
 
  \starttext
 
  \placefigure
[here][fig:det]
{Example}
{\blackrule[width=3cm,height=3cm]}
 
  \it See \in[fig:det] for details.
 
  \stoptext

 Thank you for your help, Wolfgang! I think I'll define a new \ref command 
 similar to the one in LaTeX, with upshape number. But maybe a new option 
 would be welcome? (just as for numberstyle=normal in \setupformulae). What do 
 you think? Is it a bad idea? I'm just curious...

A new command to set the style for the number is OK but you need also
one for the text but this need to be done by Hans because it is not
possible to change the style for the predefined command in, at ... with
the current implementation.

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] References and formulae numbers in upshape

2008-03-15 Thread Jan-Erik Hägglöf
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Wolfgang Schuster skrev:
 On Fri, 14 Mar 2008 22:30:30 +0100
 Morgan Brassel [EMAIL PROTECTED] wrote:
 
 Le Friday 14 March 2008 09:00:49 Wolfgang Schuster, vous avez écrit :
 What do you want seems to be not possible but you could use the
 following solution although it is better to define a new command.

 \let\normalin\in

 \definereferenceformat
   [figref]
   [left=\normal,
text=\normal Figure,
command=\normalin]

 \let\in\figref

 \starttext

 \placefigure
   [here][fig:det]
   {Example}
   {\blackrule[width=3cm,height=3cm]}

 \it See \in[fig:det] for details.

 \stoptext
 
 Thank you for your help, Wolfgang! I think I'll define a new \ref command 
 similar to the one in LaTeX, with upshape number. But maybe a new option 
 would be welcome? (just as for numberstyle=normal in \setupformulae). What 
 do 
 you think? Is it a bad idea? I'm just curious...
 
 A new command to set the style for the number is OK but you need also
 one for the text but this need to be done by Hans because it is not
 possible to change the style for the predefined command in, at ... with
 the current implementation.
 
 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
 ___
 
Hi!

As a new Context user (former LateX) from Sweden according to the above
discussion about references style to figures. I have a following
question. How do I customize the appearance of the figure text, I mean
for example:
Under every figure there is : Figure 1, Figure 2, Figure 3 and so on.
How do I make it like this : Picture 1, Picture 2, Picture 3 or
Picture 1a .1band such.?
In the swedish translation there is Figur 1...
I understand that it has to do with defining my own kind of \definefloat
or similar.

Best Regards

Janneman

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFH24Yr/zRis+sQPvARAltuAKCRX8yebwmD1hUvOrO0lToDea+RowCgp1/E
QuGKQMpRfcnoMSU0lXkVE28=
=wSRD
-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] References and formulae numbers in upshape

2008-03-15 Thread Johan Sandblom
I believe the easy way is

\mainlanguage{sv]

which also has lots of other useful side effects.

Johan, also from Sweden

2008/3/15, Jan-Erik Hägglöf [EMAIL PROTECTED]:
 -BEGIN PGP SIGNED MESSAGE-
  Hash: SHA1

  Wolfgang Schuster skrev:

  On Fri, 14 Mar 2008 22:30:30 +0100
   Morgan Brassel [EMAIL PROTECTED] wrote:
  
   Le Friday 14 March 2008 09:00:49 Wolfgang Schuster, vous avez écrit :
   What do you want seems to be not possible but you could use the
   following solution although it is better to define a new command.
  
   \let\normalin\in
  
   \definereferenceformat
 [figref]
 [left=\normal,
  text=\normal Figure,
  command=\normalin]
  
   \let\in\figref
  
   \starttext
  
   \placefigure
 [here][fig:det]
 {Example}
 {\blackrule[width=3cm,height=3cm]}
  
   \it See \in[fig:det] for details.
  
   \stoptext
  
   Thank you for your help, Wolfgang! I think I'll define a new \ref command
   similar to the one in LaTeX, with upshape number. But maybe a new option
   would be welcome? (just as for numberstyle=normal in \setupformulae). 
 What do
   you think? Is it a bad idea? I'm just curious...
  
   A new command to set the style for the number is OK but you need also
   one for the text but this need to be done by Hans because it is not
   possible to change the style for the predefined command in, at ... with
   the current implementation.
  
   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
   
 ___
  

 Hi!

  As a new Context user (former LateX) from Sweden according to the above
  discussion about references style to figures. I have a following
  question. How do I customize the appearance of the figure text, I mean
  for example:
  Under every figure there is : Figure 1, Figure 2, Figure 3 and so on.
  How do I make it like this : Picture 1, Picture 2, Picture 3 or
  Picture 1a .1band such.?
  In the swedish translation there is Figur 1...
  I understand that it has to do with defining my own kind of \definefloat
  or similar.

  Best Regards

  Janneman

  -BEGIN PGP SIGNATURE-
  Version: GnuPG v1.4.6 (GNU/Linux)
  Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

  iD8DBQFH24Yr/zRis+sQPvARAltuAKCRX8yebwmD1hUvOrO0lToDea+RowCgp1/E
  QuGKQMpRfcnoMSU0lXkVE28=
  =wSRD
  -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
  
 ___



-- 
Johan Sandblom, MD PhD
m +46735521477  Sweden
What is wanted is not the will to believe, but the
will to find out, which is the exact opposite
- Bertrand Russell
___
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] References and formulae numbers in upshape

2008-03-15 Thread Jan-Erik Hägglöf
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Johan Sandblom skrev:
 I believe the easy way is
 
 \mainlanguage{sv]
 
 which also has lots of other useful side effects.
 
 Johan, also from Sweden
 
 2008/3/15, Jan-Erik Hägglöf [EMAIL PROTECTED]:
 -BEGIN PGP SIGNED MESSAGE-
  Hash: SHA1

  Wolfgang Schuster skrev:

 On Fri, 14 Mar 2008 22:30:30 +0100
   Morgan Brassel [EMAIL PROTECTED] wrote:
  
   Le Friday 14 March 2008 09:00:49 Wolfgang Schuster, vous avez écrit :
   What do you want seems to be not possible but you could use the
   following solution although it is better to define a new command.
  
   \let\normalin\in
  
   \definereferenceformat
 [figref]
 [left=\normal,
  text=\normal Figure,
  command=\normalin]
  
   \let\in\figref
  
   \starttext
  
   \placefigure
 [here][fig:det]
 {Example}
 {\blackrule[width=3cm,height=3cm]}
  
   \it See \in[fig:det] for details.
  
   \stoptext
  
   Thank you for your help, Wolfgang! I think I'll define a new \ref command
   similar to the one in LaTeX, with upshape number. But maybe a new option
   would be welcome? (just as for numberstyle=normal in \setupformulae). 
 What do
   you think? Is it a bad idea? I'm just curious...
  
   A new command to set the style for the number is OK but you need also
   one for the text but this need to be done by Hans because it is not
   possible to change the style for the predefined command in, at ... with
   the current implementation.
  
   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
   
 ___
  

 Hi!

  As a new Context user (former LateX) from Sweden according to the above
  discussion about references style to figures. I have a following
  question. How do I customize the appearance of the figure text, I mean
  for example:
  Under every figure there is : Figure 1, Figure 2, Figure 3 and so on.
  How do I make it like this : Picture 1, Picture 2, Picture 3 or
  Picture 1a .1band such.?
  In the swedish translation there is Figur 1...
  I understand that it has to do with defining my own kind of \definefloat
  or similar.

  Best Regards

  Janneman

  -BEGIN PGP SIGNATURE-
  Version: GnuPG v1.4.6 (GNU/Linux)
  Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

  iD8DBQFH24Yr/zRis+sQPvARAltuAKCRX8yebwmD1hUvOrO0lToDea+RowCgp1/E
  QuGKQMpRfcnoMSU0lXkVE28=
  =wSRD
  -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
  
 ___

 
 
Good to have more pals from sweden!

Thanks for the answer, actually it was not what I meant.
I already use \mainlanguage[sv], but how do you customize so it appears
like: Bild 1 , Bild 2, .. or  whatever 1 whatever 2 .  or maybe
if you want to referencing to subfigures like whatever 1a  whatever 1b ?

Thanks in Advance

Best Regards

Janneman -- Örebro - sweden


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFH25Kb/zRis+sQPvARApFAAKC+TUUkQObvJwQQPvkjNP86tCH3CgCgjRZI
mcVAhziSRr0JkjOU2otjqT4=
=Eo0R
-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] References and formulae numbers in upshape

2008-03-14 Thread Morgan Brassel
Le Friday 14 March 2008 09:00:49 Wolfgang Schuster, vous avez écrit :
 What do you want seems to be not possible but you could use the
 following solution although it is better to define a new command.

 \let\normalin\in

 \definereferenceformat
   [figref]
   [left=\normal,
text=\normal Figure,
command=\normalin]

 \let\in\figref

 \starttext

 \placefigure
   [here][fig:det]
   {Example}
   {\blackrule[width=3cm,height=3cm]}

 \it See \in[fig:det] for details.

 \stoptext

 Wolfgang

Thank you for your help, Wolfgang! I think I'll define a new \ref command 
similar to the one in LaTeX, with upshape number. But maybe a new option 
would be welcome? (just as for numberstyle=normal in \setupformulae). What do 
you think? Is it a bad idea? I'm just curious...

Morgan
___
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] Indenting (again!): a real problem in indentnext=yes

2008-02-01 Thread Taco Hoekwater
[EMAIL PROTECTED] wrote:
 
 Sorry, I wasn't precise enough: I would like to indent paragraphs inside a 
 block
 created with \defineenumeration (like theorems...), not inside an itemize 
 block.
 The output in this latter case is indeed quite awful.

\defineenumeration[theorem][indenting=always]

This is actually easier to find, because it actually is documented
in texshow:  http://texshow.contextgarden.net/

 Every paragraph (preceded by an empty line or \par) in the text flow will 
 get
 indented, independently of:
 * what is above (formula, float, etc)
 * what environment it belongs to (quote, theorem, abstract, etc.), as long as
 this environment doesn't need alignment (like itemize, tabular, etc.)
 
 Of course, particular objects like captions, tables, footnotes, won't be
 concerned by indenting.
 
 I hope my explanations were clear enough... If needed, I can write a small 
 LaTeX
 example and send it to the list.

The thing is that the formal specification is not clearly defined,
not even if you mention all cases. _You_ may not want indented
footnotes, but _I_ have typeset a book that did.

And consider this:

   Text text text text
   \startquotation
 Quoted text quoted text
   \stopquotation
   Text text text text

is the next Text indented, yes or no? Whether this is a 'display' or
a standalone paragraph is very much up to the document designer.

In english mathematical texts, Theorems and such are often seen as a
kind of run-in header, so that Theorem 1.  Text text text is not
indented, but that usually does not apply to Proof.  Text text text
and Remark 1.  Text text text: those usually _are_ indented.

I am being hesitant about a 'global switch' because I fear that any
automated solution only takes care of one particular set of settings,
and so does will really help that much and will become a documentation
nightmare. Imagine:

The command \indentallparagraphs will  make sure that every
paragraph in the document will get indented, regardless of its
surroundings, with the following exceptions:

* the bodies of the predefined floating objects figures, tables,
  intermezzos, graphics.
* the bodies of the predefined footnotes  endnotes, and floating
  marginals
* the contents of float captions
* the paragraph following a \stopformula, if that formula is
  not preceded by \placeformula, and there is not empty line
  inbetween.
* any itemgroups, enumerations, descriptions, floats etc. that
  were not predefined in the context core.
* ...

I hope you see the problem with that. Even a simple command like

\setupindentnext[yes]

does not work out-of-the-box, because you actually wanted

   \setupformulae[indentnext=auto] % not yes


As I said before, it may be much easier to put all this in a module
(by you, or someone else, but I guess you now have the list of desired
commands pretty much at hand?). Then you can say

\usemodule[indentall]

and the context core would not have to think about all these border
cases.


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] Indenting (again!): a real problem in indentnext=yes

2008-02-01 Thread morgan . brassel
Selon Taco Hoekwater [EMAIL PROTECTED]:

 \defineenumeration[theorem][indenting=always]

 This is actually easier to find, because it actually is documented
 in texshow:  http://texshow.contextgarden.net/

You're right. I found it there just after I sent the mail... Thank you, and
sorry I didn't look at it first.

 The thing is that the formal specification is not clearly defined,
 not even if you mention all cases. _You_ may not want indented
 footnotes, but _I_ have typeset a book that did.

It's not exactly about what _I_ want: my only wish was to recover the LaTeX
specification. And actually, I don't know if it is clearly defined or not. Maybe
I'm too used to LaTeX choices.

 And consider this:

Text text text text
\startquotation
  Quoted text quoted text
\stopquotation
Text text text text

 is the next Text indented, yes or no? Whether this is a 'display' or
 a standalone paragraph is very much up to the document designer.

Without an empty line over it, it should not be indented. It's the rule in
LaTeX, and it seems quite natural (to me). If you want it indented, you have to
start a new paragraph, with an empty line or \par. All this because quotation
can be part of a paragraph. Formulae, itemize, can also be part of a paragraph,
that's why the rule should be the same for them.

Floats, footnotes, etc. can't be part of a paragraph, that's why the rule is
different for them.

 In english mathematical texts, Theorems and such are often seen as a
 kind of run-in header, so that Theorem 1.  Text text text is not
 indented, but that usually does not apply to Proof.  Text text text
 and Remark 1.  Text text text: those usually _are_ indented.

For theorem like environments, I'd follow the choices of the AMS. The text
inside theorems should follow the same rule as the main text outside. The head
of theorems never get indented (by default).

 I am being hesitant about a 'global switch' because I fear that any
 automated solution only takes care of one particular set of settings,
 and so does will really help that much and will become a documentation
 nightmare. Imagine:

 The command \indentallparagraphs will  make sure that every
 paragraph in the document will get indented, regardless of its
 surroundings, with the following exceptions:

 * the bodies of the predefined floating objects figures, tables,
   intermezzos, graphics.
 * the bodies of the predefined footnotes  endnotes, and floating
   marginals
 * the contents of float captions
 * the paragraph following a \stopformula, if that formula is
   not preceded by \placeformula, and there is not empty line
   inbetween.

\placeformula shouldn't modify anything there...

 * any itemgroups, enumerations, descriptions, floats etc. that
   were not predefined in the context core.
 * ...

 I hope you see the problem with that. Even a simple command like

 \setupindentnext[yes]

 does not work out-of-the-box, because you actually wanted

\setupformulae[indentnext=auto] % not yes

auto seems indeed to be the default in LaTeX.



 As I said before, it may be much easier to put all this in a module
 (by you, or someone else, but I guess you now have the list of desired
 commands pretty much at hand?). Then you can say

 \usemodule[indentall]

 and the context core would not have to think about all these border
 cases.

I understand that it's delicate to modify the core for such questions. My point
is that I always found indenting clear or coherent in LaTeX: you want an
indented line, then leave an empty line before. In ConTeXt, I had to fight a bit
to recover this simple rule. But as I said, maybe I'm too used to LaTeX
choices...

As you suggest, I will put every command I used in a separate file, and try to
produce a module out of it. I'm not sure I have sufficient knowledge for this
yet, but I'll try.

Last of all, I want to thank you for all your answers, and apologize for my poor
english: I might seem a bit rude, but this is clearly not my wish.

Best regards,
Morgan

___
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] Indenting (again!): a real problem in indentnext=yes

2008-01-31 Thread morgan . brassel
Selon Taco Hoekwater [EMAIL PROTECTED]:

 [EMAIL PROTECTED] wrote:
  Ah, misunderstood. You want
 
 \setupformulae[indentnext=auto]
 
  Thank you, Taco! And may I ask the difference with the 'yes' option? Is it
  documented somewhere? I'm having a real hard time understanding all the
  mechanisms of indenting in ConTeXt...

 The 'auto' indents the next paragraph, but only if it is a separate
 paragraph (empty line or \par command following the \stop.. command)

Thank you, that's precisely what I needed.


 Indenting is not much more complex than this: there is \indenting
 with its (pretty long) list of arguments, and then there are the
 indentnext=[yes|no|auto] option available after various block-creation
 commands.

 The indentnext key is relatively new, and is added for requests
 similar to yours, but at a smaller scale. Some layouts ask for
 indentation after itemizations but not after floats, sometimes there
 is a need for 'auto' for formulae but often you really want 'no',
 some styles indent after block quotations, others dont, etc. etc.

Ok, it's clearer to me now. Then I've got one last question on the subject: I
didn't manage to have paragraph indented inside an 'enumeration' block, is there
an option to do that? Thank you for your patience!

I still think that it would be great to have one option to indent absolutely all
paragraphs...

Best regards,
Morgan



 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

___



___
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] Indenting (again!): a real problem in indentnext=yes

2008-01-30 Thread morgan . brassel
Hi,

Sorry but I'm going to talk about indenting again. This time, it seems to me
that there is really something wrong with the indentnext=yes option. Look at the
following example, it speaks for itself (or at least I hope so).

\setupindenting[yes,medium]
\setupformulae[indentnext=yes]
\starttext

This is my first formula:
\startformula x = 1, \stopformula
and this line should not be indented because it's still in the same sentence.
There is no line skip in the source file, and no new paragraph created.

This is my second formula:
\startformula x = 2. \stopformula

This line has to be indented (and it is!), as this is truely a new paragraph.

\stoptext

The option indentnext=yes does not handle properly the first situation. What do
you think?

Thanks for your answers, and sorry to bother you again and again!
Morgan
___
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] Indenting (again!): a real problem in indentnext=yes

2008-01-30 Thread Taco Hoekwater
[EMAIL PROTECTED] wrote:
 Selon Taco Hoekwater [EMAIL PROTECTED]:
 
 [EMAIL PROTECTED] wrote:
 The option indentnext=yes does not handle properly the first situation.
 What do
 you think?
 That works for me as it should. My context: 2008.01.28, pdftex 1.40.5
 What are your versions?
 
 I'm using the context package in debian sid:
 * context: 2008.01.02
 * pdftex: 1.40.3
 
 But I also tried with ConTeXt live, and the result is the same... Notice that
 the line after the first formula should NOT be indented. How is it with your
 installation?

Ah, misunderstood. You want

   \setupformulae[indentnext=auto]

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] Indenting (again!): a real problem in indentnext=yes

2008-01-30 Thread morgan . brassel
Selon Taco Hoekwater [EMAIL PROTECTED]:

 [EMAIL PROTECTED] wrote:
  Selon Taco Hoekwater [EMAIL PROTECTED]:
 
  [EMAIL PROTECTED] wrote:
  The option indentnext=yes does not handle properly the first situation.
  What do
  you think?
  That works for me as it should. My context: 2008.01.28, pdftex 1.40.5
  What are your versions?
 
  I'm using the context package in debian sid:
  * context: 2008.01.02
  * pdftex: 1.40.3
 
  But I also tried with ConTeXt live, and the result is the same... Notice
 that
  the line after the first formula should NOT be indented. How is it with
 your
  installation?

 Ah, misunderstood. You want

\setupformulae[indentnext=auto]

Thank you, Taco! And may I ask the difference with the 'yes' option? Is it
documented somewhere? I'm having a real hard time understanding all the
mechanisms of indenting in ConTeXt...


 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

___



___
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] Indenting (again!): a real problem in indentnext=yes

2008-01-30 Thread Taco Hoekwater
[EMAIL PROTECTED] wrote:
 Ah, misunderstood. You want

\setupformulae[indentnext=auto]
 
 Thank you, Taco! And may I ask the difference with the 'yes' option? Is it
 documented somewhere? I'm having a real hard time understanding all the
 mechanisms of indenting in ConTeXt...

The 'auto' indents the next paragraph, but only if it is a separate
paragraph (empty line or \par command following the \stop.. command)

Indenting is not much more complex than this: there is \indenting
with its (pretty long) list of arguments, and then there are the
indentnext=[yes|no|auto] option available after various block-creation
commands.

The indentnext key is relatively new, and is added for requests
similar to yours, but at a smaller scale. Some layouts ask for
indentation after itemizations but not after floats, sometimes there
is a need for 'auto' for formulae but often you really want 'no',
some styles indent after block quotations, others dont, etc. etc.

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] ConTeXt-ifying Kile

2008-01-02 Thread Matija Šuklje
# \processaction
# \processallactionsinset
\processblocks[names][names]
# \processcommacommand
# \processcommalist
# \processfirstactioninset
\processpage[names][yes|no]
# \processXMLbuffer
# \processXMLelement
# \processXMLfile
# \processXMLfilegrouped
# \product
\program[name]
# \project
# \protect
\publication[reference]
\quotation{text}
\quote{text}
\ran{text}
# \readfile
\ref[t|p|r|s|e][reference]
\reference[reference]{text}
\referral[options]
\referraldate
\register[text]{register+register+register}
\reservefloat[options][text][references]{text}
\reset[names]
# \resetlayer
\resetmarking[name]
\rightaligned{text}
\Romannumerals{text}
\romannumerals{text}
\rotate[settings]{text}
# \saveXMLasdata
# \saveXMLdata
# \saveXMLelement
# \sbox
\scale[options]{text}
# \scratchbox
# \scratchcounter
# \scratchdimen
# \scratchskip
\screen
\section[references]{text}
\seeregister[text]{text}{text+text+text}
\selectblocks[names][names][critererium]
\selectpaper[options]
\selectversion
# \setcollector
# \setevalue
# \setevariables
# \setflag
# \setfontstrut
# \setgvalue
# \setgvariables
# \setlayer
# \setlayerframed
# \setlocalhsize
# \setstrut
\settextvariable[name]{text}
\setupalign[options]
\setuparranging[options]
# \setupattachments
\setupbackground[options]
\setupbackgrounds[position][position][state][settings]
\setupblackrules[options]
\setupblank[options]
\setupblock[names][options]
\setupbodyfont[options]
\setupbodyfontenvironment[settings][settings]
\setupbottom[settings][settings]
\setupbottomtexts[text|margin|edge][text|section|date|mark|pagenumber][text|section|date|mark|pagenumber]
\setupbuffer[name][options]
\setupbuttons[state][settings]
\setupcapitals[title=yes|no][sc=yes|no]
\setupcaption[name][settings]
\setupcaptions[options]
\setupclipping[options]
\setupcolor[name]
\setupcolors[options]
\setupcolumns[options]
\setupcombinations[options]
\setupcombinedlist[name][levels and options]
\setupcomment[options]
\setupdescriptions[names][options]
# \setupencoding
\setupenumerations[names][settings]
\setupexternalfigures[options]
\setupfield[name][label|horizontal|vertical|frame][settings]
\setupfields[names][reset|label|horizontal|vertical|frame][options][settings][settings]
\setupfillinlines[options]
\setupfillinrules[options]
\setupfloat[name][options]
\setupfloats[options]
\setupfloatsplitting[options]
# \setupFLOWcharts
# \setupFLOWlines
# \setupFLOWshapes
# \setupfontsynonym
\setupfooter[text|margin|edge][options]
\setupfootertexts[text|margin|edge][text|section|date|mark|pagenumber][text|section|date|mark|pagenumber]
\setupfootnotedefinition[settings]
\setupfootnotes[options]
\setupforms[method=HTML|FDF]
\setupformulae[options]
\setupframed[options]
\setupframedtexts[options]
\setuphead[sections][options]
\setupheader[text|margin|edge][options]
\setupheadertexts[text|margin|edge][text|section|date|mark|pagenumber][text|section|date|mark|pagenumber]
\setupheadnumber[section][number|+number|-number]
\setupheads[options]
\setupheadtext[language code][name=text]
\setuphyphenmark[sign=-|--|---|( )|=|/]
\setupindentations[names][options]
\setupindenting[none|small|medium|big|next|first|normal|odd|even|dimension]
\setupinmargin[left|right|number][options]
\setupinteraction[options]
\setupinteractionbar[options]
\setupinteractionscreen[options]
\setupinterlinespace[reset|small|medium|auto|big|on|off][options]
\setupitemgroup[name][number|each][options][options]
\setupitems[options]
\setuplabeltext[language code][name=text]
\setuplanguage[language code][settings]
# \setuplayer
\setuplayout[options]
\setuplegend[options]
\setuplinenumbering[options]
\setuplines[options]
\setuplinewidth[dimension]
\setuplist[names][options]
\setupmakeup[name][options]
\setupmarginblocks[options]
\setupmarginrules[level=number|rulethickness=dimension]
\setupmarking[name][options]
\setupnarrower[options]
\setupnumbering[options]
\setupoppositeplacing[options]
\setupoutput[names]
\setuppagenumber[number][state=start|stop|keep]
\setuppagenumbering[options]
\setuppagetransitions[options]
\setuppalet[name]
\setuppaper[options]
\setuppapersize[typesetting papersize][printing papersize]
\setupparagraphnumbering[options]
\setupparagraphs[name][number|each][options]
\setuppositioning[options]
\setupprofiles[options]
\setupprograms[directory=text]
\setuppublications[options]
\setupquote[options]
\setupreferencelist[names][options]
\setupreferencing[options]
\setupregister[singular][name][options]
\setuprotate[options]
\setuprule[name][options]
# \setups
\setupscreens[options]
\setupsection[name][name][options]
\setupsectionblock[name][options]
\setupsorting[name][options]
\setupspacing[broad|packed]
\setupstrut[yes|no|cap|text]
\setupsubpagenumber[options]
\setupsymbolset[name]
\setupsynchronization[state=start|stop]
\setupsynchronizationbar[options]
\setupsynonyms[name][options]
\setupsystem[options]
\setuptab[options]
# \setupTABLE
\setuptables[options]
\setuptabulate[name][options]
\setuptext[text|margin|edge][options

Re: [NTG-context] About the indent after a displayed formula

2007-12-19 Thread Wolfgang Schuster
2007/12/19, Longmin Wang [EMAIL PROTECTED]:
 Dear all,

 I found that if a paragraph is ended by a displayed formula, the first
 line of the next paragraph will not indent. It is a feature or bug?
 And how do I enable this indent?

 The following is a very simple example. Please note the second
 paragraph.

 \setupindenting[medium, yes]
 \starttext
 This is a test file.
 \startformula
 x^2+y^2=1.
 \stopformula

 This is a test file.

 This is a test file.
 \stoptext

This is the normal behaviour in ConTeXt but you can change it.

\setupformulae[indentnext=auto] % or yes

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] Context 2006.07.13 released

2006-07-14 Thread Taco Hoekwater
Hello all,

I am pleased to announce that the new ConTeXt release from Hans Hagen
can be downloaded as of now from the Pragma ADE website or one of its
mirrors.

   http://www.pragma-ade.com/context/current/cont-tmf.zip
   http://context.aanhet.net/context/current/cont-tmf.zip
   http://mirror.contextgarden.net/context/current/cont-tmf.zip

The current release has version 2006.07.13

A very short list of changes is given below. As usual, there is an
html page with more detailed release notes available on the Wiki, see:

   http://wiki.contextgarden.net/Release_Notes

New features since  2006.05.11:

* The use of \sometxt in MetaPost figures (instead of \textext) can
   remove the need for indirect texexec runs, resulting in a massive
   speed improvement for heavy documents.
* Table splitting is reimplemented and improved
* Initial support for the new TeXGyre font families
* A new release of the bib module, with better support for
   interaction and per-chapter bibliographies
* Some small extensions to \framed
* The database module now supports ASCII (non-TeX) files with CSV
   quoting
* \setupformulae accepts a conversion parameter now
* More built in math support (matrices etc.)
* A prerelease of the koeieletters font
* A new module for R integration
* Itemizations can be randomized (for multiple-choice courseware)
* Support for typesetting OpenMath (via MathML)

Happy TeXing,

Taco Hoekwater
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Alignments side by side

2006-01-16 Thread Willi Egger

Hi David,

you can play with placing floats in a combination:
\setupoutput[pdftex]
\setupformulae[location=left,margin=no]
\startbuffer[1]
\framed[frame=on,width=fit]
{\startformula
\eqalign{
 f(x)=x2-2x-3\cr
 f(x)=x^02x+1-1-3\cr
 f(x)=(x-1)2-4}
\stopformula}
\stopbuffer

\startbuffer[2]
\framed[frame=on,width=fit]
{\startformula
\eqalign{
 f(x)=x2-2x-3\cr
 f(x)=x^02x+1-1-3\cr
 f(x)=(x-1)2-4}
\stopformula}
\stopbuffer

\starttext
\placefigure[-]{none}
{\startcombination[2*1]
   {\externalfigure[1][width=.45\textwidth,type=buffer]}{}
   {\externalfigure[2][width=.45\textwidth,type=buffer]}{}
\stopcombination}
\stoptext

Willi

David Arnold wrote:


All,

I am wondering how I can put two alignment environments side-by-side?

For test purposes, it's OK to use this twice.

\placeformula[-]
\startformula
\eqalign{
  f(x)=x^2-2x-3\cr
  f(x)=x^02x+1-1-3\cr
  f(x)=(x-1)^2-4}
\stopformula

I'd like to get two of these side-by-side, or something that will  
typeset a similar result side-by-side.


Thanks.
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] How to \bf for math?

2006-01-16 Thread David Munger
Hi Mojca,

I must say I understand about nothing about fonts in ConTeXt. But I've
somehow managed do define a bold vector command, working in my
environment. I hope it helps.



\definetypeface [boldmath] [mm] [boldmath] [latin-modern] [default]

% boldsymbol work-around

\setupformulae[method=bold]
\define[1]\boldsymbol{\hbox{\formula[boldmath]{#1}}}
\define[1]\boldsymbolscript{\hbox{\formula[boldmath,script]{#1}}}
\define[1]\boldsymbolscriptscript{\hbox{\formula[boldmath,scriptscript]{#1}}}

% bold vector

\define[1]\bvec{{%
  \mathchoice
{\let\bs=\boldsymbol}%
{\let\bs=\boldsymbol}%
{\let\bs=\boldsymbolscript}%
{\let\bs=\boldsymbolscripscript}%
  \bs{#1}}}



Mojca Miklavec :
 Hello,
 
 What exactly is the ConTeXt alternative to LaTeX's \mathbf (switch to
 bold or bold italic math fonts)?


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Reg. fonts and math

2006-01-14 Thread Aditya Mahajan

--- On Jan 14, Adam Duck wrote ---


Just to give you some hints what's already there...

Aditya Mahajan [EMAIL PROTECTED] writes:

 63 lines deleted by Adam Duck 

1. Have align support with variable number of columns.
 a = b
   = c + d
   + e

should be typeset as

 a = b
   = c + d
   + e


At least this should be possible with \wall and \return (using the
nath module), like this:

#v+
a \wall = b \\
= c \wall + d \\
+ e
\return\return
#v-



Unfortunately, if I use nath, I can not use underbrace inside 
\startstop align of nath. See a previous post of mine with the subject 
'Nath bug?'. It will be nice if I can use both solutions.




 20 lines deleted by Adam Duck 

5. have a splitformula environment that allows

 a = b
 + c \\
 + d

to come out as

  a = b
  + c
  + e(1)

with only one formula number. The formula number should be at the last
line or the center of the whole formula, configurable by an option.

 142 lines deleted by Adam Duck 

Again, this is a \wall-\return thingy, but \placeformula places the
number vertically centered...


Is there someway in which the formula numbering can be forced to be at 
the bottom. Maybe by adding an option to setupformulae. Latex has a 
class option ctags/tbtags which controls this.




[ useful example snipped]


Thanks,
Aditya

--
Aditya Mahajan, EECS Systems, University of Michigan
http://www.eecs.umich.edu/~adityam || Ph: 7342624008
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] nath problems and patches

2004-08-13 Thread Christopher Creutzig
Giuseppe,
 you may or may not know about these problems already, so I decided to 
simply send them all.  I'm using t-nath.tex 2003.12.08, updated five 
minutes ago from www.tug.org, ConTeXt 2004.6.26, and pdfeTeX 
3.14159-1.10b-2.1 (Web2C 7.4.5).

nath seems to have trouble with $$...$$-formulas. This file won't compile:
\usemodule[nath]
\starttext
\placeformula
$$a$$
\stoptext
Error message:
Runaway argument?
\@@dollar {\to \asciiB \ExpandBothAfter \doifincsnameelse \asciiA 
\asciiB \ETC.
! File ended while scanning use of \convertargument.

Replacing $$...$$ by \startformula...\stopformula fixes this, but the 
following file won't compile either:

\usemodule[nath]
\starttext
\placeformula
\startformula \sum_{i=0}^m a_i\stopformula
\stoptext
The culprit, it seems, is that \inlinemath uses \xdef, but \mathop@@@ 
puts unexpandable code into the argument of ^ and _.  The following 
hackery seems to work:

\def\mathop@@@{%
 \ifsp@
  ^{\hbox{\edef\noexpand\!!stringa%
[EMAIL PROTECTED]@toks}}%
   \def\noexpand\\{,\ }\noexpand\!!stringa}}
 \fi
 \ifsb@
  _{\hbox{\edef\noexpand\!!stringa%
[EMAIL PROTECTED]@toks}}%
   \def\noexpand\\{,\ }\noexpand\!!stringa}}
 \fi}
Though I must confess I don't understand why the complexity with 
introducing \!!stringa is needed.  The following version works for me:

\def\mathop@@@{%
 \pushmacro\\
 \def\\{\noexpand\text{, }}%
 \ifsp@
   [EMAIL PROTECTED]
 \fi
 \ifsb@
   [EMAIL PROTECTED]
 \fi
 \popmacro\\}

Parentheses in display formulas don't work:
\usemodule[nath]
\starttext
\startformula (x) \stopformula
\stoptext
 I don't know if at some time ConTeXt placed \the\everymath inside 
\everydisplay, but with the current ConTeXt, you need to \appendtoks to 
both.  I regard the output as broken, but at least it will compile.


 Another bug: t-nath.tex defines \savecatcode and \restorecatcode, but 
these names have already been used in verb-ini.tex.  I have locally 
replaced these with \nath!savecatcode and \nath!restorecatcode, seems to 
work.


A math problem not related to nath:
\starttext
\setupformulae[align=left]
\startformula
  \eqalignno{a=b\cr c=d}
\stopformula
\stoptext
doesn't work for me.  Anyone else?
Regards,
Christopher Creutzig
PS: I won't be able to read mails in the next four weeks.
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] boldsymbol workaround

2004-02-22 Thread David Munger
Hi all,

I've just found a little workaround for using boldsymbols. It works  
even with the nath module. It's probably not the best way of doing it,  
but since it does the trick for me, I guess it might useful to other  
ConTeXters.

Here it is:

\define[1]\boldsymbol{{\hbox{\formula{\bfm #1

I also have to:

\definebodyfont
 [17.3pt,14.4pt,12pt,11pt,10pt,9pt,8pt,7pt,6pt,5pt,4pt]
 [mm]
 [mrbf=cmbx10 sa 1,
  exbf=cmex10  sa 1,
  mibf=cmmib10 sa 1,
  sybf=cmbsy10 sa 1,
  mabf=msam10  sa 1]
\setupformulae[method=bold]

Then, I may define very handy commands like

\define\grad{\boldsymbol{\nabla}}
\define[1]\vec{\boldsymbol{#1}}
\define[1]\unitvec{\hat{\vec{#1}}}
and formulas like this typeset perfectly:

\[ \grad h = a \unitvec{n} \]



___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Aligned numbered math formulas

2003-08-15 Thread Holger Schöner
Hello,

For a publication I need to typeset a lot of math formulas. To make them
as comprehensible as possible, I need a few specialties, and would
appreciate any suggestions you can provide:
1) Some of the formulas should be numbered, some not; and at the same time
I would like to align several of them.
For alignment I seem to be able to use \eqalign (or \startalign ...
\stopalign from the t-amsl.tex sent around here lately). But if I place a
\placeformula in front of this, the whole aligned block only gets one
number; I would need a number for every line (or even better: a possibility
to state, which lines should be numbered, and which not).
By looking into core-mat.tex I found the commands \formulanumber and
\subformulanumber which I can add after each line, if I want it to be
numbered. Unfortunately they only set numbers, if the whole aligned block
also is numbered (by using \placeformula), and they furthermore do not put
the number beside the right margin, as is done by \placeformula, but
directly where the \formulanumber appears.
How can I enable the numbers even when not using \placeformula (or when
using \placeformula[-]), and how can it put the numbers next to the right
margin?
2) What are the keywords alternative and indentnext in \setupformulae
meant for? Is there any documentation available concerning math formulae,
besides ConTeXt, the manual?
3) I'd like to be able to set more than one line below large math operators,
e.g. something like \sum_{m: \\ 1 \leq m \leq M}. Unfortunately this does
not work as expected (it seems to conflict with the \startalign block). Is
there another possibility?
4) Using the alignment features (\eqalign or \startalign, \stopalign) I
often have the problem, that the (quite space consuming) formulas all appear
on the next page, separated from its introductory text. I would like to have
either also the introductory text put onto the next page (but neither
\page[no] between text and formulas, nor \page[preference] before the
introductory text work), or alternatively, to be able to (automatically)
break the formulas inside the alignment block (whether alignment is kept
up or not between pages does not matter for me). Is there a solution for
either way?
I am using:
--
This is pdfeTeX, Version 3.14159-1.00a-pretest-2004-ojmw-2.1 (Web2C 7.3.7)
[...]
ConTeXt  ver: 2003.2.11  fmt: 2003.4.4  int: english  mes: english
--
--
Holger F. Schoener  TU Berlin; Dept. IV: EE and Computer Science
[EMAIL PROTECTED]   http://www.cs.tu-berlin.de/~hfsch/
Rooms FR2525Tel: +49-30-314-73115, Fax: -73121
Office FR 2-1   Franklinstr. 28/29, D-10587 Berlin, Germany


___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Aligned numbered math formulas

2003-08-15 Thread Holger Schöner
Hi,

On Thu, 14 Aug 2003, Tobias Burnus wrote:
 On Thu, 14 Aug 2003, Holger Schöner wrote:
  Thanks, Tobias! This works for me, if I place a \placeformula before
  formulas enclosed by $$. Funny, though, that I get an error if I instead
  enclose the formula with \startformula ... \endformula:
 Here it works with \startformula \stopformula [stop not end].

All right, I used \stopformula ... And I just found out the reason, it
seems: I used

\setupformulae[align=right]

Then, if I use $$ instead of \startformula, I get centered formulas anyway.
If I remove the \setupformulae, then I can also use \startformula ...

So in the moment I have resolved to using centered formulae.

Best regards,

-- 
Holger F. Schoener  TU Berlin; Dept. IV: EE and Computer Science
[EMAIL PROTECTED]   http://www.cs.tu-berlin.de/~hfsch/
Rooms FR2525Tel: +49-30-314-73115, Fax: -73121
Office FR 2-1   Franklinstr. 28/29, D-10587 Berlin, Germany

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Aligned numbered math formulas

2003-08-14 Thread Holger Schöner
Hi,

On Thu, 14 Aug 2003, Tobias Burnus wrote:
 On Thu, 14 Aug 2003, Holger Schöner wrote:
  Thanks, Tobias! This works for me, if I place a \placeformula before
  formulas enclosed by $$. Funny, though, that I get an error if I instead
  enclose the formula with \startformula ... \endformula:
 Here it works with \startformula \stopformula [stop not end].

All right, I used \stopformula ... And I just found out the reason, it
seems: I used

\setupformulae[align=right]

Then, if I use $$ instead of \startformula, I get centered formulas anyway.
If I remove the \setupformulae, then I can also use \startformula ...

So in the moment I have resolved to using centered formulae.

Best regards,

-- 
Holger F. Schoener  TU Berlin; Dept. IV: EE and Computer Science
[EMAIL PROTECTED]   http://www.cs.tu-berlin.de/~hfsch/
Rooms FR2525Tel: +49-30-314-73115, Fax: -73121
Office FR 2-1   Franklinstr. 28/29, D-10587 Berlin, Germany


___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context