Re: [NTG-context] vertical alignment problem in column items
Hi Dalyoung, I think that there must be a small bug in mkiv regarding itemize in columns, but at the same time I think that the problem comes from the fact that in your example you use inline maths and fractions: this perturbs the way the horizontal and vertical distances are calculated by mkiv. It seems that mkiv considers there is not enough horizontal space to put the four items in a row. If you use two columns the problem is solved, as you can see in the following examples (please typest it both with mkii and mkiv to see the differences). Best regards: OK %%% begin itemize-dist-bug.tex \starttext \setupitemize[1][n] % first level itemize \setupitemize[2][a,paragraph,columns][stopper=)] % second level itemize %If you want more than two columns by default add "n=x" \startitemize \item Item one \item Find a well-ordered set: \startitemize[n=4] % <--- gives correct output both in mkii and mkiv \item sub-one \item sub-two \item sub-three \item sub-four \stopitemize \hairline \startitemize[n=4] % <--- gives correct output in mkii, but not in mkiv \item $\{ 2 + \frac{1}{n}, n \in\naturalnumbers\}$ \item $[0, 1)$ \item $\{3 - \frac{2}{n}, n \in \naturalnumbers\}$ \item $ \reals$ \stopitemize \hairline \startitemize[n=4] % <--- gives incorrect output both in mkii and mkiv \item $\{ 2 + n^{-1}, n \in\naturalnumbers\}$ \item $[0, 1)$ \item $\{3 - 2n^{-1}, n \in \naturalnumbers\}$ \item $ \reals$ \stopitemize \hairline \startitemize[n=2] % <--- gives correct output both in mkii and mkiv \item sub-one \item sub-two \item sub-three \item sub-four \stopitemize \hairline \startitemize[n=2] % <--- gives correct output both in mkii and in mkiv \item $\{ 2 + \frac{1}{n}, n \in\naturalnumbers\}$ \item $[0, 1)$ \item $\{3 - \frac{2}{n}, n \in \naturalnumbers\}$ \item $ \reals$ \stopitemize \hairline \startitemize[n=2] % <--- gives correct output both in mkii and mkiv \item $\{ 2 + n^{-1}, n \in\naturalnumbers\}$ \item $[0, 1)$ \item $\{3 - 2n^{-1}, n \in \naturalnumbers\}$ \item $ \reals$ \stopitemize \hairline \stoptext %%% end itemize-dist-bug.tex Best regards: OK On 17 nov. 2012, at 05:03, Jeong Dal wrote: > Dear all, > > In the following example, the vertical alignment of items looks strange. > > I wonder it is my only problem. > Is there anything what I have to do to correct it? > > Thank you. > > Best regards, > > Dalyoung > > % sample code > > \starttext > \startitemize > > \item Find a well-ordered set. > > \startitemize[n, columns, four][stopper=,left=(, right=)] > \item $\{ 2 + \frac{1}{n}, n \in\naturalnumbers\}$ > \item $[0, 1)$ > \item $\{3 - \frac{2}{n}, n \in \naturalnumbers\}$ > \item $ \reals$ > \stopitemize > \stopitemize > \stoptext > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Resetting numbers in section header
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 > > > \startsection[title={Section 1 again},incrementnumber=no] % Here I want again > the number 1 > \input ward > \stopsection > > \startsection[title={Section 1 again},incrementnumber=yes] % Here I want > again the number 1 > \input ward > \stopsection > > > \startsection[title={Section with no number},number=no] % Here I don't want > numbers > \input ward > \stopsection > > \stoptext > > I think it's not safe to mix \section and \startsection \stopsection, because > the tags can be messed. > -- > 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 > ___ ___ 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] Resetting numbers in section header
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 reset the section numbers. In fact in my document, where I noticed the problem, I use only \section, but I tried several possibilities, including \start-\stop-section. Best regards: OK ___ 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] Resetting numbers in section header
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{Section 1} \input ward \startsection[title={Section 1 again},resetnumber=yes] % Here I want again the number 1 \input ward \stopsection \setuphead[section][number=yes] \section{Section 3} \input ward \startsection[title={Section with no number},number=no] % Here I don't want numbers \input ward \stopsection \stoptext Thanks in advance: OK ___ 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] using variable for subscript in math+lua
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_matrix(b,3)} one gets a 3x3 matrix whos coefficients are b_{11},…b_{33}. Thanks in advance: OK On 25 oct. 2012, at 03:02, Philipp Gesang wrote: > · > >> Dear Hans, Lucas, Wolfgang, Aditya >> >> Now, I write a matrix using \startluacode by the helps of you. >> Also, I can do some operations in matrices which reduced my typing job. >> In this code, I have to give all the entries of a matrix as a table. It is >> good to use in many cases. >> >> I have one more question. If the given array is as the following and it >> works well. >> >> However, there might be a better way to do job using "for" iteration. >> I tired to use "i, j" in several ways but it doesn't work. > > Inside a string the variables are just bytes. To print to a > string you can interpolate with string.format() [1]. > > [1] http://www.lua.org/manual/5.1/manual.html#pdf-string.format > > · > \startluacode > document = document or { } -- recommended: use namespace > document.print_matrix = function (x, y) >if not y then y = x end -- default to square >context.startmatrix{left = "\\left(\\,", right = "\\,\\right)"} >local schema = "a_{%d%d}" -- %d: prints integer part >for i=1, x do > for j=1, y do >--- use the template defined above to print the >--- row and column >context.NC(string.format(schema, i, j)) > end > context.NR() >end >context.stopmatrix() > end > \stopluacode > > \starttext > \startformula >\ctxlua{document.print_matrix(3)} > \stopformula > \startformula >\ctxlua{document.print_matrix(9,4)} > \stopformula > \startformula >\ctxlua{document.print_matrix(9)} > \stopformula > \stoptext > \endinput > · > >> >> Is there a way to do such a job using "for" iteration? >> >> Thank you for reading. >> >> Best regards, >> >> Dalyoung >> ___ >> 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 >> ___ > > -- > () ascii ribbon campaign - against html e-mail > /\ www.asciiribbon.org - against proprietary attachments > ___ > 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] Help with Long Titles
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 Mueller}, version={Version 1.0.0}] the title is broken where you put \crlf. Is that what you want? Best regards: OK On 19 oct. 2012, at 02:29, Malte Stien wrote: > Hello, > > I am using a the startsetups mechanism that defines a title page in my > environment file. That way anyone creating a document in my organisation can > create a new document and get a consistent look of the title page. There is > one problem with this: On occasions I get very long document titles and then > the title extends over the left-hand edge of the page. I would like to > incorporate a new line into the document title; I'd even be happy to do that > manually, ie. it does not have to be automatic. > > There are two problems here: > 1. I had not had any success with putting a newline into the title; it will > need to be not where the titlepage is defined but where it is used (see > below). I have tried \par and \\ and none of them work. > 2. Assuming I found a way to do this, I would need to also find a way of > reducing the \blank[170mm] by the amount that the second line of the title > takes up to render the information down the bottom in roughly the same place. > If push comes to shove, I could create a second titlepage setup for two-line > titles, but I much rather not. Is there a solution to that? Is there maybe a > way to position the information down the bottom absolute? > > Here is minimal example (or something very close to that): > > % The title page > \startsetups titlepage > \startstandardmakeup[style=sans] > \blank[50mm] > \rightaligned{\bfd\getvariable{titlepage}{project}} > \textrule > \rightaligned{\tfc\color[darkgray]{\getvariable{titlepage}{title}}} > \blank[170mm] > \starttabulate[|plf{\tfa}|prf{\tfa}|] > \NC\tfa\copyright\thinspace Pearson Pty Ltd \NC > \getvariable{titlepage}{author} \NC\NR > \TB[small] > \NC \color[darkgray]{Commercial in Confidence} \NC > \color[darkgray]{\getvariable{titlepage}{version}} \NC\NR > \stoptabulate > \tfx Uncontrolled copy if printed. > \stopstandardmakeup > \stopsetups > > % ...and this is how it is being used > \starttext > \setvariables > [titlepage] > [set=\texsetup{titlepage}, > project={Pearson}, > title={This document title is very long, so I'd like to \par break it > into two lines}, > author={Tony Mueller}, > version={Version 1.0.0}] > \stoptext > > Thank you very much for all the help I have received so far. > > Regards, > Malte. > > ___ > 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] Index and Publications suddenly remain empty??? [not solved yet]
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 is present in recent betas, that is \placeontopofeachother is broken, but Context version 2011.11.29 works fine with your example. Best regards: OK___ 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] Subscript Depth
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: OK On 15 oct. 2012, at 01:08, Nicholas Ulle wrote: > Hi, > > How would I go about getting subscripts to stay at the same depth? An example > of the problem I'm having is: > > \starttext > % Notice the b's are not aligned > $a_b' a_b$ > \stoptext > > I'm only just learning ConTeXt and TeX, so I'm not sure what I'd need to > change to fix this. > > Thanks, > Nick > ___ > 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] Numbering subformulas
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. Probably we have to wait for a fix from Hans in an upcoming beta. @Wolfgang: can the typo you mention in font-new.mkiv be easily fixed? Best regards: OK On 15 oct. 2012, at 12:44, Andreas Mang wrote: > Dear all, > Dear Wolfgang, > >> This is already in the core (str-mat.mkiv) but I found a typo in another >> macro in font-new.mkiv > > Thanks. That's indeed interesting. > > I still get an error. I have deleted everything and have updated to the most > recent beta: > > 2012.10.06 15:31 MKIV fmt: 2012.10.15 > > If I replace the function > > \strc_formulas_handle_sub_numbering > > as described before, erveryting works nicely. Probably your fix has not yet > been uploaded, yet. I just wanted to let you know. Maybe this clarifies > something or indicates additional problems. > > Cheers, > Andreas > ___ > 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] Numbering subformulas
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 \startformula \startalign \NC a_1 x + b_1 y \NC = c_1 \NR[eq:c][c] \NC a_2 x + b_2 y \NC = c_2 \NR[eq:d][d] \stopalign \stopformula (\in[eq:c]) and (\in[eq:d]) form a linear system of equations. \stoptext Is this a known bug? Thanks in advance: OK ___ 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] Bug in xits font? No widehat shows up
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 {\hat \phi}(\xi) = \widehat{\phi}(\xi) = {\widehat \phi}(\xi) := {\cal F}(\phi)(\xi) := (2\pi)^{-N/2}\int_{{\Bbb R}^N}{\rm e}^{-{\rm i}\xi\cdot x}\phi(x) dx. \stopformula \stoptext %%% end example This bug report concerns mkiv version ConTeXt ver: 2012.09.16 23:18 MKIV fmt: 2012.9.17. However in older versions the same problem exists. I don't know whether this is a bug in mkiv or in xits fonts. Best regards: OK ___ 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] \items is buggy in mkiv
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 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} >> \blank >> \items[symbol=8,n=5,location=bottom]{png,eps,pdf,jpg,tif} >> \stoptext > > The syntax for MkIV is `alternative=bottom`. > > 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 > ___ ___ 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] Display math characters
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 to get the mkii presentation of the math fonts in mkiv… Best regards: OK On 14 sept. 2012, at 16:45, pol stra wrote: > Hello, > > from the wiki > (http://wiki.contextgarden.net/Math/basic#List_of_All_Math_macros) I tryed > the following snippet: > \usemodule[fnt-25] > \showmathfontcharacters > > But context complains that there is no fnt-25 module, so let’s grep > showmathfontcharacters in conteXt directory. > I found that it is defined into the mat-10 module. So new snippet: > \usemodule[mat-10] > \showmathfontcharacters > > End new error: > > ConTeXt ver: 2012.09.11 20:36 MKIV fmt: 2012.9.12 int: english/english > > system > cont-new.mkiv loaded > (/opt/context-minimals/texmf-context/tex/context/base/cont-new.mkiv > system > beware: some patches loaded from cont-new.mkiv > ) > fonts > latin modern fonts are not preloaded > languages > language en is active > (mathsymbols.tex > resolvers > modules > loaded: 'mat-10' > (/opt/context-minimals/texmf-context/tex/context/base/s-mat-10.mkiv)) > fonts > defining > font with asked name 'unknown' is not found > using lookup 'file' > fonts > defining > unknown font unknown, loading aborted > fonts > defining > unable to define unknown as [thedefinedfont--0] > ! LuaTeX error :22: attempt to index local 'resources' (a > nil value) > stack traceback: > :22: in function 'showmathfont' > :1: in main chunk. > > system > tex > error on line 5 in file > /opt/context-minimals/texmf-context/tex/context/base/cont-yes.mkiv: LuaTeX > error ... > > 1 %D \module > 2 %D [ file=cont-yes, > 3 %Dversion=2012.06.01, > 4 %D title=\CONTEXT\ Miscellaneous Macros, > 5 >> %D subtitle=Startup Stub, > 6 %D author=Hans Hagen, > 7 %D date=\currentdate, > 8 %D copyright={PRAGMA ADE \& \CONTEXT\ Development Team}] > 9 %C > 10 %C This module is part of the \CONTEXT\ macro||package and is > 11 %C therefore copyrighted by \PRAGMA. See mreadme.pdf for > 12 %C details. > 13 > 14 % At some point I will reconsider the \starttext .. \stoptext > 15 % wraping as we can assume proper styling. It's a left-over from > > ...cument.showmathfont(font.current())} > > \firstoftwoarguments #1#2->#1 > > \doshowmathfontcharacters ...wmathfontcharacters } > \endgroup > >\finishjob > l.5 \finishjob > > } context.finishjob() > > ... > l.86 \stopluacode > > > I do not realy care about this list, I was just currious and it did not work > so I point it out. > ___ > 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] Strange bug with reversed itemize
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 tested your example with Context version 2011.11.29, mkiv and there everything is correct. Best regards: OK On 13 sept. 2012, at 02:34, Aditya Mahajan wrote: > Hi, > > For some reason, the numbering in itemize is affected by the value of > userpage! > > \setupuserpagenumber[start=12] > \starttext > \startitemize[n,reverse] > \item One > \item Two > \stopitemize > \stoptext > > With ConTeXt 2012.09.11 20:36 I get > > 13. One > 12. Two > > Any ideas? > > 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 ___
[NTG-context] \items is buggy in mkiv
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} \blank \items[symbol=8,n=5,location=bottom]{png,eps,pdf,jpg,tif} \stoptext Best regards: OK ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Strange bug with \ in footnotes
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 Someone\footnote{Prof.\ ABC} results in an error with the latest beta, while Someone\footnote{Prof.\ ABC} does not (and of course there is no line break neither, the « .\ » gives only a normal space after the dot). Best regards: OK > > \starttext > Someone\footnote{Prof.\ > ABC} > \stoptext > > What's going on here? > > 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 > ___ ___ 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] Bug with setupinteraction and footnote
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 with \type{\setupinteraction}. \stoptext %% The error message starts with: > ! LuaTeX error ...imal/tex/texmf-context/tex/context/base/strc-not.lua:351: > attempt to call global 'getdeltapage' (a nil value) > stack traceback: > ...imal/tex/texmf-context/tex/context/base/strc-not.lua:351: in > function 'notedeltapage' > :1: in main chunk. and finishes with: > \ctxcommand ...\directlua \zerocount {commands.#1} > > \strc_notes_set_style_color_special ...tenumber )} > \relax > \setlocationcolorsp... > \strc_notes_set_style_color_inline ...lor_special > \fi > \strc_notes_inject_symbol ...xtstyle \c!textcolor > \hbox > \strc_notes_get_refe... > \195>notation:note ...l \strc_notes_inject_symbol > \else \unskip \unskip > \glo... > \strc_notations_command_nop ...handler \endcsname > > \strc_constructions_finali... > l.6 ...ing footnotes\footnote{This is a footnote.} >we encounter a bug with > \... > ? > Process aborted > By the way just before line 351 of strc-not.lua, on lines 345--347 are the equalities written in this way on purpose? Best regards: OK ___ 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] 2 columns: 1 language per column (solved)
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-- > > You need all three lines. The TeX comment has to be enclosed in a Lua > comment. The double hyphen after the "]]" is optional, I think, but I've > seen it done that way. (As a neophyte, I imitate.) Thanks for the information: indeed the three lines above allow a CLD code in a TEX file to be typeset by ConTeXt, using the TeXShop engine created with your indications. By the way, as you guessed the third line can be either ]]-- or ]] > @Hans, the problem with TeXShop is that it seems to refuse to process files > whose names do not end in .tex, AFAIK. (The typeset button is disabled.) So > a straightforward solution seems impossible. You can always type "context > file.cld" in a terminal window. Best regards: OK___ 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] 2 columns: 1 language per column (solved)
Hi, Thanks! Your solution works as far as creating a « ConTeXt-CLD.engine » which creates a menu item for typesetting a CLD document, upon choosing it for the code written by Peter Münster, provided the suffix of the document's name is .tex, not .cld. However adding the line %!TEX TS-program = ConTeXt-CLD at the top of the file results in an error message saying: > tex > error on line 72 in file /context-minimal/tex/texmf-context/tex/context/base/cont-yes.mkiv: LuaTeX error (here context-minimal is the directory where I have the latest version of the standalone ConTeXt). Also enclosing the code written by Peter between \startluacode …. \stopluacode in a TEX file does not allow to to typeset the file, contrary to other examples in the manual written by Hans « ConTeXt, Lua Documents ». In any case thanks for your attention: now there is another way to typeset two languages in two columns… Best regards: OK On 1 août 2012, at 00:41, "Rogers, Michael K" wrote: > If you wish to use TeXShop, you can set it up...in my typically kludgy way. > This mimics the TeXShop setup for Context Standalone (see > http://wiki.contextgarden.net/ConTeXt_Standalone/Mac_Installation) and > assumes that "context" is in your regular execution path. > > Create a new plain-text file in ~/Library/TeXShop/Engines -- call it whatever > you like -- let's say "ConTeXt-CLD.engine". Add these lines > CUT HERE-- > #!/bin/bash > context --forcecld "$1" > CUT HERE-- > > This will create a ConTeXt-CLD menu item in the popup menu on new file > windows. (You may have to restart TeXShop first.) You can select it and run > Peter's column program. > > 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-- > > 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 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: >>> >>>> Can you give please an example showing how to use your code? >>> >>> Save it in "test.cld", then run "context test.cld". >>> Then open "test.pdf" in a PDF-viewer. >>> >>> -- >>> Peter >>> ___ >>> 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 >> ___ > > > > > This e-mail message (including any attachments) is for the sole use of > the intended recipient(s) and may contain confidential and privileged > information. If the reader of this message is not the intended > recipient, you are hereby notified that any dissemination, distribution > or copying of this message (including any attachments) is strictly > prohibited. > > If you have received this message in error, please contact > the sender by reply e-mail message and destroy all copies of the > original message (including attachments). > ___ > If your question is of interest to others as well, pleas
Re: [NTG-context] 2 columns: 1 language per column (solved)
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: > >> Can you give please an example showing how to use your code? > > Save it in "test.cld", then run "context test.cld". > Then open "test.pdf" in a PDF-viewer. > > -- > Peter > ___ > 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] 2 columns: 1 language per column (solved)
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 better support for that kind of things at some point > > I don't get the desired result with \placeparallel, but I've found a > solution, that works quite well. I just can't place figures, that span > the 2 columns, but that's no problem for my project. > > Here the (not very contextish) solution (cld-file): > > --8<---cut here---start->8--- > local C = context > local format = string.format > > local function create_environment() > local fp = io.open("env.tex", "w") > fp:write([[ > \startenvironment env > > \def\ColumnDistance{1cm} > > \startmode[columns] > \definepapersize[columns][ >width=\dimexpr (\textwidth - \ColumnDistance) / 2 \relax, >height=\textheight] > \setuppapersize[columns] > \setuplayout[page] > \setuppagenumbering[location=] > \setupalign[verytolerant, stretch, line] > \setupwhitespace[small] > \stopmode > > \startbuffer[german] > \it\dorecurse{15}{\dorecurse{20}{german }\par} > \stopbuffer > > \startbuffer[french] > \bf\dorecurse{15}{\dorecurse{20}{french }\par} > \stopbuffer > > \stopenvironment > ]]) > fp:close() > end > > local function create_pages(s) > local fp = io.open("pages.tex", "w") > fp:write(format([[ > \enablemode[columns] > \environment env > \starttext > \getbuffer[%s] > \stoptext > ]], s)) > fp:close() > os.execute(format("context --result=pages-%s pages", s)) > end > > local function create_columns(l, r) > local function pdf(x) return "pages-" .. x .. ".pdf" end > create_pages(l) > create_pages(r) > local pdfobj = epdf.open(pdf(l)) > local n = pdfobj:getNumPages() > for i = 1, n do >C.dontleavehmode() >C.externalfigure({pdf(l)}, {page = i}) >C"\\hskip\\ColumnDistance" >C.externalfigure({pdf(r)}, {page = i}) >C.page() > end > end > > create_environment() > C.environment(false, "env ") > C.starttext() > C"Before" > C.page() > create_columns("german", "french") > C"After" > C.stoptext() > --8<---cut here---end--->8--- > > -- > Peter > ___ > 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] How to draw a red frame of a row in a matrix?
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 (\,},right={\,\right)}] \NC\startmatrix[left=,right=,] \NC a_{11} \NC a_{12} \NC \dots \NC a_{1n} \NR \NC \vdots \NC \vdots \NC \vdots \NC \vdots \NR \stopmatrix\NR \NC\RedMath{\startmatrix[left=,right=,] \NC a_{i1} \NC a_{i2} \NC \cdots \NC a_{in} \NR \stopmatrix}\NR \NC\startmatrix[left=,right=,] \NC \vdots \NC \vdots \NC \ddots \NC \vdots \NR \NC a_{m1} \NC a_{m2} \NC \cdots \NC a_{mn} \NR \stopmatrix\NR \stopmatrix \stopformula \stoptext Best regards: OK On 25 juil. 2012, at 11:20, dalyoung wrote: > Dear all, > > I made a matrix as follows and I'd like to draw a red frame over the i-th row > in a matrix. > > \startformula > \startmatrix[left={\left (\,},right={\,\right)}] > \NC a_{11} \NC a_{12} \NC \dots \NC a_{1n} \NR > \NC \vdots \NC \vdots \NC \vdots \NC \vdots \NR > \NCa_{i1} \NC a_{i2} \NC \cdots \NC a_{in} \NR > \NC \vdots \NC \vdots \NC \ddots \NC \vdots \NR > \NCa_{m1} \NC a_{m2} \NC \cdots \NC a_{mn} \NR > \stopmatrix > \stopformula > > But \frame or \inframe is not working inside matrix. > Is there a way to do that? > > Thank you. > > Best regards, > > Dalyoung > ___ > 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] Frame around columnsets
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 wrote: > Hi, > > the following example produces a frame around the columns since a > few betas. Looks like a bug. > > \definecolumnset [MyColumns] [n=2] > \starttext > \startcolumnset [MyColumns] >\input knuth > \stopcolumnset > \stoptext > > > 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 > ___ ___ 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] misprint in wiki
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 misprint as occurred in the earlier ConTeXt manual of 2001. > > Perhaps someone knowledageable about changing the wiki can verify this and > will be so kind as to update the wiki. > > Hans van der Meer …done.___ 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] Incorrect spacing in math
Hi Aditya, Thanks for your attention: the spacing bug is there no matter the fonts one uses. The bug appeared some three weeks ago, and the only turn around I have found so far is to use \int_{\!\!\!\Omega}f(x)dx instead of \int_{\Omega}f(x)dx but this is not a solution in a 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: > >> 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 ConTeXt ver: 2012.07.08 20:02 MKIV fmt: 2012.7.8 int: >> english/english). >> In mkii there is no bug in this regard. >> >> Is there a quick fix for this? In some of my documents I must use mkiv and >> the appearance of this bug is a little bit annoying… >> (I already reported this bug in June). >> > > Does it help if you use an opentype math font? (Sorry but I do not have > access to a Context installation right now) > > 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 > ___ ___ 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] Incorrect spacing in math
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 ConTeXt ver: 2012.07.08 20:02 MKIV fmt: 2012.7.8 int: english/english). In mkii there is no bug in this regard. Is there a quick fix for this? In some of my documents I must use mkiv and the appearance of this bug is a little bit annoying… (I already reported this bug in June). Best regards: OK math-integral-mkiv-bug.pdf Description: Adobe PDF document ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] itemize in two columns and pagebreaks
Hi, The mechanisms of columns in itemize (which I think is the same as startcolumns) and in simplecolumns are indeed different, as Hans indicated once. The issue you encountered is indeed a bug as you point out: once (a few months ago) I had an analogous problem and Wolfgang S. suggested me to 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. 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): > > I knew that - but as you probably have noticed, the columns done by > \startsimplecolumns and by \startitemize[columns] do not align > correctly. So this is rather a workaround than a solution. (Well, > thanks anyway!) > > Currently I changed the file a bit and the problem disappeared, > but still I'd like to know what's going on, since this tends to happen > from time to time. (And this bug - because I guess it's a bug indeed - > has been around for quite a few years: I noticed it for the first time > something like 3 years ago...) > > Best, > > -- > Marcin Borkowski > http://mbork.pl > ___ > 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] List without bullets
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 bar \item baz \stopitemize \stoptext Best regards: OK On 30 juin 2012, at 00:49, Gilbert Houtekamer wrote: > Hi, > > I am would like to make \startitemize list with \head that > has no bullets, e.g. > > Topic > > My text for topic > > Another Topic > > Text for another topic. > > With \startitemize and \head I get bullets before "Topic" > and "Another Topic", how can get rid of these? > > Thanks! > > Gilbert Houtekamer > > > > > > > > > ___ > 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] itemize in two columns and pagebreaks
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}] \startexercises \startitem Przelicz następujące liczby w~zapisie dwójkowym na system dziesiątkowy: \startsimplecolumns \startitemize[r][left=(,right=),stopper={}] \startitem \math{(101)_2} \stopitem \startitem \math{(101011)_2} \stopitem \stopitemize \stopsimplecolumns \stopitem \startitem Przelicz następujące liczby na system dwójkowy: \startsimplecolumns \startitemize[r][left=(,right=),stopper={}] \startitem \math{10} \stopitem \startitem \math{77} \stopitem \stopitemize \stopsimplecolumns \stopitem \stopexercises \stopchapter Best regards: OK On 30 juin 2012, at 00:16, Marcin Borkowski wrote: > Dnia 2012-06-29, o godz. 23:30:13 > Marcin Borkowski napisał(a): > >> Hello, >> >> I encountered a weird problem with >> >> \startitemize[columns] >> >> Namely, sometimes ConTeXt (MkIV) puts a pagebreak before the >> itemization. I tried to distill the problem to a minimal example, >> until now without success, but I'll post a ME if I'm able to reproduce >> a problem in a small file. > > OK, so I didn't succeed in isolating this problem. I attach the > complete file (it's in Polish, sorry;)). The problem appears at page 3 > in the resulting pdf (line 141 of the source file). > >> Anybody encountered this, too? Are there any solutions/workarounds >> known? > > I naively tried putting \page[no] in various places around the > problematic line, but to no avail. Also, while trying to isolate the > problem, for instance by removing things before the itemization, it > turned out that it's difficult to reproduce it: often, everything is > fine (at the beginning of the page as well as near the end). > > Any ideas? > > -- > Marcin Borkowski > http://mbork.pl > ___ > 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] beta
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 PS: minimal example: \starttext \startformula \int_{\Omega}f(x)dx = \int_{0}^\infty g(x)dx \stopformula \stoptext and the result can be seen here: http://dl.dropbox.com/u/4316076/math-integral-bug-1.pdf On 27 juin 2012, at 14:52, Hans Hagen wrote: > Hi, > > I uploaded a new beta. In the process of cleanup I kicked out some of the > supp-* modules, most noticeably the visual debugger. That one has been > replaced by another mechanism and a merge of some functionality already > present in modules (and more might be moved into it). > > As they are often used for testing, \ruledhbox, \ruledvbox and \ruledvtop > remained and all the others have been replaced by placeholders (and might go > away). The \show* commands are mostly dummies (and will disappear) but these > remain: > > \showmakeup > \showallmakeup > \showstruts > \showglyphs > > Hopefully this doesn't spoil your playing with low level tex stuff. > > The good news is that the current implementation provides more detail, is > more colorful, and comes on (pdf) layers (so that you can hide categories). > > \showallmakeup > > \starttext > >\ruledhbox{hbox} \blank >\ruledvbox{vbox} \blank >\ruledvtop{vtop} \blank >{\definedfont[Serif*default at 30pt] g ff} \blank >test \strut test \blank >\input ward \par > > \stoptext > > You can use \enabletrackers[visualizer.*] with * being > fontkern, kern, glue, penalty, hbox, vbox, all, reset, makeup, whatsit, and > glyph. > > Hans > > - > 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 > ___ ___ 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 integral bug in the latest beta
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 \stoptext one gets the PDF available at http://dl.dropbox.com/u/4316076/math-integral-bug.pdf while with a previous version of mkiv (2011-11-29) one has the correct ouput, as one may see here http://dl.dropbox.com/u/4316076/math-integral-2011-11-29.pdf Note that \Omega is too far away from the integral sign with mkiv version 2012-06-22. Best regards: OK ___ 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] [OT]...I'm sorry for the others, really.
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, 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] beta
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 mkii everything is fine. Below is a minimal example showing the issue with ConTeXt ver: 2012.06.05 09:16 MKIV fmt: 2012.6.5 int: english/english Best regards: OK PS: the minimal example is here: %%% begin bug-link-footnote.tex \setupinteraction[state=start] \setupcolors[state=start] \starttext \chapter{Testing a chapter\footnote[note:test]{Actually for testing footnotes in a chapter header\dots}} \input knuth.tex \page \input ward.tex The link to \in{footnote}[note:test] does not work in mkiv, while it does in mkii. \stoptext %%% end bug-link-footnote.tex On 5 juin 2012, at 09:30, Hans Hagen wrote: > Hi, > > I uploaded a beta that has a (first) update/cleanup of the context runner > script. The most important changes are > > - no longer an option file (jobname.opt) > - no longer stub files (for xml and cld) > - handling of (most of the) ctx files happens elsewhere (job control) > > In principle all this should go unnoticed, although one might notice the > difference in the call to luatex. > > Hans > > - > 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 > ___ ___ 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] fonts
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, Hans Hagen wrote: > Hi, > > A nice candidate for wikification: > > \setupbodyfont[dejavu] > > \setupbodyfontenvironment > [default] > [smallsized=1.25, > mediumsized=1.5, > largesized=2.0] > > \definefontsize[smallsized] > \definefontsize[mediumsized] > \definefontsize[largesized] > > \starttext > > \setuphead[chapter] [style=\bflargesized] > \setuphead[section] [style=\bfmediumsized] > \setuphead[subsection][style=\bfsmallsized] > > \chapter {Whatever $x-1$} > \section {Whatever $x-1$} > \subsection{Whatever $x-1$} > > \input ward > > \stoptext > > > -- > > - > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands >tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com > | www.pragma-pod.nl > - > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ___ ___ 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] Uncovering Slides in a Presentation with Progress Meter
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, and I am using > \phantom to get the desired effect. However, I would like to tweak > the progress meter to consider these "pages" as the same instead of > separate. I am pasting a minimal example below, and I would like to > know if > > (1) there is a more "standard" way (instead of using \phantom) of > uncovering the second item in the itemized list > (2) the progress meter can be modified to illustrate 3 (instead of 4) > total pages AND not have the progress meter change between pages 2 and > 3 (since I want to view them as the same "page") > > Troy Henderson > > -- > \setuppapersize[S6][S6] > \setuppagenumbering[state=stop] > > \setupinteraction[page=yes,menu=on,state=start] > \setupsubpagenumber[state=start] > \setuplayout[bottom=12pt] > \startinteractionmenu[bottom] > \interactionbar[alternative=f] > \stopinteractionmenu > > \starttext > First page > \page > > \startitemize > \item Foo > \phantom{ > \item Bar > } > \stopitemize > \page > > \startitemize > \item Foo > \item Bar > \stopitemize > \page > > Last page > \stoptext > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Strange error message
Dear Wolfgang, Thanks for your attention: indeed in my files I have \definedescription, and I thank you for pointing to this, despite the fact that the informations I gave was by far too partial and little. But what is puzzling me is that ConTeXt version 2011.11.29 does not complain with the way I use \definedescription: probably this means that something has changed in the way one should use them in the new versions. I'll try to isolate the problem and I will report again later. Have a nice day, best regards: OK On 11 mars 2012, at 09:55, Wolfgang Schuster wrote: > > Am 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 ConTeXt version 2011.11.29 mkiv, but gives me the >> following error with the recent mkiv betas: the message is >> >> >> } >> ...onstructionparameter \c!level } >> \setevalue {\??constructio... >> \define_construction ... \everydefineconstruction >> \let \currentconstruction ... >> ...r =\v!description ,\c!level =1] >> \else \defineconstruction ... >> \define_description ...he \everydefinedescription >> \let \currentdescription \... >> >> \startpacked >> … >> >> In order to localize the error I have tried to add little by little my >> \input files, and everything works when I have about 20 pages… >> I am reporting this issue just for debugging reasons, since for the real >> project I still use the 2011.11.29 version. >> Indeed I should apologize since I am not able to submit a minimal example, >> my project itself being somewhat complex (at least from my perspective… not >> for a guru!). >> >> Also, I should say that in recent previous betas the error message was >> different, but I have not anymore those versions to report what the exact >> message was. > > Thats’t to less information to tell what’s the problem but I can say it is > generated from \definedescription. > > Do you use \definedescription somewhere in your document in combination with > \startpacked, e.g. \definedescription[before=\startpacked] or > \defindescription[packed] etc. > > 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 > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Strange error message
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 message is } ...onstructionparameter \c!level } \setevalue {\??constructio... \define_construction ... \everydefineconstruction \let \currentconstruction ... ...r =\v!description ,\c!level =1] \else \defineconstruction ... \define_description ...he \everydefinedescription \let \currentdescription \... \startpacked … In order to localize the error I have tried to add little by little my \input files, and everything works when I have about 20 pages… I am reporting this issue just for debugging reasons, since for the real project I still use the 2011.11.29 version. Indeed I should apologize since I am not able to submit a minimal example, my project itself being somewhat complex (at least from my perspective… not for a guru!). Also, I should say that in recent previous betas the error message was different, but I have not anymore those versions to report what the exact message was. Thanks for any insight: OK ___ 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] Question about spacing of some math symbols
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 way, as with = or \equiv, since they are mathematical relations. On the other hand interior product: ⨼ right hand interior product: ⨽ should be treated as +, \times, or \wedge, since they are binary operations. Best regards: OK %%% sample-xits.tex \setupbodyfont[xits] \starttext These signs should have exactly the same spacing around them: $$a = b$$ $$a \equiv b$$ $$a < b$$ $$a ⪝ b$$ $$a ⪞ b$$ $$a ⪬ b$$ $$a ⪭ b$$ These signs should have exactly the same spacing around them: $$a ⨼ b$$ $$a ⨽ b$$ $$a \wedge b$$ $$a \times b$$ $$a + b$$ \stoptext %%% end sample-xits.tex sample-xits.pdf Description: Adobe PDF document On 23 févr. 2012, at 21:12, Khaled Hosny wrote: > Hi all, > > While testing some XITS symbols, I was wondering about the spacing of > the following symbols: > > \setupbodyfont[xits] > > \starttext > $$a < b$$ # reference > $$a ⨼ b$$ > $$a ⨽ b$$ > $$a ⪝ b$$ > $$a ⪞ b$$ > $$a ⪬ b$$ > $$a ⪭ b$$ > \stoptext > > Not sure about the first two, but I think the rest should be mathrel > (additionally, does anyone knows a definite Unicode reference for such > proprieties?) > > 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 > ___ ___ 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] Incorrect rendering of * with UTF math fonts
Yes, I have it in /Library/Fonts/Microsoft/Cambria.ttf Maybe is it the wrong version? In my test files I have other instances where Cambria is used and correctly typeset, but with the new versions they don't typeset anymore. Best regards: OK On 22 févr. 2012, at 21:47, Wolfgang Schuster 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: > > Do you have Cambria? > > 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 > ___ ___ 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] Incorrect rendering of * with UTF math fonts
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 \scriptfont #1\csname \??f... \font_helpers_set_math_family ...amily_indeed #1#2 \else \font_helpers_set_ma... \font_helpers_bidirectional_mathstrategy_nop ...r \textfont \c_font_fam_mr_r... ...bidirectional_mathstrategy_nop \fi \font_helpers_apply_co... \font_helpers_synchronize_math ...math_strategies \fi ... This is with ConTeXt ver: 2012.02.21 00:51 MKIV. Best regards: OK On 22 févr. 2012, at 20:52, Aditya Mahajan wrote: > Hi, > > Using * in superscripts gives wrong glyph size and spacing. > > For example, with LM math everyhing looks fine: > > \starttext > $x^*$ vs $x^{\ast}$ > \stoptext > > With Cambria, the result is OK (but you can still see the differences in the > spacing of * in x^*) > > \usemodule[simplefonts] > \setmathfont[Cambria] > \starttext > $x^*$ vs $x^{\ast}$ > \stoptext > > With Neo Euler, $x^*$ look really bad. > > \usemodule[simplefonts] > \setmathfont[Cambria] > \starttext > $x^*$ vs $x^{\ast}$ > \stoptext > > I cannot figure out why this is happening. It definitely looks like a bug at > the context end rather than a bug with the fonts. > > 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 > ___ ___ 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] "Turning off" special chapter headings
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 > > \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 > % end > > Best regards: OK Best regards: OK On 17 févr. 2012, at 01:48, Alasdair McAndrew wrote: > I'm using the following: > > \def\chap#1#2{\vbox{Chapter #1\crlf\framed[frame=off,topframe=on]{#2}}} > \setuphead[chapter][command=\chap,style=bfd,after={\blank[1cm]}] > > for my chapter headings. But one chapter: "Answers to Exercises" I want > unnumbered, without the "Chapter" text, and also in the table of contents. > > Can anybody point me to the simplest way of achieving this? (I've tried > various combinations of \setuphead, \definehead, but nothing so far has given > me what I want.) > > Thanks, > Alasdair > > -- > Blog: http://amca01.wordpress.com > Web: http://sites.google.com/site/amca01/ > Facebook: http://www.facebook.com/alasdair.mcandrew > ___ > 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] \definedescription problems (beta)
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 problems using \definedescription the 2.16 beta: > > \definedescription[mydescription][location=serried,text={Description}] > > %% This gives an error (no blank lines around content): > \startmydescription > This is a description > \stopmydescription > > %% But this works (with blank lines): > \startmydescription > > This is a description > > \stopmydescription > > 2. "location=serried" worked correctly before, but now I get a hanging > indent instead. > -- > Peter Park Nelson > peter.park.nel...@gmail.com > ___ > 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] beta
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 in enumerations. > > Enumerations and descriptions use now the “alternative” key for the position > of the title. > > Wolfgang …Oh thanks Wolfgang… Somehow I missed the announcement of the change. The following gives the desired result: \defineenumeration[Exo] [alternative=hanging, width=fit, text={Exercise }, stopper={.}] Best regards: OK ___ 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] beta
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={.}] \starttext \startExo This is a test: this line should not be below « Exercise 1. »\dots \stopExo \stoptext % Best regards: OK On 16 févr. 2012, at 10:17, Hans Hagen wrote: > Hi, > > I uploaded a beta. Apart from some fixes, the biggest change is in dealing > with positional info and text backgrounds (first stage cleanup). As I have > no clue to what extend users mess around with background graphics themselves, > it's hard to predict side effects, but the biggest impact is speed. The > adventurous might want to try out > > \setuptextbackground > [mp=mpos:par:region, > method=mpos:par:region] > > or with some more visual tracing > > \setuptextbackground > [mp=mpos:par:region:kind, > method=mpos:par:region] > > A simple test with some 200 backgrounds brings down runtime with one second > on my machine (not the fastest anyway). > > Apart from a performance gain, backgrounds are now also supported in regular > multicolumns as well as in some specific mechanisms like tabulate and > xtables. In xtables one needs to set region=yes in order to get the desired > results. Actually, the region key is a new one in framed so anything that can > be framed can also have fancy text backgrounds. > > Yet another improvement is that (although rather untested) you can do things > like > >\starttextbackground[r] START >\dorecurse{10}{ >\dorecurse{1}{\input ward } >\placefigure[right]{}{} >some text before BEGIN \dorecurse{2}{\input ward } END some after >\placefigure[left]{}{} >some text before BEGIN \dorecurse{2}{\input ward } END some after >\placefigure[right]{}{} >some text before BEGIN \dorecurse{2}{\input ward } END some after >} >STOP \stoptextbackground >\dorecurse{1}{\input ward } > > and get more or less expected results. Keep in mind that it can never get > perfect due to all kind of possible interference. Also, keep away from > internals as they will quite certainly change. > > Hans > > > > - > 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 > ___ ___ 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] beta
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 solution of \startformula u'(x) = u(x) \quad u(0) = 1. \stopformula \stoptext % end example.tex The error message is: \301>c ->\egroup ( l.6 u'( x) = u(x) \quad u(0) = 1. Best regards: OK On 16 févr. 2012, at 10:17, Hans Hagen wrote: > Hi, > > I uploaded a beta. Apart from some fixes, the biggest change is in dealing > with positional info and text backgrounds (first stage cleanup). As I have > no clue to what extend users mess around with background graphics themselves, > it's hard to predict side effects, but the biggest impact is speed. The > adventurous might want to try out > > \setuptextbackground > [mp=mpos:par:region, > method=mpos:par:region] > > or with some more visual tracing > > \setuptextbackground > [mp=mpos:par:region:kind, > method=mpos:par:region] > > A simple test with some 200 backgrounds brings down runtime with one second > on my machine (not the fastest anyway). > > Apart from a performance gain, backgrounds are now also supported in regular > multicolumns as well as in some specific mechanisms like tabulate and > xtables. In xtables one needs to set region=yes in order to get the desired > results. Actually, the region key is a new one in framed so anything that can > be framed can also have fancy text backgrounds. > > Yet another improvement is that (although rather untested) you can do things > like > >\starttextbackground[r] START >\dorecurse{10}{ >\dorecurse{1}{\input ward } >\placefigure[right]{}{} >some text before BEGIN \dorecurse{2}{\input ward } END some after >\placefigure[left]{}{} >some text before BEGIN \dorecurse{2}{\input ward } END some after >\placefigure[right]{}{} >some text before BEGIN \dorecurse{2}{\input ward } END some after >} >STOP \stoptextbackground >\dorecurse{1}{\input ward } > > and get more or less expected results. Keep in mind that it can never get > perfect due to all kind of possible interference. Also, keep away from > internals as they will quite certainly change. > > Hans > > > > - > 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 > ___ ___ 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] Unnumbered chapter in table of contents?
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 % end Best regards: OK On 16 févr. 2012, at 01:26, Alasdair McAndrew wrote: > Hello, > > For my student notes, there are ten numbered chapters, and one unnumbered > ("Answers to Exercises"). I want all of these to appear in the table of > contents. So: > > 1. First Chapter > 2. Second chapter > > 10. Tenth Chapter > Answers to Exercises > > I've set up the chapters with > > \def\chap#1#2{\vbox{Chapter #1\crlf\framed[frame=off,topframe=on]{#2}}} > > \setuphead[chapter][ > command=\chap, > style=bfd, > after={\blank[1cm]}, > ] > > However, I don't want this heading on the exercises; just the title. > > How can I easily achieve all of this? I've tried with > > \title[Answers to Exercises] > > and > > \writetolist[content]{}{Answers to Exercises} > > but these don't seem to work. > > Thanks, > Alasdair > -- > Blog: http://amca01.wordpress.com > Web: http://sites.google.com/site/amca01/ > Facebook: http://www.facebook.com/alasdair.mcandrew > ___ > 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] Increment an item number?
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: > What is the ConTeXt version of the LaTeX > > \addtocounter{enumi}{1} ? > > I want to increment my numbering in an itemize environment, so that the list > is typeset as > > 1. First item > 2. Next item > 3. Another item > 5. Yet another > 6. And so on > > I'm typing out solutions to questions in some student notes, and the missing > item is a question for which a written solution is not necessary. > > Thanks, > Alasdair > > -- > Blog: http://amca01.wordpress.com > Web: http://sites.google.com/site/amca01/ > Facebook: http://www.facebook.com/alasdair.mcandrew > ___ > 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] Simpleslides crash
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 the latest betas. Since > Aditya and I have been taking the module into a somewhat different direction > and added some experimental code to our development branch, it was a bit > difficult to provide a "stable" version of the module, so we'd be very > grateful if you (and of course others) could take this version for a test > drive and provide feedback. We would love to say that this version is > "guaranteed" to work with the current beta 2012-02-08 and then take up > development from here. > > All best > > Thomas Hi Thomas and Aditya, Many thanks to both of you for uploading a new version of your module. I installed it with ConTeXt version 2012.02.08, and after doing context --generate context --make --all I tried the following minimal example, which results in an error (see below) begin talk-test.tex \usemodule [simpleslides] [style=Swoosh] \setupTitle [title={Testing SimpleSlides}, author={A.U. Thor}, date={\currentdate}] \starttext \placeTitle %\stoptext % the title page is typeset correctly \SlideTitle{First slide} This module is written by Thomas and Aditya. \stoptext end talk-test.tex The first page (the title page) is typeset correctly if one uncomment the first « %\stoptext » in the above lines (well, it is not anymore midaligned, but this must be something which can be changed). However as soon as there is \SlideTitle{First slide}, there is an error message, as follows: } \endgroup \meta_handle_use_graphic ...a_process_graphic {#3} \endgroup \meta_use_graphic ...aphic \currentMPgraphicname } \empty \meta_end_graphic_g... \else \executedefinedoverlay ...e \everyoverlay #2\else \lower \d_framed_target_dp… Best regards: OK ___ 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] Cross-document referencing not working!
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 wanted behavior…). With newer versions of ConTeXt I have are some other problems and I did not test your example. So if you are in a hurry, you may use ConTeXt version 2011.11.29. Best regards: OK On 8 févr. 2012, at 16:31, Verhaag, G.C.H.M. wrote: > Hi ConTeXt User's, > > I'm struggling with cross-document referencing, but can't get it working! > > When I for example use \useexternaldocument[tst][test][A test external] > together with \from[tst] the test.pdf file is correctly opened in Acrobat > Reader. > > But the \in{section}[tst::crossref] doesn't open the test.pdf file at all?! > The jump to the 'crossref' section doesn't seem to work! Please take a look > at the two included test files. > > I first compile test.tex followed by the compilation of crossref.tex. > Currently I use: ConTeXt ver: 2012.01.25 14:16 MKIV fmt: 2012.2.7 int: > english/english. > > Regards, > Gerard Verhaag > > ___ > 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] \footnote and \chapter
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 header\dots}} \stoptext %% end Hitting « r » the file typesets, but there is no number in the footnote, and the footnote number in the text is strangely very small. Best regards: OK PS: The error message is: \handlenoteinsert ...enoteitself {#1}{#2}}\egroup \the \everyafternoteinsert... l.7 } \flushnotes ...{structures.notes.flushpostponed()} \global \setfalse \postpon... \endheadplacement ...tionheadbox }\fi \flushnotes \endgraf \ifvmode \ifnum \... \dohandlehead ...mber \placecurrentheadnumbertext \else \placecurrentheadtex... l.5 ...esting footnotes in a chapter header\dots}} ___ 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] Simpleslides crash
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 its current > state. > Hi Thomas, Thanks for your answer and your suggestion: indeed version 2011.11.29 works fine and since I have it on my Mac, there is no emergency for me to have simpleslides fixed. Thanks also to Aditya and you for the nice module you have written! All the best: OK___ 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] Simpleslides crash
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=Swoosh, font=Palatino, size=17pt, color=red, alternative=stripe] \setupTitle [title={Why fatal error?}, date={11 février 2012}, ] \starttext \placeTitle \stoptext end fatal-test.tex Is there a solution? Thanks in advance: OK PS: The error message says: ! TeX capacity exceeded, sorry [expansion depth=1]. system > tex > error on line 81 in file presentation-test.tex: TeX capacity exceeded, sorry [ ... \moduleparameter #1#2->\csname \??module \ifcsname \??module #1:#2\endcsname... \moduleparameter ...?module \ifcsname \??module #1 :#2\endcsname #1:#2\fi \en... \moduleparameter ...?module \ifcsname \??module #1 :#2\endcsname #1:#2\fi \en... \moduleparameter ...?module \ifcsname \??module #1 :#2\endcsname #1:#2\fi \en... \moduleparameter ...?module \ifcsname \??module #1 :#2\endcsname #1:#2\fi \en... \moduleparameter ...?module \ifcsname \??module #1 :#2\endcsname #1:#2\fi \en... ... l.81 ! ==> Fatal error occurred, no output PDF file produced! mtx-context | fatal error: return code: 1 ___ 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] What’s your favorite command?
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 > commands but I guess many have *one* favorite command (maybe also > functionality). > > As I started this thread I’ll present my favorite command which is > \donothing, it is a internal command and only a synonym for \empty but it’s > one reason why I prefer ConTeXt’s coding style (especially with the recent > changes in MkIV) over the unreadable LaTeX code. > > 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] beta
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: \placeformula[eq:Euler] \startformula {\rm e}^{{\rm i}\pi} + 1 = 0, \qquad \mbox{where}\; {\rm i} := \sqrt{-1}. \stopformula By the way, $\int_{0}^{2\pi} \sin(x)dx = 0$. \stoptext and the error message, concerning \placeformula, points to: \doconvertedstructurecounter [\v!formula ][] \flushbothlabelclass #1#2#3->#1#3 #2 ...spaces \doplacecurrentformulanumber \removeunwantedspaces \dos... \flushbothlabelclass #1#2#3->#1#3 #2 \namedtaggedlabeltexts ...\dostarttagged {#1}{#2}} \dostoptagged \endgroup \placecurrentformulanumber ...moveunwantedspaces } \formulaparameter \c!right… while the error message concerning to \int seems to say that \int is not defined. Everything is fine with mkii. Best regards: OK On 24 janv. 2012, at 11:28, Hans Hagen wrote: > Hi, > > I uploaded a beta to the website. The most important upgrades concern the > font subsystem. > > - there was still some mkii code around ... all that has gone ... as a > consequence all code has been overhauled (a rather tedious job) ... some code > might be a bit faster (but nothing fundamental changed) > > - designsizes are now dealt with in a different way but as only lm has them > no one will probably notice .. anyway it saves a lot of definitions and (at > least on my machine) the start up is somewhat faster > > - the type-otf file is no longer used but its content has been distributed > over a some smaller files ... loading these files is rather automatic and it > should be compatible .. again this might give a (small) startup speed > improvement (and a bit less memory which quite certainly goes unnoticed > compared to the average memory usage) > > - bodyfont environments are a bit more flexible now which was one of the > reasons for rewriting much code as there is some complex inheritance and > defaulting going on there > > - Wolfgang is adapting / extending the simple fonts code but in principle it > should still work > > In addition, the lists related code has been reorganized / redone and it > seems to be ok. There have been some conceptual changes to the list rendering > (easier for future extensions) but old commands still apply. It's anyhow > still somewhat experimental. > > Of course there are some fixes and other cleanups done. > > Hans > > - > 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 > ___ ___ 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] \startitemize[columns] broken with backgrounds?
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 examples with streams which permit columns in \framed etc. > > Wolfgang Thanks fo rthe explanations: indeed with my previous setups for having each exercise with a vertical rule at its left, the following modification works fine when I need items in two columns: \startsimplecolumns \startitemize[r,packed][margin=standard,stopper=,left={(},right={)},distance=1em] \item $3x - 5 = 4$. \item $(x-1)(x+3) = 5$. \item $2 - 3x \geq 2 x - 8$. \item $(x - 1) \leq (x-1)(x+2)$. \item $2x^2 - 3x +1 < 0$. \item $x^2 - 4x \geq x - x^2 - 1$. \stopitemize \stopsimplecolumns Best regards: OK ___ 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] \startitemize[columns] broken with backgrounds?
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 items are pushed to >> the left. > > You can use the columns environment (which is used by itemize) in a framed, > framed text or background environment. Thanks Wolfgang for your attention. Now that you mention this, I understand that the columns environment cannot be used at the same time as framed or background environments. Is this a definite barrier? As a matter of fact changing background to textbackground (as you suggested) did not work neither. Have a nice day: OK ___ 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] \startitemize[columns] broken with backgrounds?
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-background-exo.pdf I am not sure whether this behaviour began with a recent beta or not. The version I am using is: ConTeXt ver: 2012.01.16 18:33 MKIV. Best regards: OK %%% begin enumeration-background-exo.pdf \definenumber[MyExoNumber][way=bysection,sectionumber=yes] \setuptextrules[rulecolor=darkred] \define\ExoCommand{\incrementnumber[MyExoNumber] \textrule[top]{Exercise \getnumber[MyExoNumber]} \startbackground[frame=off,leftframe=on, framecolor=darkred]} \defineenumeration[exo] [location=hanging, width=fit, text={}, number=hide, number=no, before={\ExoCommand}, after={\stopbackground\blank}] \defineconversion[exercice][\numbers] \def\StartQuestions{% \startitemize[exercice][width=2em,packed,style=bold,stopper=,right=)]} \def\StopQuestions{\stopitemize} \def\q{\item} \starttext % \startexo Prove that \startformula \cos(nt) + {\rm i}\sin(nt) = (\cos(t) + {\rm i}\sin(t))^n. \stopformula \StartQuestions \dorecurse{5}{\q This is question \recurselevel. } \StopQuestions \stopexo % % \startexo Solve the following equations or inequations: \startitemize[r,packed,columns][stopper=,left={(},right={)},distance=1em] \item $3x - 5 = 4$. \item $(x-1)(x+3) = 5$. \item $2 - 3x \geq 2 x - 8$. \item $(x - 1) \leq (x-1)(x+2)$. \item $2x^2 - 3x +1 < 0$. \item $x^2 - 4x \geq x - x^2 - 1$. \stopitemize \stopexo % \stoptext %%% end enumeration-background-exo.pdf ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \par in macro definition (mkii issue)
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 test variable is #1.\par} works both in mkii and mkiv. There must be a reason for the behavior of \define in mkii, but that's fine: I'll use \endgraf, when I have to use mkii. Best regards: OK___ 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] \par in macro definition (mkii issue)
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 being officially « frozen », a side effect of the global warming…? :-) Best regards: OK PS: the version I am using is ConTeXt ver: 2012.01.16 18:33 MKII, and the error message says: (/context-minimal/tex/texmf-context/tex/context/base/spec-fdf.mkii)) Runaway argument? {The test variable is ##1. ! Paragraph ended before \complexdefine was complete. \par l.1 \define[1]\MyTest{The test variable is #1.\par } ? Process aborted ___ 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] \showmathcharacters or \showmathfontcharacters
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}{\usemodule[s-mat-10]} % the file fnt-25.tex is replaced with s-mat-10.mkiv \starttext \doifmodeelse{mkiv}{\showmathfontcharacters}{\showmathcharacters} \stoptext %%% end showmath.tex Thanks in advance end best regards: OK ___ 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] Bug in symb-ini.mkiv?
Hi Wolfgang, Combing through various setups and definitions of my document, finally I could find the culprit: the error message was due to the change in the way \color should be used now. Changing all over \color[darkred] (for instance) with \startcolor[darkred]…\stopcolor, fixed the error messages. Since this may happen with other users who have \color somewhere in their file, I give below the minimal example I could find to show the problem. Thank for your help: OK %%% begin item-color.tex \definefontsynonym[Wingdings][Wingdings.ttf] %\definesymbol[Boite][{\color[darkgray]\getglyph{Wingdings}{\char113}}] %% this creates problems…. %\definesymbol[Boite][{\color[darkgray]{\getglyph{Wingdings}{\char113}}}] %% this is fine \definesymbol[Boite][{\startcolor[darkgray]\getglyph{Wingdings}{\char113}\stopcolor}] %% this is fine %\tracingmacros1 \setupitemize[Boite] %\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.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 teypeset my document. >> Since the document is long and the macros I use are soemwhat complex (and >> maybe not very well written…), I cannot send you a minimal example which >> shows the problem. In any case, I wanted to let you know about the issue. >> The error message says: >> >> >> } >> >> \endgroup >> \symb_place_retry ...name \symb_place_indeed {:#1} >> \else #1\fi >> \symb_place_normal_c ...lace_retry \currentsymbol >> \fi >> \symb_place_normal_b ...else \symb_place_normal_c >> \fi >> >> \else >> and stops when an \item is encountered. > > Send at least your log file and add “\tracingmacros1” before and > “tracingmacros0” after the part where context fails (look at the line number > from the error message). > > 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 > ___ ___ 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] Bug in symb-ini.mkiv?
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: > >> 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 teypeset my document. >> Since the document is long and the macros I use are soemwhat complex (and >> maybe not very well written…), I cannot send you a minimal example which >> shows the problem. In any case, I wanted to let you know about the issue. >> The error message says: >> >> >> } >> >> \endgroup >> \symb_place_retry ...name \symb_place_indeed {:#1} >> \else #1\fi >> \symb_place_normal_c ...lace_retry \currentsymbol >> \fi >> \symb_place_normal_b ...else \symb_place_normal_c >> \fi >> >> \else >> and stops when an \item is encountered. > > Send at least your log file and add “\tracingmacros1” before and > “tracingmacros0” after the part where context fails (look at the line number > from the error message). > > 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 > ___ ___ 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] Bug in symb-ini.mkiv?
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 teypeset my document. Since the document is long and the macros I use are soemwhat complex (and maybe not very well written…), I cannot send you a minimal example which shows the problem. In any case, I wanted to let you know about the issue. The error message says: } \endgroup \symb_place_retry ...name \symb_place_indeed {:#1} \else #1\fi \symb_place_normal_c ...lace_retry \currentsymbol \fi \symb_place_normal_b ...else \symb_place_normal_c \fi \else and stops when an \item is encountered. Best regards: OK ___ 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] How to define a command...
Sorry for the noise… I found the answer to my last question in module-01.pdf, pages 92 and 93: the right definition is \define[3]\RandomCoeff{% \setevalue{Coeff#1}{\ctxlua{tex.print(math.random(#2,#3))}} } that is one has to use \setevalue instead of \setvalue (that is \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{% > \setvalue{Coeff#1}{\ctxlua{tex.print(math.random(#2,#3))}} > } > > after saying > \RandomCoeff{Alpha}{1}{10} > one gets \CoeffAlpha, but if I use several times \CoeffAlpha, it takes a new > value each time, an effect which is undesirable in what I am willing to do. > Is there a way to somehow « freeze » the value of \CoeffAlpha once it is > defined? > > Best regards: OK > PS: here is the complete example: > > \define[3]\RandomCoeff{% > \setvalue{Coeff#1}{\ctxlua{tex.print(math.random(#2,#3))}} > } > > \starttext > \RandomCoeff{Alpha}{1}{10} > \RandomCoeff{Beta}{10}{100} > > \CoeffAlpha > > \CoeffBeta > > \CoeffAlpha > > \CoeffBeta > > \stoptext > > On 5 janv. 2012, at 21:18, Wolfgang Schuster wrote: > >> >> Am 05.01.2012 um 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... >>> >>> \setuprandomize[2012] >>> \define[3]\RandomCoeff{% >>> \expandafter\def\csname >>> Coeff#1\endcsname{\ctxlua{tex.print(math.random(#2,#3))}}} >> >> \setvalue{Coeff#1}{…} >> >> 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] How to define a command...
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{% \setvalue{Coeff#1}{\ctxlua{tex.print(math.random(#2,#3))}} } after saying \RandomCoeff{Alpha}{1}{10} one gets \CoeffAlpha, but if I use several times \CoeffAlpha, it takes a new value each time, an effect which is undesirable in what I am willing to do. Is there a way to somehow « freeze » the value of \CoeffAlpha once it is defined? Best regards: OK PS: here is the complete example: \define[3]\RandomCoeff{% \setvalue{Coeff#1}{\ctxlua{tex.print(math.random(#2,#3))}} } \starttext \RandomCoeff{Alpha}{1}{10} \RandomCoeff{Beta}{10}{100} \CoeffAlpha \CoeffBeta \CoeffAlpha \CoeffBeta \stoptext On 5 janv. 2012, at 21:18, Wolfgang Schuster wrote: > > Am 05.01.2012 um 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... >> >> \setuprandomize[2012] >> \define[3]\RandomCoeff{% >> \expandafter\def\csname >> Coeff#1\endcsname{\ctxlua{tex.print(math.random(#2,#3))}}} > > \setvalue{Coeff#1}{…} > > 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] How to define a command...
Thanks for Wolfgang: your solution, that is \setuprandomize[2012] \define[3]\RandomCoeff{% \setvalue{Coeff#1}{\ctxlua{tex.print(math.random(#2,#3))}}} works indeed and it is somehow simpler than using \expandafter\csname, and as a matter of fact, after reading your message I searched in the ConTeXt manuals written by Hans, and found that \setvalue is defined on page 93 of module-01.pdf as \def\setvalue#1{\expandafter \def\csname#1\endcsname} so it is better to use it. Best regards: OK On 5 janv. 2012, at 21:18, Wolfgang Schuster wrote: > > Am 05.01.2012 um 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... >> >> \setuprandomize[2012] >> \define[3]\RandomCoeff{% >> \expandafter\def\csname >> Coeff#1\endcsname{\ctxlua{tex.print(math.random(#2,#3))}}} > > \setvalue{Coeff#1}{…} > > 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] How to define a command...
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: > >> \define[3]\RandomCoeff{% >> \ctxlua{a = math.random(#2,#3)} >> %\csname{Coeff#1}\endcsname{\ctxlua{tex.print(a)}} %% this line does not >> work as expected... > > \setuprandomize[2012] > \define[3]\RandomCoeff{% > \expandafter\def\csname > Coeff#1\endcsname{\ctxlua{tex.print(math.random(#2,#3))}}} > \starttext > \RandomCoeff{Alpha}{1}{10} > \RandomCoeff{Beta}{2}{20} > \CoeffAlpha > \CoeffBeta > \stoptext > > -- > Peter > ___ > 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] How to define a command...
Thanks Hans, in another problem I was looking for commands such as \RandomRange, \RandomSeries: I am going to use your ideas! It is incredible that on this list one gets solutions even for problems one didn't dare to ask :-) Best regards: OK On 5 janv. 2012, at 21:11, Meer, H. van der wrote: > Reccently I did something random in ctxlua. I post it in the hope it will be > useful. > > Hans van der Meer > > \startluacode > -- Define our namespace as hvdm > hvdm = hvdm or {} > > -- Return random series of numbers 1..n depending on the number of > arguments > function hvdm.randomseries (n, straight) > local done = {} > for i = 1, n do > done[i] = i > end > if straight == "false" then > return table.concat(done,",") > end > local result = "" > for i = n, 2, -1 do > local r = math.random(i) > result = result .. done[r] .. "," > table.remove(done,r) > end > result = result .. done[1] > return result > end > \stopluacode > \def\RandomSeed#1{\directlua{math.randomseed(#1)}} > \def\RandomValue{\directlua{tex.print(math.random())}} > \def\RandomRange#1{\directlua{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 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 number chosen between 1 and 10? >> >> I tried to use the following approach, but could not make it work: >> >> %%% begin random-coeff.tex >> \setuprandomize[2012] % set a seed >> >> \ctxlua{CoeffAlpha = math.random(1,10) ;} >> \def\CoeffAlpha{\ctxlua{tex.print(CoeffAlpha)}} >> >> % >> \define[3]\RandomCoeff{% >> \ctxlua{a = math.random(#2,#3)} >> %\csname{Coeff#1}\endcsname{\ctxlua{tex.print(a)}} %% this line does not >> work as expected... >> } >> >> \starttext >> \CoeffAlpha >> >> \RandomCoeff{Beta}{1}{10} >> >> \ctxlua{tex.print(a)} >> >> %\CoeffBeta >> >> \stoptext >> %%% end random-coeff.tex >> >> Thanks in advance for any suggestion or hint. >> Best regards: OK >> >> ___ >> 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 > ___ ___ 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] How to define a command...
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 number chosen between 1 and 10? I tried to use the following approach, but could not make it work: %%% begin random-coeff.tex \setuprandomize[2012] % set a seed \ctxlua{CoeffAlpha = math.random(1,10) ;} \def\CoeffAlpha{\ctxlua{tex.print(CoeffAlpha)}} % \define[3]\RandomCoeff{% \ctxlua{a = math.random(#2,#3)} % \csname{Coeff#1}\endcsname{\ctxlua{tex.print(a)}} %% this line does not work as expected... } \starttext \CoeffAlpha \RandomCoeff{Beta}{1}{10} \ctxlua{tex.print(a)} %\CoeffBeta \stoptext %%% end random-coeff.tex Thanks in advance for any suggestion or hint. Best regards: OK ___ 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] Beta: bug in \setuphead[chapter]
Thanks to both of you, Wolfgang and Aditya, for the explanantions. After applying the patch Wolfgang sent to Aditya, the error message is gone. I guess the patch will be in the next beta. Best regards: OK On 3 janv. 2012, at 14:06, Wolfgang Schuster wrote: > > Am 03.01.2012 um 13:58 schrieb 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,align=middle] >> or >> \setuphead[chapter][align=middle,header=high] >> or >> \setuphead[chapter][align=middle, >> header=high] >> or >> \setuphead[chapter][header=high, >> align=middle >> ] >> >> results in an error. While >> >> \setuphead[chapter][align=middle, >> header=high >> ] >> >> works fine… > > It’s a typo in the core, see Adityas mail but in the last case you need a > comma after the high otherwise you pass the value “high ” (with a space at > the end) to context. > > Here is a simple example where you can that spaces matter: > > \definehighlight[one][color=red ] > \definehighlight[two][color=blue] > \starttext > \one{Red} \two{Blue} > \stoptext > > In the first definition i pass “red ” with a space at the end which is > different from “red” (without a space). > > 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 > ___ ___ 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] Beta: bug in \setuphead[chapter]
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,align=middle] or \setuphead[chapter][align=middle,header=high] or \setuphead[chapter][align=middle, header=high] or \setuphead[chapter][header=high, align=middle ] results in an error. While \setuphead[chapter][align=middle, header=high ] works fine… On the other hand I should say that the settings I have in a document with over 120 pages used to work until version 2011.11.29, but since the betas of December something seems to be broken and that's why I was reporting the bug to Hans' attention and yours. In fact using any other key in \setuphead together with "align=middle" either results an error or else destroys the middle alignment. Best regards: OK ___ 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] Beta: bug in \setuphead[chapter]
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 an error (see below), while \setuphead [chapter] [align=middle, header=high ] works as expected (I had a tough time to find the bug and this minimal example…). Minimal example that does not work: %%% begin bug-setuphead.tex \setuphead [chapter] [header=high, align=middle ] \starttext \chapter{My chapter title} \input knuth \stoptext %%% end bug-setuphead.tex The error message points to: \page_layouts_synchronize_element_indeed ...ounds \else \ifx \previoustextst... \page_layouts_synchronize_element ...t_indeed {#1} \fi ..._element \currentlayoutelement \fi \docommand ...=high]\the \everysetuplayoutelement \next1 #1,->\docommand {#1} \syst_helpers_do_process_comma_item \syst_helpers_do_process_comma_list ...rgument #1, ]\relax \global \advance \… Best regards: OK ___ 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] Dec 30 Broken Nightly
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 my book again. > Yesterday's worked fine. > > $ context Source/Handbook.tex --purgeresult > > resolvers | resolving | loading configuration file > 'selfautodir:/share/texmf/web2c/contextcnf.lua' > resolvers | resolving | loading configuration file > '/usr/share/texmf/web2c/contextcnf.lua' > mtx-context | run 1: luatex > --fmt="/home/kip/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/formats/cont-en" > > --lua="/home/kip/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/formats/cont-en.lui" > --backend="pdf" "Source/Handbook.tex" \stoptext > This is LuaTeX, Version beta-0.71.0-2011122302 (rev 4358) > \write18 enabled. > > resolvers > resolving > loading configuration file > '/usr/share/texmf/web2c/contextcnf.lua' > (Source/Handbook.tex > > ConTeXt ver: 2011.12.30 17:38 MKIV fmt: 2011.12.30 int: > english/english > > system > cont-new.mkiv loaded > (/usr/share/texmf/tex/context/base/cont-new.mkiv > system > beware: some patches loaded from cont-new.mkiv > ) > system > Handbook.top loaded > (Handbook.top) > fonts > latin modern fonts are not preloaded > languages > language en is active > {/usr/share/texmf/fonts/map/pdftex/context/mkiv-base.map} > fonts > preloading latin modern fonts (second stage) > (/usr/share/texmf/tex/context/base/type-siz.mkiv) > (/usr/share/texmf/tex/context/base/type-otf.mkiv) > files > readfile > asked name: 'loc', not found > {/usr/share/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/share/texmf/fonts/map/dvips/lm/lm-rm.map} > fonts > defining > forced type afm of stmary10 not found > fonts > defining > font with asked name 'stmary10' is not > found using lookup 'file' > fonts > virtual math > loading font LMMath7-Regular subfont 9 > with name stmary10.afm at 458752 is skipped, not found > fonts > defining > forced type afm of stmary10 not found > fonts > defining > font with asked name 'stmary10' is not > found using lookup 'file' > fonts > virtual math > loading font LMMath9-Regular subfont 9 > with name stmary10.afm at 589824 is skipped, not found > fonts > defining > forced type afm of stmary10 not found > fonts > defining > font with asked name 'stmary10' is not > found using lookup 'file' > fonts > virtual math > loading font LMMath12-Regular subfont 9 > with name stmary10.afm at 786432 is skipped, not found > fonts > fallback modern rm 12pt is loaded > (Source/Environment.tex > resolvers > modules > loaded: 'units' > (/usr/share/texmf/tex/context/base/m-units.mkiv< > + /usr/share/texmf/tex/context/base/x-mathml.lua>) > resolvers > modules > loaded: 'simplefonts' > (/usr/share/texmf/tex/context/third/simplefonts/t-simplefonts.tex > loading > ConTeXt User Module / Simplefonts > <+ /usr/share/texmf/tex/context/third/simplefonts/t-simplefonts.lua>) > ! Too many }'s. > \framed_text_stop_depth_correction ...rut \egroup > \forgetall \vskip > -\linehe... > \framed_text_stop ...d_text_stop_depth_correction > \stopboxedcontent > \stopcol... > l.154 \stopframedtext > > ? > > > -- > Kip Warner -- Software Engineer > OpenPGP encrypted/signed mail preferred > http://www.thevertigo.com > ___ > 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] Offsetting the Item Symbol
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} \stopitemize \stoptext Best regards: OK On 27 déc. 2011, at 21:33, Emmanuel Asante wrote: > Hi All, > > I would like to offset itemized lists including the item symbol itself > and I cannot figure out how to achieve that. I have looked at the > setupitemize options but I did not find any option that does what I > want. Any help in doing this will be very much appreciated. > > Thanks, > Emmanuel > ___ > 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] Setting up examination sheets
Hi Aditya, The MAPS article I was talking about can be found here: http://staff.science.uva.nl/~hansm/pubs/exammaps.pdf where there are some examples of asking questions and leaving spaces for answers, as well as setting up multiple choices tests. But if you have any example file which you can send me I would be grateful… The only constraint I have is that I want to use mkiv (since I give different problems to each student by making some calculations in lua). Hans van der Meer sent me the files of his modules but unfortunately I could not typeset any example. Best regards: OK 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 could not typeset >> a short test file extracted from your MAPS article >> Exam papers: posing questions to students >> which dates from 2006. >> Is there an updated version of your module usable with mkiv, or have you >> other solutions for setting up problems sheets? > > Can you elaborate what you mean by a problem sheet? I normally just use > \thinrules[n=6], 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 > ___ ___ 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] Is the Annotation module incompatible with the latest beta?
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 \doletannotationparameter is considered to be undefined. Best regards: OK PS: The example file is: %%% begin test-annotation.tex \usemodule[annotation] \setupannotation [text=Annotation , number=yes] \starttext \startannotation The Earth, as a habitat for animal life, is in old age and has a fatal illness. Several, in fact. It would be happening whether humans had ever evolved or not. But our presence is like the effect of an old-age patient who smokes many packs of cigarettes per day – and we humans are the cigarettes. \stopannotation \stoptext %%% end test-annotation.tex ___ 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] Setting up examination sheets
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. Is there an updated version of your module usable with mkiv, or have you other solutions for setting up problems sheets? Thanks in advance: OK ___ 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] Broken textbackground
Hi Hans, If this can be of any help for you to localize the origin of the bug with the latest beta (ConTeXt ver: 2011.12.18 15:57 MKIV), I would like to report that when a \framedtext is used by its own, the result is as expected, while when it follows \startbackground …. \stopbackground, no \framedtext appears (thee rsult is the same when \framedtext is before textbackground). The example is: \starttext \definetextbackground[test][backgroundcolor=lightgray] \starttextbackground[test] \input ward \input ward \stoptextbackground \startframedtext \input knuth \stopframedtext \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/textbackground-bug.pdf > Best regards: OK > > %%% begin textbackground-bug.tex > \starttext > > \definetextbackground[test][backgroundcolor=lightgray] > > \starttextbackground[test] > \input ward > \input ward > \stoptextbackground > > \stoptext > %%% begin textbackground-bug.tex ___ 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] Broken textbackground
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[test][backgroundcolor=lightgray] \starttextbackground[test] \input ward \input ward \stoptextbackground \stoptext %%% begin textbackground-bug.tex ___ 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] Itemize option “text”
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 beta has several issues with itemize, Hans knows that and I guess he will fix the problem in the next beta. Best regards: OK ___ 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] beta
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 >> \startitemize[n] >> \item One >> \item Two >> \stopitemize >> \stoptext > > fixed (I had commented a counter definition because I load the module runtime > for testing) > > Hans Hi Hans, Thanks for the quick fix. However \startitemize[r] (or any other option) results always with items being numbered 1., 2., 3., … The behavior does not improve when using \startitem…\stopitem. Reporting this for ConTeXt version 2011.12.14 00:20. Best regards: OK ___ 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] beta
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. This one is really beta so don't update if you have a > critical workflow (or make a copy). Among the changes are: > > - page-* : cleaned up, split and made more efficient (maybe typos) > > - strc-itm: cleaned up (maybe side effects, but it looks ok) > > - style/color : low level clean up (which means that some t-* files need to > be updated in sync) > > Of course there are the usual fixes / improvements / new bugs. > > Hans ___ 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] Reverse numbering
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 using « numberconversion », but I could not figure it out. Best regards: OK___ 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] Reverse numbering
Hi Wolfgang, Thank you for your attention: in fact you pointed out how to solve the problem… Beginning with what you wrote, after a few trials and errors I ended up with the following which gives what I meant: %%% begin reverse-enumeration.tex \definenumber[ReverseNumberOrder][numberorder=reverse] \defineenumeration[Lecture] [location=hanging, text={Lecture n° {\convertednumber[ReverseNumberOrder]}.}, between=, before={\incrementnumber[ReverseNumberOrder]}, number=no, after={\hrule\blank}] \starttext \startLecture Tuesday December 6th: Banach spaces. \startitemize[n] \item First subject. \item Second subject. \stopitemize \stopLecture \startLecture Tuesday November 29th: Norms. \startitemize[n] \item First subject. \item Second subject. \stopitemize \stopLecture \startLecture Tuesday November 22nd: Topological Vector Spaces. \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, >> >> 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 numbered in reverse order. > > The numbering mechanism has indeed such a option but it seems to be not > available for enumerations. > > \definenumber[foo] > \definenumber[bar][numberorder=reverse] > > \define\test > {\incrementnumber[foo] \incrementnumber[bar]% > \convertednumber[foo]:\convertednumber[bar]} > > \starttext > \dorecurse{9}{\test\par} > \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 > ___ %% Otared Kavian Département de Mathématiques Université de Versailles Saint-Quentin Bâtiment Fermat 45 avenue des Etats Unis 78035 Versailles cedex Téléphone: +33 1 39 25 46 42 Secrétariat: +33 1 39 25 46 44 Secrétariat: +33 1 39 25 46 46 e-mail: otared.kav...@math.uvsq.fr ___ 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] Reverse numbering
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 numbered in reverse order. Thanks in advance for any insight: OK PS: here is an example file: enumeration-reverse.tex \defineenumeration[Lecture] [location=hanging, text={Lecture n°}, between=, before=, stopper={.}, after= {\hrule\blank}] \setupenumerations[Lecture][number=yes] % \setupenumerations[Lecture][numbering=reverse] % this has no effect though… \starttext \startLecture Tuesday December 6th: Banach spaces. \startitemize[n] \item First subject. \item Second subject. \stopitemize \stopLecture \startLecture Tuesday November 29th: Norms. \startitemize[n] \item First subject. \item Second subject. \stopitemize \stopLecture \startLecture Tuesday November 22nd: Topological Vector Spaces. \startitemize[n] \item First subject. \item Second subject. \stopitemize \stopLecture \stoptext %%% end enumeration-reverse.tex ___ 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] Reverse numbering for enumerations?
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 numbered in reverse order. Thanks in advance for any insight: OK PS: here is an example file: enumeration-reverse.tex \defineenumeration[Lecture] [location=hanging, text={Lecture n°}, between=, before=, stopper={.}, after= {\hrule\blank}] \setupenumerations[Lecture][number=yes] % \setupenumerations[Lecture][numbering=reverse] % this has no effect though… \starttext \startLecture Tuesday December 6th: Banach spaces. \startitemize[n] \item First subject. \item Second subject. \stopitemize \stopLecture \startLecture Tuesday November 29th: Norms. \startitemize[n] \item First subject. \item Second subject. \stopitemize \stopLecture \startLecture Tuesday November 22nd: Topological Vector Spaces. \startitemize[n] \item First subject. \item Second subject. \stopitemize \stopLecture \stoptext %%% end enumeration-reverse.tex ___ 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] naming of labels: Is »()« allowed?
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)} \stopformula This works: \type{\eqref[N)]} gives \eqref[N)]. \starttext \placeformula[(N] \startformula \Pr\{N = n\} = \Pr\left\{ \min_{1 ≤ k ≤ n} S_k > 0 \right\} = p_n^{(1)} \stopformula This does not work: \type{\eqref[(N]} gives \eqref[(N]. This is not really an issue, since it is not necessary to name a label « (N) » or « (N »… Best regards: OK On 8 déc. 2011, at 02:18, Paul Menzel wrote: > >\definereferenceformat[eqref][left=(,right=)] > >\starttext >\placeformula[(N)] >\startformula > \Pr\{N = n\} = \Pr\left\{ \min_{1 ≤ k ≤ n} S_k > 0 \right\} = > p_n^{(1)} >\stopformula > >Is it working? \eqref[(N)] > >\CONTEXT\ \contextmark\ \contextversion >\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 ___
[NTG-context] Enumeration in mkiv
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 the result of the source below here, http://dl.dropbox.com/u/4316076/enumeration-mkii.pdf and http://dl.dropbox.com/u/4316076/enumeration-mkiv.pdf I think the correct behaviour is the one with mkii. Best regards: OK PS: here is the source file: %%% begin enumeration-mkiv.tex \defineenumeration[exo] [location=hanging, text=Exercise, between=, before=, stopper={.}, after= \blank] \starttext \startexo This is a test with mkiv. \startitemize[n] \item First question. \item Second question. \stopitemize \stopexo \stoptext %%% end enumeration-mkiv.tex ___ 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 align in mkiv
Dear Paul, Thanks for your attention: as you may have seen, Hans found the fix and after that math align works fine. As you noticed, the issue was related to what you reported some time ago. Best regards: OK On 7 déc. 2011, at 09:03, Paul Menzel wrote: > Dear Otared, > > > Am Mittwoch, 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 version of ConTeXt mkiv, some time between October >> and late November. >> The version I am running is >> ConTeXt ver: 2011.11.29 23:11 MKIV fmt: 2011.12.2 int: >> english/english > > I can also reproduce that behavior using > >ConTeXt ver: 2011.11.25 21:29 MKIV fmt: 2011.11.25 int: > english/english > >> I think at some time in November Hans did some changes in math alignment >> after someone reported a bug, and Aditya said he wouldn't have time to (or >> could not) fix it. > > There were two issues and the corresponding messages in the archive > [1][2]. So if these are related it should work for you using the version > from November 24th. > > > Thanks, > > Paul > > > [1] http://www.ntg.nl/pipermail/ntg-context/2011/063428.html > [2] http://www.ntg.nl/pipermail/ntg-context/2011/063451.html > ___ > 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 > ___ %% Otared Kavian Département de Mathématiques Université de Versailles Saint-Quentin Bâtiment Fermat 45 avenue des Etats Unis 78035 Versailles cedex Téléphone: +33 1 39 25 46 42 Secrétariat: +33 1 39 25 46 44 Secrétariat: +33 1 39 25 46 46 e-mail: otared.kav...@math.uvsq.fr ___ 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 align in mkiv
Dear Dalyoung, Thank you having tested the file I sent. As I suspected, your testing confirms that the change or the bug has been introduced in a recent version of ConTeXt mkiv, some time between October and late November. The version I am running is ConTeXt ver: 2011.11.29 23:11 MKIV fmt: 2011.12.2 int: english/english I think at some time in November Hans did some changes in math alignment after someone reported a bug, and Aditya said he wouldn't have time to (or could not) fix it. Best regards: OK On 7 déc. 2011, at 02:39, Jeong Dalyoung wrote: > Dear Otared, > > I run your code and got the output which is as same as in your file > align-mkii.pdf > I don't know why you got align-mkiv.pdf. > > In my log file, > > ConTeXt ver: 2011.10.08 11:42 MKIV fmt: 2011.10.12 int: english/english > ... > mkiv lua stats > luatex banner - this is luatex, version > beta-0.70.1-2011051908 (rev 4277) > > Something in your system is different from mine. > > I am sorry that I couldn't give you a solution. > > Best regards, > > Dalyoung > >> Best regards: OK >> PS: Here is the source file: >> %%% align-mkiv.tex >> % defining an alignment structure >> \definemathmatrix[alignedcases] >> [align={right,left,left}, >> distance=3pt, >> left={\left\{\;}, >> right={\right.}, >> style=\displaystyle] >> >> \starttext >> >> \startformula >> \startalignedcases >> \NC -\partial_t \Delta \psi + \Delta^2 \psi - \Delta \psi \NC = 0 \NC >> \quad \mbox{in }\, (0,\infty)\times \Omega \NR >> \NC \psi (0,x) \NC= \psi_0(x) \NC \quad \mbox{in }\, \Omega \NR >> \NC \psi (t,\sigma ) \NC= 0 \NC \quad \mbox{on }\, (0,\infty)\times >> \partial\Omega \NR >> \NC {\partial \psi \over \partial {\bf n}}(t,\sigma ) \NC = 0 \NC \quad >> \mbox{on }\, (0,\infty)\times \partial\Omega. >> \stopalignedcases >> \stopformula >> >> \stoptext >> %%% end align-mkiv.tex > > ___ > 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 > ___ %% Otared Kavian Département de Mathématiques Université de Versailles Saint-Quentin Bâtiment Fermat 45 avenue des Etats Unis 78035 Versailles cedex Téléphone: +33 1 39 25 46 42 Secrétariat: +33 1 39 25 46 44 Secrétariat: +33 1 39 25 46 46 e-mail: otared.kav...@math.uvsq.fr ___ 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 align in mkiv
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-mkiv.pdf As far as I can say the right behaviour is the one in mkii. Is there a way to get the same result in mkiv by changing some parameters? (I have movede litlle by little to maths in mkiv and I would like to fix somehow the apparently incorrect behaviour of mkiv…). Best regards: OK PS: Here is the source file: %%% align-mkiv.tex % defining an alignment structure \definemathmatrix[alignedcases] [align={right,left,left}, distance=3pt, left={\left\{\;}, right={\right.}, style=\displaystyle] \starttext \startformula \startalignedcases \NC -\partial_t \Delta \psi + \Delta^2 \psi - \Delta \psi \NC = 0 \NC \quad \mbox{in }\, (0,\infty)\times \Omega \NR \NC \psi (0,x) \NC= \psi_0(x) \NC \quad \mbox{in }\, \Omega \NR \NC \psi (t,\sigma ) \NC= 0 \NC \quad \mbox{on }\, (0,\infty)\times \partial\Omega \NR \NC {\partial \psi \over \partial {\bf n}}(t,\sigma ) \NC = 0 \NC \quad \mbox{on }\, (0,\infty)\times \partial\Omega. \stopalignedcases \stopformula \stoptext %%% end align-mkiv.tex ___ 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] terrible png placement
Hi Hans, On Mac OS X 10.7.2, testing your file I get afile of 110 KB with mkii, and 72 KB with mkiv (from the minimals). You can find the outputs here: http://dl.dropbox.com/u/4316076/test-png-mkii.pdf http://dl.dropbox.com/u/4316076/test-png-mkiv.pdf All this with ConTeXt ver: 2011.11.29 23:11 MKIV fmt: 2011.12.2. Best regards: OK On 11 nov. 2011, at 11:13, Meer, H. van der wrote: > Sofar I received 2 reactions. > > (1) > Can't reproduce here; I get a 70KB pdf with your file and image. > ConTeXt standalone, 32-bit Linux, mkiv, version 2011.10.01 10:48. > > (2) > I've encountered the same problem. The PDF is 1.8MB big. Compressed with qpdf > (qpdf --stream-data=compress) its only 60KB! > Latest beta on OS-X 10.7.2 > > Further search for the cause: > > My system is also OS-X 10.7.2 and latest beta. > To find the culprit I reverted to an older version of ConTeXt. > > ConTeXt ver: 2011.10.14 22:47 MKIV fmt: 2011.11.11 int: english/english > Now the filesize becomes 72KB instead of 1.8 MB. > This one seems OK. > > CONCLUSION: This must have been introduced in one of the beta's later than > 2011.10.14 and in or before the current one: ConTeXt ver: 2011.11.04 14:15 > MKIV. > > I kindly suggest Hans takes a look into the matter. > > Hans van der Meer > > > On 10 nov. 2011, at 21:22, Hans van der Meer wrote: > >> Something terrible must be done to png pictures, either in ConTeXt or in >> luatex. >> I have the following minimal sample code and picture. I include the png for >> those who want to check. >> >> % Test png addition. >> \starttext >> Place png figure.\par >> \placefigure{Test figure}{\externalfigure[test.png]} >> \stoptext >> >> Without the png-picture it makes an 8KB pdf. >> But with the png-picture the pdf swells to 1.8MB. >> And that for a png-picture of only 48KB. >> Moreover making a zip of all this stuff brought the size back to 110KB. >> In the log: >> ConTeXt ver: 2011.11.04 14:15 MKIV fmt: 2011.11.10 int: english/english >> mkiv lua stats > graphics processing time - 0.001 seconds including tex, 1 >> processed images > > > > > ___ > 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 > ___ %% Otared Kavian Département de Mathématiques Université de Versailles Saint-Quentin Bâtiment Fermat 45 avenue des Etats Unis 78035 Versailles cedex Téléphone: +33 1 39 25 46 42 Secrétariat: +33 1 39 25 46 44 Secrétariat: +33 1 39 25 46 46 e-mail: otared.kav...@math.uvsq.fr ___ 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 in metapost
Hi, I am not a specialist, but I use the « btex etex » commands, such as dotlabel.bot (btex \switchtobodyfont[10pt] \strut $R$ etex, z1) I just tested with the latest beta, and everything works fine, but not the \pmatrix construct (I tried also with ${k}\choose{n}$, which works fine too. I put my test file in which some maths is used in a MetaPost graphic here: http://dl.dropbox.com/u/4316076/test-graphique.tex http://dl.dropbox.com/u/4316076/test-graphique.pdf Best regards: OK On 30 nov. 2011, at 20:59, Hans van der Meer wrote: > I would like to put some math in metapost pictures. For the moment I am using > textext for the typesetting in my metapost macro: pic := > textext("\setbox0=\hbox{\color["&textcolor&"]"&labeltext&"}\dp0=0pt\box0"); > picture pic will be placed in the metapost figure. > > Simple math like $p=2$ works fine, but the system chokes on something like > the following matrix: > $\pmatrix{p_{0|0}\cr}$ (it does fine in ConTeXt itself). > > The error is: ! Only one # is allowed per tab. > system > tex > error on line 6 in file Info/kanaalmatrix.tex: Only one # is > allowed per tab ... > > Perhaps I am too optimistic about textext's possibilities. But how can I > accomplish the placement of these and more elaborate formulae in metapost > pictures using ConTeXt? It is of the essence for a series of Powerpoint > slides I am preparing, wheein these formulae must be placed as individual > pictures. > > Hans van der Meer > > > > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ___ %% Otared Kavian Département de Mathématiques Université de Versailles Saint-Quentin Bâtiment Fermat 45 avenue des Etats Unis 78035 Versailles cedex Téléphone: +33 1 39 25 46 42 Secrétariat: +33 1 39 25 46 44 Secrétariat: +33 1 39 25 46 46 e-mail: otared.kav...@math.uvsq.fr ___ 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] Resetting references or local references?
Hi Wolfgang, Many thanks for your attention and the link you sent. I looked up the chapter on references of the main manuel written by Hans, but unfortunately I could not find a solution, or could not adapt what is said there. It can be that I have to change my approach of defining my « exercises », for instance by defining each exercise as a section or subsection? Up to now I have two ways of defining an « exercise »: • one is with \defineenumeration[Exo] (when using mkii), • the other one is with \defineannotation[Exo] and your annotation module when using mkiv. In neither case the command \setupreferencing[prefix=+] or \setupannotation[Exo][prefix=+] seems to generate local tags. Just in case, below is a minimal file, which shows how I use the annotation module. Best regards: OK %% begin \setupinteraction[state=start] \usemodule[annotation] % Wolfgang's module \define[2]\ExoSetup {\resetnumber[formula] \setupframedtext[ width=\textwidth, frame=off, leftframe=on] \textrule{#1}% \startframedtext #2% \stopframedtext} \defineannotation[Exo] [alternative=command, command=\ExoSetup, text=Exercise , number=yes, headcolor=darkred, ] % \setupannotation[Exo][prefix=+] \setupreferencing[prefix=+] \starttext \startExo[exo:CharacTwo] Prove that if $ab=ba$ and $2ab=0$ then \placeformula[eq:1] \startformula (a+b)^2 = a^2 + b^2. \stopformula Using the identity (\in[eq:1]) prove that $(a=b)^{2n} = a^{2n} + b^{2n}$. \stopExo \page \startExo[exo:Moivre]{Moivre's formula} Prove that for any integer $n$ \placeformula[eq:2] % I would like the reference to be [eq:1] \startformula (\cos(x) + {\rm i}\sin(x))^n = \cos(nx) + {\rm i} \sin(nx). \stopformula Using the identity (\in[eq:2]) % I would like here to say [eq:1] compute $\cos{3x}$. \stopExo \stoptext %% end On 28 nov. 2011, at 00:10, Wolfgang Schuster wrote: > > Am 27.11.2011 um 23:27 schrieb 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 >> \starttext >> >> Exercice 1. Prove that if $ab=ba$ and $2ab=0$ then >> \placeformula[eq:1] >> \startformula >> (a+b)^2 = a^2 + b^2. >> \stopformula >> Using the identity (\in[eq:1]) prove that $(a=b)^{2n} = a^{2n} + b^{2n}$. >> >> \blank[big] >> \hrule >> \blank[big] >> >> Exercice 2. Prove that for any integer $n$ >> \resetnumber[formula] >> %\reset[formulas][references] >> \placeformula[eq:2] % I would like the reference to be [eq:1] >> \startformula >> (\cos(x) + {\rm i}\sin(x))^n = \cos(nx) + {\rm i} \sin(nx). >> \stopformula >> Using the identity (\in[eq:2]) % I would like here to say [eq:1] >> compute $\cos{3x}$. >> >> \stoptext >> % end >> >> I would like to be able to have the equations numbered within each exercise >> (which is in fact defined through an enumeration environment), and be able >> to have the reference to each formula « local » within that exercise. >> The resaon is that the execises and problems may have several equations >> which are referenced to with [eq:1] through [eq:10] (say…), and have been >> prepared and given previously to students on independent sheets. When I want >> to give out a booklet of all the exercises, then it would be handy to have >> such a feature. >> >> I understand that I am not being very clear… Hope someone would understand >> what I mean and need :-) > > Look at page 168: http://pragma-ade.com/general/manuals/cont-enp.pdf > > 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 > ___ %% Otared Kavian Département de Mathématiques Université de Versailles Saint-Quentin Bâtiment Fermat 45 avenue des Etats Unis 78035 Versailles cedex Téléphone: +33 1 39 25 46 42 Secrétariat: +33 1 39 25 46 44 Secrétariat: +33 1 39 25 46 46 e-mail: otared.kav...@math.uvsq.fr
[NTG-context] Resetting references or local references?
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 \starttext Exercice 1. Prove that if $ab=ba$ and $2ab=0$ then \placeformula[eq:1] \startformula (a+b)^2 = a^2 + b^2. \stopformula Using the identity (\in[eq:1]) prove that $(a=b)^{2n} = a^{2n} + b^{2n}$. \blank[big] \hrule \blank[big] Exercice 2. Prove that for any integer $n$ \resetnumber[formula] %\reset[formulas][references] \placeformula[eq:2] % I would like the reference to be [eq:1] \startformula (\cos(x) + {\rm i}\sin(x))^n = \cos(nx) + {\rm i} \sin(nx). \stopformula Using the identity (\in[eq:2]) % I would like here to say [eq:1] compute $\cos{3x}$. \stoptext % end I would like to be able to have the equations numbered within each exercise (which is in fact defined through an enumeration environment), and be able to have the reference to each formula « local » within that exercise. The resaon is that the execises and problems may have several equations which are referenced to with [eq:1] through [eq:10] (say…), and have been prepared and given previously to students on independent sheets. When I want to give out a booklet of all the exercises, then it would be handy to have such a feature. I understand that I am not being very clear… Hope someone would understand what I mean and need :-) Best regards: OK ___ 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] FLOW chart module broken
Hi Willy, I compiled your tex file: if you add \starttext and \stoptext, your file is compiled correctly… (both in mkii and mkiv, ConTeXt ver: 2011.11.25 13:29 MKIV fmt: 2011.11.25 int: english/english). Best regards: OK On 27 nov. 2011, at 16:15, Willi Egger wrote: > Hi Hans, > > > unfortunately the FLOWchart module is broken. The breaking over pages does > not seem to work. If there are too many cells for a page the compilation > stops with a fatal error. > > i installed the latest beta: ConTeXt ver: 2011.11.25 21:29 MKIV fmt: > 2011.11.27 > > \@@vars:flowcell:text:text ->Randje $\leq $ >1mm maken > ...]{\getvariable {flowcell:text}{text} > } > \firstoftwoarguments #1#2->#1 > > \@@su:flowcell:text:place:indeed ...:text}{text}}} > \endgroup > \@@su:flowcell:text:place ...ll:text:place:indeed} > \fi \fi \endgroup > \next1 #1,->\dosetups {#1} > \do_process_comma_item > ... > l.428 > > ? > ! Emergency stop. > > I include the file I was trying to compile. > > Kind regards > > Willi > > ___ > 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 > ___ %% Otared Kavian Département de Mathématiques Université de Versailles Saint-Quentin Bâtiment Fermat 45 avenue des Etats Unis 78035 Versailles cedex Téléphone: +33 1 39 25 46 42 Secrétariat: +33 1 39 25 46 44 Secrétariat: +33 1 39 25 46 46 e-mail: otared.kav...@math.uvsq.fr ___ 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] float names and lists
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 it completely … > Hi Idriss, By the way, you had a mistyping in your code: > > 2. \placelistoftablescws produces an undefined control sequence: What am I > missing here? ………..^ … it should be \placelistoftablecws Then everything works as Wolfgang pointed out. Best regards: OK ___ 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] equation numbering
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 the equationnumbering. > Doing \placeformula\startformula..\stopformula gives the equation a certain > number, lets say (1.5). > Now I change the call to > \placeformula[equ:thisfml]\startformula..\stopformula and the number changes > to (1.6). > > Why is this? What I have in mind is to number all formula consecutively with > (chapternumber.1), chapternumber.2) etc. Regardless whether I want to > reference some of the equations later on and some can stay without a > reference because that is not needed. Nevertheless, the ascending numbering > pleases me. > > Hans van der Meer > > > > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ___ ___ 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] How to reset numbers of formulas?
Many thanks, Christian: that's the way… I added a note in the wiki: http://wiki.contextgarden.net/Reference/en/placeformula Best regards: OK On 17 nov. 2011, at 14:48, Christian wrote: >> 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 have number (1). Euler's formula is the same as the >> following >> \placeformula >> \startformula >> {\rm e}^{{\rm i} \pi} = - 1. >> \stopformula >> The above formula will have number (2), but for some reasons I wish to >> number it again as (1). >> \stoptext >> >> I would like to have a solution which works with ConTeXt mkiv. >> >> Thanks for any advice, and best regards: OK > > \resetnumber[formula] > or > \setnumber[formula]{} > > ___ > 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 > ___ %% Otared Kavian Département de Mathématiques Université de Versailles Saint-Quentin Bâtiment Fermat 45 avenue des Etats Unis 78035 Versailles cedex Téléphone: +33 1 39 25 46 42 Secrétariat: +33 1 39 25 46 44 Secrétariat: +33 1 39 25 46 46 e-mail: otared.kav...@math.uvsq.fr ___ 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] How to reset numbers of formulas?
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 have number (1). Euler's formula is the same as the following \placeformula \startformula {\rm e}^{{\rm i} \pi} = - 1. \stopformula The above formula will have number (2), but for some reasons I wish to number it again as (1). \stoptext I would like to have a solution which works with ConTeXt mkiv. Thanks for any advice, and best regards: OK ___ 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 ___