Re: [NTG-context] simple bibliography and dots after section numbering

2010-05-11 Thread Hans Hagen
On 10-5-2010 9:00, Taco Hoekwater wrote: Rogutės Sparnuotos wrote: Taco Hoekwater (2010-05-09 08:15): Rogutės Sparnuotos wrote: But would it let me place such a list of publications: Books 1. Author (year). Title. 2. Author (year). Title. Internet resources 3. URL Movies 4. Author (year).

Re: [NTG-context] simple bibliography and dots after section numbering

2010-05-11 Thread Taco Hoekwater
Hans Hagen wrote: a more mkiv-ish approach is: As even I don't quite understand this: could you or someone else perhaps illuminate this code with explanations? It would make an interesting article/wiki page, I think. Best wishes, Taco \starttext % bibtex % entry tag=hagen:tb19-3-311

Re: [NTG-context] \hfill at the end of line

2010-05-11 Thread Jan Pohanka
Thanks, this works. (But it's a little bit tricky with hyphens) Dne Mon, 10 May 2010 21:51:58 +0200 Aditya Mahajan adit...@umich.edu napsal(a): On Mon, 10 May 2010, Honza Pohanka wrote: Hello, I'd like add a word at the end of the last line of the paragraph. \hfill command works fine,

[NTG-context] how to compute the sum of numbers

2010-05-11 Thread Jan Pohanka
Hello, I'm preparing a simple template for exam tests. I have following commad. \question{3}{text text text} where firtst parametr stands for points. I'd like to compute the sum of points to be used as Total points: xx What is the correct approach to do that if I'm using MKII? greetings Jan

Re: [NTG-context] simple bibliography and dots after section numbering

2010-05-11 Thread Hans Hagen
On 11-5-2010 10:43, Taco Hoekwater wrote: Hans Hagen wrote: a more mkiv-ish approach is: As even I don't quite understand this: could you or someone else perhaps illuminate this code with explanations? It would make an interesting article/wiki page, I think. it's just the code from

Re: [NTG-context] how to compute the sum of numbers

2010-05-11 Thread Taco Hoekwater
Jan Pohanka wrote: Hello, I'm preparing a simple template for exam tests. I have following commad. \question{3}{text text text} \newcount\totalpoints \def\question#1#2{\global\advance\totalpoints #1\relax ... #2 ...} where firtst parametr stands for points. I'd like to compute the sum of

Re: [NTG-context] how to compute the sum of numbers

2010-05-11 Thread Jan Pohanka
Thank you, I have an additional question. Is it possible to have the sum available before the \question commands? I mean Total points: \the\totalpoints % or something like that \question{5}{text text} \question{3}{text text} \question{1}{text text} greetings, Jan Dne Tue, 11 May 2010

Re: [NTG-context] how to compute the sum of numbers

2010-05-11 Thread Taco Hoekwater
Jan Pohanka wrote: Thank you, I have an additional question. Is it possible to have the sum available before the \question commands? This is what I would do (but I suspect Wolfgang can come up with something cleaner): \def\startquestions {\newcount\totalpoints} \def\stopquestions

[NTG-context] sorting

2010-05-11 Thread Tomáš Pustelník
Hi, thanks for your previous answers, they helped me. But now I'm little lost in sorting (in registers -- index etc.). I know there is file sort-lan.mkii with sorting rules for czech language, but Context is not sorting by these rules (letter ch is not recognized). So, is there some way how to

[NTG-context] How to get randomly coloured text in metapost?

2010-05-11 Thread Marco
Hi, how to get random colours for text inside textext? Take a look at the following example (MKIV). \definecolor [static] [r=.9, g=.7, b=.8] \starttext \startuseMPgraphic {1} def col= (uniformdeviate(1),uniformdeviate(1),uniformdeviate(1)) enddef; % These dots have a random color for i=0

Re: [NTG-context] How to get randomly coloured text in metapost?

2010-05-11 Thread Alan BRASLAU
On Tuesday 11 May 2010 17:48:09 Marco wrote: Hi, how to get random colours for text inside textext? Take a look at the following example (MKIV). \definecolor [static] [r=.9, g=.7, b=.8] \starttext \startuseMPgraphic {1} def col=

[NTG-context] Removing last skip or insert negative space to captions of figures

2010-05-11 Thread Jaroslav Hajtmar
Hello, Inasmuch as I dont fix the problem with stoppers in MkIV (in MkII is OK) (settings \setupcaption[figure][stopper={*}] and \setuplist[figure][stopper={:}] isnt doesn't work), therefore I want be resolving it throught very beastly way: It is removing last skip (it is remove space after

Re: [NTG-context] How to get randomly coloured text in metapost?

2010-05-11 Thread Marco
Is it possible to get the metapost construct »withcolor« to work with text or do I have to take a different approach? I understood from a much earlier discussion with Hans that withcolor will not be made to work with text, whose color therefore has to be set with ConTeXt constructs. Thanks

Re: [NTG-context] Removing last skip or insert negative space to captions of figures

2010-05-11 Thread Hans Hagen
On 11-5-2010 7:38, Jaroslav Hajtmar wrote: Is there any way to removing last skip in Context (MkIV)?? \removeunwantedspaces - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061

[NTG-context] float problem

2010-05-11 Thread Peter Rolf
Hi, I have problems with a figure in a multicolumn layout (3 columns). The graphic is around two columns wide and the caption text should be displayed beside the graphic (one column wide). Sadly the figure is shifted to the right and the width of the caption is not considered (overwritten by

Re: [NTG-context] Removing last skip or insert negative space to captions of figures

2010-05-11 Thread Jaroslav Hajtmar
Hello Hans. Thanx for quickly respons, but \removeunwantedspaces unfortunately hasnt effect - last space from caption isnt remove. when I do: \placefigure{\removeunwantedspaces : Caption 1} {\externalfigure[figure1]} then result is: Figure 1: Caption 1 but I want get:

Re: [NTG-context] How to get randomly coloured text in metapost?

2010-05-11 Thread Hans Hagen
On 11-5-2010 7:38, Marco wrote: label(textext(\definecolor[my][r=\r,g=\r,b=\r]\color[my]{Test}), % (i*1cm,-3cm)); numeric r, g, b ; r := uniformdeviate 1 ; g := uniformdeviate 1 ; b := uniformdeviate 1 ; textext(\colored[r= r ,g= g ,b= b ]{Test}) etc

Re: [NTG-context] sorting

2010-05-11 Thread Hans Hagen
On 11-5-2010 5:31, Tomáš Pustelník wrote: Hi, thanks for your previous answers, they helped me. But now I'm little lost in sorting (in registers -- index etc.). I know there is file sort-lan.mkii with sorting rules for czech language, but Context is not sorting by these rules (letter ch is

Re: [NTG-context] Removing last skip or insert negative space to captions of figures

2010-05-11 Thread Peter Münster
On Tue, May 11 2010, Jaroslav Hajtmar wrote: \placefigure{$\!\!\!\!$:\quad Caption 1} {\externalfigure[figure1]} is result OK! BUT this method is terrible for me: Better method: \setupcaptions[distance=0pt] \starttext \placefigure{: Caption}{bla} \stoptext Cheers, Peter --

Re: [NTG-context] How to get randomly coloured text in metapost?

2010-05-11 Thread Marco
numeric r, g, b ; r := uniformdeviate 1 ; g := uniformdeviate 1 ; b := uniformdeviate 1 ; textext(\colored[r= r ,g= g ,b= b ]{Test}) Thanks for this snipped, Hans. It looks promising, but I get the following compile error: !mplib : mp terminal: \colored [r=

Re: [NTG-context] Removing last skip or insert negative space to captions of figures

2010-05-11 Thread Jaroslav Hajtmar
Thanx, it is well gracefull resolution - have not influence to content list of figures. Jaroslav Dne 11.5.2010 21:07, Peter Münster napsal(a): On Tue, May 11 2010, Jaroslav Hajtmar wrote: \placefigure{$\!\!\!\!$:\quad Caption 1} {\externalfigure[figure1]} is result OK!

Re: [NTG-context] How to get randomly coloured text in metapost?

2010-05-11 Thread Mojca Miklavec
On Tue, May 11, 2010 at 21:03, Marco wrote: numeric r, g, b ; r := uniformdeviate 1 ; g := uniformdeviate 1 ; b := uniformdeviate 1 ; textext(\colored[r= r ,g= g ,b= b ]{Test}) Thanks for this snipped, Hans. It looks promising, but I get the following compile error:    !mplib      

Re: [NTG-context] How to get randomly coloured text in metapost?

2010-05-11 Thread luigi scarso
On Tue, May 11, 2010 at 9:27 PM, Mojca Miklavec mojca.miklavec.li...@gmail.com wrote: On Tue, May 11, 2010 at 21:03, Marco wrote: numeric r, g, b ; r := uniformdeviate 1 ; g := uniformdeviate 1 ; b := uniformdeviate 1 ; textext(\colored[r= r ,g= g ,b= b ]{Test}) Thanks for this

Re: [NTG-context] How to get randomly coloured text in metapost?

2010-05-11 Thread Marco
You need to convert number to string first. Use decimal(r) instead of r. (But I didn't test.) Mojca Thanks, Mojca. Works like a charm now. Marco ___ If your question is of interest to others as well, please add

[NTG-context] Changing separator in BIBliography

2010-05-11 Thread Jaroslav Hajtmar
Hello, I am using Taco's bib module in mkiv and I use only note field in misc layout. Now I have problem with setting separator of keys. I want use it in czech language and therefore I want modify separator, but I dont know relevant option. When I use in source \cite[15, 16] (keys of