Re: [NTG-context] Vertical padding in tables

2016-09-11 Thread Jose Luis Arellano
Hi Wolfgang,

Thanks for the answer, the strut option was the trick.

What am trying to do is create a table without frames in body and set
the distance between text in cells to match the distance defined in
\setupinterlinespace.
How can i do that?

Thanks.
___
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] Math letters in commands

2016-09-11 Thread Hans Åberg
Just found that the code below does not work as intended, because \퐝퐢퐦 will be 
parsed as \퐝 followed by 퐢퐦. Can’t tell if it ought to be changed, though one 
could think other cases where it might be natural. The command definition of \퐝 
works though.


\setupbodyfont[xits,10pt]

\setupmathematics[lcgreek=normal, default=normal]

\definemathcommand[퐝퐢퐦][nolop]{\mfunction{퐝퐢퐦}}
\definemathcommand[퐝][nolop]{\mfunction{퐝퐢퐦}}

\starttext

Note that $\퐝퐢퐦 푉 = 햫$, although $\dim 푉 = 4$.

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

Re: [NTG-context] Problem with \leqalignno

2016-09-11 Thread Mingranina Gingranina
Dear Aditya, Otared, and Hans,
 Hello,

 Thank you all very much for your help. Your codes work fine. However when I use
 \setupformulas[location=right] the equation numbers apperar on the rightmost of
 the line, but with \setupformulas[location=left] the equation numbers
appear near
 the formulas and not on leftmost of the line. What should I do so
that in both cases
 the equation numbers appear near the formulas or with
\setupformulas[location=left]
 the equation numbers appear on the leftmost of the line?

 Thanks
 Mingranina

 --
 Luatex Version: 0.98.3
 ConTeXt Version: 2016.09.06 19:11 MKIV beta  fmt: 2016.9.9  int:
english/english


On 9/11/16, Hans Hagen  wrote:
> On 9/11/2016 11:28 AM, Otared Kavian wrote:
>> Hi Mingranina,
>>
>> For displayed aligned formulas it is better to use \startalign…\stopalign,
>> instead of the plain TeX construction \leqalignno.
>
> indeed, and at some point they might even get nilled .. we can't use
> them in complex cases anyway
>
> Hans
>
> -
>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://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Vertical padding in tables

2016-09-11 Thread Wolfgang Schuster

Jose Luis Arellano 
11. September 2016 um 11:58
Dear list.

How can I control vertical padding in natural tables?
You can use offset the control the padding on all four sides and loffset 
etc. for the individual sides.


\startTEXpage[offset=1cm]

\bTABLE[offset=1mm,strut=no,style={\switchtobodyfont[tt,40pt]}]
\bTR
\bTD[loffset=1cm,toffset=1cm]
A
\eTD
\bTD[roffset=1cm,toffset=1cm]
B
\eTD
\eTR
\bTR
\bTD[loffset=1cm,boffset=1cm]
C
\eTD
\bTD[roffset=1cm,boffset=1cm]
D
\eTD
\eTR
\eTABLE

\stopTEXpage

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

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

Re: [NTG-context] Typset Text on odd pages only

2016-09-11 Thread Michael Eidenbenz
thanks a lot.
I definitely have to look at the basics of TeX sooner or later.

michael


> On 09 Sep 2016, at 08:10, Hans Hagen  wrote:
> 
> On 9/6/2016 5:48 PM, Michael Eidenbenz wrote:
>> Hello,
>> 
>> I'm looking for a way to produce a doublesided document with text on the odd 
>> pages only and floats on the even pages.
>> 
>> Can somebody guide me in the right direction?
>> 
>> Will something like \doifoddpageelse {typsettext} {\page} work?
> 
> \setuppagenumbering
>  [alternative=doublesided]
> 
> \starttext
> 
>\newtoks \SavedFloats
> 
>\appendtoks
>\the\SavedFloats
>\global\SavedFloats\emptytoks
>\page
>\to \everybeforeoutput
> 
>\page[right]
> 
>\dorecurse{100}{
>\input tufte
>\par
>\appendtoks
>\placefigure[here]{}{}
>\to \SavedFloats
>\input ward
>\par
>}
> 
> \stoptext
> 
> better is to hook it into the otr (flush spreads) and collect floats 
> differently so that the output routine can flush only as much as can be on 
> one page
> 
> i can't make time now to write that (can be a quick hack but that's not ideal)
> 
> Hans
> 
> 
> 
> -
>  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://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___

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

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

Re: [NTG-context] Problem with \leqalignno

2016-09-11 Thread Otared Kavian
Hi Mingranina,

For displayed aligned formulas it is better to use \startalign…\stopalign, 
instead of the plain TeX construction \leqalignno.
Please have a look at the following:

Best regards: OK
%%% begin align-equations.tex
\starttext

\placeformula
\startformula
\startalign
\NC c^2 \NC= a^2 + b^2  \NR[+] 
\NC a^2 + b^2 \NC = c^2  \NR[+] 
\NC d^2 \NC = e^2\NR[+] 
\stopalign
\stopformula

\startsubformulas[eq:Rel]
\placeformula
\startformula
\startalign
\NC c^2 \NC= a^2 + b^2  \NR[eq:a] 
\NC a^2 + b^2 \NC = c^2  \NR[eq:b] 
\NC d^2 \NC = e^2\NR[eq:c] 
\stopalign
\stopformula
\stopsubformulas
The relations (\in[eq:Rel]) are divided into three parts, but (\in[eq:c]) is 
obvious.

\stoptext
%%% end align-equations.tex
> On 11 Sep 2016, at 03:00, Mingranina Gingranina  wrote:
> 
> Hello All,
> 
> I am trying to compile the following example (from
> http://wiki.contextgarden.net/Math/Display) with context:
> 
> \starttext
> 
> \placeformula
> \startformula
> \leqalignno{c^2 &= a^2 + b^2  &\formulanumber{a} \cr
>   a^2 + b^2 &= c^2  &\subformulanumber{b} \cr
>   d^2 &= e^2&\formulanumber\cr}
> \stopformula
> 
> \stoptext
> 
> but I get the following error message: {{{
> .
> .
> .
> tex error   > tex error on line 7 in file
> /home/user/math-example.tex: ! Undefined control sequence
> 
>  ...er {a} \cr a^2 + b^2 &= c^2 &\subformulanumber
>  {b} \cr d^2 &= e^2 &\formu...
> \math_both_eqalign_no_normal ...ratchtoks \crcr #2
>  \crcr \egroup \math_finish...
> l.7d^2 &= e^2&\formulanumber\cr}
> 
> 
> 1 \starttext
> 2
> 3 \placeformula
> 4 \startformula
> 5 \leqalignno{c^2 &= a^2 + b^2  &\formulanumber{a} \cr
> 6a^2 + b^2 &= c^2  &\subformulanumber{b} \cr
> 7 >> d^2 &= e^2&\formulanumber\cr}
> 8 \stopformula
> 9
> 10 \stoptext
> 11
> 
> 
> ?
> }}}
> 
> Am I doing something wrong? Any help would be gratefully appreciated.
> 
> Thanks
> Mingranina
> 
> --
> Luatex Version: 0.98.3
> ConTeXt Version: 2016.09.06 19:11 MKIV beta  fmt: 2016.9.9  int:
> english/english
> ___
> 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] Vertical padding in tables

2016-09-11 Thread Jose Luis Arellano
Dear list.

How can I control vertical padding in natural tables?

Thanks
___
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] Problem with \leqalignno

2016-09-11 Thread Hans Hagen

On 9/11/2016 11:28 AM, Otared Kavian wrote:

Hi Mingranina,

For displayed aligned formulas it is better to use \startalign…\stopalign, 
instead of the plain TeX construction \leqalignno.


indeed, and at some point they might even get nilled .. we can't use 
them in complex cases anyway


Hans

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

Re: [NTG-context] Placement of numbers in numbered equations on the left

2016-09-11 Thread Hans Hagen

On 9/11/2016 3:46 AM, Aditya Mahajan wrote:

On Sat, 10 Sep 2016, Otared Kavian wrote:


Hi Hans,

Following up the previous bug report, I tried the latest version,
ConTeXt  ver: 2016.09.09 08:21 MKIV beta, and noticed that you have
solved one part of the problem with the placement of equation numbers
on the left, when using \startalign.
Actually the location of those equation numbers is correct as far as
the horizontal distance is concerned, but it is not vertically.
In the attached PDF (which is the result of the following example) one
can see that equation number (5) is placed on the grid line 10, while
it shoul dbe placed on line 11 in alignment with the corresponding
formula. Moreover equation number (4) does not show up at all (that
number should be placed a little bit below line 9 of the grid).


I think that we need to create a test suite for math alignment. The
sources for my old article on math alignment could be the initial source
of examples.


fyi: one reason for 'issues' is that i try to simply these alignment 
mechanisms so that they can be controlled better for use in framed and 
such (local vs page stream usage) and spacing and so .. we'll get there 
eventually


Hans

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