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

Re: [NTG-context] [tabulate] colored background

2012-09-27 Thread Aditya Mahajan
On Fri, 28 Sep 2012, Philipp Gesang wrote: Hi all, the background mechanism of tabulations is quite simplistic: it extends only to the first line of a cell irrespective of its length. Example: ··· \starttext \starttabulate[|p|

[NTG-context] [tabulate] colored background

2012-09-27 Thread Philipp Gesang
Hi all, the background mechanism of tabulations is quite simplistic: it extends only to the first line of a cell irrespective of its length. Example: ··· \starttext \starttabulate[|p|r|] \CM [red] \input knuth \NC was said by T

Re: [NTG-context] Current source directory.

2012-09-27 Thread Andre Caldas
Thank you for yor time, Peter. But this is not what I wanted... :-( >> Is there a way to know the directory of the currently being processed >> source file? > > This works with mkiv: > > \starttext > PWD: \cldcontext{io.popen"pwd":read()} > \stoptext This gives the directory where the "context" c

Re: [NTG-context] verbatim text: \type, \tex and co.

2012-09-27 Thread Aditya Mahajan
Can someone indicate how to typeset $L_{α+β}$ as verbatim text? (\arg{} doesn't help here...) Untested: \type{...} should work. (Definitely did work a couple of months ago). Furthermore, I suppose that typesetting Greek characters verbatim depends also upon which \tt font is being used. CM

[NTG-context] verbatim text: \type, \tex and co.

2012-09-27 Thread Alan Braslau
Hello, Can someone indicate how to typeset $L_{α+β}$ as verbatim text? (\arg{} doesn't help here...) Furthermore, I suppose that typesetting Greek characters verbatim depends also upon which \tt font is being used. Alan

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

2012-09-27 Thread Simo Ojala
This is a problem originally posted in TeX/StackExchange. However, since I have not had any luck in finding a solution I post it here too. I am confident that somebody here should know the answer. http://tex.stackexchange.com/questions/73970/problem-with-context-mkiv-hebrew-and-ligatures "Sin

Re: [NTG-context] xits font: some spacing and scaling problems

2012-09-27 Thread Khaled Hosny
On Thu, Sep 27, 2012 at 01:01:35PM -0400, Aditya Mahajan wrote: > On Thu, 27 Sep 2012, Khaled Hosny wrote: > > >None of those glyphs were changed in XITS, they are exactly the same as > >the ones in STIX fonts, so possibly ConTeXt is using the wrong Unicode > >character for those symbols. The late

Re: [NTG-context] xits font: some spacing and scaling problems

2012-09-27 Thread Aditya Mahajan
On Thu, 27 Sep 2012, Khaled Hosny wrote: On Thu, Sep 27, 2012 at 04:58:11PM +0200, Andreas Mang wrote: Hi there, Not quite sure if this is the right place. I wanted to send this directly to Khaled Hosny, but then I thought it might be good to have some additional opinion on some of these issue

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

2012-09-27 Thread Wolfgang Schuster
Am 27.09.2012 um 18:16 schrieb Marco Patzer : > 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

Re: [NTG-context] xits font: some spacing and scaling problems

2012-09-27 Thread Khaled Hosny
On Thu, Sep 27, 2012 at 04:58:11PM +0200, Andreas Mang wrote: > Hi there, > > Not quite sure if this is the right place. I wanted to send this > directly to Khaled Hosny, but then I thought it might be good to have > some additional opinion on some of these issues (I am not quite sure > if some of

[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

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

2012-09-27 Thread Marco Patzer
2012-09-27 Sietse Brouwer : Hi Sietse, > As I understand it, \define[2] is preferred over \def#1#2 because it > refuses to overwrite existing commands. \define overwrites existing commands with pleasure. In contrast to \def it prints a message to the log file: “\mycommand is already defined”. >

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

2012-09-27 Thread Thomas A. Schmitz
On 09/27/2012 05:45 PM, Sietse Brouwer wrote: 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 comm

[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

[NTG-context] xits font: some spacing and scaling problems

2012-09-27 Thread Andreas Mang
Hi there, Not quite sure if this is the right place. I wanted to send this directly to Khaled Hosny, but then I thought it might be good to have some additional opinion on some of these issues (I am not quite sure if some of this is intended behaviour). I have collected some examples for which

Re: [NTG-context] minimals

2012-09-27 Thread Mojca Miklavec
On Wed, Sep 26, 2012 at 11:39 PM, Hans Hagen wrote: > Hi, > > Is minimals.contextgarden.net offline? Until we figure out what exactly is wrong one can use the mirror: rsync://metatex.org/minimals/ http://minimals.metatex.org/ Mojca