Re: [NTG-context] Find all words set into the margin

2012-11-27 Thread Sietse Brouwer
Huseyin wrote: >> Is there a command like "\showallmarginruns", which gives something like >> this: "Margin runs on p. 34,67,101,145,204,298" - it may use somehow the >> blocks of \version[temporary], that would be perfect for me. >> >> Could I make clear, what I am looking for (sorry for my leck o

Re: [NTG-context] fonts list

2012-11-26 Thread Sietse Brouwer
The help text mentions this, but somewhat cryptically --- it's not quite clear that --all requires --list. Maybe mention that, like so? --list --name list installed fonts, filter by name [--pattern] --list --spec list installed fonts, filter by spec [--filter] --list --file

Re: [NTG-context] error when using externalfigure

2012-11-26 Thread Sietse Brouwer
This seems to me a case of garbage in, garbage out; I'd say it's the script's job, rather than ConTeXt's, to ensure the images have the correct dpi to get a reasonable width in inches. (Brr. I hate inches. Disgusting, Mars-mission-wrecking way of measuring things.) Here is some pseudocode. You'd s

Re: [NTG-context] MetaPost instance mechanism broken

2012-11-26 Thread Sietse Brouwer
Aditya wrote: > I am still using the old 2012.11.16 version, but now you have to specify > the instance in the \startuseMPgraphic as well (Hans had announced this > on the mailing list a few weeks ago): > \startuseMPgraphic{instance::mygraphic} > ... > \stopuseMPgraphic Since I don't use MetaPost,

Re: [NTG-context] \unit problem with powers of ten.

2012-11-23 Thread Sietse Brouwer
>> The '^' and 'e' all print a '10 ×' at the begining. It's what is expected >> for >> 'e' but not for '^'. Did I miss something? > > > well, until now ^ and e were equivalent so if that has to change (say ^ no > 10) then there need to be agreement about this as it's an incompatible > change I, fo

Re: [NTG-context] A problem with units

2012-11-23 Thread Sietse Brouwer
Marcin wrote: > being quite happy with things like \unit{10 km/h}, once I did \unit{45 > min}, only to get "45 m" in the resulting file. I suspect that \unit > does not know about minutes; is there any way to teach it;)? I think 'min' is parsed as 'meter nil nil', because (1) min is not found in

Re: [NTG-context] beta

2012-11-23 Thread Sietse Brouwer
Bill Meahan wrote: > Strictly FYI, Arkandis Digital Foundry has a couple > of math fonts available. I can't say how good/useful > they are since I don't typeset > math but I noticed > them while visiting the Arkandis site and thought > I'd pass the information along. > More info: http://arkandis.t

Re: [NTG-context] \unit problem with powers of ten.

2012-11-23 Thread Sietse Brouwer
> needs testing as usual (and wiki adaption as well) http://wiki.contextgarden.net/Command/unit Wiki: adapted. (Page created, actually, as there was none.) Using the fancy-schmancy {{since|2012|text=nov 2012}} template, which (1) marks this as a recent feature, and as such not in the stable yet,

Re: [NTG-context] ConTeXt: Page numbering in words for spanish

2012-11-22 Thread Sietse Brouwer
Mojca wrote: > Singular and plural don't always suffice. Yes ... I was studiously avoiding bringing that up. :-) I suppose one would end up with separate languages like es-s-m, es-s-f, es-pl-m, es-pl-f for the converter to invoke. Then es would be a synonym of the most common form (singular mascul

Re: [NTG-context] ConTeXt: Page numbering in words for spanish

2012-11-21 Thread Sietse Brouwer
Hi Hans, I think the verbose.spanish code you put in the latest beta broke verbose.english: after verbose.english is defined, a second `local verbose = { }` at the start of the spanish code accidentally overwrites that table. The code below works; as a bonus, it fixes the bug where 900 was printe

Re: [NTG-context] Images in MultiMarkdown -> context -> PDF

2012-11-21 Thread Sietse Brouwer
Guy wrote: > Well, that lead to an interesting experiment. I used convert to -resample a > set of images to 300dpi and redid the compile. They are all now too bod, > many off the right side of the page. Then did the same but set to 72. They > are still too big. Odd, from too small to too big. I th

Re: [NTG-context] beta

2012-11-21 Thread Sietse Brouwer
Hi Hans, Nice to hear that the official math fonts are good enough to be the default now! Hans Hagen wrote: > I've changed the defaults for the math fonts so that now we use the 'real > thing'. However, as there can be issues, one can still say at the top of a > document (of in cont-syst.tex): >

Re: [NTG-context] Images in MultiMarkdown -> context -> PDF

2012-11-21 Thread Sietse Brouwer
Guy Stalnaker wrote: > I get the same results using texexec and context which means, if I understand > rightly, I have used both MkII and MkIV. Yes, this is correct. > Interestingly I get similar results using oft as the pandit output. That does suggest it might be something in the image metad

Re: [NTG-context] incrementnumber vs. prefixsegments

2012-11-21 Thread Sietse Brouwer
On Tue, Nov 6, 2012 at 3:56 AM, plink wrote: > i'm trying to combine two features that somehow don't fit together: > 1. figure numbering and referring using a chapter.fignr scheme. > 2. untitled entries below chapter (aka subject or subsubject), that also > have to occur in the table of contents.

Re: [NTG-context] ConTeXt: Page numbering in words for spanish

2012-11-21 Thread Sietse Brouwer
> they are local tables ... so invisible to users Fair point. I was concerned more with changeabiltity: this way someone who writes a new function has an obvious name (numberwords.french) for her new wordlist, and an obvious single point of alteration for her copy of verbose.english, namely to cha

Re: [NTG-context] ConTeXt: Page numbering in words for spanish

2012-11-21 Thread Sietse Brouwer
Hi Acidrums, hi Hans, I worked up the code below, put it in core-con.lua, and recompiled ConTeXt with `context --make cont-en`. It gives the following output. Does it look correct? Hans: the `spanishwords` is a bit hacky; probably words should have subtables words.english and words.spanish. Cheers

Re: [NTG-context] typefile with absolute path to file

2012-11-21 Thread Sietse Brouwer
I think he means files of which the name does not have an extension. I.e. he is trying to type a file called 'xxx', not 'xxx.something'. Example of such a file: the shell script /usr/bin/ps2pdf. Cheers, --Sietse ___ If

Re: [NTG-context] typefile with absolute path to file

2012-11-20 Thread Sietse Brouwer
Compiling the evidence... all I can say is "hmm" == Erik == Version: 2012.11.16 on Linux Absolute path (parent dir): ??? Absolute path (non-parent dir): did not work == Aditya == Version: 2012.11.16 on Linux ["system.outputmode"]= "restricted", ["system.inputmode"] = "any", Absolu

Re: [NTG-context] Parameters for Texworks

2012-11-20 Thread Sietse Brouwer
> Perhaps it would be useful to add this into the wiki, since there is only a > guide in texworks for MarkIV. Something like this? http://wiki.contextgarden.net/TeXworks I've never used TeXworks, so I would appreciate it if you could check it. Cheers, Sietse On Sun, Nov 18, 2012 at 8:08 PM, "H.

Re: [NTG-context] mtxrun server help broken

2012-11-20 Thread Sietse Brouwer
> with current minimals, the help server appears to be broken. Running > > mtxrun --script server --start --auto > > the server starts up, but when I click on "help," I get a page with [an error] Already present in 2012.11.08 12:14, too. --Sietse __

Re: [NTG-context] no table of content

2012-11-15 Thread Sietse Brouwer
Confirmed; the .tuc file is only created or updated when one comments out \setuparranging[2SIDE] I don't know how to work around this, though. --Sietse ___ If your question is of interest to others as well, please add

Re: [NTG-context] Beginner question. Chapter heading in words

2012-11-12 Thread Sietse Brouwer
* looking for a place on the wiki were conversions are documented, I found http://wiki.contextgarden.net/Command/convertnumber. Seems fine. (Conversion and Conversions redirects there now.) * words and Words are now documented on that page, too. Hans: while I was there, I found a bug in the month

Re: [NTG-context] System variable HOME

2012-11-09 Thread Sietse Brouwer
by the way). --Sietse On Mon, Nov 5, 2012 at 6:46 PM, Hans Hagen wrote: > On 11/5/2012 12:15 AM, Sietse Brouwer wrote: > >> (2) why would mtxrun set the variables and risk overwriting something? >> The comments suggest it is for the benefit of the cnf files, but st

Re: [NTG-context] Highlight current chapter in list

2012-11-09 Thread Sietse Brouwer
Hans wrote: > the next beta has: \namedstructureheadlocation{name} > so that you can compare > \currentlistentrylocation > with > \namedstructureheadlocation{chapter} > (todo: also store locations elsewhere?) > Best document this before we forget about it. Is this a good description of the com

Re: [NTG-context] System variable HOME

2012-11-04 Thread Sietse Brouwer
Lukáš wrote: > it seems that Ctx [re]defines the system variable HOME on its run Did some digging, and indeed it does. This is what happens, if I read the code correctly (lines 11681-11696 of context/bin/mtxrun): * `homedir` is read from the environment variable USERPROFILE on Windows, and from HO

Re: [NTG-context] System variable HOME

2012-11-03 Thread Sietse Brouwer
> it seems that Ctx [re]defines the system variable HOME on its run; This is not an answer, but a guess: Could it be that your interactive shell uses one setting, and the non-interactive shell uses another? I'm only guessing here, I don't know much about Windows administration; I just remember bei

Re: [NTG-context] RFC: path relative to current file.

2012-11-03 Thread Sietse Brouwer
Andreas wrote: >>> It would be REALLY NICE if the functionality of "pathrelativetome" was >>> provided by ConTeXt. Hans wrote: >> in file-job.lua add around the function 'process': >> >> local function toppath() >> [...] >> >> \component toppath:/subpath/somefile.tex Andreas wrote: > Works li

Re: [NTG-context] Chinese setuplabeltext

2012-10-30 Thread Sietse Brouwer
John Devereux wrote: >> There do not seem to be translations for the labels for Chinese, is that >> correct? Is "zh" the correct language code? Wolfgang Schuster wrote: > No, you need “cn” for chinese. Might it be advisable to add 'zh' as a synonym? Technically, 'cn' means the country China, and

Re: [NTG-context] \setuplayout question

2012-10-28 Thread Sietse Brouwer
Hi Marcin, The \showlayout produces a page containing the values all the layout variables. http://wiki.contextgarden.net/Command/showlayout Do they answer your question, or not quite? (I'm not too informed qua layout, so I can't help you other than giving this pointer. Sorry. Cheers, Sietse On

Re: [NTG-context] defineindenting

2012-10-26 Thread Sietse Brouwer
NB: whatever is on the wiki page on that article was added by me just now, and represents a best guess only. I think it's correct, based on what I saw it do when I tried your mkii example, but a better description is welcome. --Sietse On Fri, Oct 26, 2012 at 3:28 PM, Piotr Kopszak wrote: > Many

Re: [NTG-context] defineindenting

2012-10-26 Thread Sietse Brouwer
Hello Piotr, > I cannot get defineindenting to work. Example attached. To input example text, use \input knuth not \knuth . After that change your example works for me, apart from producing something like '. . . :' in the indent space --- I am not familiar with MkII, so I can't tell y

Re: [NTG-context] Current ConTeXt & wiki

2012-10-19 Thread Sietse Brouwer
Hooray, we have a new stable! 1. Probably we should refresh the wiki's cache of PNG examples? Some examples contain commands like \contextversionnumber, which are now stuck on 20111008 until their MD5 changes. Also, examples might change (or break) when compiled with the new stable; best to make

Re: [NTG-context] Table Numbering

2012-10-18 Thread Sietse Brouwer
Hello Malte, Mojca, Malte wrote: > PS: The latest stable seems to still be 2011.05.18; any reason why that does > not get updated? This was discussed on the mailing list a while ago; Mojca gave a rather complete answer. http://www.mail-archive.com/ntg-context@ntg.nl/msg65226.html @Mojca: you wr

Re: [NTG-context] ConTeXt unofficial test suite stub (chemistry)

2012-10-18 Thread Sietse Brouwer
Sietse wrote: >> Alpha particles are \lohi[left]{40}{2}He. Alain wrote: > Someone needs to fix the wiki... (done!) [Alain fixed the wiki to "Alpha particles are \lohi[left]{4}{2}He\high{2+}."] But, but, but ... that doesn't demonstrate the fact that the elements right-align instead of left-align

Re: [NTG-context] Fwd: Need help with \definetabulate

2012-10-16 Thread Sietse Brouwer
The problem is that \starttabulate does not accept a format parameter. Cheap solution (only figured it out now, or I'd have replied before): use \setuptabulate[alpha][format={}] before every \startalpha call. It's not very contexty syntax, but on the other hand it requires no new definitions

Re: [NTG-context] m-graph.mkiv format bug

2012-10-15 Thread Sietse Brouwer
the string with `^` (and then the nonzerodigitmatching is no longer needed): gsub("^%+*0*", "") Otherwise, you'll get 805 --> 85. --Sietse On Mon, Oct 15, 2012 at 12:45 PM, Alan BRASLAU wrote: > On Mon, 15 Oct 2012 12:27:27 +0200 > Alan BRASLAU wrote: > >>

Re: [NTG-context] Using a search engine.

2012-10-15 Thread Sietse Brouwer
Hello, Mojca wrote: > On http://wiki.contextgarden.net/ there is a search box with three > words below: Go, Search, Google. The last one will call google search > on several predefined tex-specific pages. Not working for me ... it just displays 'loading'. Mojca wrote: > The list of domains inclu

Re: [NTG-context] m-graph.mkiv format bug

2012-10-15 Thread Sietse Brouwer
> There is a bug with format() as redefined in m-graph.mkiv > 1e10 and 1e-10 truncate the tailing 0. The function strip() is removing 0 throughout the exponent, and I don't know what purpose that might serve. If we never want to remove zeroes, this works: local function strip(s) -retu

Re: [NTG-context] New module: pararef

2012-10-13 Thread Sietse Brouwer
Hello Zenlima, Nice work. I very much approve of the 'a paragraph is one coherent thought/argument' school, and this is definitely more useful than the \setupparagraphnumbering mechanism which numbers every TeX paragraph. I've added some wikilinks to your [[Paragraph Referencing]] page from relate

Re: [NTG-context] \unit and french

2012-10-10 Thread Sietse Brouwer
Sietse wrote: >> % doesn't work correctly: comma is accepted as decimal mark at parse time, >> % but then printed as thin space anyway. ?!? >> \setupunit[method=3, order=reverse] >> \units{12.345,00} %--> 12,345 00 Wolfgang wrote: > I going to send then a mail to Hans with > a description of this

Re: [NTG-context] \unit and french

2012-10-10 Thread Sietse Brouwer
Hi Romain, If inputting in the English format is an option, this works: \setupunit[method=3] % comma as decimal mark, thin space for digits seperator \units{12,345.00} %--> 12 345,00 The problem is that inputting in the French format does not work: there seems to be a bug when order=reverse. %

Re: [NTG-context] Problem with ConTeXt (MkIV), Hebrew and ligatures

2012-10-10 Thread Sietse Brouwer
> But what left me really wondering this time was following. I tried to > comment out "U0xfb35" table in "char-def.lua" for proof that this solution > should work at all. However, for my surprise, it had no effect at all. For > just in case, I even purged my Ubuntu PPA packaged version of ConTeXt t

Re: [NTG-context] Frozen callback.

2012-10-02 Thread Sietse Brouwer
Hello, Andre! Andre Caldas wrote: >> function document.MyCharacterMess(str,filename) > > What is this "str"? This is a function that takes two variables; the first one it calls 'str', the second one 'filename'. Example: function f(a, b) return a/b end function(8,2) --> 4, not 0.25 I do no

Re: [NTG-context] wikiadmin

2012-10-01 Thread Sietse Brouwer
on clearer. http://wiki.contextgarden.net/ConTeXt_wiki:About#Contact Kind regards, Sietse Brouwer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg

Re: [NTG-context] Current source directory.

2012-09-29 Thread Sietse Brouwer
Hi André, Hans is right, it's a version problem. You're using 2012.05.30 11:26 (from May) I'm using 2012.09.25 21:44. resolvers.inputstack is defined in my tex-data.lua. I looked up your version among the commits on http://repo.or.cz/w/context.git/shortlog, and found that resolvers.inputstack is

Re: [NTG-context] Current source directory.

2012-09-28 Thread Sietse Brouwer
Hi André, My mistake: I tested the code I gave you in \startluacode, but then for the e-mail I wrapped it in \cldcontext. This is not the same: in \startluacode # has its literal value, but in \cldcontext it is interpreted as part of a macro parameter like #1. So to get the length of a table t ins

Re: [NTG-context] Current source directory.

2012-09-28 Thread Sietse Brouwer
Hi André, > Sorry, to ask such a dumb question... > - Do I need to "include" "file-job.lua" somehow? No need to include it, it's part of the ConTeXt core. I only mentioned the filename in case people wanted to see what else was in that file; the code snippet should Just Work. Is it working for yo

Re: [NTG-context] \define a command with square-bracket arguments

2012-09-28 Thread Sietse Brouwer
>> Question for the others: What's the difference of \dodoubleargument >> and \dodoubleempty? I expected \dodoubleargument to throw an error >> since the arguments are supposed to be mandatory. > > In MkIV Hans didn’t add this check and in MkII he disabled is for command > with three or less argume

Re: [NTG-context] Referring to multiple elements

2012-09-28 Thread Sietse Brouwer
Hi Marco, Marco wrote: > Maybe worth mentioning: You need the additional module > `showtable.lua` from http://article.gmane.org/gmane.comp.tex.context/78336 Oops, that was a debugging statement. Removed. > Thanks a lot for that. I'd adjust the interface, so that it matches > the behaviour of \in

Re: [NTG-context] Referring to multiple elements

2012-09-27 Thread Sietse Brouwer
Hi Marco, (PS for Hans), Marco wrote: > \in{figure}[alpha,beta,gamma] > > This outputs “figure 1”. What I'd like to have is “figure 1-3”. The attached quasi-module seems to do it! On my computer, at least. (I call it 'quasi' because it is really nothing more than code in a file of its own. No con

Re: [NTG-context] Current source directory.

2012-09-27 Thread Sietse Brouwer
> I want to know a function that returns > /fullpath_to_project/products/ > when I call it from the script "products/product.tex". And I want it to return > /fullpath_to_project/products/product/ > when I call it from the script "products/product/article.tex". Finally found it, after lots of trial

[NTG-context] Parsing [key=value, key2=value2, ...] with Lua

2012-09-27 Thread Sietse Brouwer
Hi all, I've found a helper function that does this: utilities.parsers.settings_to_hash('ape=1, note=2, mice=3') --> { ["ape"] = 1, ["note"] = 2, ["mice"] = 3 } This makes me very happy. This function and its friends are stored under utilities.parsers, and defined in util-prs.lua; I've list

[NTG-context] \define a command with square-bracket arguments

2012-09-27 Thread Sietse Brouwer
Hi all, As I understand it, \define[2] is preferred over \def#1#2 because it refuses to overwrite existing commands. \define[2]\mycommand{code code code} defines a command to be invoked with \mycommand{...}{...} Can I use \define, or a related command, to define a command that takes square-brack

Re: [NTG-context] Full page figure

2012-09-25 Thread Sietse Brouwer
Hi Mikoláš, > So how can I place this title page without margins? (A4 scanned page to A4 > PDF page) There are commands to insert PDF pages directly: http://wiki.contextgarden.net/Including_pages_from_PDF_documents \filterpages[file.pdf][1] should do the trick for you. For including page-sized

Re: [NTG-context] Multi-paragraph quotations according to AP

2012-09-24 Thread Sietse Brouwer
> Unfortunately, I get _two_ open-quote marks on the first paragraph and a > space between the open-quote mark and the first word of the other > paragraphs. This works correctly for me, using 20120916 23:18 MKIV: \setupquotation[repeat=yes, middle=“] \startquotation bsdf bsdf bsdf \

Re: [NTG-context] Multi-paragraph quotations according to AP

2012-09-24 Thread Sietse Brouwer
Hi Bill, Bill Meahan wrote: > \startquotation .. \stopquotation easily takes care of the open on the first > paragraph and close at the end of the last. What I can't figure out is how > to put an open quotation mark on the intervening paragraphs. \setupquotation[repeat=yes, middle=“] or \setupdel

Re: [NTG-context] Proposal: making [[article]] and [[Article]] equivalent on the wiki

2012-09-24 Thread Sietse Brouwer
>> PS: can anyone please explain me what's with >> http://wiki.contextgarden.net/First-setup.sh I remember being unable to decide between the Windows name or the Linux name at the time, like the donkey caught between two haystacks, which is how this muddle came about. Then it got worse when I

Re: [NTG-context] Proposal: making [[article]] and [[Article]] equivalent on the wiki

2012-09-24 Thread Sietse Brouwer
the lowercased entries will become unavailable when $wgCapitalLinks is turned from false to true. I don't want to mail Taco with the change request until after EuroTeX 2012 --- he is probably up to his ears in conference preparations, and this is not urgent. Cheers, Sietse -- Siets

[NTG-context] Proposal: making [[article]] and [[Article]] equivalent on the wiki

2012-09-19 Thread Sietse Brouwer
Hello, all, The wiki currently has $wgCapitalLinks = false; meaning that if one wishes to link to e.g. [[Columns]] inside a sentence one must write "See the [[Columns|columns]] article." And if one links to another article, one must remember whether its title is lowercase, Titlecase, or if it does

[NTG-context] List of macro-generating macro (was: Ctx: list of commands)

2012-09-19 Thread Sietse Brouwer
phandler -- Sietse Brouwer -- sbbrou...@gmail.com -- +31 6 13.456.848 Verlengde Wassenaarseweg 4a -- 2342 BG Oegstgeest -- the Netherlands MSN: sie...@gawab.com -- ICQ: 341232104 On Tue, Sep 18, 2012 at 7:52 PM, Hans Hagen wrote: > On 18-9-2012 18:44, Sietse Brouwer wrote: >> >>

Re: [NTG-context] Ctx: list of commands

2012-09-18 Thread Sietse Brouwer
Michael K Rogers wrote: >> … tex/texmf-context/tex/context/interface/cont-en.xml Hans wrote: > indeed it needs updating (some time ago wolfgang started with it but it's a > tedious job) Hans, have you ever thought about creating a command \defpublic[#commandname]{...} that works pretty much like

[NTG-context] Exploring the Lua innards of ConTeXt: showtable

2012-09-17 Thread Sietse Brouwer
Hi all, ConTeXt mkiv stores all sorts of things in Lua tables, but 'what goes where' does not tend to be documented. So here is a function to print out a table's contents to get something like the following excerpt. The excerpt is from the output of `userdata.showtable(structures.lists)` in a doc

Re: [NTG-context] Ctx: list of commands

2012-09-17 Thread Sietse Brouwer
> During the last few months the wiki got plenty of new commands added > that you could use. The wiki's list of commands is nowhere near complete, alas. There are a few (not many) commands *documented* on there that are not documented elsewhere, but if it's *existence* of commands you want to know

Re: [NTG-context] Formulas include chapter number

2012-09-17 Thread Sietse Brouwer
Hi Marco, It's a bug, I think. The keys that control this are way and prefixsegments: \setupformulas[way=bychapter, prefixsegments=chapter] way=bychapter means 'resume numbering at each chapter' prefixsegments=chapter means 'precede each formula number with the chapter number': chapter.formula R

Re: [NTG-context] View all numbers of sub(...)section

2012-09-15 Thread Sietse Brouwer
Hi Jaroslav, > While I was looking, I could not find it. I wanted to put your example into > the wiki, but the wiki shows the numbers and hidden sections, so I did not > there yet. That might be because the wiki uses mkii by default; to use mkiv write If you can't get an example to work at all,

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

2012-09-15 Thread Sietse Brouwer
Hi Alessandro, On Sat, Sep 15, 2012 at 12:00 PM, Alessandro Perucchi wrote: > So probably it would be good to correct the documentation > accordingly ( even if all coders hate that part :-D ) Or maybe > update the > wiki... Is anybody able to modify the wiki? if > yes then I would be more than ha

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] Change color of EPS file.

2012-09-13 Thread Sietse Brouwer
Aditya Mahajan 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 (dark-)coloured backg

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

2012-09-13 Thread Sietse Brouwer
Hello Pol stra, Off-topic for this mailing list, but on-topic for you: You can do this with Inkscape. * Install Inkscape: http://inkscape.org/download/?lang=en * Open the EPS in Inkscape Working white-on-white sucks, so * File > Document properties > click to the right of 'Background:', below th

Re: [NTG-context] Passing variables on invocation- and reading them in ConTEXt

2012-09-11 Thread Sietse Brouwer
or me). > > The best match for what I was sure would be there, is \env{}. I still have no > idea how it's (semantically) related to --arguments...unless its all Dutch... > > Kind regards > > Ian > > On 10 Sep 2012, at 14:02, Sietse Brouwer wrote: > >> Docum

Re: [NTG-context] Passing variables on invocation- and reading them in ConTEXt

2012-09-10 Thread Sietse Brouwer
Documented at http://wiki.contextgarden.net/Command/getdocumentargument, in the category Command/Internals. --Sietse On Mon, Sep 10, 2012 at 2:00 PM, Marco Patzer wrote: > 2012-09-10: Peter Münster > >> Then you have to be sure, that --number and --time will never be special >> parameters for co

Re: [NTG-context] Problem with *lettrine* module in Mk-iv

2012-09-10 Thread Sietse Brouwer
water who wrote the module. Depending on how trivial the bug is, and how busy Taco is, he might be able to help. Kind regards, Sietse Sietse Brouwer lettrine-bug.pdf Description: Adobe PDF document ___ If your questio

Re: [NTG-context] Promotion of the ConTeXt IRC channel

2012-09-08 Thread Sietse Brouwer
I've added the info on the bot. But please, if you think something could be improved, just hit the edit link and do it --- way quicker than mentioning it on the mailing list and waiting for my sense of guilt to kick in. ;-) (If you feel insecure, you can always ask for help or a second opinion, of

Re: [NTG-context] Promotion of the ConTeXt IRC channel

2012-09-08 Thread Sietse Brouwer
Heya, I've added a note to the [[Main Page]] (edit it at http://wiki.contextgarden.net/Template:Main_Page), and a note to the [[IRC]] page. How does that look to you guys? I think that someone who knows the channel could make a more appetizing description on the [[IRC]] page than the one I just wr

Re: [NTG-context] Promotion of the ConTeXt IRC channel

2012-09-07 Thread Sietse Brouwer
Marco wrote: > I was wandering if we should promote the ConTeXt > IRC channel on the contextgarden home page, The purpose of a link on the front page would be to point help-searchers at a useful resource --- if the resource is not yet useful, there's no point in the link, I think. After all, peopl

Re: [NTG-context] TRying to download manual sources

2012-09-06 Thread Sietse Brouwer
John Culleton wrote: > Tryng to download manual sources. This command doesn't work: > svn co svn://ctx.pragma-ade.nl/manuals context Hullo John, I'm sorry your question remained unanswered for so very long. Here is my attempt at answering it. The sources of the manual-under-revision can be checke

Re: [NTG-context] Setting options for every n-th row in natural TABLEs

2012-09-04 Thread Sietse Brouwer
http://wiki.contextgarden.net/Command/currentTABLErow http://wiki.contextgarden.net/Command/currentTABLEcolumn http://wiki.contextgarden.net/Command/nofTABLErows http://wiki.contextgarden.net/Command/nofTABLEcolumns A bit of cutting, a bit of pasting ... the six-year-old in me is happy. :-) --Sie

Re: [NTG-context] Component: \product, \project

2012-09-04 Thread Sietse Brouwer
Hello Lukáš, > I imagined that component doesn't need to know in which project/product is > used, even when in may be intended to more projects/products. Usually, projects (collections of environment files) are applied at the product level. Sometimes, however, you want to apply one at the compone

Re: [NTG-context] Include chapter number in figure numbering

2012-09-04 Thread Sietse Brouwer
>>> how do I include the chapter number in the figure numbering? >> Untested: >> \setupcaptions[prefixsegment=chapter] > This works with beta 2011-11-29, but unfortunately not in a current > one. Does it work for you? You're right: it doesn't work for me, either. A bug, then, or possibly an unan

Re: [NTG-context] Include chapter number in figure numbering

2012-09-03 Thread Sietse Brouwer
Marco Patzer wrote: > how do I include the chapter number in the figure numbering? Untested: \setupcaptions[prefixsegment=chapter] or \setupcaption[figure][prefixsegment=chapter] should both work. (The former should affect table captions, too.) Slightly more at http://wiki.contextgarden.net/Comma

Re: [NTG-context] Wiki example compilation failure

2012-09-03 Thread Sietse Brouwer
Procházka Lukáš wrote: > BTW: Which of the following specifications is correct [for wiki]: > > > or > ? Both work. Because both work, we have no way to force future edits to be XHTML compliant, so I don't think it is productive to try to enforce XHTML compliance in this. Instead, if we ever do ne

Re: [NTG-context] "Darwin x86_64" is not supported yet error.

2012-09-03 Thread Sietse Brouwer
Hi Jeong, Like Mojca says, this is very strange. I've attached a trimmed-down version of first-setup.sh with some debug print statements sprinkled in; could you run that and post its output here? The output should be something like this, possibly without the two 'branch' lines. === system branch

Re: [NTG-context] Wiki example compilation failure

2012-09-03 Thread Sietse Brouwer
Hi Lukáš, (CC Mojca, Taco) > [\setupdelimitedtext example] > is successfully compiled by the current Ctx version whilst the same example > on http://wiki.contextgarden.net/Command/setupdelimitedtext is not. Yes, the wiki's ConTeXt installation is about a year old, as you can see at http://wiki.co

Re: [NTG-context] Margin text and multiple columns

2012-08-31 Thread Sietse Brouwer
Hi Marcel, As far as I know, margins end up directly next to columns: multiple columns do not share one margin at the edge of the page. This answer on tex.stackexchange.com comes tot the same conclusion: http://tex.stackexchange.com/questions/67078/text-in-outer-margin-of-multiple-columns If marg

Re: [NTG-context] correspondence: Wrong version string in module?

2012-08-25 Thread Sietse Brouwer
On Sat, Aug 25, 2012 at 11:28 AM, Paul Menzel wrote: > correspondence $ more files/letter-imp-knuth.mkiv > %D \module > %D [ file=letter-imp-knuth, > %D version=2012.12.26, > […] > > I guess the date is used and this is from the future. Y'know, H

[NTG-context] Bug in page-sel.mkvi

2012-08-23 Thread Sietse Brouwer
Hi Hans, There's a typo in page-sel.mkvi that makes \copypages not work. Cheers, Sietse \def\page_selectors_copy[#filename][#settings][#figuresettings]% {\bgroup \getfiguredimensions[#filename]% \global\c_page_selectors_n\noffigurepages\relax \setupcurrentwithpages[\c!marking=\v!off,\c!

Re: [NTG-context] Code in contextref-env.tex

2012-08-22 Thread Sietse Brouwer
> I have no idea what the sequences like "\v!"and "\c!" etc. mean. > Are they references to modes? I asked much the same question on tex.stackexchange.com two months ago, except mine was not so nice and focused. Aditya gave a very nice explanation of what the letters do; clearer than the one on th

Re: [NTG-context] Stable versions of MkIV

2012-08-21 Thread Sietse Brouwer
On Tue, Aug 21, 2012 at 11:41 AM, Hans Hagen wrote: > > I know .. the problem is that I am cleaning up all the code (the status can > be seen in status-mkiv.pdf) and have to find a moment of stability as such a > cleanup is often leading to temporsry issues (due to renaming) no status-mkiv.pdf in

Re: [NTG-context] test for (negative) number

2012-08-20 Thread Sietse Brouwer
Hi Peter, I recommend using the following handy little idiom: \ctxlua{commands.doifelse(-45 > 0)}{big}{small} % small It lets you do all sorts of things that are tricky in TeX: \ctxlua{ commands.doifelse( string.len( "-45" ) > 5 ) }{long}{short} Cheers, Sietse ___

[NTG-context] Stable versions of MkIV

2012-08-20 Thread Sietse Brouwer
Hi all, The "current stable" MkIV, the MkIV on the wiki, and the MkIV in TeX Live are quite different things. MkIV 2011.005.18 -- result of first-setup.sh --current MkIV 2011.10.008 -- version on the wiki MkIV 2012.005.29 -- version in TeX Live 2012, AFAICT (Mojca?) 1. Why not declare the versio

Re: [NTG-context] running context mcommon.tex

2012-08-19 Thread Sietse Brouwer
Hi John, mcommon.tex is an environment file used by mreadme.tex. (If you look inside mcommon.tex, you'll see it starts with \startenvironment) This is why it produces no pages of output. For more on environment files, see http://wiki.contextgarden.net/Command/startenvironment http://wiki.contextg

Re: [NTG-context] Project & automatic lookup for included directories

2012-08-19 Thread Sietse Brouwer
A little experimentation shows the lookup order is as follows, from highest to lowest priority: current directory, parent, grandparent, whatever is in \usepath. > What is the default lookup of \environment? I thought it were at least one > level up, but I'm not sure. current directory, parent dir

Re: [NTG-context] Footer text style

2012-08-19 Thread Sietse Brouwer
Lukáš wrote: > Added to http://wiki.contextgarden.net/Command/setuppagenumbering as an > example. Thanks! That is greatly appreciated. > (BTW: Any idea how to make wiki-contex-source-compiler show the page number, > if *really* wanted - i.e. in this case?) \showframe[] does the trick: when an em

Re: [NTG-context] Figured bass symbols in a text.

2012-08-10 Thread Sietse Brouwer
Hans wrote: > So, we have low/high definable and clonable etc. Best check if the defaults > are compatible. Valid parameters are 'up', 'down' and 'distance' > (dimensions) and of course 'style' and 'color'. Just downloaded and tested, looks nice. Small bug: It's called lomihi, but the arguments ar

Re: [NTG-context] math formula linebreak

2012-08-09 Thread Sietse Brouwer
Addendum: I just bumped into Morten Høgholm's bachelor's thesis. "Automatic line-breaking of displayed math expressions" https://sites.google.com/site/mortenhoegholm/breqn-thesis.pdf That thesis contains a conceptual explanation of the breqn algorithm (or at least the algorithm he used when reimpl

Re: [NTG-context] math formula linebreak

2012-08-09 Thread Sietse Brouwer
Hi Aditya, > I wish that the breqn algorithm were described somethere; > then one could play around implementing it in luatex. Have you seen the new User's Guide yet? It's from last May, very recent, so it may not have been there yet when last you looked. It includes the entire source code, and c

Re: [NTG-context] math formula linebreak

2012-08-09 Thread Sietse Brouwer
Steffen Wolfrum wrote: >> them to break automatically ... is there a handy solution? Aditya Mahajan wrote: > Short answer: No easy solution exists. Is this because allowing automatic line breaks in math mode is itself hard to implement, or is the basic mechanism possible but preventing stupid/ugl

Re: [NTG-context] \startcomponent, \startproduct... + automatic file name

2012-08-09 Thread Sietse Brouwer
Wolfgang wrote: > You can use \currentcomponent, \currentproduct and \currentproject to print > the name of the file. Another secret unearthed! All wikified, together with \processedfile and \processedfiles. Sans examples, but at least the info's there. Thank you, Wolfgang. Cheers, Sietse __

Re: [NTG-context] \startcomponent, \startproduct... + automatic file name

2012-08-09 Thread Sietse Brouwer
> On Thu, 09 Aug 2012 11:27:08 +0200, Hans Hagen wrote: >> in the current beta you can say >> >> \startcomponent * >> >> Hans Wikified at http://wiki.contextgarden.net/Command/startcomponent. This trick also works for startproject, startenvironment, and startproduct, I assume? And for the genera

Re: [NTG-context] Draft version of document

2012-08-08 Thread Sietse Brouwer
@Roger: I just realised I called you Robert. Sorry about that, moment of inattention. Hi Hans, > Actually, this is something that should be doable with user data weren't it > that for floats that's not yet available. So I've added it to the core (will > be in next upload) ... Ah, nifty; and fant

<    1   2   3   >