[NTG-context] Marginal line numbers

2010-12-14 Thread Jon Crump
All, Thanks to Thomas's help, I've been making my way up the learning curve. My TEI xml has empty lb elements indicating lines in the original and corresponding lb elements in the translation. I'd like to be able to set these numbers in the margin so that readers may coordinate the lineation. So

Re: [NTG-context] metafun: formatting numbers

2010-12-12 Thread Hans Hagen
On 12-12-2010 12:49, Peter Münster wrote: Hello, Formatting numbers seems to be buggy: \starttext \startMPcode drawoptions(withpen pencircle scaled .25pt withcolor .5white) ; draw hlingrid (0, 20, 1, 20cm, 10cm) ; fmt_pictures := false ; % use TeX as formatting engine draw hlintext.lft(0, 20

[NTG-context] metafun: formatting numbers

2010-12-11 Thread Peter Münster
Hello, Formatting numbers seems to be buggy: \starttext \startMPcode drawoptions(withpen pencircle scaled .25pt withcolor .5white) ; draw hlingrid (0, 20, 1, 20cm, 10cm) ; fmt_pictures := false ; % use TeX as formatting engine draw hlintext.lft(0, 20, 1, 20cm, @3e) ; \stopMPcode \stoptext See

[NTG-context] Figure and equation numbers only include chapter number

2010-12-02 Thread seasoul
Dear All, After my updating context minimal, the equation and figure numbers became very weird. For example, all the figures in chapter 2 labeled as figure 2. all the equations in chapter 2 as (2.). I have seen a report in the mailing list also mentioning a similar problem

Re: [NTG-context] Figure and equation numbers only include chapter number

2010-12-02 Thread Alan BRASLAU
On Friday 03 December 2010 07:37:55 seasoul wrote: Dear All, After my updating context minimal, the equation and figure numbers became very weird. For example, all the figures in chapter 2 labeled as figure 2. all the equations in chapter 2 as (2.). I have seen a report

[NTG-context] Problem with expansion tables (macros with variable numbers of paramaters)

2010-11-23 Thread Jaroslav Hajtmar
Hello ConTeXist... I work on my first module (t-scancsv) which allows to process external CSV files. Now I have a problem with the processing of tables that require expansion line data. Unable to discover why my macro is not capable of handling the expanded rows. It seems to me that the

Re: [NTG-context] Referencing line numbers inside a typing

2010-10-27 Thread Stefan Müller
Am Dienstag 26 Oktober 2010, 21:12:01 schrieb Wolfgang Schuster: Am 26.10.2010 um 20:47 schrieb Stefan Müller: One more question before wikifying: Is there a way to prevent the prefix line? I want to say something like In lines 3 to 13. The texts „line“ and „lines“ are set with

Re: [NTG-context] Referencing line numbers inside a typing

2010-10-27 Thread Stefan Müller
Am Mittwoch 27 Oktober 2010, 16:52:07 schrieb Wolfgang Schuster: Am 27.10.2010 um 11:34 schrieb Stefan Müller: Thanks Wolgang, this looks pretty nice. Unfortunately I get the following error when running your example (ConTeXt ver: 2010.10.22 16:46 MKIV fmt: 2010.10.27 int:

[NTG-context] Referencing line numbers inside a typing

2010-10-26 Thread Stefan Müller
Hi list, is there a (preferably easy) way to reference line numbers inside a typing? Minimal (not working) example: \setuptyping[numbering=line] \starttext In the following typing, \in{line}{}[line:intyping] is really interesting. \starttyping This line is so interesting. \stoptyping

Re: [NTG-context] Referencing line numbers inside a typing

2010-10-26 Thread Wolfgang Schuster
Am 26.10.2010 um 10:30 schrieb Stefan Müller: Hi list, is there a (preferably easy) way to reference line numbers inside a typing? Minimal (not working) example: \setuptyping[numbering=line] \starttext In the following typing, \in{line}{}[line:intyping] is really interesting

Re: [NTG-context] Referencing line numbers inside a typing

2010-10-26 Thread Stefan Müller
On 26.10.2010 15:31, Wolfgang Schuster wrote: Am 26.10.2010 um 10:30 schrieb Stefan Müller: Hi list, is there a (preferably easy) way to reference line numbers inside a typing? Minimal (not working) example: \setuptyping[numbering=line] \starttext In the following typing, \in{line

Re: [NTG-context] Referencing line numbers inside a typing

2010-10-26 Thread Wolfgang Schuster
Am 26.10.2010 um 20:47 schrieb Stefan Müller: One more question before wikifying: Is there a way to prevent the prefix line? I want to say something like In lines 3 to 13. The texts „line“ and „lines“ are set with \setuplabeltext but you can see alternative texts with \inline{...}[ref].

[NTG-context] en-dash for ranges of numbers in Bibliographies

2010-10-15 Thread Florian Wobbe
Hi, in BibTeX databases ranges of numbers are usually listed with a single dash (e.g. 3-7) for compatibility reasons. Therefore the standard BibTeX styles convert a single dash in page numbers or range of numbers to a double dash (3--7). How do I get the same behaviour for \volume \issue

Re: [NTG-context] Verbatim typing with numbers inside float

2010-10-07 Thread Hans Hagen
On 7-10-2010 12:02, Stefan Müller wrote: Thank you very much for your effort. Pretty amazing what's doable. Unfortunately there are two issues: The distance between numbers and source lines is too small for bigger line numbers. I just have to make distance=0em big enough for this to work, right

Re: [NTG-context] Verbatim typing with numbers inside float

2010-10-07 Thread Alan BRASLAU
On Thursday 07 October 2010 09:19:42 Hans Hagen wrote: On 7-10-2010 12:02, Stefan Müller wrote: Splitting up long source code in several pieces (one per page) and put them in separate figures doesn't seem right to me. Setting it as numbered paragraph? Putting up a fake caption with

Re: [NTG-context] Verbatim typing with numbers inside float

2010-10-07 Thread Stefan Müller
On 07.10.2010 09:35, Alan BRASLAU wrote: On Thursday 07 October 2010 09:19:42 Hans Hagen wrote: On 7-10-2010 12:02, Stefan Müller wrote: Splitting up long source code in several pieces (one per page) and put them in separate figures doesn't seem right to me. Setting it as numbered paragraph?

[NTG-context] Verbatim typing with numbers inside float

2010-10-06 Thread Stefan Müller
Hi list, I defined a float for typesetting algorithms, so I can reference them at other places in the document. \definefloat[algorithm][algorithms] When I now place such a figure with \placealgorithm[here][alg:myalgorithm]{Very neat algorithm.}{ \starttyping some source code

Re: [NTG-context] Verbatim typing with numbers inside float

2010-10-06 Thread Hans Hagen
On 6-10-2010 4:26, Stefan Müller wrote: Hi list, I defined a float for typesetting algorithms, so I can reference them at other places in the document. \definefloat[algorithm][algorithms] When I now place such a figure with \placealgorithm[here][alg:myalgorithm]{Very neat algorithm.}{

Re: [NTG-context] Verbatim typing with numbers inside float

2010-10-06 Thread Hans Hagen
On 6-10-2010 4:26, Stefan Müller wrote: Hi list, I defined a float for typesetting algorithms, so I can reference them at other places in the document. \definefloat[algorithm][algorithms] When I now place such a figure with \placealgorithm[here][alg:myalgorithm]{Very neat algorithm.}{

[NTG-context] numbers missing in subsubsubsubsubsubsection

2010-09-11 Thread Steffen Wolfrum
Hi all, how do I get my numbers in level nine (and higher) back? See example below please. Did someone change module[subsub] ?? Thanks in advance, Steffen [2010.09.05 13:23 MKIV] = \usemodule[subsub] \starttext \definehead [LevelSeven] [subsubsubsubsection] \definehead [LevelNine

[NTG-context] varying headers, footers, page numbers

2010-08-24 Thread Michael Goerz
Hi, I'm trying to create a book where the front matter has no headers/footers, except roman numeral page numbers at the top outside of the page. The main matter should have Arabic numeral page numbers (restarting with '1') at the top outside of each page, plus the name of the book in the header

Re: [NTG-context] varying headers, footers, page numbers

2010-08-24 Thread Michael Goerz
On Tue, Aug 24, 2010 at 6:01 PM, Michael Goerz go...@physik.fu-berlin.de wrote: I'm trying to create a book where the front matter has no headers/footers, except roman numeral page numbers at the top outside of the page. The main matter should have Arabic numeral page numbers (restarting

[NTG-context] Footnote numbers not following \setupinteraction color

2010-08-13 Thread John Haltiwanger
I seem to be full of problems today: --- \setupcolors[state=start] \setupinteraction[state=start, color=black] \setupcolor[hex] \definecolor[titleRed][h=910A00] \starttext This \footnote{should not have a red color, correct?} \stoptext --- The footnote

Re: [NTG-context] Footnote numbers not following \setupinteraction color

2010-08-13 Thread Philipp Gesang
On 2010-08-13 17:54:02, John Haltiwanger wrote: I seem to be full of problems today: --- \setupcolors[state=start] \setupinteraction[state=start, color=black] Hi John, it's a link to the same page: \setupinteraction[state=start, color=black, contrastcolor=black] should

Re: [NTG-context] Footnote numbers not following \setupinteraction color

2010-08-13 Thread Hans Hagen
On 13-8-2010 7:54, John Haltiwanger wrote: I seem to be full of problems today: --- \setupcolors[state=start] \setupinteraction[state=start, color=black] \setupcolor[hex] \definecolor[titleRed][h=910A00] \starttext This \footnote{should not have a red color, correct?}

Re: [NTG-context] Roman page numbers

2010-08-12 Thread Hongwen Qiu
于 2010年08月13日 00:21, Wolfgang Schuster 写道: Should be \setupuserpagenumber. Thanks, this works. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl

[NTG-context] an issue with line numbers in the verbatim text

2010-08-11 Thread 李延瑞
Hi all, this is an example. \setuptyping[numbering=line] \setuplinenumbering[location=intext] \showframe \starttext \starttyping This is the first line. Last line after an empty line. \stoptyping \stoptext the linenumbering setup of location=intext can not work. the line numbers still

Re: [NTG-context] an issue with line numbers in the verbatim text

2010-08-11 Thread Hongwen Qiu
=intext can not work. the line numbers still be inmargin. Not location=intext, but location=text will do. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context

Re: [NTG-context] an issue with line numbers in the verbatim text

2010-08-11 Thread 李延瑞
. \stoptyping \stoptext the linenumbering setup of location=intext can not work. the line numbers still be inmargin. Not location=intext, but location=text will do. I see, tks! -- Best regards, Li Yanrui (李延瑞

[NTG-context] Roman page numbers

2010-08-11 Thread Hongwen Qiu
Hi, The following minimal example has no effect on page numbering(MkIV): \setuppagenumbering[conversion=romannumerals] % \setuppagenumbering[numberconversion=romannumerals] has no effect too. \starttext \chapter{Alpha} \input tufte \stoptext $ context --version MTXrun | current version:

Re: [NTG-context] Roman page numbers

2010-08-11 Thread Wolfgang Schuster
Am 12.08.10 03:52, schrieb Hongwen Qiu: Hi, The following minimal example has no effect on page numbering(MkIV): \setuppagenumbering[conversion=romannumerals] % \setuppagenumbering[numberconversion=romannumerals] has no effect too. \setupuserpagenumbering[numberconversion=romannumerals]

Re: [NTG-context] Roman page numbers

2010-08-11 Thread Hongwen Qiu
于 2010年08月12日 11:08, Wolfgang Schuster 写道: Am 12.08.10 03:52, schrieb Hongwen Qiu: Hi, The following minimal example has no effect on page numbering(MkIV): \setuppagenumbering[conversion=romannumerals] % \setuppagenumbering[numberconversion=romannumerals] has no effect too.

[NTG-context] Frontmatter page numbers and using ifodd / pageno

2010-05-31 Thread Scott Steele
included below, it was the first three entries on each page (after the first page) that were formatted as if they were on the previous page. Related to this, I need invisible page numbers on the table of contents pages to enable different formatting by odd/even page number (which I accomplish now

Re: [NTG-context] feauture request - no numbers on blank pages at chapter's end

2010-05-21 Thread Wolfgang Schuster
Am 20.05.10 13:21, schrieb Piotr Kopszak: Many thanks for your help! First the file according to the wiki example. Works if location=footer in \setuppagenumbering but not when \definepagebreak [mychapterpagebreak] [yes,header,right] \setuphead [chapter]

Re: [NTG-context] feauture request - no numbers on blank pages at chapter's end

2010-05-21 Thread Piotr Kopszak
That's very close indeed. Thanks for putting me on the right track! What I wanted is rather: \setuphead [chapter] [page={yes,footer,right}, footer=nomarking] Best Piotr 2010/5/21 Wolfgang Schuster schuster.wolfg...@googlemail.com: Am 20.05.10 13:21, schrieb Piotr Kopszak: Many thanks

[NTG-context] feauture request - no numbers on blank pages at chapter's end

2010-05-20 Thread Piotr Kopszak
Hello list, I don't know if it is only an idiosyncrasy of Polish typography but if a chapter ends with a blank page it should not display its number. It would be very useful if this could be an option (if not a default behaviour) of \setuppagenumbering . It's not a huge problem and I think I will

Re: [NTG-context] feauture request - no numbers on blank pages at chapter's end

2010-05-20 Thread Taco Hoekwater
Piotr Kopszak wrote: Hello list, I don't know if it is only an idiosyncrasy of Polish typography but if a chapter ends with a blank page it should not display its number. It would be very useful if this could be an option (if not a default behaviour) of \setuppagenumbering . It's not a huge

Re: [NTG-context] feauture request - no numbers on blank pages at chapter's end

2010-05-20 Thread Wolfgang Schuster
Am 20.05.10 11:07, schrieb Piotr Kopszak: Hello list, I don't know if it is only an idiosyncrasy of Polish typography but if a chapter ends with a blank page it should not display its number. It would be very useful if this could be an option (if not a default behaviour) of \setuppagenumbering

Re: [NTG-context] feauture request - no numbers on blank pages at chapter's end

2010-05-20 Thread Piotr Kopszak
It would be handy to avoid inserting \page in this case, I think. 2010/5/20 Taco Hoekwater t...@elvenkind.com: Piotr Kopszak wrote: Hello list, I don't know if it is only an idiosyncrasy of Polish typography but if a chapter ends with a blank page it should not display its number. It

Re: [NTG-context] feauture request - no numbers on blank pages at chapter's end

2010-05-20 Thread Piotr Kopszak
Yes, I know but even if it was working in all cases (and it is not, for instace I need pagenumbers in the margin and it didn't work in this case) it looks really, really ugly. Why not wrap something like this in a definition and give users an option? 2010/5/20 Wolfgang Schuster

Re: [NTG-context] feauture request - no numbers on blank pages at chapter's end

2010-05-20 Thread Wolfgang Schuster
Am 20.05.10 12:58, schrieb Piotr Kopszak: Yes, I know but even if it was working in all cases (and it is not, for instace I need pagenumbers in the margin and it didn't work in this case) it looks really, really ugly. Why not wrap something like this in a definition and give users an option?

Re: [NTG-context] feauture request - no numbers on blank pages at chapter's end

2010-05-20 Thread Wolfgang Schuster
Am 20.05.10 12:53, schrieb Piotr Kopszak: It would be handy to avoid inserting \page in this case, I think. \setuphead[chapter][page={blank,right}] Wolfgang ___ If your question is of interest to others as

Re: [NTG-context] feauture request - no numbers on blank pages at chapter's end

2010-05-20 Thread Piotr Kopszak
Many thanks for your help! First the file according to the wiki example. Works if location=footer in \setuppagenumbering but not when \definepagebreak [mychapterpagebreak] [yes,header,right] \setuphead [chapter] [page=mychapterpagebreak,footer=empty]

[NTG-context] Numbers in \definesynonyms

2010-05-13 Thread Otared Kavian
Dear all, When defining abbreviations through \definesynonyms, if the abbreviation contains a digit then it seems that the built-in macro is not recognized: in the example below the command \EEG is recognized, whereas \M2 or \Y2K are not. Is there a way around this difficulty? Or should one

Re: [NTG-context] Numbers in \definesynonyms

2010-05-13 Thread Hans Hagen
On 13-5-2010 10:42, Otared Kavian wrote: Dear all, When defining abbreviations through \definesynonyms, if the abbreviation contains a digit then it seems that the built-in macro is not recognized: in the example below the command \EEG is recognized, whereas \M2 or \Y2K are not. Is there a

[NTG-context] how to compute the sum of numbers

2010-05-11 Thread Jan Pohanka
Hello, I'm preparing a simple template for exam tests. I have following commad. \question{3}{text text text} where firtst parametr stands for points. I'd like to compute the sum of points to be used as Total points: xx What is the correct approach to do that if I'm using MKII? greetings Jan

Re: [NTG-context] how to compute the sum of numbers

2010-05-11 Thread Taco Hoekwater
Jan Pohanka wrote: Hello, I'm preparing a simple template for exam tests. I have following commad. \question{3}{text text text} \newcount\totalpoints \def\question#1#2{\global\advance\totalpoints #1\relax ... #2 ...} where firtst parametr stands for points. I'd like to compute the sum of

Re: [NTG-context] how to compute the sum of numbers

2010-05-11 Thread Jan Pohanka
Thank you, I have an additional question. Is it possible to have the sum available before the \question commands? I mean Total points: \the\totalpoints % or something like that \question{5}{text text} \question{3}{text text} \question{1}{text text} greetings, Jan Dne Tue, 11 May 2010

Re: [NTG-context] how to compute the sum of numbers

2010-05-11 Thread Taco Hoekwater
Jan Pohanka wrote: Thank you, I have an additional question. Is it possible to have the sum available before the \question commands? This is what I would do (but I suspect Wolfgang can come up with something cleaner): \def\startquestions {\newcount\totalpoints} \def\stopquestions

[NTG-context] Footnote numbers and leftmargin setup [mkIV]

2010-05-03 Thread Thomas Floeren
Hello, in mkII I use to set my left margins to 0pt. When I do this now in mkIV, I get misplaced footnote numbers (at the bottom). Example: \setuplayout [leftmargin=\zeropoint] \starttext just text\footnote{foot text} \stoptext To get correctly placed numbers I have to either set

Re: [NTG-context] Footnote numbers and leftmargin setup [mkIV]

2010-05-03 Thread Wolfgang Schuster
Am 03.05.10 14:11, schrieb Thomas Floeren: Hello, in mkII I use to set my left margins to 0pt. When I do this now in mkIV, I get misplaced footnote numbers (at the bottom). Example: \setuplayout [leftmargin=\zeropoint] \starttext just text\footnote{foot text} \stoptext To get

Re: [NTG-context] Footnote numbers and leftmargin setup [mkIV]

2010-05-03 Thread Thomas Floeren
Wolfgang Schuster mailto:schuster.wolfg...@googlemail.com wrote on Monday, May 03, 2010 2:20 PM: Am 03.05.10 14:11, schrieb Thomas Floeren: Hello, in mkII I use to set my left margins to 0pt. When I do this now in mkIV, I get misplaced footnote numbers (at the bottom). Example

Re: [NTG-context] Footnote numbers and leftmargin setup [mkIV]

2010-05-03 Thread Wolfgang Schuster
Am 03.05.10 15:23, schrieb Thomas Floeren: Without the leftmargin key, text and footer leave the page borders. Guess I have to to change my way to setup the layout in mkIV(?) There are a few things you should change: 1. Use 'middle' for the width and height keys in \setuplayout, 2.

Re: [NTG-context] Footnote numbers and leftmargin setup [mkIV]

2010-05-03 Thread Willi Egger
footnote numbers (at the bottom). Example: \setuplayout [leftmargin=\zeropoint] \starttext just text\footnote{foot text} \stoptext To get correctly placed numbers I have to either set the leftmargin to= 5pt, or leave out the leftmargin key in setuplayout. Is this a bug

[NTG-context] \setuptyping[numbering=line] don't emit line numbers

2010-04-21 Thread Hongwen Qiu
$ context --version MTXrun | current version: 2010.04.16 21:08 $ luatex --version This is LuaTeX, Version beta-0.60.0-2010040422 I found that \setuptyping[numbering=line] no longer produces line numbers any more. So are there something changed, or just it's ought to be ok

[NTG-context] Selectively dropping page numbers

2010-03-24 Thread Tom
The Chicago Manual of Style, 14th edition, states that page numbers are normally omitted on pages containing only illustrations or tables, except in long sequences of figures or tables. Is it practical within ConTeXt to omit page numbers from a single page within a chapter? Tom Benjey 717-258

Re: [NTG-context] Selectively dropping page numbers

2010-03-24 Thread Wolfgang Schuster
Am 24.03.10 13:37, schrieb Tom: The Chicago Manual of Style, 14th edition, states that page numbers are normally omitted on pages containing only illustrations or tables, except in long sequences of figures or tables. Is it practical within ConTeXt to omit page numbers from a single page within

[NTG-context] oldstyle numbers in TeXGyre fonts

2010-03-15 Thread Thomas A. Schmitz
Hi all, Hans, is there or can we have an easy, fast way of setting up the TeXGyre fonts so that they use oldstyle numbers by default? I think this would be attractive at least for the serif fonts termes, pagella, schola, which all have this feature. All best Thomas

Re: [NTG-context] oldstyle numbers in TeXGyre fonts

2010-03-15 Thread Hans Hagen
On 15-3-2010 14:46, Thomas A. Schmitz wrote: Hi all, Hans, is there or can we have an easy, fast way of setting up the TeXGyre fonts so that they use oldstyle numbers by default? I think this would be attractive at least for the serif fonts termes, pagella, schola, which all have this feature

Re: [NTG-context] Formatting numbers in LuaTeX

2010-02-15 Thread Peter Münster
On Sun, Feb 14 2010, Hans Hagen wrote: sqrt = math.sqrt pi = math.pi function my_equation(s, r) beware, this creates (and possibly overloads) sqrt, pi and my_equation as gobals Indeed... The following hack was *not* so quick, but there is a bug somewhere (a digit is added at the

Re: [NTG-context] Formatting numbers in LuaTeX

2010-02-15 Thread Hans Hagen
On 15-2-2010 20:35, Peter Münster wrote: tex.write(r:gsub(%., ,)) tex.write((r:gsub(%., ,))) gsub returns two values - Hans Hagen | PRAGMA ADE Ridderstraat 27 |

Re: [NTG-context] Formatting numbers in LuaTeX

2010-02-15 Thread Andreas Harder
Am 15.02.2010 um 20:35 schrieb Peter Münster: On Sun, Feb 14 2010, Hans Hagen wrote: sqrt = math.sqrt pi = math.pi function my_equation(s, r) beware, this creates (and possibly overloads) sqrt, pi and my_equation as gobals Indeed... The following hack was *not* so quick,

Re: [NTG-context] Formatting numbers in LuaTeX

2010-02-15 Thread Peter Münster
On Mon, Feb 15 2010, Andreas Harder wrote: But the $·$-construct is problematic. It do not work in display style (\let\calcmath\displaycalcmath) and without the dollar-signs the placement and the spacing are wrong. I don't know, why · doesn't work, but you can try this: local

[NTG-context] Formatting numbers in LuaTeX

2010-02-14 Thread Andreas Harder
Hi all! I played a little bit with LuaTeX in ConTeXt and two questions have arisen. \usemodule[calcmath] \starttext \def\calculate#1{\calcmath{#1=\ctxlua{tex.print(#1)}}} \calculate{1+2} \par \calculate{3/2-1}\par % the output should be 0,5 \calculate{3*2}\par % \calculate{sqrt(2)}

Re: [NTG-context] Formatting numbers in LuaTeX

2010-02-14 Thread luigi scarso
On Sun, Feb 14, 2010 at 11:42 AM, Andreas Harder andreas.har...@rz-online.de wrote: Hi all! I played a little bit with LuaTeX in ConTeXt and two questions have arisen. \usemodule[calcmath] \starttext \def\calculate#1{\calcmath{#1=\ctxlua{tex.print(#1)}}} \calculate{1+2} \par

Re: [NTG-context] Formatting numbers in LuaTeX

2010-02-14 Thread Peter Münster
On Sun, Feb 14 2010, Andreas Harder wrote: 1) Is it possible to have a comma as decimal separator? 2) If you look at the above definition, it works fine with +, –, /, but not with *. Is it possible to expand my macro that it will also work with a multiplication or even with the last two

Re: [NTG-context] Formatting numbers in LuaTeX

2010-02-14 Thread Andreas Harder
Am 14.02.2010 um 13:11 schrieb Peter Münster: On Sun, Feb 14 2010, Andreas Harder wrote: 1) Is it possible to have a comma as decimal separator? 2) If you look at the above definition, it works fine with +, –, /, but not with *. Is it possible to expand my macro that it will also work

Re: [NTG-context] Formatting numbers in LuaTeX

2010-02-14 Thread Hans Hagen
On 14-2-2010 14:10, Andreas Harder wrote: \startluacode local floor = math.floor local round = function(n) return floor(1000*n+0.5)/1000 end sqrt = math.sqrt pi = math.pi function my_equation(s, r) r = round(r) r = tostring(r) tex.print(s:gsub(*, $·$) .. = ..

Re: [NTG-context] Where did page numbers go?

2010-02-10 Thread Mojca Miklavec
to answer me that last question, but I find the behaviour of other counters really strange.) The number 1 is on frontmatter, the uppercase roman numbers are on bodypart (without setting any conversion at all). Mojca

Re: [NTG-context] Where did page numbers go?

2010-02-10 Thread Hans Hagen
On 10-2-2010 10:26, Mojca Miklavec wrote: On Tue, Feb 9, 2010 at 20:55, Wolfgang Schuster wrote: Am 09.02.10 20:36, schrieb Mojca Miklavec: Hello Hans, \currentpage (as already reported by Peter Münster) doesn't work in MKIV (always returns 1) and \setnumber[page]{0} has zero effect (in

[NTG-context] Where did page numbers go?

2010-02-09 Thread Mojca Miklavec
Hello Hans, \currentpage (as already reported by Peter Münster) doesn't work in MKIV (always returns 1) and \setnumber[page]{0} has zero effect (in MKII; in MKIV I cannot test it anyway). Thanks, Mojca ___ If

Re: [NTG-context] Where did page numbers go?

2010-02-09 Thread Wolfgang Schuster
Am 09.02.10 20:36, schrieb Mojca Miklavec: Hello Hans, \currentpage (as already reported by Peter Münster) doesn't work in MKIV (always returns 1) and \setnumber[page]{0} has zero effect (in MKII; in MKIV I cannot test it anyway). \pagenumber? MkIV has no counter 'page' but 'realpage',

Re: [NTG-context] Where did page numbers go?

2010-02-09 Thread Hans Hagen
On 9-2-2010 20:36, Mojca Miklavec wrote: Hello Hans, \currentpage (as already reported by Peter Münster) doesn't work in MKIV (always returns 1) and \setnumber[page]{0} has zero effect (in MKII; in MKIV I cannot test it anyway). hm, i'll have a look at it why cannot you run mkiv ... a broken

Re: [NTG-context] Random numbers in metapost

2009-12-31 Thread Taco Hoekwater
David Arnold wrote: Hi, Does anyone have any strategies for drawing random numbers from various statistics distributions in Metapost? For example, say, drawing 100 random numbers from a beta distribution? Assuming you are using mkiv: create a lua function and use its calculated results

Re: [NTG-context] Random numbers in metapost

2009-12-31 Thread David Arnold
any strategies for drawing random numbers from various statistics distributions in Metapost? For example, say, drawing 100 random numbers from a beta distribution? Assuming you are using mkiv: create a lua function and use its calculated results to create the metapost code. Metapost only knows

[NTG-context] Random numbers in metapost

2009-12-30 Thread David Arnold
Hi, Does anyone have any strategies for drawing random numbers from various statistics distributions in Metapost? For example, say, drawing 100 random numbers from a beta distribution? David ___ If your question

Re: [NTG-context] Biblography list does not show numbers

2009-12-06 Thread Otared Kavian
On 6 déc. 2009, at 08:53, Taco Hoekwater wrote: […] ConTeXt has never had a very strong presence in the exact sciences. Hi Taco and all, In order to change this, and in order to use more easily the t-bib module, can you please tell us how to put the cited references in square bracket in the

Re: [NTG-context] Biblography list does not show numbers

2009-12-06 Thread Taco Hoekwater
Otared Kavian wrote: On 6 déc. 2009, at 08:53, Taco Hoekwater wrote: […] ConTeXt has never had a very strong presence in the exact sciences. Hi Taco and all, In order to change this, and in order to use more easily the t-bib module, can you please tell us how to put the cited references in

Re: [NTG-context] Biblography list does not show numbers

2009-12-06 Thread Otared Kavian
Many thanks, Taco. Best regards: OK On 6 déc. 2009, at 10:15, Taco Hoekwater wrote: Otared Kavian wrote: On 6 déc. 2009, at 08:53, Taco Hoekwater wrote: […] ConTeXt has never had a very strong presence in the exact sciences. Hi Taco and all, In order to change this, and in order to use

Re: [NTG-context] Biblography list does not show numbers

2009-12-06 Thread Matthijs Kooijman
Hi Taco, I have assumed that ConTeXt has more authors that need APA like citations than bracketed numbers. ConTeXt has never had a very strong presence in the exact sciences. If that's the case, then the \cite command does the wrong thing by default, since it generates references as bracketed

Re: [NTG-context] Biblography list does not show numbers

2009-12-06 Thread Taco Hoekwater
Matthijs Kooijman wrote: Hi Taco, I have assumed that ConTeXt has more authors that need APA like citations than bracketed numbers. ConTeXt has never had a very strong presence in the exact sciences. If that's the case, then the \cite command does the wrong thing by default, since

[NTG-context] Biblography list does not show numbers

2009-12-05 Thread Matthijs Kooijman
Hey all, I'm trying to use a bibliography, but it seems no numbers are show in the biblography that is generated. The following example: Test.tex: = \usemodule[bib] \setupbibtex[database=Test] \starttext \section{foo} Blaa \cite[foo] Bar

Re: [NTG-context] Biblography list does not show numbers

2009-12-05 Thread Matthijs Kooijman
I'm trying to use a bibliography, but it seems no numbers are show in the biblography that is generated. The following example: Ah, using \setuppublications[numbering=yes] solves this. Any reason this is not the default? I'll put this on the wiki (and stress the completeness of the manual

Re: [NTG-context] Biblography list does not show numbers

2009-12-05 Thread Taco Hoekwater
Matthijs Kooijman wrote: I'm trying to use a bibliography, but it seems no numbers are show in the biblography that is generated. The following example: Ah, using \setuppublications[numbering=yes] solves this. Any reason this is not the default? I have assumed that ConTeXt has more

Re: [NTG-context] format float numbers in luatex

2009-10-26 Thread Otared Kavian
) Best regards: OK On 24 oct. 2009, at 18:59, batela wrote: Dear Sirs, I'm looking a way to format float numbers. For example \ctxlua {text.print(sqrt(2))} give me 1.41421356237309504880 but i want 1.414. Is there a way to format real numbers. Note: I had tried \ctxlua{a = sqrt(a) ; aformat

Re: [NTG-context] format float numbers in luatex

2009-10-25 Thread Wolfgang Schuster
Am 24.10.2009 um 18:59 schrieb batela: Dear Sirs, I'm looking a way to format float numbers. For example \ctxlua {text.print(sqrt(2))} give me 1.41421356237309504880 but i want 1.414. Is there a way to format real numbers. Note: I had tried \ctxlua{a = sqrt(a) ; aformat = string.format

Re: [NTG-context] section numbers

2009-10-19 Thread Wolfgang Schuster
Am 19.10.2009 um 14:49 schrieb Thomas A. Schmitz: Hi all, I could have sworn there was a thread recently about the same question, but can't find it: I want section numbers without the prefixed chapter number. Isn't this supposed to work? \setuphead[section] [previousnumber

Re: [NTG-context] section numbers

2009-10-19 Thread Thomas A. Schmitz
On Oct 19, 2009, at 4:10 PM, Wolfgang Schuster wrote: \setuphead [section] [sectionsegments=3:100] % show only the numbers for level 3 (=section) till 100 (subsubsub...section) Wolfgang Thank you Wolfgang, that does it! At the risk of sounding like a crybaby: would one of the two

Re: [NTG-context] section numbers

2009-10-19 Thread luigi scarso
On Mon, Oct 19, 2009 at 4:28 PM, Thomas A. Schmitz thomas.schm...@uni-bonn.de wrote: Just imagine what would happen if Hans and Wolfgang were struck by lightning on the same day :-) They will rise again, just like the Phoenix. -- luigi

Re: [NTG-context] section numbers

2009-10-19 Thread Joshua Lee
On Monday 19 October 2009 16:28:10 Thomas A. Schmitz wrote: On Oct 19, 2009, at 4:10 PM, Wolfgang Schuster wrote: \setuphead [section] [sectionsegments=3:100] % show only the numbers for level 3 (=section) till 100 (subsubsub...section) Wolfgang Thank you Wolfgang

[NTG-context] oldstyle numbers

2009-09-16 Thread Arno Trautmann
Hi, I’m new to ConTeXt and try to compile a document using XeTeX. Loading an otf font works fine, but I don’t get it to use oldstyle numbers. google and contextgarden did give me some hints, but I didn’t get it working. I tried: \starttext \definetypeface[normalfont][rm][Xserif][Arno Pro

Re: [NTG-context] oldstyle numbers

2009-09-16 Thread Wolfgang Schuster
Am 16.09.2009 um 12:07 schrieb Arno Trautmann: Hi, I’m new to ConTeXt and try to compile a document using XeTeX. Loading an otf font works fine, but I don’t get it to use oldstyle numbers. google and contextgarden did give me some hints, but I didn’t get it working. I tried

Re: [NTG-context] oldstyle numbers

2009-09-16 Thread Arno Trautmann
Wolfgang Schuster wrote: Am 16.09.2009 um 12:07 schrieb Arno Trautmann: Hi, I’m new to ConTeXt and try to compile a document using XeTeX. Loading an otf font works fine, but I don’t get it to use oldstyle numbers. google and contextgarden did give me some hints, but I didn’t get

Re: [NTG-context] oldstyle numbers

2009-09-16 Thread Wolfgang Schuster
Am 16.09.2009 um 12:25 schrieb Arno Trautmann: Just for future questions: Where could I have found this? (I prefer reading documentation than wasting people’s time by asking …) - http://context.aanhet.net/svn/contextman/context-reference/en/co-typography.pdf -

Re: [NTG-context] oldstyle numbers

2009-09-16 Thread Arno Trautmann
Wolfgang Schuster wrote: Am 16.09.2009 um 12:25 schrieb Arno Trautmann: Just for future questions: Where could I have found this? (I prefer reading documentation than wasting people’s time by asking …) - http://context.aanhet.net/svn/contextman/context-reference/en/co-typography.pdf

Re: [NTG-context] oldstyle numbers

2009-09-16 Thread Matthijs Kooijman
Hi, \definefontfeature[default][default][onum=yes] Just for rerefence, this works for me as well using MkIV and luatex. Gr. Matthijs signature.asc Description: Digital signature ___ If your question is of

Re: [NTG-context] Roman Page numbers

2009-09-06 Thread Robert Blackstone
on the wiki. \definestructureconversionset[frontpart:pagenumber][][romannumerals] \definestructureconversionset[bodypart:pagenumber] [][numbers] \setuplist[chapter][pageconversionset=pagenumber] \startstructureblockenvironment[frontpart] \setupuserpagenumber[numberconversion

Re: [NTG-context] Roman Page numbers

2009-09-06 Thread Wolfgang Schuster
Am 06.09.2009 um 10:31 schrieb Robert Blackstone: This is odd. On my system (both MacTeX 2008 and ConTeXt minimals) this does not work properly. The code is for MkIV only and the ConTeXt in TeXLive is too old for the new code. The Roman numbers appear in the TOC

Re: [NTG-context] Roman Page numbers

2009-09-06 Thread luigi scarso
On Sun, Sep 6, 2009 at 3:25 PM, Robert Blackstone blackstone.rob...@gmail.com wrote: On Sun, Sep 6, 2009 at 12:00 PM, Wolfgang Schuster wrote The code is for MkIV only and the ConTeXt in TeXLive is too old for the new code. The Roman numbers appear in the TOC but not on the textpages

Re: [NTG-context] Digest, Roman Page numbers

2009-09-06 Thread Robert Blackstone
On Sun, Sep 6, 2009 at 12:00 PM,Wolfgang Schuster wrote Am 06.09.2009 um 10:31 schrieb Robert Blackstone: This is odd. On my system (both MacTeX 2008 and ConTeXt minimals) this does not work properly. What ConTeXt version do you use? I updated the minimals today and indeed your setup

<    2   3   4   5   6   7   8   9   10   >