Re: [NTG-context] TRying to download manual sources
John Culleton wrote: Tryng to download manual sources. This command doesn't work: svn co svn://ctx.pragma-ade.nl/manuals context Hullo John, I'm sorry your question remained unanswered for so very long. Here is my attempt at answering it. The sources of the manual-under-revision can be checked out with the following command: svn checkout http://foundry.supelec.fr/svn/contextman More info: http://foundry.supelec.fr/gf/project/contextman/scmsvn/?action=AccessInfo http://foundry.supelec.fr/gf/project/contextman/ (Last activity in 2011...) I don't know anything about the http://ctx.pragma-ade.nl repositories, unfortunately. I hope this helps; I realise your question may still stand, though, if you are interested in the old manual rather than the new one. Kind regards, Sietse ___ 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] Wrong values for \inputfilename etc.
On 6-9-2012 06:42, Wolfgang Schuster wrote: Hi Hans, when I run the following example (saved as filename.tex) I got in the past this output ... new beta -- - 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] odd and even test: incorrect behavior on the first two lines
Hi, I'm trying to make the content of an environment behave differently weither it appears on a right page or on a left page. It works mainly, except that with the following code, from the second page, the two first lines of subsequent pages don't show the expected behavior. \setuppagenumbering[alternative=doublesided] \definestartstop[foo][ before={\doifrightpageelse{(right)}{(left)}}, ] \starttext \dorecurse{100}{ \startfoo hello world\par \stopfoo } \stoptext Is it a known problem? How can one fix this? Thanks, Alex -- Alexandre Leray media graphic design http://stdin.fr | http://osp.constantvzw.org/ rue Gallaitstraat 80 1030 Bruxelles +32 (0)4 87 04 70 30 ___ 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] \abovedisplayskip and \belowdisplayskip
It is my understanding that \abovedisplayskip and \belowdisplayskip should adjust how much (rubber) spacing that is allowed between display math formulas. I have attached a ConTeXt file (bug.tex) that seems to indicate that setting these skips does not affect this (rubber) spacing. I have also translated this ConTeXt file line-by-line to a LaTeX file (bug.ltx) and attached it. Both files produce a PDF (using `context bug.tex` and `pdflatex bug.ltx`) in which the spacing between the formula changes from page 1 to page 2 simply by adding the final formula. However, by changing \adjustdisplay{0} to \adjustdisplay{1}, the LaTeX file produces a 3 page document where the spacing between formula does not change (as expected) on the first two pages and thus requires a third page to typeset the final formula. However, making this same adjustment in the ConTeXt file does not seem to affect the output. I would appreciate any thoughts as to why this is happening, and I would equally appreciate a solution to keeping the spacing the same in the ConTeXt file and thus bumping that last formula to a third page. Troy Henderson bug.tex Description: TeX document \documentclass{minimal} \usepackage[paperwidth=600pt,paperheight=450pt]{geometry} \def\adjustdisplay#1 { \ifnum#10 \newdimen\mydimen \mydimen\abovedisplayskip \abovedisplayskip\mydimen \mydimen\belowdisplayskip \belowdisplayskip\mydimen \fi } \def\foo{ \vskip0.5ex \[\frac{x}{1} = \frac{1}{x-1}\] \vskip0.5ex \[x(x-1)=1\] \vskip0.5ex \[x^2-x=1\] \vskip0.5ex \[x^2-x-1=0\] \vskip0.5ex \[x=\frac{1+\sqrt{5}}{2},\frac{1-\sqrt{5}}{2}\] } \begin{document} \pagestyle{empty} \fontsize{20}{24}\selectfont \adjustdisplay{0} \foo \clearpage \foo\vskip0.5ex \[\phi = \frac{x}{1} = x =\frac{1+\sqrt{5}}{2} \approx 1.618\] \end{document} ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \abovedisplayskip and \belowdisplayskip
On Thu, 6 Sep 2012, Troy Henderson wrote: It is my understanding that \abovedisplayskip and \belowdisplayskip should adjust how much (rubber) spacing that is allowed between display math formulas. I have attached a ConTeXt file (bug.tex) that seems to indicate that setting these skips does not affect this (rubber) spacing. I have also translated this ConTeXt file line-by-line to a LaTeX file (bug.ltx) and attached it. Both files produce a PDF (using `context bug.tex` and `pdflatex bug.ltx`) in which the spacing between the formula changes from page 1 to page 2 simply by adding the final formula. However, by changing \adjustdisplay{0} to \adjustdisplay{1}, the LaTeX file produces a 3 page document where the spacing between formula does not change (as expected) on the first two pages and thus requires a third page to typeset the final formula. However, making this same adjustment in the ConTeXt file does not seem to affect the output. I would appreciate any thoughts as to why this is happening, and I would equally appreciate a solution to keeping the spacing the same in the ConTeXt file and thus bumping that last formula to a third page. ConTeXt uses spacebefore and spaceafter keys to adjust the spacing around formulas. The values of these keys are fed to `\blank[...]` so they can be any value that `\blank[...]` accepts (none, small, medium, big, etc., or a valid TeX dimen) So, you should use something like \setupformulas[spacebefore=..., spaceafter=...] or if you only want to change the space around specific formulas \defineformula[big][spacebefore=big,spaceafter=big] and then use \startbigformula ... \stopbigformula. 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] \abovedisplayskip and \belowdisplayskip
\setupformulas[spacebefore=..., spaceafter=...] This still does not quite fix my problem. If spacebefore/after are set to a reasonable value in the previously attached ConTeXt file, the spacing changes very slightly (probably because of some rubber length) between the formula from page 1 to page 2. Troy ___ 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] Nested Macro
I would like to create a macro that defines a display formula, and then redefine the same macro such that the redefinition includes the original display formula followed by another display formula. Here is my attempt. \def\foo{\startformula a = b \stopformula} \foo \edef\foo{\foo \startformula c = d \stopformula} \foo This fails, and I would appreciate help in getting this to work. Thanks, Troy Henderson ___ 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] Nested Macro
Am 07.09.2012 um 06:38 schrieb Troy Henderson thend...@gmail.com: I would like to create a macro that defines a display formula, and then redefine the same macro such that the redefinition includes the original display formula followed by another display formula. Here is my attempt. \def\foo{\startformula a = b \stopformula} \foo \edef\foo{\foo \startformula c = d \stopformula} \foo This fails, and I would appreciate help in getting this to work. Your example works for me when I process it with mkiv but I would use a token list and not a macro to store the content. \starttext % macro \def\foo{\startformula a = b \stopformula} \foo \blank[2*line] \edef\foo{\foo \startformula c = d \stopformula} \foo \blank[2*line] % token list \newtoks\mytoks \appendtoks \startformula a = b \stopformula \to \mytoks \the\mytoks \blank[2*line] \appendtoks \startformula c = d \stopformula \to \mytoks \the\mytoks \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Nested Macro
The \newtoks works great. Can values be assigned to tokens directly instead of appending? Obviously one way it to use \newtoks followed by \appendtoks, but once a token has already been defined, can its content be overwritten? Troy ___ 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 ___