Re: [NTG-context] [dev-context] bTABLE in header and document give unexpected behavior

2012-06-11 Thread Sietse Brouwer
Sido wrote: I had posted a question on stack-exchange and it was suggested to post a bug report here. I’m not sure if this is a bug, but it was unexpected behavior to me. Wolfgang wrote: BTW: Please use next time the normal mailing list for such problems and not the developer list. That

Re: [NTG-context] A Lorem ipsum module?

2012-07-19 Thread Sietse Brouwer
Hans wrote: I've added a module m-ipsum. Duly wikified, although heaven knows whether people will actually find it that way. No matter: soon we will have navboxes and that will give us a shot at coherent topic-based navigation. For now I've made a pagelet at

[NTG-context] Adding command pages to the wiki

2012-07-19 Thread Sietse Brouwer
Hi all, When some command is mentioned on this mailing list, and people say somebody might want to add this information to the wiki, and the command page doesn't even *exist* yet — don't despair. Creating it is easy, now. * There's a proper copy-paste skeleton for new command pages, now; you can

Re: [NTG-context] Critical editions with ConTeXt

2012-07-20 Thread Sietse Brouwer
, or \fromlinenote...\tolinenote. And in that case, I think consistently naming environment commands \start...\stop... is a very valuable thing, and should get priority. Regards, Sietse Sietse Brouwer ___ If your question

Re: [NTG-context] simpleslides help needed

2012-07-24 Thread Sietse Brouwer
Cheers, Sietse Sietse Brouwer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http

[NTG-context] \registerctxluafile vs \ctxloadluafile

2012-07-25 Thread Sietse Brouwer
? (Approximate answer is okay.) Cheers, Sietse Sietse Brouwer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo

Re: [NTG-context] Struggling with ConTeXt

2012-08-03 Thread Sietse Brouwer
Olivier Binda wrote: 1) does lxml.att(#1,some tag) really work ? Hans Hagen wrote: [various solutions] You can wikify this ... I'm looking for a place to put it, but I'm handicapped by the fact that I know nothing about ConTeXt's XML handling. I don't even know whether the question+answer is

Re: [NTG-context] Luatex error in latest beta (standalone)

2012-08-03 Thread Sietse Brouwer
Alan wrote: the relevant lines in strc-not.lua are: notes.getsymbolpage = getsymbolpage notes.getnumberpage = getnumberpage notes.getdeltapage = getdeltapage function commands.notesymbolpage(tag,n) context(getsymbolpage(tag,n)) end function commands.notenumberpage(tag,n)

Re: [NTG-context] Luatex error in latest beta (standalone)

2012-08-03 Thread Sietse Brouwer
Sietse wrote (at 17:00): so I suggest turning L317 into local function getdeltapage(tag,n) Alan Bowen bowenala...@gmail.com wrote (at 17:42): local function getdeltapage(tag,n) seems to mess up \definenote (the error appears when running context --make). And if one plows ahead anyway,

Re: [NTG-context] Luatex error in latest beta (standalone)

2012-08-03 Thread Sietse Brouwer
I think you accidentally misread my fix. Happens to the best of us. Original text: function notes.deltapage(tag,n) You tried: local function notes.deltapage(tag,n) You should try: local function getdeltapage(tag,n) That should work. Cheers, Sietse

Re: [NTG-context] Bug with setupinteraction and footnote

2012-08-05 Thread Sietse Brouwer
Hi Otared, This is the same error as in the Luatex error in latest beta (standalone) thread. In line 317 of strc-not.lua, change this: function notes.deltapage(tag,n) into this: local function getdeltapage(tag,n) Cheers, Sietse

Re: [NTG-context] Et tu, Taco?

2012-08-06 Thread Sietse Brouwer
On Sun, Aug 5, 2012 at 11:00 PM, Idris Samawi Hamid ادريس سماوي حامد isha...@colostate.edu wrote: Dear Knights of the ConTeXt Table, I am sad to report that our beloved Taco has gone over to the dark side: http://tacosw.com/latexian/ I count at least two Dark Sides, here; should we rescue

Re: [NTG-context] Draft version of document

2012-08-06 Thread Sietse Brouwer
Hi Roger, Firstly: drafts are indeed the way to go. \completelistoffigures places a complete list of figure *captions*, so that takes care of that. % No need to define a mode: you can simply enable it with % \enablemode[draft] % or % context --mode=draft \enablemode[draft] \startmode[draft]

Re: [NTG-context] Marking a textfragment for later reference

2012-08-07 Thread Sietse Brouwer
[littlecow]} % invoking a named picture -- 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, Aug 7, 2012 at 11:44 AM, Robert Blackstone blackstone.rob...@gmail.com wrote

Re: [NTG-context] Draft version of document

2012-08-07 Thread Sietse Brouwer
Hi Robert, Debugged and all, here you go. Cheers, Sietse \useexternalfigure[img:fig:cow][cow.pdf] \useexternalfigure[img:fig:mill][mill.png] \starttext \section{Pictures} % The externalfigure names HAVE TO take the form 'img:FIGURELABEL', % or the automatic image list at the end on won't be

Re: [NTG-context] \product tag

2012-08-08 Thread Sietse Brouwer
Hi John, What Wolfgang said: `\product X` should be processed once inside `\startproject` environments, and never otherwise. And you should probably have products as your build targets, not projects. @Hans: when I looked at the `processors` table in file-job.lua, I found some discrepancies

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

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 pra...@wxs.nl 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

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

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

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

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 are

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 empty

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

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

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

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

Re: [NTG-context] Stable versions of MkIV

2012-08-21 Thread Sietse Brouwer
On Tue, Aug 21, 2012 at 11:41 AM, Hans Hagen pra...@wxs.nl 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

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 the

[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

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 paulepan...@users.sourceforge.net 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

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

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

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
Procházka Lukáš wrote: BTW: Which of the following specifications is correct [for wiki]: context mode=mkiv source=yes or context mode=mkiv source=yes? 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

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

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 unannounced

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

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. :-)

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 checked

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, people

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

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] Problem with *lettrine* module in Mk-iv

2012-09-10 Thread Sietse Brouwer
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 question is of interest

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 home...@lavabit.com wrote: 2012-09-10: Peter Münster pmli...@free.fr Then you have to be sure, that --number and --time will never

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

2012-09-11 Thread Sietse Brouwer
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 sbbrou...@gmail.com wrote: Documented at http://wiki.contextgarden.net/Command/getdocumentargument, in the category Command

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 the

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

2012-09-13 Thread Sietse Brouwer
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] 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] MKII MKIV difference between \textrule

2012-09-15 Thread Sietse Brouwer
Hi Alessandro, On Sat, Sep 15, 2012 at 12:00 PM, Alessandro Perucchi alessan...@perucchi.org 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

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 context mode=mkiv If you can't get an example

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

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

[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

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] List of macro-generating macro (was: Ctx: list of commands)

2012-09-19 Thread Sietse Brouwer
-- 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 pra...@wxs.nl wrote: On 18-9-2012 18:44, Sietse Brouwer wrote: Michael K Rogers

[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

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

2012-09-24 Thread Sietse Brouwer
that change? On Wed, Sep 19, 2012 at 2:11 PM, Sietse Brouwer wrote: 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

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

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

[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

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

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

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

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] \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 argument but

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 you?

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

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

2012-10-01 Thread Sietse Brouwer
. 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.nl / http

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 not know

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 to make

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] \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 bug and

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

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

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 included

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

2012-10-15 Thread Sietse Brouwer
): gsub(^%+*0*, ) Otherwise, you'll get 805 -- 85. --Sietse On Mon, Oct 15, 2012 at 12:45 PM, Alan BRASLAU alan.bras...@cea.fr wrote: On Mon, 15 Oct 2012 12:27:27 +0200 Alan BRASLAU alan.bras...@cea.fr wrote: On Mon, 15 Oct 2012 12:08:30 +0200 Sietse Brouwer sbbrou...@gmail.com wrote

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

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

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

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

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

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

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 like a charm, Hans!

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

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

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 command's

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 pra...@wxs.nl 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 still --- why overwrite

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

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] 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] 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, Absolute path

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

  1   2   3   >