[NTG-context] colors for links

2023-10-12 Thread Pablo Rodriguez
Hi Hans, I have the following source, which tries to resemble three kinds of links: \setupinteraction[state=start, style=, focus=standard] \def\inone#1{% \start\setupinteraction[color=darkgreen]% \enabledirectives[references.border=darkgreen]% \goto{#1}[url(#1)]\stop}

Re: [NTG-context] colors and contours in luametafun

2022-06-23 Thread Hans Hagen via ntg-context
On 6/20/2022 6:29 PM, Jacob Kauffmann via ntg-context wrote: Dear list, Am 01.09.2021 um 09:54 schrieb Jacob Kauffmann via ntg-context : - color by value in lmt_surface We want to show a surface plot of a function where the color indicates the function value (instead, or in addition to a

Re: [NTG-context] colors and contours in luametafun

2022-06-20 Thread Jacob Kauffmann via ntg-context
Dear list, > Am 01.09.2021 um 09:54 schrieb Jacob Kauffmann via ntg-context > : > - color by value in lmt_surface > We want to show a surface plot of a function where the color indicates the > function value (instead, or in addition to a light source). > The easiest would be to have variable cf

[NTG-context] colors and contours in luametafun

2021-09-01 Thread Jacob Kauffmann via ntg-context
Dear list, I am a huge fan of the new metafun interface. Hans asked for luametafun requests, so here are a few. - color by value in lmt_surface We want to show a surface plot of a function where the color indicates the function value (instead, or in addition to a light source). The easiest

Re: [NTG-context] Colors in lmt_surface and luametafun

2020-04-17 Thread Hans Hagen
On 4/17/2020 3:33 PM, Otared Kavian wrote: Hi Hans, On page 36 of luametafun.pdf there is the following example of using lmt_surface: \startMPcode{doublefun} draw lmt_surface [ preamble = "local sin, cos = math.sin, math.cos", code = "sin(x*x) -

[NTG-context] Colors in lmt_surface and luametafun

2020-04-17 Thread Otared Kavian
Hi Hans, On page 36 of luametafun.pdf there is the following example of using lmt_surface: \startMPcode{doublefun} draw lmt_surface [ preamble = "local sin, cos = math.sin, math.cos", code = "sin(x*x) - cos(y*y)", color = "f, f/2, 1-f",

Re: [NTG-context] colors in MetaPost

2019-09-11 Thread Hans Hagen
On 9/11/2019 2:18 PM, Henning Hraban Ramm wrote: Am 2019-09-11 um 13:46 schrieb Henning Hraban Ramm : \definecolor[VerlaufVon][c=75,m=5,y=95,k=60] \definecolor[VerlaufNach][c=88,m=95,y=5,k=60] Of course I need values between 0 and 1. Sorry for the noise. I think I’m too tired... there is an

Re: [NTG-context] colors in MetaPost

2019-09-11 Thread Henning Hraban Ramm
Am 2019-09-11 um 13:46 schrieb Henning Hraban Ramm : > \definecolor[VerlaufVon][c=75,m=5,y=95,k=60] > \definecolor[VerlaufNach][c=88,m=95,y=5,k=60] Of course I need values between 0 and 1. Sorry for the noise. I think I’m too tired... Greetlings, Hraban --- https://www.fiee.net

[NTG-context] colors in MetaPost

2019-09-11 Thread Henning Hraban Ramm
Hi, I’m trying to get a linear shade in the background of my presentation. But it seems like MetaPost can’t handle my self-defined colors: \definecolor[VerlaufVon][c=75,m=5,y=95,k=60] \definecolor[VerlaufNach][c=88,m=95,y=5,k=60] \startuniqueMPgraphic{Verlauf} % old method, also doesn’t work %

[NTG-context] Colors not showing inside metapost after \showcolor

2016-07-23 Thread Bou Salim
I have texlive 2016 on windows OS, I use context mkiv. with context -- version I have: current version: 2016-05-17 ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist :

Re: [NTG-context] Colors not showing inside metapost after \showcolor

2016-07-23 Thread Hans Hagen
On 7/23/2016 9:35 AM, Schmitz Thomas A. wrote: On 23 Jul 2016, at 09:24, Bou Salim wrote: Hi I have this problem to show colors properly. I have defined color "myred", but after \showcolor command colors inside metapost can't be displayed. Your example shows the

Re: [NTG-context] Colors not showing inside metapost after \showcolor

2016-07-23 Thread Schmitz Thomas A.
> On 23 Jul 2016, at 09:24, Bou Salim wrote: > > Hi > I have this problem to show colors properly. I have defined color "myred", > but after \showcolor command colors inside metapost can't be displayed. Your example shows the correct colors here. Which version are

[NTG-context] Colors not showing inside metapost after \showcolor

2016-07-23 Thread Bou Salim
Hi I have this problem to show colors properly. I have defined color "myred", but after \showcolor command colors inside metapost can't be displayed. Thanks \starttext \definecolor[myred] [r=.8] \showcolor \startuseMPgraphic{test} fill fullcircle scaled 10mm withcolor \MPcolor{myred};

Re: [NTG-context] Colors: printing vs. on screen

2011-06-21 Thread Erik Margraf
Thanks! I'll go for the calibration and some trials in CMYK colors for printing. kind regards Erik 2011/6/19 Henning Hraban Ramm hra...@fiee.net Yes, because your monitor uses RGB and your printer uses CMYK. The conversion between thetwo is not too complicated, but actually getting the same

[NTG-context] Colors: printing vs. on screen

2011-06-19 Thread Erik Margraf
Dear List, I defined the following color for one of my documents: \definecolor[P][r=0.64,g=0.22,b=0.27] When I printed this document on a probably typical office laser printer (a Canon iRC), the colors didn't match. (not even close and I didn't like the printed color) This is probably no real

Re: [NTG-context] Colors: printing vs. on screen

2011-06-19 Thread Hans Hagen
On 19-6-2011 1:53, Erik Margraf wrote: Dear List, I defined the following color for one of my documents: \definecolor[P][r=0.64,g=0.22,b=0.27] When I printed this document on a probably typical office laser printer (a Canon iRC), the colors didn't match. (not even close and I didn't like

Re: [NTG-context] Colors: printing vs. on screen

2011-06-19 Thread Christoph Redecker
-- Are spot colors the thing to use to get a grip on these matters? No, because spot colors are used to extend the printable range by colors not available in cmyk. You might be able to show such a color on your monitor, but not print it. -- Is this generally only a matter of color

Re: [NTG-context] Colors: printing vs. on screen

2011-06-19 Thread Henning Hraban Ramm
Yes, because your monitor uses RGB and your printer uses CMYK. The conversion between thetwo is not too complicated, but actually getting the same output from the two is hard. RGB is an additive model, CMYK is subtractive (read about the different models, wikipedia will do). The color

Re: [NTG-context] colors for pretty-printing

2010-12-10 Thread Renaud AUBIN
I need to not redefine. Quoting Hans: maybe you should protect the color names as for instance redefining darkred might not be the intention In fact, I just need to find unique names for my colors to not overload the existing ones… Renaud I still don't understand. Where do you need to

Re: [NTG-context] colors for pretty-printing

2010-12-10 Thread Peter Münster
On Wed, Dec 08 2010, Renaud AUBIN wrote: In fact, I just need to find unique names for my colors to not overload the existing ones… \doifcolorelse{new funny color} {Error: funny color already exists!} {\definecolor[new funny color][...]} With \setupcolor[ema] or

Re: [NTG-context] colors for pretty-printing

2010-12-10 Thread Renaud AUBIN
Ok but then why did you define a specific color palet? local function color_init() color = 0 local def_colors = -- \setupcolor[ema] introduces new line... \\definecolor [darkred] [r=.545098] .. \\definecolor [orchid][r=.854902,g=.439216,b=.839216] ..

Re: [NTG-context] colors for pretty-printing

2010-12-10 Thread Peter Münster
On Fri, Dec 10 2010, Renaud AUBIN wrote: Ok but then why did you define a specific color palet? local function color_init() color = 0 local def_colors = -- \setupcolor[ema] introduces new line... The comment says it: \setupcolor[ema] introduces new line and that's annoying when you

Re: [NTG-context] colors for pretty-printing

2010-12-10 Thread Renaud AUBIN
Done and committed on http://gitorious.org/c-pretty-printer-module-for-context-mark-iv In your t-pretty-c.mkiv you can use \setupcolor[ema] without problems. ___ If your question is of interest to others as well,

[NTG-context] colors for pretty-printing (was: Re: pret-c.lua - v-c.lua)

2010-12-07 Thread Peter Münster
On Mon, Dec 06 2010, Renaud AUBIN wrote: Concerning the color abstraction patch, one needs just to overload Ccomment, Cpreproc, Cstring, Ctype, Ckeyword, Cname and Cfuncnbound to use custom color scheme. You don't need that. There is already a standard interface for color and style

Re: [NTG-context] colors for pretty-printing (was: Re: pret-c.lua - v-c.lua)

2010-12-07 Thread Aditya Mahajan
On Tue, 7 Dec 2010, Peter Münster wrote: On Mon, Dec 06 2010, Renaud AUBIN wrote: Concerning the color abstraction patch, one needs just to overload Ccomment, Cpreproc, Cstring, Ctype, Ckeyword, Cname and Cfuncnbound to use custom color scheme. You don't need that. There is already a

Re: [NTG-context] colors for pretty-printing

2010-12-07 Thread Hans Hagen
On 7-12-2010 2:29, Aditya Mahajan wrote: On Tue, 7 Dec 2010, Peter Münster wrote: On Mon, Dec 06 2010, Renaud AUBIN wrote: Concerning the color abstraction patch, one needs just to overload Ccomment, Cpreproc, Cstring, Ctype, Ckeyword, Cname and Cfuncnbound to use custom color scheme. You

Re: [NTG-context] colors for pretty-printing

2010-12-07 Thread Aditya Mahajan
On Tue, 7 Dec 2010, Hans Hagen wrote: On 7-12-2010 2:29, Aditya Mahajan wrote: On Tue, 7 Dec 2010, Peter Münster wrote: On Mon, Dec 06 2010, Renaud AUBIN wrote: Concerning the color abstraction patch, one needs just to overload Ccomment, Cpreproc, Cstring, Ctype, Ckeyword, Cname and

Re: [NTG-context] colors for pretty-printing

2010-12-07 Thread Hans Hagen
On 7-12-2010 6:57, Aditya Mahajan wrote: Thanks for the explanation. But, I am not too keen to write parsers on my own when I can easily borrow existing ones. sure, but a simple one can be: function myparser(str) .. call your prog do do something with str and return the result end But it

Re: [NTG-context] colors for pretty-printing

2010-12-07 Thread Renaud AUBIN
You don't need that. There is already a standard interface for color and style configuration. Example: \setupstartstop[CSnippetComment][color=blue] So you can simplify t-pretty-c.mkiv: \unprotect \setupcolor[ema] \definestartstop [CSnippetName] [\c!color=darkgoldenrod,

Re: [NTG-context] colors for pretty-printing

2010-12-07 Thread Peter Münster
On Tue, Dec 07 2010, Renaud AUBIN wrote: So you can simplify t-pretty-c.mkiv: \unprotect \setupcolor[ema] \definestartstop [CSnippetName] [\c!color=darkgoldenrod, \c!style=] and so on... OK, but anyway, I have to protect the color names (to prevent

Re: [NTG-context] colors for pretty-printing

2010-12-07 Thread Aditya Mahajan
On Tue, Dec 7, 2010 at 2:30 PM, Hans Hagen pra...@wxs.nl wrote: On 7-12-2010 6:57, Aditya Mahajan wrote: Thanks for the explanation. But, I am not too keen to write parsers on my own when I can easily borrow existing ones. sure, but a simple one can be: function myparser(str)  .. call

Re: [NTG-context] colors without \definecolor

2010-02-08 Thread Mojca Miklavec
On Sun, Feb 7, 2010 at 22:56, Wolfgang Schuster wrote: Am 07.02.10 07:24, schrieb Aditya Mahajan: while \color can only be used as \color[rgb]{...}. No. Both \color[rgb]{...} and {\color[rgb]...} are valid D’oh. I looked in the source and missed this but I wonder if this had been always

Re: [NTG-context] colors without \definecolor

2010-02-08 Thread Hans Hagen
On 7-2-2010 22:56, Wolfgang Schuster wrote: Am 07.02.10 07:24, schrieb Aditya Mahajan: while \color can only be used as \color[rgb]{...}. No. Both \color[rgb]{...} and {\color[rgb]...} are valid D’oh. I looked in the source and missed this but I wonder if this had been always the case

Re: [NTG-context] colors without \definecolor

2010-02-08 Thread Wolfgang Schuster
Am 08.02.10 09:19, schrieb Mojca Miklavec: D’oh. I looked in the source and missed this but I wonder if this had been always the case because the manuals (and the wiki) mention only \color[name]{...}. \colored is a rather recent command. I meant the manuals and wiki mention

Re: [NTG-context] colors without \definecolor

2010-02-08 Thread Wolfgang Schuster
Am 08.02.10 09:40, schrieb Hans Hagen: D’oh. I looked in the source and missed this but I wonder if this had been always the case because the manuals {and the wiki) mention only \color[name]{...}. all commands that use \groupedcommand have that property But used \color always

Re: [NTG-context] colors without \definecolor

2010-02-08 Thread Hans Hagen
On 8-2-2010 9:55, Wolfgang Schuster wrote: Am 08.02.10 09:40, schrieb Hans Hagen: D’oh. I looked in the source and missed this but I wonder if this had been always the case because the manuals {and the wiki) mention only \color[name]{...}. all commands that use \groupedcommand have that

Re: [NTG-context] colors without \definecolor

2010-02-07 Thread Wolfgang Schuster
Am 07.02.10 07:24, schrieb Aditya Mahajan: while \color can only be used as \color[rgb]{...}. No. Both \color[rgb]{...} and {\color[rgb]...} are valid D’oh. I looked in the source and missed this but I wonder if this had been always the case because the manuals {and the wiki) mention only

Re: [NTG-context] colors without \definecolor

2010-02-06 Thread Aditya Mahajan
On Sat, 6 Feb 2010, Wolfgang Schuster wrote: Am 05.02.10 15:49, schrieb Philipp Gesang: Is there a difference (other than syntax) between \colored[rgb] and the according \definecolor[name][rgb] -- \color[name] commands? No, \colored is \definecolor + \color except you can use it in the form

Re: [NTG-context] colors without \definecolor

2010-02-05 Thread Philipp Gesang
Wolfgang, all, On 2010-02-05 08:31:35, Wolfgang Schuster wrote: \colored[r=...,g=...,b=...]{...} or {\colored[r=...,g=...,b=...]...} Thank you very much, I wikified it. Is there a difference (other than syntax) between \colored[rgb] and the according \definecolor[name][rgb] -- \color[name]

Re: [NTG-context] colors without \definecolor

2010-02-05 Thread Wolfgang Schuster
Am 05.02.10 15:49, schrieb Philipp Gesang: Is there a difference (other than syntax) between \colored[rgb] and the according \definecolor[name][rgb] -- \color[name] commands? No, \colored is \definecolor + \color except you can use it in the form \colored[rgb]{...} and {\colored[rgb]...}

[NTG-context] colors without \definecolor

2010-02-04 Thread Philipp Gesang
Hi all, I understand that in order to use a color with \color[somecolor]{colored text} I first have to \definecolor[somecolor][r=.4,g=0,b=1]. Currently I'm trying to do automated colorizing with the help of some lua code and I'd like to make up rgb vectors on the spot without having to

Re: [NTG-context] colors without \definecolor

2010-02-04 Thread Wolfgang Schuster
Am 04.02.10 21:41, schrieb Philipp Gesang: Hi all, I understand that in order to use a color with \color[somecolor]{colored text} I first have to \definecolor[somecolor][r=.4,g=0,b=1]. Currently I'm trying to do automated colorizing with the help of some lua code and I'd like to make up rgb

[NTG-context] colors in mkiv

2009-04-12 Thread Wolfgang Schuster
Hi, does it make any sense to disable colors by default in mkiv? Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl /

Re: [NTG-context] colors in mkiv

2009-04-12 Thread Wolfgang Schuster
Am 12.04.2009 um 12:55 schrieb Hans Hagen: Wolfgang Schuster wrote: Hi, does it make any sense to disable colors by default in mkiv? you mean: enabled by default? Yes. Wolfgang ___ If your question is of

Re: [NTG-context] colors in mkiv

2009-04-12 Thread Hans Hagen
Wolfgang Schuster wrote: Hi, does it make any sense to disable colors by default in mkiv? you mean: enabled by default? - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH

Re: [NTG-context] colors in mkiv

2009-04-12 Thread Hans Hagen
Wolfgang Schuster wrote: Am 12.04.2009 um 12:55 schrieb Hans Hagen: Wolfgang Schuster wrote: Hi, does it make any sense to disable colors by default in mkiv? you mean: enabled by default? Yes. no problem for me (as i always eneble color) .. so if there are no big complaints on the

Re: [NTG-context] colors in mkiv

2009-04-12 Thread Hans van der Meer
I would like to support the idea of enabling colors by default. Not in the least because I always tend to forget it at first. And if it doesn't really slow the system down, there seems no reason not to enable by default. Hans van der Meer On 12 apr 2009, at 14:43, Hans Hagen wrote:

Re: [NTG-context] Colors

2009-03-31 Thread Lutz Haseloff
Hi Taco, hi Hans, Thank you very much, it works fine again. Greetings Lutz 2009/3/30 Hans Hagen pra...@wxs.nl Lutz Haseloff wrote: Hi all, with the latest ConTeXt ver: 2009.03.29 13:28 MKIV and LuaTeX, Version snapshot-0.37.0-2009032922 I can't get colored text:

Re: [NTG-context] Colors

2009-03-30 Thread Hans Hagen
Lutz Haseloff wrote: Hi all, with the latest ConTeXt ver: 2009.03.29 13:28 MKIV and LuaTeX, Version snapshot-0.37.0-2009032922 I can't get colored text: \setupcolors[state=start] \setuppagenumbering[state=stop] \starttext {\red red} {\green this is typeset in green} {\middlemagenta this is

Re: [NTG-context] Colors

2009-03-30 Thread Taco Hoekwater
Hans Hagen wrote: Lutz Haseloff wrote: Hi all, with the latest ConTeXt ver: 2009.03.29 13:28 MKIV and LuaTeX, Version snapshot-0.37.0-2009032922 I can't get colored text: could be related to the new binary ... we're looking into it Yes, that was totally my fault. The current trunk

Re: [NTG-context] Colors

2009-03-30 Thread Hans Hagen
Lutz Haseloff wrote: Hi all, with the latest ConTeXt ver: 2009.03.29 13:28 MKIV and LuaTeX, Version snapshot-0.37.0-2009032922 I can't get colored text: \setupcolors[state=start] \setuppagenumbering[state=stop] \starttext {\red red} {\green this is typeset in green} {\middlemagenta this is

[NTG-context] Colors

2009-03-29 Thread Lutz Haseloff
Hi all, with the latest ConTeXt ver: 2009.03.29 13:28 MKIV and LuaTeX, Version snapshot-0.37.0-2009032922 I can't get colored text: \setupcolors[state=start] \setuppagenumbering[state=stop] \starttext {\red red} {\green this is typeset in green} {\middlemagenta this is typeset in dark

[NTG-context] colors questions

2008-09-08 Thread Alan Stone
Source: texshow (1) \setupinteraction color name contrastcolor name How do you set the setupinteraction contrastcolor background color ? (2) \defineinteractionmenu, \setupinteractionmenu, \interactionbuttons color name background screen color

Re: [NTG-context] colors questions

2008-09-08 Thread Alan Stone
Thanks Hans. Still about setupinteraction's contrastcolor. In an interactionmenu, how do you maintain an item's color to contrastcolor when the corresponding section spans over more than one screen/page ? It switches back to color after the first screen/page. On Mon, Sep 8, 2008 at 11:30 AM,

Re: [NTG-context] colors questions

2008-09-08 Thread Hans Hagen
Alan Stone wrote: Thanks Hans. Still about setupinteraction's contrastcolor. In an interactionmenu, how do you maintain an item's color to contrastcolor when the corresponding section spans over more than one screen/page ? It switches back to color after the first screen/page. indeed,

Re: [NTG-context] colors questions

2008-09-08 Thread Alan Stone
indeed, just a compare of the reference page with the current page; no spans That's a feature request then. Samewise for interaction buttons. Thanks, Alan On Mon, Sep 8, 2008 at 1:37 PM, Hans Hagen [EMAIL PROTECTED] wrote: Alan Stone wrote: Thanks Hans. Still about setupinteraction's

Re: [NTG-context] colors questions

2008-09-08 Thread Hans Hagen
Alan Stone wrote: Source: texshow (1) \setupinteraction color name contrastcolor name How do you set the setupinteraction contrastcolor background color ? hm, there is no interactionbackgroundcolor (maybe some day in mkiv when i've redone hyperlinks) (2)

Re: [NTG-context] colors in pgf within context

2008-02-19 Thread Alan BRASLAU
Hello, Another problem with PGF+ConTeXt is the handling of cmyk colors: \usemodule[tikz] \setupcolors[state=start] \definecolor[my_yellow][c=0,m=0.3,y=0.94,k=0] \starttext \startcolor[my_yellow] Yellow text. \stopcolor \starttikzpicture \fill[my_yellow] (0,0) circle(1); \stoptikzpicture

Re: [NTG-context] colors in pgf within context

2008-02-19 Thread Hans Hagen
Jesse Alama wrote: Hi Aditya, Thanks for the help -- I think I now see why there is such trouble with colors in pgf and context. It looks like one can systematically transform LaTeX-like PGF examples of \color into ConTeXt examples. keep in mind that color handles sveral grouping cases:

Re: [NTG-context] colors in pgf within context

2008-02-19 Thread Jesse Alama
Aditya Mahajan [EMAIL PROTECTED] writes: The example features some \definecolor's which I just did away with (sadly) by simply substituting their defining values for their occurences. (This is unfortunate, but perhaps necessary until some other mechanism is produced.) The problem is that

Re: [NTG-context] colors in pgf within context

2008-02-18 Thread Jesse Alama
Hi Aditya, Thanks for the help -- I think I now see why there is such trouble with colors in pgf and context. It looks like one can systematically transform LaTeX-like PGF examples of \color into ConTeXt examples. The reason why this came up is that I'm trying to go through Till Tantau's

[NTG-context] colors in luatex

2007-09-25 Thread Thomas A. Schmitz
Hi, this minimal example compiles fine in mkii: \setupcolors[state=start] \starttext \starttabulate \startcolor[red] \NC One \NC A \NC \NR \NC Two \NC B \NC \NR \stopcolor \NC Three \NC C \NC \NR \stoptabulate \stoptext With mkiv, I get this error: ! Missing \endgroup inserted. inserted

Re: [NTG-context] colors in luatex

2007-09-25 Thread Hans Hagen
Thomas A. Schmitz wrote: Hi, this minimal example compiles fine in mkii: \setupcolors[state=start] \starttext \starttabulate \startcolor[red] \NC One \NC A \NC \NR \NC Two \NC B \NC \NR \stopcolor \NC Three \NC C \NC \NR \stoptabulate \stoptext well, with mkii you're just

[NTG-context] Colors and images Context

2006-03-16 Thread luigi scarso
2 questions for colors 1) Does ConTeXt offer complete color gestion as pdf spec 1.6 or there are some features not implemented ? 2) Preparing a pdf with bitmap colored images for offset press (ie covers for manuals): are png or jpeg an optimal solution or tiff is better ? RGB or CMYK ? Thanks

Re: [NTG-context] Colors and images Context

2006-03-16 Thread Hans Hagen
luigi scarso wrote: 2 questions for colors 1) Does ConTeXt offer complete color gestion as pdf spec 1.6 or there are some features not implemented ? what do you need ... process- and spotcolors are implemented, as are duotones; transparency has been around for years now. 2) Preparing a

Re: [NTG-context] Colors and images Context

2006-03-16 Thread luigi scarso
normally an unscaled cmyk jpeg of medium compression quality is ok (a 24 meg tiff graphic is not per definition better than a 4 meg jpeg image) Hans Thanks Also in pdftex mailing list, thread Best bitmap image format? ___ ntg-context mailing list

[NTG-context] colors in MPgraphic

2006-01-06 Thread Hans van der Meer
In MPgrapic I do want my own colors for drawing lines etc. These are set up in plain.mf's (_op_ and background). In \startMPinclusions I just do that in order to get the drawing color I want. But then \startMPgraphic appears to reset colors (both _op_ and background I suspect). Can this be

Re: [NTG-context] colors in MPgraphic

2006-01-06 Thread Mojca Miklavec
Question: what tinkering with metapost parameters is done in \startMPgraphic exactly? (I could not find out readily from the ConTeXt sources) Which of these can be removed without danger for its operation, leaving settings in \startMPinclusions unchanged -- and will that be done? Hans will

Re: [NTG-context] colors in MPgraphic

2006-01-06 Thread Hans Hagen
Mojca Miklavec wrote: Question: what tinkering with metapost parameters is done in \startMPgraphic exactly? (I could not find out readily from the ConTeXt sources) Which of these can be removed without danger for its operation, leaving settings in \startMPinclusions unchanged -- and will that

Re: [NTG-context] colors in MPgraphic

2006-01-06 Thread Taco Hoekwater
Hans van der Meer wrote: In MPgrapic I do want my own colors for drawing lines etc. These are set up in plain.mf's (_op_ and background). In \startMPinclusions I just do that in order to get the drawing color I want. But then \startMPgraphic appears to reset colors (both _op_ and

Re: [NTG-context] colors in MPgraphic

2006-01-06 Thread Hans Hagen
Taco Hoekwater wrote: Hans van der Meer wrote: In MPgrapic I do want my own colors for drawing lines etc. These are set up in plain.mf's (_op_ and background). In \startMPinclusions I just do that in order to get the drawing color I want. But then \startMPgraphic appears to reset colors

Re: [NTG-context] colors in MPgraphic

2006-01-06 Thread Hans van der Meer
On Jan 6, 2006, at 15:19, Taco Hoekwater wrote: There almost certainly is an 'official' way to add some statements to the beginning of each figure, but, in any case, it works if you store your settings in extra_beginfig: \startMPinclusions extra_beginfig := drawoptions(withcolor green);

Re: [NTG-context] colors in MPgraphic

2006-01-06 Thread Hans van der Meer
On Jan 6, 2006, at 18:56, Hans Hagen wrote: There almost certainly is an 'official' way to add some statements to the beginning of each figure, but, in any case, it works if you store your settings in extra_beginfig: \startMPinclusions extra_beginfig := drawoptions(withcolor green);

Re: [NTG-context] colors in MPgraphic

2006-01-06 Thread Hans Hagen
Hans van der Meer wrote: I am not sure about the exact syntax of that append. Is there a special macro in the context/metafun package or is it extra_beginfig := extra_beginfigdrawoptions(withcolor green);? that's indeed an append (or actually a concat) Hans

[NTG-context] colors in metafont

2005-12-24 Thread Hans van der Meer
Normally metapost/metafun starts out drawing in black. Is it possible to change this globally, so that withcolor xyz is not needed everytime another color is wanted? Also is it possible to get/save/restore the current drawing color (a la savepen) in metapost/metafun? I searched through

Re: [NTG-context] colors in metafont

2005-12-24 Thread Taco Hoekwater
Hans van der Meer wrote: Normally metapost/metafun starts out drawing in black. Is it possible to change this globally, so that withcolor xyz is not needed everytime another color is wanted? Also is it possible to get/save/restore the current drawing color (a la savepen) in

[NTG-context] Colors changing when applying transparent

2003-11-25 Thread Willi Egger
Hi, I would like to use transparnt colors in one of the documents. However the resulting color is different with transparent color. Could anyone try the following code twice setting the %-sign in front of the fill-statement: \setupoutput[pdftex] \starttext \setupcolors[state=start]

Re: [NTG-context] Colors changing when applying transparent

2003-11-25 Thread Hans Hagen
At 09:20 25/11/2003, you wrote: \setupoutput[pdftex] \starttext \setupcolors[state=start] \startuseMPgraphic{tBG} path p ; p := unitsquare xscaled \overlaywidth yscaled \overlayheight ; fill p withcolor \MPcolor{white}; % With normal colors, everything is fine (blue is

Re: [NTG-context] Colors changing when applying transparent

2003-11-25 Thread Willi Egger
Hi Hans, Indeed now I tried in Acrobat5 and the problem does not show up. There is probably another bug to be reported: I got a file, where with \startcombination ... \stopcombination two small pictures are placed next to each other. - When viewing the result in Acrobat6 everything looks ok.

Re: [NTG-context] Colors changing when applying transparent

2003-11-25 Thread Hans Hagen
At 12:46 25/11/2003, you wrote: Indeed now I tried in Acrobat5 and the problem does not show up. There is probably another bug to be reported: I got a file, where with \startcombination ... \stopcombination two small pictures are placed next to each other. - When viewing the result in

Re: [NTG-context] Colors changing when applying transparent

2003-11-25 Thread Willi Egger
Hoi Hans, Bedankt voor de link Het ziet er steeds gelikter uit. Op pagina 156 staat Haas'sche Schriftgiesserei Het apostroofje is vervangen door een kapitaal S-caron. - Dit is nogal raar omdat er op verschillende andere plekken in dit deel van het boek apostroven gebruikt worden. ?? Op