[NTG-context] Obscure math/color bug (namespace clash)

2014-02-19 Thread Alan BRASLAU
Hello, I came across the following obscure math/color namespace clash: \definecolor [tan] [h=d2b48c] % Taken from \setupcolor [x11] \starttext $\tan θ$ \stoptext One solution would be to give precedence in math mode to the

[NTG-context] Disappearing Columnar Text

2014-02-19 Thread Thangalin
Hi, When using \startmixedcolumns[balance=yes,grid=strut], how would you put a 0.5em vertical space between a subtitle and a list of items? The following code gives a simple example: http://pastebin.com/raw.php?i=pT5tcXfc Uncommenting the following line hides the list items under Subtitle A:

[NTG-context] mp: choose colors randomly from list

2014-02-19 Thread Schmitz Thomas A.
Hi all, I would like to have mp choose a (transparent) color randomly from a predefined list. My naive approach was (let’s restrict it to three colors): \startuniqueMPgraphic{colortest} save mycolor ; color mycolor[] ; mycolor[1] := (0.07, 0.21, 0.65) ; mycolor[2] := (0.6, 0.6, 0.4) ;

Re: [NTG-context] mp: choose colors randomly from list

2014-02-19 Thread Alan BRASLAU
mycolor[1 + round (uniformdeviate 2)] (or define mycolor[0]-mycolor[2], in which case you can drop the 1 +) uniformdeviate returns a random number between zero and the value of the argument. So you do not want (uniformdeviate i). Alan On Wed, 19 Feb 2014 11:10:57 +0100 Schmitz Thomas A.

Re: [NTG-context] mp: choose colors randomly from list

2014-02-19 Thread Otared Kavian
Hi Thomas, One way is to increase the « degree of randomness » by saying withcolor transparent (1,0.3,mycolor[round(uniformdeviate(10*i)/10)]) or you can define a RandomColor as below: \startuniqueMPgraphic{colortest} save mycolor ; color mycolor[] ; mycolor[1] := (0.07, 0.21, 0.65) ;

Re: [NTG-context] mp: choose colors randomly from list

2014-02-19 Thread Schmitz Thomas A.
On 19 Feb 2014, at 11:37, Alan BRASLAU alan.bras...@cea.fr wrote: uniformdeviate returns a random number between zero and the value of the argument. So you do not want (uniformdeviate i). Ah, that explains it. Thanks a lot Alan! Otared Kavian wrote: One way is to increase the « degree of

Re: [NTG-context] mp: choose colors randomly from list

2014-02-19 Thread Wolfgang Schuster
Am 19.02.2014 um 12:11 schrieb Schmitz Thomas A. thomas.schm...@uni-bonn.de: I hate myself for not knowing more about math! I don’t see how mp picks its random numbers - when I recompile, I always get the same colors in the same order. They are “random” in the sense that there is no fixed

[NTG-context] superscripted \circ slightly too low?

2014-02-19 Thread Sanjoy Mahajan
The superscripted degree symbol in $10^\circ$ comes out slightly low. e.g. \starttext \placeformula\startformula 10^\circ \quad 10\mathstrut^\circ \stopformula \placeformula\startformula x^7\quad x\mathstrut^7 \stopformula \stoptext I'm not quite sure what's right, but my eye says that the

Re: [NTG-context] mp: choose colors randomly from list

2014-02-19 Thread Schmitz Thomas A.
On 19 Feb 2014, at 12:16, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: http://www.ntg.nl/pipermail/ntg-context/2012/065815.html Wolfgang Not only I’m bad at math, I don’t even remember the answers to my own questions - thanks Wolfgang for reminding me! I’m getting old and senile,

[NTG-context] glyph path

2014-02-19 Thread Peter Rolf
Hi, I tried the Dcaron example from the MetaPost manual (page 50) and it works nicely when called with mpost. % Dcaron.mp fontmapfile=lm-ec.map; beginfig(56); picture q; path p; interim ahlength:=12bp; interim ahangle:=25; q:= glyph Dcaron of ec-lmr10 scaled .2; for item

Re: [NTG-context] mp: choose colors randomly from list

2014-02-19 Thread Alan BRASLAU
On Wed, 19 Feb 2014 12:38:38 +0100 Schmitz Thomas A. thomas.schm...@uni-bonn.de wrote: Not only I’m bad at math, I don’t even remember the answers to my own questions - thanks Wolfgang for reminding me! I’m getting old and senile, should look into early retirement... The random numbers

[NTG-context] \setuplist[alternative=inmargin, sectionsegments=section]?

2014-02-19 Thread Pablo Rodriguez
Dear list, I have the following sample: \setupheads\setuphead[chapter][sectionsegments=chapter, align=center] \setuphead[section][alternative=inmargin] \setuplist[section][alternative=d, style=\itx] \starttext \placecontent \startfrontmatter \dorecurse{2}{\chapter{Chapter}

[NTG-context] Plain format not building

2014-02-19 Thread Philipp Gesang
Hi all, with the most recent Minimals (2014.02.14 17:07) building the Luatex Plain format no longer works: $ mtxrun --script plain --make ... mtx-plain | running command 'luatex --ini luatex-plain.tex \dump' This is LuaTeX, Version beta-0.78.2 (TeX Live 2014/dev) (rev

Re: [NTG-context] glyph path

2014-02-19 Thread Peter Rolf
Forgot to tell why I need the glyph paths... I implemented multi path support in drops yesterday and now I want to test it with some glyphs. Currently I use Inkscape (export the glyph path as PDF) and pdftoedit to finally get a MP path. Time consuming and the result still needs a manual clean-up.

Re: [NTG-context] \setuplist[alternative=inmargin, sectionsegments=section]?

2014-02-19 Thread Wolfgang Schuster
Am 19.02.2014 um 19:02 schrieb Pablo Rodriguez oi...@gmx.es: Dear list, I have the following sample: \setupheads\setuphead[chapter][sectionsegments=chapter, align=center] \setuphead[section][alternative=inmargin] \setuplist[section][alternative=d, style=\itx] \starttext \placecontent

Re: [NTG-context] \setuplist[alternative=inmargin, sectionsegments=section]?

2014-02-19 Thread Pablo Rodriguez
On 02/19/2014 07:48 PM, Wolfgang Schuster wrote: Am 19.02.2014 um 19:02 schrieb Pablo Rodriguez: [...] My question is: how can I achieve \setuplist[chapter][alternative=inmargin] and Write your own list layout. Many thanks for your reply, Wolfgang. I have no idea about how to do it. What

[NTG-context] \asciimode not working when in \footnote

2014-02-19 Thread Pablo Rodriguez
Dear list, I have the following sample: \starttext {\asciimode It works in body%.}\footnote{But not in footnotes {\asciimode %}.} \stoptext I’m afraid \asciimode cannot be included within a footnote. Is this a bug or am I missing something? Many thanks for your help, Pablo --

Re: [NTG-context] \asciimode not working when in \footnote

2014-02-19 Thread Wolfgang Schuster
Am 19.02.2014 um 20:18 schrieb Pablo Rodriguez oi...@gmx.es: Dear list, I have the following sample: \starttext {\asciimode It works in body%.}\footnote{But not in footnotes {\asciimode %}.} \stoptext I’m afraid \asciimode cannot be included within a footnote. Is this a bug or am

Re: [NTG-context] \setuplist[alternative=inmargin, sectionsegments=section]?

2014-02-19 Thread Wolfgang Schuster
Am 19.02.2014 um 20:14 schrieb Pablo Rodriguez oi...@gmx.es: On 02/19/2014 07:48 PM, Wolfgang Schuster wrote: Am 19.02.2014 um 19:02 schrieb Pablo Rodriguez: [...] My question is: how can I achieve \setuplist[chapter][alternative=inmargin] and Write your own list layout. Many thanks

Re: [NTG-context] Indenting after floating image

2014-02-19 Thread Jan Tosovsky
On 2014-02-19 Thangalin wrote: A work-around: \setupexternalfigures[location=default] \setupindenting[yes,medium] \define[1]\PlaceFigure{ \startplacefigure[number=no, location={page}, title={}] \externalfigure[#1] \stopplacefigure \\ \vskip-1em } \starttext \input{ward}

[NTG-context] Various setuptolerance settings within a single document

2014-02-19 Thread Jan Tosovsky
Dear All, I'd like to apply 'verystrict' tolerance as a default value, which would be overridden by less strict values in several specific paragraphs with tricky word combinations causing problems when hyphenating. But when \setuptolerance command is used multiple times, the last one seems to be

Re: [NTG-context] Various setuptolerance settings within a single document

2014-02-19 Thread Wolfgang Schuster
Am 19.02.2014 um 21:00 schrieb Jan Tosovsky j.tosov...@email.cz: Dear All, I'd like to apply 'verystrict' tolerance as a default value, which would be overridden by less strict values in several specific paragraphs with tricky word combinations causing problems when hyphenating. But

Re: [NTG-context] Various setuptolerance settings within a single document

2014-02-19 Thread Jan Tosovsky
On 2014-02-19 Wolfgang Schuster wrote: Am 19.02.2014 um 21:00 schrieb Jan Tosovsky j.tosov...@email.cz: I'd like to apply 'verystrict' tolerance as a default value, which would be overridden by less strict values When settings is wrapped by \start \stop commands, it seems to be

Re: [NTG-context] ConTeXt minimal on chromebook

2014-02-19 Thread John Kitzmiller
On Feb 17, 2014, at 5:51 PM, ntg-context-requ...@ntg.nl wrote: On Mon, Feb 17, 2014 at 9:23 PM, John Kitzmiller wrote: I attempted to put ConTeXt minimal on Samsung chromebook and got: Error: your system Linux armv7l is not supported yet. Please report to the ConTeXt mailing-list

Re: [NTG-context] \asciimode not working when in \footnote

2014-02-19 Thread Pablo Rodriguez
On 02/19/2014 08:24 PM, Wolfgang Schuster wrote: Am 19.02.2014 um 20:18 schrieb Pablo Rodriguez oi...@gmx.es: [...] I’m afraid \asciimode cannot be included within a footnote. Is this a bug or am I missing something? You have to enable ascii mode before you write the footnote. Many thanks

Re: [NTG-context] \setuplist[alternative=inmargin?

2014-02-19 Thread Pablo Rodriguez
On 02/19/2014 08:26 PM, Wolfgang Schuster wrote: Am 19.02.2014 um 20:14 schrieb Pablo Rodriguez: On 02/19/2014 07:48 PM, Wolfgang Schuster wrote: [...] Write your own list layout. I have no idea about how to do it. What should I start reading? Search for \definelistalternative or

Re: [NTG-context] Paragraph - the last line handling

2014-02-19 Thread Jan Tosovsky
On 2013-11-23 Hans Hagen wrote: On 11/23/2013 2:43 PM, Jan Tosovsky wrote: On 2013-11-23 Hans Hagen wrote: On 11/22/2013 11:07 PM, Jan Tosovsky wrote: in my document there are lot of cases when the last line in the paragraph has a very narrow gap on the right. \hsize 15.4cm

Re: [NTG-context] Indenting after floating image

2014-02-19 Thread Thangalin
Ah! I was going to suggest that, but thought you wanted a solution that didn't involve manual adjustments... I also thought I tried adding \indentation to the PlaceFigure macro, but it didn't work (probably because of it being embedded inside another set of braces).

Re: [NTG-context] Disappearing Columnar Text

2014-02-19 Thread Wolfgang Schuster
Am 19.02.2014 um 11:00 schrieb Thangalin thanga...@gmail.com: Hi, When using \startmixedcolumns[balance=yes,grid=strut], how would you put a 0.5em vertical space between a subtitle and a list of items? When you don’t enable the grid for your whole document with \setuplayout you can disable