Re: [NTG-context] Referring to multiple elements

2012-09-14 Thread Marco Patzer
2012-09-13 Andreas Mang m...@imt.uni-luebeck.de: I do not know if there is a solution to this. The following would work for your example: \in{figure}[alpha]--\in[gamma] Of course this is a quite rigid solution, that does not safeguard against changes in figure order That's what I am

[NTG-context] Wide descriptions protruding into the margin

2012-09-14 Thread Marco Patzer
Hi, with wide description heads I have the problem that the following description protrudes into the margin. \definedescription [description] [alternative=hanging, width=broad] \starttext \startdescription{conclusion that} \input knuth \stopdescription \startdescription{conclusion

Re: [NTG-context] MKII MKIV difference between \textrule

2012-09-14 Thread Wolfgang Schuster
Am 14.09.2012 um 00:08 schrieb Alessandro Perucchi alessan...@perucchi.org: Hello, In my experimentation, I've found that in mkii and mkiv the behavior of \textrule and \setuptextrule are different... What I did was quite simple: \textrule{Testing head} blah blah blah \textrule

Re: [NTG-context] Referring to multiple elements

2012-09-14 Thread Sietse Brouwer
Hi Marco, The heart of what you need is a lua function that will take an array of numbers, and return an array of consective-number runs, like so: fignumarray = {1, 2, 3,5, 6,8, 10, 11, 12} -- figruns = get_runs(fignumarray) -- returns a table structured like so: -- figruns[1].start =

Re: [NTG-context] Wide descriptions protruding into the margin

2012-09-14 Thread Philipp Gesang
Hi Marco, ···date: 2012-09-14, Friday···from: Marco Patzer··· \definedescription [description] [alternative=hanging, width=broad] ... / In the second case the “Thus,” should be placed on the line after the head. How do I achieve that? My current workaround is to append a \hbox{ }

Re: [NTG-context] Wide descriptions protruding into the margin

2012-09-14 Thread Marco Patzer
2012-09-14 Philipp Gesang ges...@stud.uni-heidelberg.de: Hi Philipp, you can hack the hanging alternative and substitute a glue for the kern that is used for spacing (strc-con.mkvi): […] This works perfectly. Thanks a lot for digging into the sources. But maybe this could be made an

Re: [NTG-context] Change color of EPS file.

2012-09-14 Thread pol stra
Aditya Mahajan adit...@umich.edu wrote: If you want to use eps images, why not just use a white background at ConTeXt end (as you had stated in your first message I think you misread: Pol wants the EPS to be white-on-transparent, instead of black-on-transparent, so that he can use it on a

Re: [NTG-context] Change color of EPS file.

2012-09-14 Thread Troy Henderson
I tested this on a black-on-transparent EPS that was created via MetaPost, and it seems to work fine. If you are not using Linux (or Unix or Mac OS X), let me know and I can probably put together a quick HTML page to do this on my server. cat foo.eps | sed -e s/0 0 0 setrgbcolor/1 1 1

[NTG-context] Display math characters

2012-09-14 Thread pol stra
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

Re: [NTG-context] ntg-context Digest, Vol 99, Issue 40

2012-09-14 Thread pol stra
Troy Henderson said: I tested this on a black-on-transparent EPS that was created via MetaPost, and it seems to work fine. If you are not using Linux (or Unix or Mac OS X), let me know and I can probably put together a quick HTML page to do this on my server. Thanks for the invitation.

Re: [NTG-context] ntg-context Digest, Vol 99, Issue 40

2012-09-14 Thread Troy Henderson
Unfortunatly there is no such a sequence in my file: grep setrgbcolor a1.EPS /setcmykcolor{1 sub 4 1 roll 3{3 index add neg dup 0 lt{pop 0}if 3 1 roll}repeat setrgbcolor pop}wd /sw/setlinewidth ld/scap/setlinecap ld/sj/setlinejoin ld/sm/setmiterlimit ld/sd/setdash ld/rgb/setrgbcolor

Re: [NTG-context] Display math characters

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

Re: [NTG-context] MKII MKIV difference between \textrule

2012-09-14 Thread Alessandro Perucchi
On 14 Sep 2012, at 13:26, Wolfgang Schuster wolfgang.schus...@gmail.com wrote: Am 14.09.2012 um 00:08 schrieb Alessandro Perucchi alessan...@perucchi.org: Hello, In my experimentation, I've found that in mkii and mkiv the behavior of \textrule and \setuptextrule are different...

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

2012-09-14 Thread Aditya Mahajan
On Fri, 14 Sep 2012, Wolfgang Schuster wrote: Am 14.09.2012 um 00:36 schrieb Aditya Mahajan adit...@umich.edu: I have been able to isolate the bug to the update on 2012.07.09; specifically to this commit.

Re: [NTG-context] MKII MKIV difference between \textrule

2012-09-14 Thread luigi scarso
On Fri, Sep 14, 2012 at 11:50 PM, Alessandro Perucchi alessan...@perucchi.org wrote: On 14 Sep 2012, at 13:26, Wolfgang Schuster wolfgang.schus...@gmail.com wrote: Am 14.09.2012 um 00:08 schrieb Alessandro Perucchi alessan...@perucchi.org: Hello, In my experimentation, I've

Re: [NTG-context] Change color of EPS file.

2012-09-14 Thread Troy Henderson
I put together this little utility for converting a color EPS/PDF/SVG to grayscale. http://www.tlhiv.org/grayscale/ Selecting invert swaps colors from white to black and black to white. So, using a black/white graphic on a transparent background should transform it to a white/black graphic on a

Re: [NTG-context] ntg-context Digest, Vol 99, Issue 40

2012-09-14 Thread Troy Henderson
I put together this little utility for converting a color EPS/PDF/SVG to grayscale. http://www.tlhiv.org/grayscale/ Selecting invert swaps colors from white to black and black to white. So, using a black/white graphic on a transparent background should transform it to a white/black graphic on a

Re: [NTG-context] Change color of EPS file.

2012-09-14 Thread Aditya Mahajan
On Fri, 14 Sep 2012, Troy Henderson wrote: I put together this little utility for converting a color EPS/PDF/SVG to grayscale. http://www.tlhiv.org/grayscale/ Selecting invert swaps colors from white to black and black to white. So, using a black/white graphic on a transparent background

Re: [NTG-context] Change color of EPS file.

2012-09-14 Thread Troy Henderson
For those that care, here is basically how the service works. The filter is applied to an SVG, and the uploaded graphic is converted to SVG using the following process: EPS - PDF - SVG PDF - SVG SVG - PDF - SVG where the EPS - PDF conversion is done with the standard `epstopdf` included with

Re: [NTG-context] Change color of EPS file.

2012-09-14 Thread luigi scarso
On Sat, Sep 15, 2012 at 1:23 AM, Troy Henderson thend...@gmail.com wrote: and which uses Cairo and Poppler for its conversion. Now in order for my simplistic filter to function, Why 'simplistic' and not 'simple' ? I always thought that its meaning is negative (something like 'simplistic'