Re: [NTG-context] Resetting numbers in section header

2012-11-13 Thread Otared Kavian
Thanks Luigi! Grazie mille… That's exactly what I was seeking! Best regards: OK On 13 nov. 2012, at 13:54, luigi scarso wrote: > […] > > Some help at > http://wiki.contextgarden.net/Titles > > \starttext > > > \startsection[title={Section 1 }] > \input ward > \stopsection > > > \startsec

Re: [NTG-context] Resetting numbers in section header

2012-11-13 Thread Otared Kavian
On 13 nov. 2012, at 11:48, luigi scarso wrote: > > Hm , > is it save to mix \section and \startsection ..\stopsection ? > > -- > luigi > Hi Luigi, Thanks for your attention, but the fact that \section and \start-\stop-section is used is of no importance regarding the way I am seeking to re

[NTG-context] Resetting numbers in section header

2012-11-13 Thread Otared Kavian
Hi all, Assume for some reason I want a section to be numbered in a particular way: I thought the command resetnumber=yes would do that, but it seems that I am wrong… or this option is now obsolete. Can anyone have a look at the following example and give a hint? \starttext \section{Sectio

Re: [NTG-context] using variable for subscript in math+lua

2012-10-25 Thread Otared Kavian
Hi Philipp, Thanks to you, Dalyoung and Hans for the nice example using luacode. I was wonedring how would you modify your code in order to be able to change the name of the matrix if necessary. For instance, how to modify your code in such a way that upon saying \ctxlua{document.print_

Re: [NTG-context] Help with Long Titles

2012-10-18 Thread Otared Kavian
Hi Malte, If you say \setvariables [titlepage] [set=\texsetup{titlepage}, project={Pearson}, title={\startframedtext[width=\textwidth,frame=off] This document title is very long, \crlf so I'd like to break it into two lines \stopframedtext}, author={Tony

Re: [NTG-context] Index and Publications suddenly remain empty??? [not solved yet]

2012-10-15 Thread Otared Kavian
On 14 oct. 2012, at 15:52, Wolfgang Schuster wrote: > […] > I don’t know if the bug was also in the stable but it’s in the beta version I > use. You can use the following example to check for the bug: > > \starttext > \placeontopofeachother{A}{B} > \stoptext > Hi I can confirm that the bug i

Re: [NTG-context] Subscript Depth

2012-10-15 Thread Otared Kavian
Hi Nick, As far as I can say from my own experience TeX, that is both plain TeX and ConTeXt, treat the subscripts differently according to whether there is also a superscript or not: please see the following examples: \starttext Compare $a_{b}'a_{b}$ and $a_{b}'a_{b}^{}$ \stoptext Best regards:

Re: [NTG-context] Numbering subformulas

2012-10-15 Thread Otared Kavian
Hi Andreas, Wolfgang and Aditya, Thanks for your attention and suggesting a fix. However, after I applied the change mentioned by Andreas for the definition of \strc_formulas_handle_sub_numbering in cont-new.mkiv and made the formats anew, the subformulas are not numbered as expected.

[NTG-context] Numbering subformulas

2012-10-14 Thread Otared Kavian
Hi Aditya, It seems that numbering subformulas as described in your « My Way » magazine entitled « Using \startalign » does not work with mkiv. The following minimal example taken from page 6 of the above mentioned manual, does not result in what is described there: \starttext \placesubformula

[NTG-context] Bug in xits font? No widehat shows up

2012-09-17 Thread Otared Kavian
Dear Khaled, dear Hans, I noticed that when using xits fonts the command \widehat is ignored (though \hat gives the expected result). Minimal example %%% begin example \setupbodyfont[xits,11pt] \starttext By definition we set ${\widehat \phi}(\xi) := {\cal F}(\phi)(\xi)$ that is \startformula {\

Re: [NTG-context] \items is buggy in mkiv

2012-09-15 Thread Otared Kavian
Thanks Aditya: I added the new syntax to the wiki. http://wiki.contextgarden.net/Command/items Best regards: OK On 15 sept. 2012, at 20:10, Aditya Mahajan wrote: > On Wed, 12 Sep 2012, Otared Kavian wrote: > >> Dear Hans, >> >> I noticed that with the latest

Re: [NTG-context] Display math characters

2012-09-14 Thread Otared Kavian
Hi Pol, You can use the following: %% begin show-math.tex \doifmode{mkiv}{\usemodule[s][mat-11]} \starttext \doifmodeelse{mkiv}{\showmathfontcharacters}{\showmathcharacters} \stoptext %% end show-math.tex However in mkiv the presentation of math fonts is not the same as in mkii. I don't know how

Re: [NTG-context] Strange bug with reversed itemize

2012-09-13 Thread Otared Kavian
Hi Aditya, Yes it is a strange behaviour and it appears only when using mkiv and reversed itemize, even with \setuppagenumber[start=12] instead of \setupuserpagenumber[start=12] Also the pagenumber remains unchanged with either of these commands, which means that it's a bug. I

[NTG-context] \items is buggy in mkiv

2012-09-12 Thread Otared Kavian
Dear Hans, I noticed that with the latest version of mkiv (ConTeXt ver: 2012.09.10 00:57) the command \items[location=bottom] does not behave as usual (in mkii the bejaviour is correct) Minimal example: \starttext \items[symbol=8,n=5,width=\hsize,location=bottom]{png,eps,pdf,jpg,tif} \

Re: [NTG-context] Strange bug with \ in footnotes

2012-08-05 Thread Otared Kavian
Hi Aditya, On 4 août 2012, at 20:59, Aditya Mahajan wrote: > […] > Minimal example (There should be a linebreak after \) Is it not « \\ » that should give a line break? Indeed this gives a line break: \starttext Someone\footnote{Prof.\\ ABC} \stoptext However, you are right to observe that S

[NTG-context] Bug with setupinteraction and footnote

2012-08-04 Thread Otared Kavian
Hi Hans, With the latest beta (ConTeXt ver: 2012.08.04 14:00 MKIV fmt: 2012.8.5) the following use of \setupinteraction[state=start] and \footnote causes a luatex error: %% \setupinteraction[state=start] \starttext While testing footnotes\footnote{This is a footnote.} we encounter a bug w

Re: [NTG-context] 2 columns: 1 language per column (solved)

2012-08-01 Thread Otared Kavian
On 1 août 2012, at 14:44, "Rogers, Michael K" wrote: >> […] >>> If you like, add these three lines to the beginning of your .tex file to >>> force TeXShop to use ConTeXt-CLD: >>> >>> CUT HERE-- >>> --[[ >>> %!TEX TS-program = ConTeXt-CLD >>> ]]-- >>> CUT HERE

Re: [NTG-context] 2 columns: 1 language per column (solved)

2012-07-31 Thread Otared Kavian
gt; > A drawback is that your cld files will be masquerading as .tex files. But > you can process cld files in TeXShop if you want to. > > Michael > > On Jul 31, 2012, at 5:46 PM, Otared Kavian wrote: > >> Thanks Peter! It is a very nice piece of code, but could this be include

Re: [NTG-context] 2 columns: 1 language per column (solved)

2012-07-31 Thread Otared Kavian
Thanks Peter! It is a very nice piece of code, but could this be included in a TeX file? (Otherwise one cannot use something like TeXShop on a Mac to typeset the file). Best regards: OK On 31 juil. 2012, at 18:23, Peter Münster wrote: > On Tue, Jul 31 2012, Otared Kavian wrote: >

Re: [NTG-context] 2 columns: 1 language per column (solved)

2012-07-31 Thread Otared Kavian
Hi Peter, Can you give please an example showing how to use your code? Thanks: OK On 31 juil. 2012, at 16:15, Peter Münster wrote: > On Tue, Jul 31 2012, Hans Hagen wrote: > >> \startmixedcolumns >>\placeparallel[main][one,two][criterium=all] >> \stopmixedcolumns >> >> there will be bett

Re: [NTG-context] How to draw a red frame of a row in a matrix?

2012-07-25 Thread Otared Kavian
Hi Dalyoung, Is this what you want: \setupcolors[state=start] \def\RedMath{\mframed[frame=on, framecolor=red, offset=2pt, % background=color, % backgroundcolor=lightred, % backgroundoffset=2pt ]} \starttext \startformula \startmatrix[left={\left (\,},rig

Re: [NTG-context] Frame around columnsets

2012-07-23 Thread Otared Kavian
Hi Marco, I confirm what you observe: I tested your code with Context version 2011.11.29 and as you mention there is no frame, but with Context version 2012.07.23 the columns are surrounded by an unwanted frame, so it seems to be a recent bug. Best regards: OK On 23 juil. 2012, at 21:15, Marco

Re: [NTG-context] misprint in wiki

2012-07-11 Thread Otared Kavian
On 11 juil. 2012, at 10:04, Meer, H. van der wrote: > In the wiki under \setupexternalfigures one finds for the framing of the > figure following in the table: "frames on off" > Mark the 's' at the end of 'frames' > I tested it and found it has to be 'frame' without the 's'. > This is the same m

Re: [NTG-context] Incorrect spacing in math

2012-07-09 Thread Otared Kavian
large file which has to be modified all over… Interestingly the « inline math » does not suffer from th ebug, that is $\int_{\Omega}f(x)dx$ gives the expected result. Best regards: OK On 9 juil. 2012, at 13:23, Aditya Mahajan wrote: > On 2012-07-09, at 9:52 AM, Otared Kavian wrote: > >

[NTG-context] Incorrect spacing in math

2012-07-09 Thread Otared Kavian
Hi Hans, In mkiv, the spacing of an index in the integral sign, in displayed math, is incorrect since a few weeks: for instance \starttext \startformula \int_{\Omega}f(x)dx = \int_{0}^\infty g(t)dt \stopformula \stoptext gives an Omega which is too far away from the integral sign. (Using ConTeX

Re: [NTG-context] itemize in two columns and pagebreaks

2012-06-29 Thread Otared Kavian
use simplecolumns to avoid the strange page breaks. Best regards: OK On 30 juin 2012, at 06:53, Marcin Borkowski wrote: > Dnia 2012-06-30, o godz. 05:05:31 > Otared Kavian napisał(a): > >> Hi Marcin, >> >> I tested your file and noticed the issue you are reporting.

Re: [NTG-context] List without bullets

2012-06-29 Thread Otared Kavian
Hi, You can customize the symbol appearing in your items, and set it to nothing… \definesymbol[NoSymbol][{}] \definesymbol[MySymbol][{$\heartsuit$}] \starttext \startitemize[Nosymbol] \item foo \item bar \item baz \stopitemize \startitemize[MySymbol,packed] \item foo \item

Re: [NTG-context] itemize in two columns and pagebreaks

2012-06-29 Thread Otared Kavian
Hi Marcin, I tested your file and noticed the issue you are reporting. In your case you can use \startsimplecolumns to get rid of the page break (however there is a small problem with the distance between the text and the items): \startchapter[title={Nim-suma liczb całkowitych nieujemnych}] \

Re: [NTG-context] beta

2012-06-27 Thread Otared Kavian
Hi, Thanks for the new features, Hans! I don't know whether you overlooked my previous message about the distance problem with integral signs: it is still there, that is in mkiv $\int_\Omega$ results in \Omega too far away from the integral sign. In mkii everything is correct. Best regards: OK

[NTG-context] Math integral bug in the latest beta

2012-06-24 Thread Otared Kavian
Dear Hans, I noticed that with the latest beta (version 2012.06.22 11:22) there is an issue with the distance of bounds in integral signs. More precisely trying the following minimal example \starttext \input ward\par \startformula \int_{\Omega}f(x)dx = 1 = \sum_{n=1}^\infty a_{n} \stopformula

Re: [NTG-context] [OT]...I'm sorry for the others, really.

2012-06-19 Thread Otared Kavian
Very nice pictures: Thanks for sharing! On 19 juin 2012, at 17:55, luigi scarso wrote: > http://wiki.contextgarden.net/User:Luigi.scarso/knuth > > -- > luigi ___ If your question is of interest to others as well,

Re: [NTG-context] beta

2012-06-05 Thread Otared Kavian
Hi Hans, Thanks for the new beta. I made some testings and did not notice any problem or new bug. I wanted just to remind you of an issue with interaction in references to footnotes: when a footnote is in the title of a chapter (or section) then, in mkiv, the link does not work as expected. In m

Re: [NTG-context] fonts

2012-05-09 Thread Otared Kavian
Hi Hans, If I understand it correctly, with the \setupbodyfontenvironment one can define various sizes and then apply them to various styles such as \it, \bf, etc. This is indeed great! But in your example the math fonts disappear: is this intended? Best regards: OK On 8 mai 2012, at 19:07, Ha

Re: [NTG-context] Uncovering Slides in a Presentation with Progress Meter

2012-04-26 Thread Otared Kavian
Hi, You can maybe use the raw steps, which are described here: http://wiki.contextgarden.net/SlideWithSteps There the idea of \phantom is used to imitate steps. Best regards: OK On 26 avr. 2012, at 17:39, Troy Henderson wrote: > I am trying to uncover content within an itemized list, a

Re: [NTG-context] Strange error message

2012-03-11 Thread Otared Kavian
10.03.2012 um 22:10 schrieb Otared Kavian: > >> Hi all, >> >> Has anyone encountered the following situation with the betas from last >> January until today? >> I have a document some 100 pages (each page being an \input), which is >> correctly typeset with

[NTG-context] Strange error message

2012-03-10 Thread Otared Kavian
Hi all, Has anyone encountered the following situation with the betas from last January until today? I have a document some 100 pages (each page being an \input), which is correctly typeset with ConTeXt version 2011.11.29 mkiv, but gives me the following error with the recent mkiv betas: the me

Re: [NTG-context] Question about spacing of some math symbols

2012-02-25 Thread Otared Kavian
Hi Khaled, As far as I know, the signs less than: < greater than: > similar or less than: ⪝ similar or greater than: ⪞ less than or equal: ⪬ greater or equal: ⪭ (and there are othersigns of the same category) should be treated in the same wa

Re: [NTG-context] Incorrect rendering of * with UTF math fonts

2012-02-22 Thread Otared Kavian
uster wrote: > > Am 22.02.2012 um 21:31 schrieb Otared Kavian: > >> Hi Aditya, >> >> I tried your code: as you say with LM there is no problem, but with the >> simplefonts module nothing i stypeset since I get an error message: &

Re: [NTG-context] Incorrect rendering of * with UTF math fonts

2012-02-22 Thread Otared Kavian
Hi Aditya, I tried your code: as you say with LM there is no problem, but with the simplefonts module nothing i stypeset since I get an error message: \3>simplefonts:1-12pt-mm-mr--3 \font_helpers_preset_math_family_indeed ...csname

Re: [NTG-context] "Turning off" special chapter headings

2012-02-16 Thread Otared Kavian
Hi, Didn't you see my answer? As suggested below, you can use \chapter[title={Answer to all the questions},number=no]. On 16 févr. 2012, at 08:59, Otared Kavian wrote: > Hi Alasdair, > > Is this what you want? > begin > \starttext > > \completecontent

Re: [NTG-context] \definedescription problems (beta)

2012-02-16 Thread Otared Kavian
Hi Peter, As Wolfgang pointed out in answering one of the problems I reported earlier today, one has to use « alternative=hanging » instead of « location=hanging ». I guess it should be the same with the « serried ». Best regards: OK On 16 févr. 2012, at 21:41, Peter Park Nelson wrote: > Two p

Re: [NTG-context] beta

2012-02-16 Thread Otared Kavian
On 16 févr. 2012, at 19:30, Wolfgang Schuster wrote: > > Am 16.02.2012 um 17:44 schrieb Otared Kavian: > >> Hi Hans, >> >> Another small issue with the new beta (ConTeXt ver: 2012.02.16 13:05 MKIV): >> the key « location= hanging » does not work anymore i

Re: [NTG-context] beta

2012-02-16 Thread Otared Kavian
Hi Hans, Another small issue with the new beta (ConTeXt ver: 2012.02.16 13:05 MKIV): the key « location= hanging » does not work anymore in enumerations. Minimal example: %% \defineenumeration[Exo] [location=hanging, width=fit, text={Exercise }, stopper={.}]

Re: [NTG-context] beta

2012-02-16 Thread Otared Kavian
Hi Hans, Thanks for the new beta: as a matter of fact it seems to be much faster the previous ones, even with many backgrounds! I wanted to submit a small bug with the « \prime » in math mode: the following gives an error %% begin example.tex \starttext The function $\exp$ is the unique sol

Re: [NTG-context] Unnumbered chapter in table of contents?

2012-02-15 Thread Otared Kavian
Hi Alasdair, Is this what you want? begin \starttext \completecontent \chapter{Chapter one} \section{First section} \section{Second section} \chapter{Chapter two} \section{First section} \section{Second section} \chapter[title={Answer to all the questions},number=no] \stoptext %

Re: [NTG-context] Increment an item number?

2012-02-14 Thread Otared Kavian
Hi Alasdair, Maybe the following gives you what you want? \starttext \startitemize[n] \item First question \phantom{\item } \item Third question \phantom{\item } \item Fifth question \item Sixth question \stopitemize \stoptext Best regards: OK On 14 févr. 2012, at 06:27, Alasdair McAndrew wrote

Re: [NTG-context] Simpleslides crash

2012-02-12 Thread Otared Kavian
On 12 févr. 2012, at 23:34, Thomas A. Schmitz wrote: >> […] > > Hi Otared and all, > > I have just uploaded a new version of simpleslides which should work with the > latest beta. Thankfully, Aditya has fixed the issue with the namespace > handling which has made the module incompatible with t

Re: [NTG-context] Cross-document referencing not working!

2012-02-10 Thread Otared Kavian
Hi Verhaag, I just tested your example files: both with mkiv and mkii, ConTeXt version 2011.11.29, the cross-referencing does work as expected in Adobe Reader. However when clicking to the link « Een test external », Adobe opens the external file and closes the original file (maybe this is the

[NTG-context] \footnote and \chapter

2012-02-08 Thread Otared Kavian
Hi Hans, For your information, I just tested the latest beta (ConTeXt ver: 2012.02.08 21:58 MKIV fmt: 2012.2.8) with my usual test suite and found that the following gives an error message: % begin \starttext \chapter{Testing a chapter\footnote{Actually for testing footnotes in a chapter

Re: [NTG-context] Simpleslides crash

2012-02-04 Thread Otared Kavian
On 4 févr. 2012, at 09:01, Thomas A. Schmitz wrote: >> […] > > Hi Otared, > > yes, we're aware of the problem; Aditya is working on a fix; he hopes it'll > be out soon. If your presentation is very urgent, try gong back to ver > 2011.11.29, that is the last one that works with the module in it

[NTG-context] Simpleslides crash

2012-02-02 Thread Otared Kavian
Dear Aditya and Thomas, Using the simpleslides seems impossible with the latest beta (ConTeXt ver: 2012.01.25 14:16 MKIV fmt: 2012.1.31): mkiv stops with a « fatal error » on this minimal test: % begin fatal-test.tex \setupinteraction[state=start] \usemodule[simpleslides] [style=S

Re: [NTG-context] What’s your favorite command?

2012-01-30 Thread Otared Kavian
Hi, Mine is \doifmodeelse: it allows to do a lot! Best regards: OK On 30 janv. 2012, at 19:55, Wolfgang Schuster wrote: > Hi all, > > to bring some traffic to the list I have a question where I hope even non > regulars send a answer. The ConTeXt package is huge and provides dozen of > comman

Re: [NTG-context] beta

2012-01-24 Thread Otared Kavian
Hi Hans, I updated to the beta (2012.01.24) and doing my usual test suites, I encountered two bugs: one is with \placeformula, another with \int. My minimal test with mkiv is: \starttext Here is a well-known identity due to Leonhard Euler in which the five most important numbers appear: \placef

Re: [NTG-context] \startitemize[columns] broken with backgrounds?

2012-01-23 Thread Otared Kavian
On 23 janv. 2012, at 11:29, Wolfgang Schuster wrote: > It’s not a limitation of the mechanism \startcolumns uses to make multiple > columns because the same mechanism is also used by \startsimplecolumns but of > the implementation of the command. When you search the list archive you can > find

Re: [NTG-context] \startitemize[columns] broken with backgrounds?

2012-01-23 Thread Otared Kavian
On 23 janv. 2012, at 08:45, Wolfgang Schuster wrote: > > Am 23.01.2012 um 08:39 schrieb Otared Kavian: > >> Hi all, >> >> It seems that when using background, \startitemize[columns] does not work as >> expected: there are no columns, and the numbers of the

[NTG-context] \startitemize[columns] broken with backgrounds?

2012-01-22 Thread Otared Kavian
Hi all, It seems that when using background, \startitemize[columns] does not work as expected: there are no columns, and the numbers of the items are pushed to the left. Below is a not so minimal example: the resulting PDF can be found here: http://dl.dropbox.com/u/4316076/enumeration-b

Re: [NTG-context] \par in macro definition (mkii issue)

2012-01-18 Thread Otared Kavian
On 18 janv. 2012, at 23:07, Wolfgang Schuster wrote: > […] > This is a limitation of the MkII version of the \define command, you can’t > use \par in the replacement text but you can use \endgraf which does also end > a paragraph. > > Wolfgang Thanks Wolfgang: indeed \def\MyTest#1{The

[NTG-context] \par in macro definition (mkii issue)

2012-01-18 Thread Otared Kavian
Hi, It seems that with the recent updates, I found that the following minimal example does not work in mkii, while it does in mkiv: \define[1]\MyTest{The test variable is #1.\par} \starttext Is this a bug in mkii? \MyTest{3} \stoptext Am I doing something wrong, or mkii has changed despite be

[NTG-context] \showmathcharacters or \showmathfontcharacters

2012-01-17 Thread Otared Kavian
Hi Hans, The following used to show all the commands for various math characters. It still works in mkii, but I wonder what would be the analogous for mkiv: is there still a way to see math characters in mkiv? %%% begin showmath.tex %\doifmode{mkiv}{\usemodule[fnt-25]} \doifmode{mkiv}{\usemodul

Re: [NTG-context] Bug in symb-ini.mkiv?

2012-01-15 Thread Otared Kavian
] %\tracingmacros0 \starttext \startitemize \item Item 1 \item Item 2 \stopitemize \stoptext %%% end item-color.tex On 15 janv. 2012, at 16:48, Wolfgang Schuster wrote: > > Am 15.01.2012 um 16:39 schrieb Otared Kavian: > >> Hi Hans, >> >> With the latest beta (ConTeXt ver: 2012.01.

Re: [NTG-context] Bug in symb-ini.mkiv?

2012-01-15 Thread Otared Kavian
Hi Wolfgang, Thanks for your response: right now I am not with my computer at home (writing you from another place). I'll do what you suggest this evening. Best regards: OK On 15 janv. 2012, at 16:48, Wolfgang Schuster wrote: > > Am 15.01.2012 um 16:39 schrieb Otared Kavian: &g

[NTG-context] Bug in symb-ini.mkiv?

2012-01-15 Thread Otared Kavian
Hi Hans, With the latest beta (ConTeXt ver: 2012.01.12 11:03 MKIV), typesetting a document which used to be typeset without problems I encounter an error which points to some commands defined in symb-ini.mkiv. However I can switch back to ConTeXt ver: 2011.11.29 18:47 MKIV in order to teypese

Re: [NTG-context] How to define a command...

2012-01-05 Thread Otared Kavian
\edef instead of \def). Best regards: OK On 5 janv. 2012, at 22:24, Otared Kavian wrote: > Hi again Wolfgang and Peter, > > The solution you provided to my problem is great but has a small issue… > Considering the definition > > \define[3]\RandomCoeff{% > \setv

Re: [NTG-context] How to define a command...

2012-01-05 Thread Otared Kavian
Peter Münster: > >> On Thu, Jan 05 2012, Otared Kavian wrote: >> >>> \define[3]\RandomCoeff{% >>> \ctxlua{a = math.random(#2,#3)} >>> % \csname{Coeff#1}\endcsname{\ctxlua{tex.print(a)}} %% this line does not >>> work as expected.

Re: [NTG-context] How to define a command...

2012-01-05 Thread Otared Kavian
21:17 schrieb Peter Münster: > >> On Thu, Jan 05 2012, Otared Kavian wrote: >> >>> \define[3]\RandomCoeff{% >>> \ctxlua{a = math.random(#2,#3)} >>> % \csname{Coeff#1}\endcsname{\ctxlua{tex.print(a)}} %% this line does not >>> work as expected.

Re: [NTG-context] How to define a command...

2012-01-05 Thread Otared Kavian
Thanks Peter, I had tried \expandafter\xdef, \edef, \gdef, but not \expandafter\def… Thanks for your quick answer: that's exactly what I was looking for. Best regards: OK On 5 janv. 2012, at 21:17, Peter Münster wrote: > On Thu, Jan 05 2012, Otared Kavian wrote: > >> \defi

Re: [NTG-context] How to define a command...

2012-01-05 Thread Otared Kavian
ctlua{tex.print(math.random(#1))}} > \def\RandomSeries[#1]#2{\ctxlua{tex.print(hvdm.randomseries(#2,"#1"))}% > > > On 5 jan. 2012, at 21:05, Otared Kavian wrote: > >> Hi all, >> >> I need to define numerical coefficients (essentially at random) and th

[NTG-context] How to define a command...

2012-01-05 Thread Otared Kavian
Hi all, I need to define numerical coefficients (essentially at random) and then use them with commands, say like \CoeffAlpha, \CoeffBeta, and so on. More precisely, how can I define the command \RandomCoeff, so that \RandomCoeff{Beta}{1}{10} yields a command named \CoeffBeta, which is a random

Re: [NTG-context] Beta: bug in \setuphead[chapter]

2012-01-03 Thread Otared Kavian
chrieb Otared Kavian: > >> On 3 janv. 2012, at 08:38, Wolfgang Schuster wrote: >> >>> […] >>> You need a command after “align=middle” because you assign “middle ” (with >>> a space) to the align key. >> >> Hi Wolfgang, >> >>

Re: [NTG-context] Beta: bug in \setuphead[chapter]

2012-01-03 Thread Otared Kavian
On 3 janv. 2012, at 08:38, Wolfgang Schuster wrote: > […] > You need a command after “align=middle” because you assign “middle ” (with a > space) to the align key. Hi Wolfgang, I didn't get exactly what you mean, but saying either of the following: \setuphead[chapter][header=high,alig

[NTG-context] Beta: bug in \setuphead[chapter]

2012-01-02 Thread Otared Kavian
Dear Hans, dear all, My best wishes to all the community for this New Year! With the latest beta, \setuphead[chapter] has a strange behavior: the order of two keys seems to be important… More precisely \setuphead [chapter] [header=high, align=middle ] results in

Re: [NTG-context] Dec 30 Broken Nightly

2011-12-31 Thread Otared Kavian
Hi Kip, Where do you find the version ConTeXt ver: 2011.12.30 17:38 MKIV ? When I update with first-setup.sh I get ConTeXt ver: 2011.12.23 09:52 MKIV Thanks in advance: OK On 31 déc. 2011, at 02:27, Kip Warner wrote: > Hey list, well, probably Hans, today's nightly chokes on

Re: [NTG-context] Offsetting the Item Symbol

2011-12-27 Thread Otared Kavian
Hi Emmanuel, Is this what you want? Probably you can adapt the key « distance » to obtain what you want: \showframe \starttext %\startitemize[n][width=3cm,itemalign=flushright,distance=1em] \startitemize[n][itemalign=flushright,distance=1em,stopper={)},style={bold}] \dorecurse{12}{\item test} \s

Re: [NTG-context] Setting up examination sheets

2011-12-19 Thread Otared Kavian
On 19 déc. 2011, at 16:53, Aditya Mahajan wrote: > On Mon, 19 Dec 2011, Otared Kavian wrote: > >> Dear Hans Van der Meer, >> >> Looking for a nice way to set up examination sheets with ConTeXt I found >> your hvdm-exm module very interesting, but unfortunatley I

[NTG-context] Is the Annotation module incompatible with the latest beta?

2011-12-19 Thread Otared Kavian
Dear Wolfgang, It seems that I cannot use anymore your annotation module with the latest beta (ConTeXt ver: 2011.12.19 01:47 MKIV fmt: 2011.12.19). For instance the example below stops with an error message saying Undefined control sequence in t-annotation.lua and it seems that \dolet

[NTG-context] Setting up examination sheets

2011-12-19 Thread Otared Kavian
Dear Hans Van der Meer, Looking for a nice way to set up examination sheets with ConTeXt I found your hvdm-exm module very interesting, but unfortunatley I could not typeset a short test file extracted from your MAPS article Exam papers: posing questions to students which dates from 2006

Re: [NTG-context] Broken textbackground

2011-12-19 Thread Otared Kavian
\stoptext Best regards: OK On 18 déc. 2011, at 23:49, Otared Kavian wrote: > Dear Hans, > > For your information it seems that in the latest beta, textbackground is > broken: minimal example below, and the output can be found here: > http://dl.dropbox.com/u/4316076/textbac

[NTG-context] Broken textbackground

2011-12-18 Thread Otared Kavian
Dear Hans, For your information it seems that in the latest beta, textbackground is broken: minimal example below, and the output can be found here: http://dl.dropbox.com/u/4316076/textbackground-bug.pdf Best regards: OK %%% begin textbackground-bug.tex \starttext \definetextbackground[

Re: [NTG-context] Itemize option “text”

2011-12-15 Thread Otared Kavian
On 15 déc. 2011, at 10:38, Andreas Harder wrote: > Hi Hans, > > itemize with option “text” gives me still an error (beta: 15-Dec-2011 09:27). > > \startitemize[text] > \item alpha \item beta \item gamma > \stopitemize > > > Regards > Andreas Hi Andreas, It is correct that the latest

Re: [NTG-context] beta

2011-12-13 Thread Otared Kavian
On 14 déc. 2011, at 00:48, Hans Hagen wrote: > On 13-12-2011 21:07, Otared Kavian wrote: >> Hi Hans, >> >> Thanks for the new beta. >> It seems that with the new beta there is a bug with itemize: no numbers show >> up with \item. >> >> \starttext

Re: [NTG-context] beta

2011-12-13 Thread Otared Kavian
Hi Hans, Thanks for the new beta. It seems that with the new beta there is a bug with itemize: no numbers show up with \item. \starttext \startitemize[n] \item One \item Two \stopitemize \stoptext Best regards: OK On 13 déc. 2011, at 16:38, Hans Hagen wrote: > Hi, > > I uploaded a new beta.

Re: [NTG-context] Reverse numbering

2011-12-12 Thread Otared Kavian
On 13 déc. 2011, at 07:39, Aditya Mahajan wrote: > […] > Untested, but > > \defineenumeration[Lecture][number=ReverseNumberOrder] > > should also work. > > Aditya Hi Aditya, Thanks for the hint, but unfortunately it does not work as expected: no numbers show up. Maybe there is a way by usin

Re: [NTG-context] Reverse numbering

2011-12-12 Thread Otared Kavian
. \startitemize[n] \item First subject. \item Second subject. \stopitemize \stopLecture \stoptext %%% end reverse-enumeration.tex Best regards: OK On 12 déc. 2011, at 14:03, Wolfgang Schuster wrote: > > Am 12.12.2011 um 13:33 schrieb Otared Kavian: > >> Hi all, &g

[NTG-context] Reverse numbering

2011-12-12 Thread Otared Kavian
Hi all, When using \startitemize[n,reverse] one gets items numbered in reverse order. I wonder if this feature exists also for enumerations. An example is given below in which the last enumeration is written on top of the file and I wish it were possible to have the enumerations number

[NTG-context] Reverse numbering for enumerations?

2011-12-09 Thread Otared Kavian
Hi all, When using \startitemize[n,reverse] one gets items numbered in reverse order. I wonder if this feature exists also for enumerations. An example is given below in which the last enumeration is written on top of the file and I wish it were possible to have the enumerations number

Re: [NTG-context] naming of labels: Is »()« allowed?

2011-12-08 Thread Otared Kavian
Hi Paul, It seems that the left parenthesis causes trouble when giving a label to a reference: \definereferenceformat[eqref][left=(,right=)] \starttext \placeformula[N)] \startformula \Pr\{N = n\} = \Pr\left\{ \min_{1 ≤ k ≤ n} S_k > 0 \right\} = p_n^{(1)}

[NTG-context] Enumeration in mkiv

2011-12-07 Thread Otared Kavian
Dear Hans, In transferring some stuff from mkii to mkiv, I noticed a change in the way mkiv puts too much distance between the title of an enumeration and the text following it. I am not sure whether I have noticed this before, but my feeling is that the change is somewhat recent. I have put th

Re: [NTG-context] Math align in mkiv

2011-12-07 Thread Otared Kavian
ittwoch, den 07.12.2011, 05:11 +0100 schrieb Otared Kavian: > >> Thank you having tested the file I sent. > > did the example work for you with MKIV in the past? > >> As I suspected, your testing confirms that the change or the bug has been >> introduced in a recent

Re: [NTG-context] Math align in mkiv

2011-12-06 Thread Otared Kavian
> 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 align in mkiv

2011-12-06 Thread Otared Kavian
Hi Aditya, Hi Hans, It seems that recently the align environment in mkiv has changed and I get several strange results now. The (not so minimal…) example below results in the folowing two PDFs: http://dl.dropbox.com/u/4316076/align-mkii.pdf http://dl.dropbox.com/u/4316076/align

Re: [NTG-context] terrible png placement

2011-12-03 Thread Otared Kavian
___ > 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.aa

Re: [NTG-context] Math in metapost

2011-11-30 Thread Otared Kavian
y 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] Resetting references or local references?

2011-11-28 Thread Otared Kavian
___ > 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.

[NTG-context] Resetting references or local references?

2011-11-27 Thread Otared Kavian
Dear all, Is it possible to have a sort of « local references for formulas » or else to clear previous references to formulas at a certain point? In a chapter where a certain number of exercices and formulas are to be numbered, assume I have the following minimal example % begin \startt

Re: [NTG-context] FLOW chart module broken

2011-11-27 Thread Otared Kavian
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] float names and lists

2011-11-25 Thread Otared Kavian
On 25 nov. 2011, at 15:09, Idris Samawi Hamid ادريس سماوي حامد wrote: > On Thu, 24 Nov 2011 22:17:43 -0700, Wolfgang Schuster > wrote: > >> It works when you give \definefloat a second argument with the plural name >> of your float. > > Ah! Thank you, Wolfgang, for pointing that out! Missed

Re: [NTG-context] equation numbering

2011-11-23 Thread Otared Kavian
Hi Hans, Could you please give an example in which you see the behaviour you are reporting? I tried with mkii and mkiv but could not reproduce what you describe. Best regards: OK On 21 nov. 2011, at 21:39, Meer, H. van der wrote: > ConTeXt still has some mysteries for me ;-) > This time it is

Re: [NTG-context] How to reset numbers of formulas?

2011-11-17 Thread Otared Kavian
l/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 > ___ %% Otared Kavian Département de Mathématiques Université de Versailles Sain

[NTG-context] How to reset numbers of formulas?

2011-11-17 Thread Otared Kavian
Hi, Is it possible to reset the numbers which appear after invoking \placeformula? To be more precise, I mean the following situation: \starttext Euler says \placeformula \startformula {\rm e}^{{\rm i} \pi} + 1 = 0. \stopformula The above formula will hav

Re: [NTG-context] Problem with mkiv under MacOSX 7 (Lion)

2011-11-07 Thread Otared Kavian
On 5 nov. 2011, at 18:16, Robert Blackstone wrote: > […] > I use TeXShop 2.43 (which, incidentally, tells me, when I check for updates, > that it is the newest version available.) with an engine that reads: > Hi, Yes this is correct: TeXShop won't update to TeXShop 3 if you are using versio

<    4   5   6   7   8   9   10   11   12   13   >