Re: [NTG-context] calling a function with complex parameters

2008-12-08 Thread Taco Hoekwater
Michail Vidiassov wrote: Dear All, I need to fill a lua table with data, and some values may be tables. How to supply that data from ConTeXt? The most straightforward way is to make user fill a string with lua code of table initiaiser and then use loadstring. That is probably what I

[NTG-context] How to get the total page number at startup in luatex?

2008-12-08 Thread Zhichu Chen
Hi, I've met a weird thing, I can't get \totalnumberofpages in the preamble. But it used to work. A simple test file is ++ \dorecurse{\totalnumberofpages}{\setvalue{test::\recurselevel}{:\recurselevel:}} \def\test{\getvalue{test::\pagenumber}} \starttext \input

Re: [NTG-context] Dangling lines.

2008-12-08 Thread Taco Hoekwater
Bart C. Wise wrote: Is there a way to tell ConTeXt to treat the author's signature (the dangling line) as part of the previous paragraph? If \nobreak didn't work, then your paragraph wasn't ended yet, and you need an extra empty line or an \endgra. Try this: \definestartstop[AuthorNote]

Re: [NTG-context] Dangling lines.

2008-12-08 Thread Bart C. Wise
On Monday 08 December 2008 03:40:55 am Taco Hoekwater wrote: Bart C. Wise wrote: Is there a way to tell ConTeXt to treat the author's signature (the dangling line) as part of the previous paragraph? If \nobreak didn't work, then your paragraph wasn't ended yet, and you need an extra empty

Re: [NTG-context] Sorting references

2008-12-08 Thread Taco Hoekwater
Jean Magnan de Bornier wrote: Hi all, Using the bib module, I want my references to be sorted alphabetically; That example was ok, but the bbl by default left in the same order as the bib database. You need \setupbibtex[database=,sort=author] Best wishes, Taco

Re: [NTG-context] Dangling lines.

2008-12-08 Thread Bart C. Wise
On Sunday 07 December 2008 03:56:11 am Taco Hoekwater wrote: Bart C. Wise wrote: I created an Author's note (code below). It is designed to print out a note, skip a line, and then follow with the Author's signature. The problem I'm having is that ConTeXt will break the page just before the

Re: [NTG-context] How to get the total page number at startup in luatex?

2008-12-08 Thread Zhichu Chen
On Mon, Dec 8, 2008 at 5:47 PM, Wolfgang Schuster [EMAIL PROTECTED] wrote: On Mon, Dec 8, 2008 at 10:33 AM, Zhichu Chen [EMAIL PROTECTED] wrote: Hi, I've met a weird thing, I can't get \totalnumberofpages in the preamble. But it used to work. A simple test file is

[NTG-context] Sorting references

2008-12-08 Thread Jean Magnan de Bornier
Hi all, Using the bib module, I want my references to be sorted alphabetically; if I understood correctly the doc: \setuppublications[alternative=apa-fr,sorttype=bbl,criterium=cite] Then the alphabetical order is taken from the bibtex *keys*, and it doesn't always follows true alphabetical

[NTG-context] modernized and augmented m-r.tex

2008-12-08 Thread Johan Sandblom
The ConTeXt module for interaction with the statistical programming language R currently does not work with MKIV since buffers are not saved to file. The included file fixes this by calling \savebuffer on the buffer in case \ctxlua is defined (a trick gleaned from a discussion on the LilyPond

Re: [NTG-context] backward-incompatible behavior of Palatino and modern

2008-12-08 Thread Taco Hoekwater
Sanjoy Mahajan wrote: Commenting out the \setupbodyfont [palatino,11pt] line makes the two versions identical. But the original example uses Palatino text, so I cannot do that for the long-term solution. IIRC, we changed or added the rscale= option for the ss typeface, this is probably

Re: [NTG-context] Dangling lines.

2008-12-08 Thread Taco Hoekwater
Bart C. Wise wrote: Now the only problem I have is I have no idea what \endgraf does. I've searched the web and I'm having a difficult time getting a search term that will point me to the information. Will you give me a brief explanation or point me where to look \endgraf is just an

[NTG-context] anyway to treat placefigure as a frame?

2008-12-08 Thread Yue Wang
Hi, Hans: Is there some command to treat figure (both the caption and graphic) as a frame? setupfloats only deside what the graphics side should be like. I want to add a background to the caption+graphic. Yue Wang

[NTG-context] question about rulethickness

2008-12-08 Thread Jelle Huisman
Hi all, It looks like rulethickness can only be applied to all 4 sides of a cell all at once, or is there a way to specify the thickness of left|right|top|bottom? As the example shows I get a thicker frame around the 2 rows, but I want to use the normal frame thickness inside the cells.

Re: [NTG-context] Sorting references

2008-12-08 Thread Jean Magnan de Bornier
Le 08 décembre à 14:14:35 Taco Hoekwater [EMAIL PROTECTED] écrit notamment: | Jean Magnan de Bornier wrote: | Hi all, | Using the bib module, I want my references to be sorted alphabetically; | That example was ok, but the bbl by default left in the same order as | the bib database. You need

[NTG-context] report: non-stretchable spaces after periods

2008-12-08 Thread Alan Bowen
In a message some time ago, Wolfgang suggested that \def\ {\thinspace} would serve to get non-expanding or non-stretchable spaces after periods that occur within sentences and in bibliographies. When I discovered that, while this worked well in limited contexts, in a lengthy bibliography

[NTG-context] \recurselevel in a table

2008-12-08 Thread Bart C. Wise
I'm trying to get the \recurselevel in a table; however, every time it's called, the number returned is zero. How do I get the recurselevel? \starttext \bTABLE \bTR \dorecurse{3}{\bTD Cell: \recurselevel\eTD} \eTR \eTABLE \stoptext Bart

Re: [NTG-context] modernized and augmented m-r.tex

2008-12-08 Thread Mojca Miklavec
On Mon, Dec 8, 2008 at 12:59 PM, Johan Sandblom wrote: One further improvement would be to collect the R snippets and run them all at once. That would significantly reduce processing time since the R startup is on the order of a few seconds. However, that is beyond my knowledge of ConTeXt.

Re: [NTG-context] \recurselevel in a table

2008-12-08 Thread Hans Hagen
Bart C. Wise wrote: I'm trying to get the \recurselevel in a table; however, every time it's called, the number returned is zero. How do I get the recurselevel? \starttext \bTABLE \bTR \dorecurse{3}{\bTD Cell: \recurselevel\eTD} \eTR \bTR \dorecurse{3}{\expanded{\bTD Cell:

Re: [NTG-context] anyway to treat placefigure as a frame?

2008-12-08 Thread Hans Hagen
Yue Wang wrote: Hi, Hans: Is there some command to treat figure (both the caption and graphic) as a frame? setupfloats only deside what the graphics side should be like. I want to add a background to the caption+graphic. currently not

Re: [NTG-context] questions on ctxtools and line break.

2008-12-08 Thread Hans Hagen
Dalyoung Jeong wrote: The rules of line break for Korean is simple in saying. We don't need any hyphenation inside word, so if it is longer than the \textwidth, just make a line break at that position. There may be a little adjustment to make it right flush. For the details of the line

Re: [NTG-context] modernized and augmented m-r.tex

2008-12-08 Thread Johan Sandblom
2008/12/8 Mojca Miklavec [EMAIL PROTECTED]: On Mon, Dec 8, 2008 at 12:59 PM, Johan Sandblom wrote: One further improvement would be to collect the R snippets and run them all at once. That would significantly reduce processing time since the R startup is on the order of a few seconds.

Re: [NTG-context] Experience on writing a thesis with MKIV

2008-12-08 Thread Mohamed Bana
Hi Aditya, Thanks for getting back to me. I did a fresh checkout and tried to compile, I uncommented out these lines from the beginning of macros.tex. L3 \setupcolors[state=start] ... L16 \setupcite [interaction=start, compress=no,color=] %darkgreen] L276-278 in env-thesis.tex

Re: [NTG-context] Experience on writing a thesis with MKIV

2008-12-08 Thread Aditya Mahajan
Hi Mohamed, On Mon, 8 Dec 2008, Mohamed Bana wrote: Hi Aditya, Thanks for getting back to me. I did a fresh checkout and tried to compile, I uncommented out these lines from the beginning of macros.tex. L3 \setupcolors[state=start] ... L16 \setupcite [interaction=start,

Re: [NTG-context] questions on ctxtools and line break.

2008-12-08 Thread Mojca Miklavec
On Mon, Dec 8, 2008 at 7:32 AM, Dalyoung Jeong wrote: Dear Mojca, Yue, and Hans, Thank you for the help. I updated ConTeXt and LuaTeX using rsync to the foler .../texlive/ 2008/../texmf-local. texmfstart texexec --make (--xtx) --all run smoothly, but luatools still has a cnf error. Did

[NTG-context] Sorting bug in context-alpha (was: Experience on writing a thesis with MKIV)

2008-12-08 Thread Aditya Mahajan
On Mon, 8 Dec 2008, Aditya Mahajan wrote: Try to download and compile this and see if it works. In the mean time I will investigate why minimals aren't being updated on my machine. Context minimals are fine. I did not notice before that context-beta was last updated on 2008.11.10. That is

Re: [NTG-context] Experience on writing a thesis with MKIV

2008-12-08 Thread Mohamed Bana
No the citations aren't working. Am I the only one who thinks ConTeXt needs a extensive set of regression tests? Adiyta, you shouldn't have hard-coded: ./frontmatter.tex:\startcolor[darkred]\titlefont \hskip 1.5em Chapters \stopcolor} Changing L191 env-thesis.tex, has no effect, such as:

Re: [NTG-context] Experience on writing a thesis with MKIV

2008-12-08 Thread Aditya Mahajan
On Tue, 9 Dec 2008, Mohamed Bana wrote: No the citations aren't working. This is really strange. It is working at my end with the latest version of t-bib. Can you send me your log and pdf file. Am I the only one who thinks ConTeXt needs a extensive set of regression tests? No. We have

[NTG-context] Problem with fonts

2008-12-08 Thread Mohamed Bana
i just updated the minimals and I can no longer typeset, even though $ mtxrun --script fonts --list shows the font ! LuaTeX error ...mals/tex/texmf-context/tex/context/base/luat-log.lua:75: bad argument #2 to 'format' (string expected, got table) stack traceback: [C]: in function

[NTG-context] texexec ignores file order

2008-12-08 Thread Ben Barrowes
exexec --pdfarrange --result=yujo_insurance.pdf yujo_insurance1.pdf yujo_insurance2.pdf yujo_insurance3.pdf yujo_insurance4.pdf yujo_insurance5.pdf yujo_insurance6.pdf yujo_insurance7.pdf yujo_insurance8.pdf yujo_insurance9.pdf yujo_insurance10.pdf yujo_insurance11.pdf yujo_insurance12.pdf

Re: [NTG-context] texexec ignores file order

2008-12-08 Thread Aditya Mahajan
On Mon, 8 Dec 2008, Ben Barrowes wrote: exexec --pdfarrange --result=yujo_insurance.pdf yujo_insurance1.pdf yujo_insurance2.pdf yujo_insurance3.pdf yujo_insurance4.pdf yujo_insurance5.pdf yujo_insurance6.pdf yujo_insurance7.pdf yujo_insurance8.pdf yujo_insurance9.pdf yujo_insurance10.pdf

Re: [NTG-context] Problem with fonts

2008-12-08 Thread Taco Hoekwater
Mohamed Bana wrote: i just updated the minimals and I can no longer typeset, even though $ mtxrun --script fonts --list shows the font ! LuaTeX error Are you running luatex 0.31 ? Taco ___ If your question is