[NTG-context] Missing space between numbers in \showcolor (MkIV only)

2011-02-26 Thread Vedran Miletić
\starttext \showcolor[rgb] \stoptext Numbers are next to each other. In MkII (with \setupcolors[state=start]) it looks OK. Regards. Vedran Miletić ___ If your question is of interest to others as well, please add an

Re: [NTG-context] Letters in the first level head instead of numbers

2011-02-26 Thread Wolfgang Schuster
Am 25.02.2011 um 14:14 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: > Hello, > > maybe already questioned in the past, but I cannot find the answer: > > How to change the numbering style for a particular head (e.g. section) from > numbers (1, 2...) to letters (A, B...)

[NTG-context] Letters in the first level head instead of numbers

2011-02-25 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, maybe already questioned in the past, but I cannot find the answer: How to change the numbering style for a particular head (e.g. section) from numbers (1, 2...) to letters (A, B...) - which option and value (http://wiki.contextgarden.net/Reference/en/setuphead)? Thank you in advance

Re: [NTG-context] [t-vim] Line numbers

2011-02-25 Thread Hans Hagen
On 23-2-2011 5:54, Marco wrote: On 2011-02-23 Aditya Mahajan wrote: [...] I do not think that either of these options is worth the trouble. No, definitely not. I am not sure what you want. Do you want [...] context --purgeall This will probably be difficult to implement, since the

Re: [NTG-context] [t-vim] Line numbers

2011-02-23 Thread Aditya Mahajan
On Wed, 23 Feb 2011, Marco wrote: On 2011-02-23 Aditya Mahajan wrote: Actually, `context --purgeall` deteles all the files with .tmp and .md5 extension in the current directory. Only the .vimout files remain. Does it on your system? Not on mine. If I compile the example posted earlier in th

Re: [NTG-context] [t-vim] Line numbers

2011-02-23 Thread Marco
On 2011-02-23 Aditya Mahajan wrote: > Actually, `context --purgeall` deteles all the files with .tmp and .md5 > extension in the current directory. Only the .vimout files remain. Does it on your system? Not on mine. If I compile the example posted earlier in the thread and execute context --pur

Re: [NTG-context] [t-vim] Line numbers

2011-02-23 Thread Aditya Mahajan
On Wed, 23 Feb 2011, Marco wrote: Do you want [...] context --purgeall This will probably be difficult to implement, since the complete directory tree has to be scanned to find xyz-externalfilter-abc-X.___ remains. Actually, `context --purgeall` deteles all the files with .tmp and .md5 e

Re: [NTG-context] [t-vim] Line numbers

2011-02-23 Thread Marco
On 2011-02-23 Aditya Mahajan wrote: > [...] > I do not think that either of these options is worth the trouble. No, definitely not. > I am not sure what you want. > Do you want > [...] > context --purgeall This will probably be difficult to implement, since the complete directory tree has t

Re: [NTG-context] [t-vim] Line numbers

2011-02-23 Thread Aditya Mahajan
On Wed, 23 Feb 2011, Marco wrote: So, the easiest solution is to move (or perhaps simlink) the file to the temporary directory. Then you can include the file tmp/t.tex and the md5 hash will be created in the tmp directory. It will probably work, but is not a nice solution in my opinion. It loo

Re: [NTG-context] [t-vim] Line numbers

2011-02-23 Thread Marco
On 2011-02-23 Aditya Mahajan wrote: > The md5 hashes are in the same directory as the file. So, in case you are > including a file from the current directory, the md5 hash will also be > there. So it's on purpose. I wasn't sure about that. > So, the easiest solution is to move (or perhaps sim

Re: [NTG-context] [t-vim] Line numbers

2011-02-23 Thread Aditya Mahajan
On Wed, 23 Feb 2011, Marco wrote: I stumbled over one thing: When set directory=tmp the temporary files are sent to the tmp directory except the md5 hashes of external file code, these are put in the working dir. The md5 hashes are in the same directory as the file. So, in case you are includ

Re: [NTG-context] [t-vim] Line numbers

2011-02-23 Thread Marco
On 2011-02-22 Aditya Mahajan wrote: > Check the latest dev version of t-vim. > https://github.com/adityam/filter/blob/dev/t-vim.tex Brilliant. Works like a charm. I stumbled over one thing: When set directory=tmp the temporary files are sent to the tmp directory except the md5 hashes of externa

Re: [NTG-context] [t-vim] Line numbers

2011-02-22 Thread Aditya Mahajan
On Tue, 22 Feb 2011, Marco wrote: On 2011-02-21 Aditya Mahajan wrote: 1) You have »Add line numbers« on your TODO list. What's the progress? No. I will look into them. I think that I should just be able to plug in ConTeXt's line numbering mechanism. I like the »just« in you

Re: [NTG-context] [t-vim] Line numbers

2011-02-22 Thread Marco
On 2011-02-21 Aditya Mahajan wrote: > > 1) You have »Add line numbers« on your TODO list. What's the progress? > > No. I will look into them. I think that I should just be able to plug in > ConTeXt's line numbering mechanism. I like the »just« in your sentence

Re: [NTG-context] [t-vim] Line numbers

2011-02-21 Thread Aditya Mahajan
On Sat, 19 Feb 2011, Marco wrote: I like your t-vim module. I think it's a nice concept not te reinvent the wheel and to take advantage of the hundreds of syntax files of the vim contributors. 1) You have »Add line numbers« on your TODO list. What's the progress? No. I will look in

[NTG-context] [t-vim] Line numbers

2011-02-19 Thread Marco
Hi everybodyoy Hi Aditya I like your t-vim module. I think it's a nice concept not te reinvent the wheel and to take advantage of the hundreds of syntax files of the vim contributors. 1) You have »Add line numbers« on your TODO list. What's the progress? 2) To set the font siz

Re: [NTG-context] how to remove unwanted coordinate numbers(metafun)

2011-02-11 Thread Hans Hagen
); k:= k+1; endfor; It draws a circle, points, label, but unwanted coordinate numbers like (60.43535, 36.97691), too. I didn't see such numbers in any example in metafun document. If I use z[k] like z[k] = point i of P; draw z[k] Then such a long numbers disappeared. Is it the onl

[NTG-context] how to remove unwanted coordinate numbers(metafun)

2011-02-11 Thread Jeong Dalyoung
circle, points, label, but unwanted coordinate numbers like (60.43535, 36.97691), too. I didn't see such numbers in any example in metafun document. If I use z[k] like z[k] = point i of P; draw z[k] Then such a long numbers disappeared. Is it the only way to surpress those numbers not us

Re: [NTG-context] line numbers - method=page

2011-01-02 Thread Daniel Schopper
Ok, thanks for the info! Daniel Am 02.01.11 11:17, schrieb Thomas Schmitz: On Sun, 02 Jan 2011 00:34:12 +0100 Daniel Schopper wrote: I'm using ConTeXt ver: 2010.07.30 11:35 MKIV fmt: 2010.12.31 which should be the newest version available on http://tlcontrib.metatex.org/2010. You will hav

Re: [NTG-context] line numbers - method=page

2011-01-02 Thread Thomas Schmitz
On Sun, 02 Jan 2011 00:34:12 +0100 Daniel Schopper wrote: I'm using ConTeXt ver: 2010.07.30 11:35 MKIV fmt: 2010.12.31 which should be the newest version available on http://tlcontrib.metatex.org/2010. You will have to use a more recent (beta) version. I have added a sentence to the wiki

[NTG-context] line numbers - method=page

2011-01-01 Thread Daniel Schopper
Dear all, on trying to reproduce the TEI to ConTeXt example on http://wiki.contextgarden.net/TEI_xml I haven't been able to get the line numbering per page working right. I directly copy-pasted the relevant part of the seventh listing which goes like this: \setuplinenumbering[location=inner,

Re: [NTG-context] Marginal line numbers

2010-12-17 Thread Thomas A. Schmitz
a number if it matches a condition (here: be divisible by 5). > This gets me what I wanted. Still fumbling greatly with the macro > syntax. I'm not sure what the recursion is for, for example. On the > other hand the lua seems rather straightforward to me by comparison. I > tried retur

Re: [NTG-context] Marginal line numbers

2010-12-17 Thread Thomas A. Schmitz
a number if it matches a condition (here: be divisible by 5). > This gets me what I wanted. Still fumbling greatly with the macro > syntax. I'm not sure what the recursion is for, for example. On the > other hand the lua seems rather straightforward to me by comparison. I > trie

Re: [NTG-context] Marginal line numbers

2010-12-17 Thread Jon Crump
On Thu, Dec 16, 2010 at 1:34 PM, Wolfgang Schuster wrote: > > Am 16.12.2010 um 22:28 schrieb Jon Crump: > > In python-speak I'd interpret context.color() as a method call on a > module 'context'. Could you, or anyone, direct me to any documentation > for this module and a list of the properties an

Re: [NTG-context] Marginal line numbers

2010-12-16 Thread Wolfgang Schuster
Am 16.12.2010 um 22:28 schrieb Jon Crump: > In python-speak I'd interpret context.color() as a method call on a > module 'context'. Could you, or anyone, direct me to any documentation > for this module and a list of the properties and methods that it > supports? http://pragma-ade.com/show-man-4

Re: [NTG-context] Marginal line numbers

2010-12-16 Thread Jon Crump
e by comparison. I tried returning an empty string like this: context.color( {"blue"}, '' ) to remove the other numbers, but that seemed silly, so I just removed the 'else' clause instead, and that seemed to work as well. In python-speak I'd interpret context.col

Re: [NTG-context] Marginal line numbers

2010-12-15 Thread Thomas A. Schmitz
On Dec 14, 2010, at 9:33 PM, Jon Crump wrote: > 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

[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 th

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 \sto

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 &

[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

[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 macro

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: english/

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-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{...}[].

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 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:intypin

[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

[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 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? P

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 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 f

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

2010-10-06 Thread Stefan Müller
ssues: 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? The other thing: The width available for the caption is capped by the width of the longest source line. I think I prefer the so

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.}{ \startt

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.}{ \startt

[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 \stopt

Re: [NTG-context] numbers missing in subsubsubsubsubsubsection

2010-09-12 Thread Wolfgang Schuster
Am 11.09.2010 um 22:50 schrieb Steffen Wolfrum: > > Hi all, > > how do I get my numbers in level nine (and higher) back? > See example below please. Add \definestructureprefixset [myset] [section-1,section-2,section-3,section-4,section-5,section-6,section-7,section-8,secti

[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

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 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 wit

[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 boo

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?} \st

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]

[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] 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

Re: [NTG-context] Roman page numbers

2010-08-12 Thread Wolfgang Schuster
Am 12.08.10 05:35, schrieb 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=romannumera

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. \setupuserpagenum

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] Wo

[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: 2010.08.

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

2010-08-11 Thread 李延瑞
ing >> 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 b

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

2010-08-11 Thread Hongwen Qiu
ation=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

[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 number

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

2010-05-31 Thread Scott Steele
ample 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 ac

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 : > Am 20.05.10 13:21, schrieb Piotr Kopszak: >> >> Many thanks for your help! >> >> First the

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] [page=mychapterpagebreak,foo

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] \setuppagenumbering[alternative=doubl

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 we

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 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 : > Am 20.05.10 11:

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 : > 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 v

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 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 prob

[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] 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 way

[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 use

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 {\exp

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 11:23

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 p

[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] Footnote numbers and leftmargin setup [mkIV]

2010-05-03 Thread Willi Egger
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\

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. Place

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 mi

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

[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

[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

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] 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] 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

[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] 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 exp_rep

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 w

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

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 adde

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] 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 als

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 luigi scarso
On Sun, Feb 14, 2010 at 11:42 AM, Andreas Harder 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 > \calculate{3/2-1}\par % the outp

[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)} \calculate{2*π

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 MKII;

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

2010-02-10 Thread Mojca Miklavec
numberofpages (or some other counter) doesn't count any leftovers from the end? (I'll try to play a bit more with that, so you don't need to answer me that last question, but I find the behaviour of other counters real

<    2   3   4   5   6   7   8   9   10   >