Re: [NTG-context] Math typesetting problems

2013-01-28 Thread Janne Junnila
Indeed it seems like the alignment is good with \dfrac, but this does
not solve my problem, since I wish to also use fractions with
script-size or scriptscript-size (\xfrac, \xxfrac). The specific
formula I have is

\startformula
f_{B_t | B_s = S, B_u = U}(x) = \frac{e^{-\frac{(u-s)x^2 - 2x(S(u-t) +
U(t-s)) + \frac{(S(u-t) +
U(t-s))^2}{(u-s)}}{2(t-s)(u-t)}}}{\sqrt{2\pi\frac{(t-s)(u-t)}{u-s}}}
\stopformula

Thanks,
Janne

Roland wrote:
 With \dfrac it looks good.
 With \fraction the minus sign is on the top of the fraction.
 Best regards, Roland
___
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] Finding documentation for ConTeXt

2013-01-28 Thread Keith J. Schultz
Hi Everybody,

I am becoming more and more interested in ConTeXt.
I am gradually grasping the potential of ConTeXt and its
advantages over Lua(La)TeX.

My problem is finding decent documentation for ConTeXt.

Yes, there is ConTeXt Garden. But, let us be honest it is a big mess.
It mixes the old, the bad and the good. 
I will admit the information there has improved greatly, and
YET finding the good and recent is not that easy.

Furthermore, since I am interested in what one can and can not
do in ConTeXt, I do not know ahead of time exactly what I am looking
for.  Basically, I literally just stumble over what is good and interesting.
That would not be that bad if following the different links would not get
one lost and one can not your way back.

What would be needed are some decent top level entry points!

On Pragma there, also, are some very good documents, but if you
do not know where to look or what to look for, good searching!!

I know all you guys and gals working on ConTeXt are working hard,
but I hate to bother you with questions I want to do this or that, how do I 
or where can I find a guide on manual for this and that. You have more 
important things to do. 

Wolfgang help me with finding a ConTeXt-Lua Programming guide by Hans.
sure its new, BUT could we put such guides into the Standalone distribution!
Even if they are incomplete!

What I could use is, now,  is a ConTeXt programming guide! 

Sorry, if I seem to harsh. I do understand how much work
documentation is.
  
regards
Keith.

Am 27.01.2013 um 21:40 schrieb Hans Hagen pra...@wxs.nl:

 On 1/27/2013 5:24 PM, Mikael P. Sundqvist wrote:
 Dear list,
 
 \starttext
 text $\overrightarrow{OP}$ text
 \stoptext
 
 gives smaller letters since some time ago under the arrow. See the
 attached pdf files for the output of different versions of context
 (test.pdf is compiled with the latest beta).
 
 I think the look in test20121210.pdf is the right one.
 
 fixed. some more info about the updated mkiv arrow related mechanisms can be 
 found in
 
 http://www.pragma-ade.com/general/manuals/about.pdf
 
 (btw, one needs the latest greatest lm/gyre math fonts)

___
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] Finding documentation for ConTeXt

2013-01-28 Thread luigi scarso
On Mon, Jan 28, 2013 at 10:37 AM, Keith J. Schultz keithjschu...@web.de wrote:
 Hi Everybody,

 I am becoming more and more interested in ConTeXt.
 I am gradually grasping the potential of ConTeXt and its
 advantages over Lua(La)TeX.

 My problem is finding decent documentation for ConTeXt.
have you seen also
http://www.h2o-boeken.nl/catalog/5
?



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


Re: [NTG-context] Finding documentation for ConTeXt

2013-01-28 Thread Keith J. Schultz
Hi Luigi,

I have serval books and seen these, yet I am not sure, yet If I want
to put my money down, yet!

What is more I do not know if they are necessarily what I need.
Then there is the question, if they are up to date enough with the
fast advancing MKIV.

regards
Keith. 


Am 28.01.2013 um 10:42 schrieb luigi scarso luigi.sca...@gmail.com:

 On Mon, Jan 28, 2013 at 10:37 AM, Keith J. Schultz keithjschu...@web.de 
 wrote:
 Hi Everybody,
 
 I am becoming more and more interested in ConTeXt.
 I am gradually grasping the potential of ConTeXt and its
 advantages over Lua(La)TeX.
 
 My problem is finding decent documentation for ConTeXt.
 have you seen also
 http://www.h2o-boeken.nl/catalog/5
 ?

___
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] Coming back to ConTeXt

2013-01-28 Thread Alain Delmotte

Hi !

Le 28/01/2013 00:39, Mojca Miklavec a écrit :

On Sat, Jan 26, 2013 at 1:38 PM, Alain Delmotte wrote:



Set the repository to
  http://tlcontrib.metatex.org/2012
and make sure that you don't have ConTeXt distribution in PATH*** when
calling tlmgr.


Ok I did and it seemed to work, at least some files were updated.

But when I compiled I got the same versions' information in the log


The same version of ConTeXt or the same version of LuaTeX?

What do you get with
 luatex --version


The same versions for both context and luatex:
context 28782 20120630
luatex 26690 0.72.2-20120806

When I did update from TeX Live, 6 files were updated, but I 
did take note, unfortunately.


By the way, I have two context.exe in TeX Live in:
c:\texlive\2012\bin\win32
c:\texlive\2012\texmf-dist\scripts\context\stubs\mswin

Testing form the command line, they are the same as noted above.

The one in the standalone are:
LuaTeX, Version beta-0.75.0-201301 (rev 4565)
ConTeXt  ver: 2013.01.24 16:47 MKIV  fmt: 2013.1.25  int: 
english/english



?


By the way, for the stand alone version under TeXworks, the bin folder
information should go before those of TeX Live to avoid problems.


In TeXworks one needs to be careful about paths in either case. (But
then again, there's the same issue with basically any GUI program that
runs TeX. PATH usually needs to be set up separately from the shell.)


My paths are defined in Windows, but with TeXworks they also 
appear in the definition window for the program.

I'll enquire to see if it is possible to suppress those.

Alain



Mojca



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

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


Re: [NTG-context] Finding documentation for ConTeXt

2013-01-28 Thread Aditya Mahajan

On Mon, 28 Jan 2013, Keith J. Schultz wrote:


My problem is finding decent documentation for ConTeXt.

Yes, there is ConTeXt Garden. But, let us be honest it is a big mess.
It mixes the old, the bad and the good.
I will admit the information there has improved greatly, and
YET finding the good and recent is not that easy.

Furthermore, since I am interested in what one can and can not
do in ConTeXt, I do not know ahead of time exactly what I am looking
for.  Basically, I literally just stumble over what is good and interesting.
That would not be that bad if following the different links would not get
one lost and one can not your way back.


See http://wiki.contextgarden.net/Template:Getting_started_navbox

Aditya


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

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


Re: [NTG-context] Finding documentation for ConTeXt

2013-01-28 Thread Keith J. Schultz
Hi Aditya,

Thanx for the link.
I have already can across several of the the links on this page/NAV-box(!!),
and bookmark them.

I had notice such boxes before, but considered them to contain database
information and not further links! Learn new things everyday.

One thing is for such I can not get to this page via the ConTeXt Main Page!
At least I think not. (?)
Would be nice if this page was link to from the main page.

Again, many thanx.

regards
Keith.


Am 28.01.2013 um 15:23 schrieb Aditya Mahajan adit...@umich.edu:

 On Mon, 28 Jan 2013, Keith J. Schultz wrote:
 
 My problem is finding decent documentation for ConTeXt.
 
 Yes, there is ConTeXt Garden. But, let us be honest it is a big mess.
 It mixes the old, the bad and the good.
 I will admit the information there has improved greatly, and
 YET finding the good and recent is not that easy.
 
 Furthermore, since I am interested in what one can and can not
 do in ConTeXt, I do not know ahead of time exactly what I am looking
 for.  Basically, I literally just stumble over what is good and interesting.
 That would not be that bad if following the different links would not get
 one lost and one can not your way back.
 
 See http://wiki.contextgarden.net/Template:Getting_started_navbox

___
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] Math typesetting problems

2013-01-28 Thread Roland Thiers


Le 28 janv. 13 à 10:11, Janne Junnila a écrit :


Indeed it seems like the alignment is good with \dfrac, but this does
not solve my problem, since I wish to also use fractions with
script-size or scriptscript-size (\xfrac, \xxfrac). The specific
formula I have is

\startformula
f_{B_t | B_s = S, B_u = U}(x) = \frac{e^{-\frac{(u-s)x^2 - 2x(S(u-t) +
U(t-s)) + \frac{(S(u-t) +
U(t-s))^2}{(u-s)}}{2(t-s)(u-t)}}}{\sqrt{2\pi\frac{(t-s)(u-t)}{u-s}}}
\stopformula

Thanks,
Janne

OK !
So you need an expert, I'm just a newbie :)
I would be  interested to know how to do that.
Best, Roland




___
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] Finding documentation for ConTeXt

2013-01-28 Thread Mari Voipio
I think that one of the problems is that ConTeXt can do almost
anything, if you know how to ask it to do that. What I do is different
what most people use it for, but it works
(http://context.aanhet.net/svn/contextman/context-reference/en/co-pagedesign.pdf
and http://www.lucet.fi/2013/01/metaposting/ and
http://www.lucet.fi/2012/12/twpatterns/).

There used to be a project to create a test suite with various types
of files, but the links on the wiki refer to something from 2009 and
that is, as you say, probably a be obsolete. I remember somebody
talking about the test suite at one of the more recent ConTeXt
meetings (2011/2012) - anyone with more info on that project? I think
it'd help Keith (and many others, me included) to see what can be
done.


If you do not want to splurge in the books, the revised chapters on
typography, fonts and pagedesign are recommended reading and pretty
well up-to-date. They are linked to the main page of the garden, but
these take you directly to the pdfs:

http://context.aanhet.net/svn/contextman/context-reference/en/co-typography.pdf
http://context.aanhet.net/svn/contextman/context-reference/en/co-fonts.pdf
http://context.aanhet.net/svn/contextman/context-reference/en/co-pagedesign.pdf


Other than that, it'd be helpful to know what you are looking for: are
interested in typography, doing layouts for you and others? Is
automated workflow what you are looking for? Dealing with maths? XML?
What about dealing with colour? Interactivity?


I guess I've resigned to the fact that ConTeXt is so huge that I'll
never know more than a fraction of it - so I operate on a need-to-know
basis. I learn something either because I'm certain it can be done or
because I've seen it at a ConTeXt meeting or heard about it (a remark
by Hans is to be blamed for my recent MetaPosting excursions).


A slightly off-topic thought: there are hundreds of manuals on
Microsoft Word. However, once you start going deeper into the program,
it is not *that* easy to find a single good manual on the subject.
With ConTeXt it is the other way round, finding 'for Dummies'
information is hard, but once you want to dive deep, the developers
are on this list to answer questions.



Just my five cents on the subject,

Mari
(who still remembers what things were like before the wiki. this is
much better.)
___
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] arranging vs. \page[last]

2013-01-28 Thread Henning Hraban Ramm
latest beta of ConTeXt MkIv standalone

If I use \page[last] with arranging, ConTeXt inserts additional pages and the 
page that’s meant to be last is not:


\setuppapersize[A5][A4,landscape]
\setuparranging[2UP]

\starttext

\chapter{One}
\input tufte

\chapter{Two}
\input tufte

\page[last]
\chapter{Last}
\input tufte

\stoptext


(Workaround: make a not-arranged PDF and arrange \copypages)

Greetlings, Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

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

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


Re: [NTG-context] Math typesetting problems

2013-01-28 Thread Aditya Mahajan

On Mon, 28 Jan 2013, Roland Thiers wrote:



Le 28 janv. 13 à 10:11, Janne Junnila a écrit :


Indeed it seems like the alignment is good with \dfrac, but this does
not solve my problem, since I wish to also use fractions with
script-size or scriptscript-size (\xfrac, \xxfrac). The specific
formula I have is

\startformula
f_{B_t | B_s = S, B_u = U}(x) = \frac{e^{-\frac{(u-s)x^2 - 2x(S(u-t) +
U(t-s)) + \frac{(S(u-t) +
U(t-s))^2}{(u-s)}}{2(t-s)(u-t)}}}{\sqrt{2\pi\frac{(t-s)(u-t)}{u-s}}}
\stopformula

Thanks,
Janne

OK !
So you need an expert, I'm just a newbie :)
I would be  interested to know how to do that.
Best, Roland


I'll look into fractions later this week. All the fraction macros of 
ConTeXt were based on \genfrac macro from AMSTeX so, in principle, they 
should behave in the same manner.


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

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

Re: [NTG-context] arranging vs. \page[last]

2013-01-28 Thread Wolfgang Schuster

Am 28.01.2013 um 20:39 schrieb Henning Hraban Ramm hra...@fiee.net:

 latest beta of ConTeXt MkIv standalone
 
 If I use \page[last] with arranging, ConTeXt inserts additional pages and the 
 page that’s meant to be last is not:
 
 
 \setuppapersize[A5][A4,landscape]
 \setuparranging[2UP]
 
 \starttext
 
 \chapter{One}
 \input tufte
 
 \chapter{Two}
 \input tufte
 
 \page[last]
 \chapter{Last}
 \input tufte
 
 \stoptext

With \page[last] can fill your document with empty pages to fill the missing 
pages which are needed for a certain imposition method but you have to use it 
at the *end* of the document in *not in* the document.

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] arranging vs. \page[last]

2013-01-28 Thread Henning Hraban Ramm
Am 2013-01-28 um 21:01 schrieb Wolfgang Schuster:

 With \page[last] can fill your document with empty pages to fill the missing 
 pages which are needed for a certain imposition method but you have to use it 
 at the *end* of the document in *not in* the document.

I understood it as forward to last page and need it to place some information 
on the back page of the booklet.
That works as long as I don’t impose (arrange).

What would you suggest to put something onto the last (i.e. back) page?

Greetlings, Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

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

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


Re: [NTG-context] arranging vs. \page[last]

2013-01-28 Thread Mari Voipio
On Mon, Jan 28, 2013 at 10:17 PM, Henning Hraban Ramm hra...@fiee.net wrote:

 What would you suggest to put something onto the last (i.e. back) page?

The wiki has a trick, but I think it stopped working at some stage -
maybe somebody can fix it (if it is broken):
http://wiki.contextgarden.net/Imposition#Getting_the_last_page_of_a_Booklet

(Obviously we aren't the only ones with this problem...)


Mari
___
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] Math typesetting problems

2013-01-28 Thread Wolfgang Schuster

Am 28.01.2013 um 20:41 schrieb Aditya Mahajan adit...@umich.edu:

 On Mon, 28 Jan 2013, Roland Thiers wrote:
 
 
 Le 28 janv. 13 à 10:11, Janne Junnila a écrit :
 
 Indeed it seems like the alignment is good with \dfrac, but this does
 not solve my problem, since I wish to also use fractions with
 script-size or scriptscript-size (\xfrac, \xxfrac). The specific
 formula I have is
 \startformula
 f_{B_t | B_s = S, B_u = U}(x) = \frac{e^{-\frac{(u-s)x^2 - 2x(S(u-t) +
 U(t-s)) + \frac{(S(u-t) +
 U(t-s))^2}{(u-s)}}{2(t-s)(u-t)}}}{\sqrt{2\pi\frac{(t-s)(u-t)}{u-s}}}
 \stopformula
 Thanks,
 Janne
 OK !
 So you need an expert, I'm just a newbie :)
 I would be  interested to know how to do that.
 Best, Roland
 
 I'll look into fractions later this week. All the fraction macros of ConTeXt 
 were based on \genfrac macro from AMSTeX so, in principle, they should behave 
 in the same manner.

The \frac command uses \vcenter for the content while \dfrac and \tfrac only 
set the mathstyle before placing the content with the \over primitive.

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] Finding documentation for ConTeXt

2013-01-28 Thread Keith J. Schultz
Hi Mari,

I thank you for you post. 
Basically, what I want to do is not in ConTeXt. So will have to develop
it myself.

One such need I have is the use of Nassi-Schneidermann Diagrams.
I also, what to develop something along the line of literate programming.
For that I will create Data structures on the Lua side and then
visualize with ConTeXt in the form of UML, flowcharts, program specifications
and documentation and the output of the actual programming code.

Also, there are the things that ConTeXt and Lua(La)TeX do not offer or
are not the way I like it.

From your Link to the co-font.links.pdf  I was able to look at the 
directory it was in. Interesting, is that its coresponding tex file is a half 
an 
year younger!

What I do not understand why these documents are not in the standalone
distribution. Sure I can search the web, but that has been cumbersome and
very time consuming.

The last point you mentioned that for the deep down things there is this
list. You are right. But, comprehensive manuals are for me. And I want them
on my computer. Furthermore I need to understand the ConTeXt (mkiv) 
programming language so I understand the *mkiv files. Programming is not
new to me. 

regards
Keith.
  

Am 28.01.2013 um 18:38 schrieb Mari Voipio mari.voi...@iki.fi:

 I think that one of the problems is that ConTeXt can do almost
 anything, if you know how to ask it to do that. What I do is different
 what most people use it for, but it works
 (http://context.aanhet.net/svn/contextman/context-reference/en/co-pagedesign.pdf
 and http://www.lucet.fi/2013/01/metaposting/ and
 http://www.lucet.fi/2012/12/twpatterns/).
 
 There used to be a project to create a test suite with various types
 of files, but the links on the wiki refer to something from 2009 and
 that is, as you say, probably a be obsolete. I remember somebody
 talking about the test suite at one of the more recent ConTeXt
 meetings (2011/2012) - anyone with more info on that project? I think
 it'd help Keith (and many others, me included) to see what can be
 done.
 
 
 If you do not want to splurge in the books, the revised chapters on
 typography, fonts and pagedesign are recommended reading and pretty
 well up-to-date. They are linked to the main page of the garden, but
 these take you directly to the pdfs:
 
 http://context.aanhet.net/svn/contextman/context-reference/en/co-typography.pdf
 http://context.aanhet.net/svn/contextman/context-reference/en/co-fonts.pdf
 http://context.aanhet.net/svn/contextman/context-reference/en/co-pagedesign.pdf
 
 
 Other than that, it'd be helpful to know what you are looking for: are
 interested in typography, doing layouts for you and others? Is
 automated workflow what you are looking for? Dealing with maths? XML?
 What about dealing with colour? Interactivity?
 
 
 I guess I've resigned to the fact that ConTeXt is so huge that I'll
 never know more than a fraction of it - so I operate on a need-to-know
 basis. I learn something either because I'm certain it can be done or
 because I've seen it at a ConTeXt meeting or heard about it (a remark
 by Hans is to be blamed for my recent MetaPosting excursions).
 
 
 A slightly off-topic thought: there are hundreds of manuals on
 Microsoft Word. However, once you start going deeper into the program,
 it is not *that* easy to find a single good manual on the subject.
 With ConTeXt it is the other way round, finding 'for Dummies'
 information is hard, but once you want to dive deep, the developers
 are on this list to answer questions.
 
 
 
 Just my five cents on the subject,
 
 Mari
 (who still remembers what things were like before the wiki. this is
 much better.)
 ___
 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] Math typesetting problems

2013-01-28 Thread Aditya Mahajan

On Mon, 28 Jan 2013, Wolfgang Schuster wrote:


I'll look into fractions later this week. All the fraction macros of ConTeXt 
were based on \genfrac macro from AMSTeX so, in principle, they should behave 
in the same manner.


The \frac command uses \vcenter for the content while \dfrac and \tfrac 
only set the mathstyle before placing the content with the \over 
primitive.


Then something has been lost in the MkII - MkIV transition. I am pretty 
sure (cannot check right now), that the code in MkII used \genfrac (which 
is a fancy wrapper around \over \ovewithdelim etc)


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

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


Re: [NTG-context] Math typesetting problems

2013-01-28 Thread Otared Kavian
Hi Janne,

Personnally I prefer to use the Plain TeX alternative \over (which works fine 
in ConTeXt), that is
${a \over b}$
instead of 
$\frac{a}{b}$
Compare the following two outputs in the example you want to typeset: I think 
the second is more or less what you want

\starttext
Using \type{\frac} gives:
\startformula
f_{B_t | B_s = S, B_u = U}(x) = \frac{e^{-\frac{(u-s)x^2 - 2x(S(u-t) +
U(t-s)) + \frac{(S(u-t) +
U(t-s))^2}{(u-s)}}{2(t-s)(u-t)}}}{\sqrt{2\pi\frac{(t-s)(u-t)}{u-s}}}
\stopformula
\blank
Using \type{\over} gives:
\startformula
f_{B_t | B_s = S, B_u = U}(x) = {
e^{-{(u-s)x^2 - 2x(S(u-t) + U(t-s)) + 
{(S(u-t) + U(t-s))^2 \over (u-s)} \over 2(t-s)(u-t)}} \over 
\sqrt{2\pi {(t-s)(u-t) \over u-s}}}
\stopformula

\stoptext

Best regards: OK



On 28 janv. 2013, at 10:11, Janne Junnila janne.junn...@gmail.com wrote:

 Indeed it seems like the alignment is good with \dfrac, but this does
 not solve my problem, since I wish to also use fractions with
 script-size or scriptscript-size (\xfrac, \xxfrac). The specific
 formula I have is
 
 \startformula
 f_{B_t | B_s = S, B_u = U}(x) = \frac{e^{-\frac{(u-s)x^2 - 2x(S(u-t) +
 U(t-s)) + \frac{(S(u-t) +
 U(t-s))^2}{(u-s)}}{2(t-s)(u-t)}}}{\sqrt{2\pi\frac{(t-s)(u-t)}{u-s}}}
 \stopformula
 
 Thanks,
 Janne
 
 Roland wrote:
 With \dfrac it looks good.
 With \fraction the minus sign is on the top of the fraction.
 Best regards, Roland
 ___
 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] Math typesetting problems

2013-01-28 Thread Wolfgang Schuster

Am 28.01.2013 um 21:48 schrieb Aditya Mahajan adit...@umich.edu:

 On Mon, 28 Jan 2013, Wolfgang Schuster wrote:
 
 I'll look into fractions later this week. All the fraction macros of 
 ConTeXt were based on \genfrac macro from AMSTeX so, in principle, they 
 should behave in the same manner.
 
 The \frac command uses \vcenter for the content while \dfrac and \tfrac only 
 set the mathstyle before placing the content with the \over primitive.
 
 Then something has been lost in the MkII - MkIV transition. I am pretty sure 
 (cannot check right now), that the code in MkII used \genfrac (which is a 
 fancy wrapper around \over \ovewithdelim etc)

Yes, MkII uses \genfrac but in MkIV the command is no longer available and all 
fraction commands have been rewritten.

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] Math typesetting problems

2013-01-28 Thread Aditya Mahajan

On Mon, 28 Jan 2013, Otared Kavian wrote:


Hi Janne,

Personnally I prefer to use the Plain TeX alternative \over (which works fine 
in ConTeXt), that is
${a \over b}$
instead of
$\frac{a}{b}$

Compare the following two outputs in the example you want to typeset: I think 
the second is more or less what you want

\starttext
Using \type{\frac} gives:
\startformula
f_{B_t | B_s = S, B_u = U}(x) = \frac{e^{-\frac{(u-s)x^2 - 2x(S(u-t) +
U(t-s)) + \frac{(S(u-t) +
U(t-s))^2}{(u-s)}}{2(t-s)(u-t)}}}{\sqrt{2\pi\frac{(t-s)(u-t)}{u-s}}}
\stopformula


Formatting and temporary macros (I usually use \1 \2 etc) make a huge difference
in readability:

\startformula
  \def\1
  {\frac{
   (u-s)x^2
   - 2x(S(u-t)
   + U(t-s))
   + \frac{(S(u-t) + U(t-s))^2}
  {(u-s)}
}{
   2(t-s)(u-t)}
}
  %
  f_{B_t | B_s = S, B_u = U}(x) =
  \frac { e^{\1} }
{ \sqrt{2\pi\frac{(t-s)(u-t)}{u-s}} }
\stopformula


\blank
Using \type{\over} gives:
\startformula
f_{B_t | B_s = S, B_u = U}(x) = {
e^{-{(u-s)x^2 - 2x(S(u-t) + U(t-s)) +
{(S(u-t) + U(t-s))^2 \over (u-s)} \over 2(t-s)(u-t)}} \over
\sqrt{2\pi {(t-s)(u-t) \over u-s}}}
\stopformula

\stoptext


At some stage, we also need to look at nath's automatic conversion of display
fractions to inline fractions (e.g., in the numberator \frac{ (S(u-t) +
U(t-s))^2 } { (u-s) } should be typeset as (S(u-t) + U(t-s))^2/(u-s) because it
is being typeset in \scriptstyle.

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

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


Re: [NTG-context] Math typesetting problems

2013-01-28 Thread Khaled Hosny
On Mon, Jan 28, 2013 at 09:33:52PM +0100, Wolfgang Schuster wrote:
 
 The \frac command uses \vcenter for the content while \dfrac and
 \tfrac only set the mathstyle before placing the content with the
 \over primitive.

The use of \vcenter seems odd here as it means the fraction rule will no
longer guranteed to be centered around the math axis:
\starttext
\math{-\frac{a^{2^{2^2}}}{a} {a^{2^{2^2}}\over a}}
\stoptext

Also, why \frac is forcing text style fractions even in display mode?
\starttext
\startformula
-\frac{a^{2^{2^2}}}{a} {a^{2^{2^2}}\over a}
\stopformula
\stoptext

Both behaviours are different from MkII.

Regards,
Khaled
___
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] arranging vs. \page[last]

2013-01-28 Thread Marco Pessotto
Mari Voipio mari.voi...@iki.fi writes:

 On Mon, Jan 28, 2013 at 10:17 PM, Henning Hraban Ramm hra...@fiee.net wrote:

 What would you suggest to put something onto the last (i.e. back) page?

 The wiki has a trick, but I think it stopped working at some stage -
 maybe somebody can fix it (if it is broken):
 http://wiki.contextgarden.net/Imposition#Getting_the_last_page_of_a_Booklet

 (Obviously we aren't the only ones with this problem...)



I use the following code (luatex only).

\startusercode

function fillsignature(pages)
   -- skip the cover
   pages = pages - 2 
   local originalpages = pages

   --set needed pages to  0
   local neededpages = 0

   local modulo = pages % 4
   if modulo ~= 0 then
  neededpages = 4 - modulo
   end

   if neededpages ~= 0 then
  global.texio.write_nl('term and log', Here I added  .. neededpages ..  
pages)
  tex.print(\\dorecurse{ .. neededpages .. }{\\page[empty]})
   else
  global.texio.write_nl('No page needed!')
   end
end

\stopusercode

\define[1]\fillthesignature{
   \usercode{fillsignature(#1)}}

\define\bookletclosing{
  \fillthesignature{\the\realpageno}
  \page[empty]}

\setuppapersize[A5][A4,landscape]
\setuparranging[2UP]
\setuppagenumbering[alternative=doublesided]


\starttext


\dorecurse{10}{
\input knuth
\page[yes]
\input knuth
}

\bookletclosing

This is the last page

\stoptext


Best wishes


-- 
Marco

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