[NTG-context] URLs: interaction, color/style, hyphenation (was: Re: Argument of \doswitchtotypeface has an extra })
On Thu, 11 Jun 2009, Wolfgang Schuster wrote: Am 11.06.2009 um 10:08 schrieb Peter Münster: Or is there perhaps another command (for example \fromURL{}) that does just this: \useURL[dummy][http://my-url/]\from[dummy]; Perhaps with alternative optional argument: \fromURL[#1]{#2} = \useURL[dummy][#2][][#1]\from[dummy] Hans gave *you* a while ago this solution: \goto{...}[url(...)] Indeed, I suppose you mean http://archive.contextgarden.net/message/20090504.084528.4e8ad6f9.en.html I did not need this solution, because 1.) my little helper-macro \def\gotoURL{\dosingleempty\dogotoURL} \def\dogotoURL[#1]#2{\iffirstargument\useURL[dummyRefUseURL][#2][][#1]\else \useURL[dummyRefUseURL][#2]\fi\from[dummyRefUseURL]} worked just fine 2.) \goto{...}[url(...)] does not break URLs But now I see, that even \from[...] does not breaks URLs neither... It seems, the only way to get hyphenated url is without interaction. Here a general test-file with all possibilities to print URLs, that I'm aware of: \setupinteraction[state=start] \useURL[myURL][http://url.com/index.html] \starttext \hsize1pt % hyphen introduced in url, no special color/style: \from[myURL] % same as \from, but \tt style: \url[myURL] % hyphenated without hyphens but no color/style/interaction: \hyphenatedurl{http://url.com/index.html} % interaction and color, but not hyphenated: \goto{http://url.com/index.html}[url(http://url.com/index.html)] \stoptext The best would be, to have a command that: - makes interactive links like \from[] - uses \tt style like \url[] - breaks URLs like \hyphenatedurl{} - uses color like \goto{}[] Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/ ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ppchtex color
Alan BRASLAU wrote: i split ppchtex in mkii/mkiv (and included the fixes) so we can improve things eventually can you check if it still runs ok (beta zip on website) Hans Works correctly (bonds in red, atoms in black): \usemodule[chemic] \setupchemical[rulecolor=red] \starttext \startchemical \chemical[ONE,SB,Z0][C] \stopchemical \stoptext However, the following variant does not work. \usemodule[chemic] \starttext \startchemical[rulecolor=red] \chemical[ONE,SB,Z0][C] \stopchemical \stoptext I don't understand, as my (quick) look at the source code indicates that the parameters should be handled identically. no, that was actually the problem ... local vs global ... for the moment set it up local (per formula) as i need to make an inheritance chain now that i've split in mkii/mkiv that's easier since we no longer have to keep things working in latex (which means that we can use more core helper code) just remind me occasionally Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ppchtex color
On Wednesday 13 May 2009 10:33:18 Hans Hagen wrote: Alan BRASLAU wrote: Works correctly (bonds in red, atoms in black): \usemodule[chemic] \setupchemical[rulecolor=red] \starttext \startchemical \chemical[ONE,SB,Z0][C] \stopchemical \stoptext However, the following variant does not work. \usemodule[chemic] \starttext \startchemical[rulecolor=red] \chemical[ONE,SB,Z0][C] \stopchemical \stoptext I don't understand, as my (quick) look at the source code indicates that the parameters should be handled identically. no, that was actually the problem ... local vs global ... for the moment set it up local (per formula) as i need to make an inheritance chain now that i've split in mkii/mkiv that's easier since we no longer have to keep things working in latex (which means that we can use more core helper code) just remind me occasionally OK. The following extension would also be useful: \usemodule[chemic] \starttext \startchemical \chemical[SIX,B,rulecolor=red,AU][] \stopchemical \stoptext ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ppchtex color
Alan BRASLAU wrote: On Wednesday 13 May 2009 10:33:18 Hans Hagen wrote: Alan BRASLAU wrote: Works correctly (bonds in red, atoms in black): \usemodule[chemic] \setupchemical[rulecolor=red] \starttext \startchemical \chemical[ONE,SB,Z0][C] \stopchemical \stoptext However, the following variant does not work. \usemodule[chemic] \starttext \startchemical[rulecolor=red] \chemical[ONE,SB,Z0][C] \stopchemical \stoptext I don't understand, as my (quick) look at the source code indicates that the parameters should be handled identically. no, that was actually the problem ... local vs global ... for the moment set it up local (per formula) as i need to make an inheritance chain now that i've split in mkii/mkiv that's easier since we no longer have to keep things working in latex (which means that we can use more core helper code) just remind me occasionally OK. The following extension would also be useful: \usemodule[chemic] \starttext \startchemical \chemical[SIX,B,rulecolor=red,AU][] \stopchemical \stoptext in mkiv syntax that is: \defineprocessor[chemred][color=red] \startchemical \chemical[SIX,SB,C135,R,Z][chemred-A,chemred-C,chemred-C] \stopchemical we can rewrite ppchtex a bit but it depends on how much time you want to spend on filling in the holes that i will create (i can make the framework) - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] ppchtex color
No, ppchtex is not dead... I would like to use color. 1. color= and rulecolor= does not appear to be implemented (mkiv)... 2. how can one change the color of the bonds? 3. using \color[red]{} causes the text to be offset. minimal example: \setupcolors[state=start] \usemodule[chemic] \starttext \startchemical \chemical[ONE,SB,Z0][C] \stopchemical \startchemical \color[red]{\chemical[ONE,SB,Z0][C]} \stopchemical % text C is offset... \startchemical \chemical[ONE,SB,Z0][{\red C}] \stopchemical % OK, but I would like to draw the bonds as well in red. \startchemical[color=red] \chemical[ONE,SB,Z0][C] \stopchemical % C is red in mkii, black in mkiv \startchemical[rulecolor=red] \chemical[ONE,SB,Z0][C] \stopchemical % bonds are black, C is red in mkii, black in mkiv \stoptext ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] color
Hi, just a note ... mkiv now defaults to color as nobody objected wolfgangs (if i remember right) request Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ppchtex color
Alan BRASLAU wrote: \startchemical \color[red]{\chemical[ONE,SB,Z0][C]} \stopchemical % text C is offset... add a % after the } (maybe we should ignore endofline, i.e. make a mkiv variant and extend/maintain that) - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ppchtex color
Alan BRASLAU wrote: No, ppchtex is not dead... I would like to use color. 1. color= and rulecolor= does not appear to be implemented (mkiv)... 2. how can one change the color of the bonds? 3. using \color[red]{} causes the text to be offset. minimal example: \setupcolors[state=start] \usemodule[chemic] \starttext \startchemical \chemical[ONE,SB,Z0][C] \stopchemical \startchemical \color[red]{\chemical[ONE,SB,Z0][C]} \stopchemical % text C is offset... \startchemical \chemical[ONE,SB,Z0][{\red C}] \stopchemical % OK, but I would like to draw the bonds as well in red. \startchemical[color=red] \chemical[ONE,SB,Z0][C] \stopchemical % C is red in mkii, black in mkiv has to do with different color mechanism .. path line 1171: \setbox2=\hbox{\@@dochemicalcolor$\@@dochemicalstyle{\@@localchemicalformat \chemicaltext}$}% \startchemical[rulecolor=red] \chemical[ONE,SB,Z0][C] \stopchemical % bonds are black, C is red in mkii, black in mkiv \stoptext ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ppchtex color
Alan BRASLAU wrote: No, ppchtex is not dead... I would like to use color. 1. color= and rulecolor= does not appear to be implemented (mkiv)... 2. how can one change the color of the bonds? 3. using \color[red]{} causes the text to be offset. minimal example: \setupcolors[state=start] \usemodule[chemic] \starttext \startchemical \chemical[ONE,SB,Z0][C] \stopchemical \startchemical \color[red]{\chemical[ONE,SB,Z0][C]} \stopchemical % text C is offset... \startchemical \chemical[ONE,SB,Z0][{\red C}] \stopchemical % OK, but I would like to draw the bonds as well in red. \startchemical[color=red] \chemical[ONE,SB,Z0][C] \stopchemical % C is red in mkii, black in mkiv \startchemical[rulecolor=red] \chemical[ONE,SB,Z0][C] \stopchemical setting happened at the outer level (ok, that's broken now but we can fix that later); so now, each formula must have the settings; when i have time i'll make a mkiv variant so that we can upgrade (i don't want interference with mkii since that version is also used in latex and we don't need to upgrade that) \def\setchemicalattributes {\scratchdimen\@@chemicalrulethickness \def\chemicalattributes {withpen pencircle scaled \the\scratchdimen\space withcolor }% \doifelsenothing\@@chemicalrulecolor {\edef\chemicalattributes{\chemicalattributes black}} {\edef\chemicalattributes{\chemicalattributes \MPcolor{\@@chemicalrulecolor}}}% \startMPdrawing drawoptions (\chemicalattributes) ; \stopMPdrawing} - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ppchtex color
Alan BRASLAU wrote: No, ppchtex is not dead... i split ppchtex in mkii/mkiv (and included the fixes) so we can improve things eventually can you check if it still runs ok (beta zip on website) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ppchtex color
i split ppchtex in mkii/mkiv (and included the fixes) so we can improve things eventually can you check if it still runs ok (beta zip on website) Hans Unzipped cont-tmf.zip on top of my minimals installation and ran context on my current working documents: system : module chemic loaded (/usr/local/context.new/tex/texmf-context/tex/context/base/m-chemic.tex (/usr/local/context.new/tex/texmf-context/tex/context/base/m-chemic.mkiv system : module pictex loaded (/usr/local/context.new/tex/texmf-context/tex/context/base/m-pictex.tex (/usr/local/context.new/tex/texmf-context/tex/context/base/thrd-pic.tex warning : \dimen \linethickness is already defined (\relax it first) )) (/usr/local/context.new/tex/texmf-context/tex/context/base/ppchtex.mkiv ppchtex : using PiCTeX and MetaPost ))) It appears to work as before... (I will now look into your color suggestions.) Alan ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ppchtex color
i split ppchtex in mkii/mkiv (and included the fixes) so we can improve things eventually can you check if it still runs ok (beta zip on website) Hans Works correctly (bonds in red, atoms in black): \usemodule[chemic] \setupchemical[rulecolor=red] \starttext \startchemical \chemical[ONE,SB,Z0][C] \stopchemical \stoptext However, the following variant does not work. \usemodule[chemic] \starttext \startchemical[rulecolor=red] \chemical[ONE,SB,Z0][C] \stopchemical \stoptext I don't understand, as my (quick) look at the source code indicates that the parameters should be handled identically. Alan ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ppchtex color
Alan BRASLAU wrote: i split ppchtex in mkii/mkiv (and included the fixes) so we can improve things eventually can you check if it still runs ok (beta zip on website) Hans Unzipped cont-tmf.zip on top of my minimals installation and ran context on my current working documents: system : module chemic loaded (/usr/local/context.new/tex/texmf-context/tex/context/base/m-chemic.tex (/usr/local/context.new/tex/texmf-context/tex/context/base/m-chemic.mkiv system : module pictex loaded (/usr/local/context.new/tex/texmf-context/tex/context/base/m-pictex.tex (/usr/local/context.new/tex/texmf-context/tex/context/base/thrd-pic.tex warning : \dimen \linethickness is already defined (\relax it first) )) (/usr/local/context.new/tex/texmf-context/tex/context/base/ppchtex.mkiv ppchtex : using PiCTeX and MetaPost ))) It appears to work as before... (I will now look into your color suggestions.) color should work ok (that is: color=red, and rulecolor=red) - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] overprint color setting not working
Hi, dear all, This small test file will go wrong under the newest beta, which I updated a hour ago. Here is the file. \setupcolors[state=start,overprint=yes] \starttext test file test file. \stoptext Is overprint function abondoned? Fengnan ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Page background color. Does not cover the entire page.
2009/4/17 Curiouslearn curiousle...@gmail.com: Hi, I created the attached PDF file using ConTeXt. As you can see I have a green background, which covers the whole page. However, when I took it to the printer today and he printed two copies for me, there was some white space left at four ends. The amount of space above, below, to the left and to the right was different. Here is my preamble. Can you suggest what I can do so that the whole page has the chosen green background color. Thanks very much. Hi, Curiouslearn, Generally speaking, many printers can't print a page without white spaces about 3mm unless you have a marginless printer. -- Best wishes, Li Yanrui * Gentoo Linux (~x86) * ConTeXt Minimals Beta (2009.04.16 15:20) ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Page background color. Does not cover the entire page.
Curiouslearn wrote: Hi, I created the attached PDF file using ConTeXt. As you can see I have a green background, which covers the whole page. However, when I took it to the printer today and he printed two copies for me, there was some white space left at four ends. The amount of space above, below, to the left and to the right was different. Here is my preamble. Can you suggest what I can do so that the whole page has the chosen green background color. -- print on larger paper and cut off the edges -- make your layout a bit smaller and cut off the edges only professional print will print to the edge and even then ... (normally you will use oversized paper and bleeding) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Page background color. Does not cover the entire page.
Hans Hagen pra...@wxs.nl writes: Curiouslearn wrote: Hi, I created the attached PDF file using ConTeXt. As you can see I have a green background, which covers the whole page. However, when I took it to the printer today and he printed two copies for me, there was some white space left at four ends. The amount of space above, below, to the left and to the right was different. Here is my preamble. Can you suggest what I can do so that the whole page has the chosen green background color. -- print on larger paper and cut off the edges -- make your layout a bit smaller and cut off the edges Or -- get them to print it on light green paper? :) -- John Devereux ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Page background color. Does not cover the entire page.
Wow! Thanks for the reply. It is interesting the kind of things when using Context or for that matter any typesetting system. I thought I chose the letter size for my layout and I am printing it on a letter size paper. Also, the PDF shows green everywhere. Hence, getting the color on whole page should be easy. From your responses, it seems it is not possible because of the way printers are designed. On Fri, Apr 17, 2009 at 7:22 AM, John Devereux j...@devereux.me.uk wrote: Hans Hagen pra...@wxs.nl writes: Curiouslearn wrote: Hi, I created the attached PDF file using ConTeXt. As you can see I have a green background, which covers the whole page. However, when I took it to the printer today and he printed two copies for me, there was some white space left at four ends. The amount of space above, below, to the left and to the right was different. Here is my preamble. Can you suggest what I can do so that the whole page has the chosen green background color. -- print on larger paper and cut off the edges -- make your layout a bit smaller and cut off the edges Or -- get them to print it on light green paper? :) -- John Devereux ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] ConTeXt color=red!40!yellow
Hello, I might be dreaming already, but on last Tuesday (I don't know which version though) this code kept generating orange balls in ConTeXt MKII: \shade[ball color=red!40!yellow] (0,0) circle (.15cm); Now I get a black one. Has anything with respect to color handling mechanisms changed in ConTeXt MKII or TikZ recently? ConTeXt MKIV properly generates an orange ball (usually only mkiv fails, so I'm a bit confused now :). I'm using ConTeXt 2009.03.30 18:28 and TikZ 2009-04-03. Thanks, Mojca --- \usemodule[tikz] \setupcolors[state=start] \starttext \tikz\shade[ball color=red!40!yellow] (0,0) circle (.15cm); \stoptext ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] MP color and interaction (alpha)
Peter Rolf wrote: Hi, seems that color support is also broken in case of interaction. I get no red frame for the attached example. solved - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] MP color and interaction (alpha)
Hi, seems that color support is also broken in case of interaction. I get no red frame for the attached example. Best wishes, Peter \setupcolors[state=start] \setupinteraction[state=start] \starttext \definesymbol[no][] \definefield[check-me][check][setup3][yes,no][no] \setupfield[setup3][n=1024,width=2cm,height=2cm,rulethickness=3pt,corner=round,framecolor=red] \field[check-me] \stoptext ia.pdf Description: Adobe PDF document ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] color test not working
Alan STONE wrote: On Sat, Sep 13, 2008 at 10:04 PM, Alan Stone [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi, \setupcolors[state=start] \setupcolor[rgb] \setupcolor[xwi] \setupcolor[ema] \starttext \midaligned{\tfb \bf RGB colors} \blank[3*big] \showcolor[rgb] \page \midaligned{\tfb \bf XWI colors} \blank[3*big] \showcolor[xwi] \page \midaligned{\tfb \bf EMA colors} \blank[3*big] \showcolor[ema] \stoptext FYI, this currently doesn't work under Windows XP with ConTeXt ver: 2008.11.10 21:40 MKIV fmt: 2008.11.21 int: english/english Output in attachement. ok, fixed; will be in end-of-december release - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] color test not working
On Sat, Nov 22, 2008 at 1:06 PM, Hans Hagen [EMAIL PROTECTED] wrote: ok, fixed; will be in end-of-december release End of *december* ? Best, Alan ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] color test not working
On Sat, Sep 13, 2008 at 10:04 PM, Alan Stone [EMAIL PROTECTED]wrote: Hi, \setupcolors[state=start] \setupcolor[rgb] \setupcolor[xwi] \setupcolor[ema] \starttext \midaligned{\tfb \bf RGB colors} \blank[3*big] \showcolor[rgb] \page \midaligned{\tfb \bf XWI colors} \blank[3*big] \showcolor[xwi] \page \midaligned{\tfb \bf EMA colors} \blank[3*big] \showcolor[ema] \stoptext FYI, this currently doesn't work under Windows XP with ConTeXt ver: 2008.11.10 21:40 MKIV fmt: 2008.11.21 int: english/english Output in attachement. By the way, I installed the latest context-setup-mswin.zip18-Nov-2008 18:06 3.1M and (see above) it says 2008.11.10 -- Best, Alan colortest.pdf Description: Adobe PDF document ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] color test not working
On Fri, Nov 21, 2008 at 1:02 PM, Alan STONE [EMAIL PROTECTED]wrote: FYI, this currently doesn't work under Windows XP with ConTeXt ver: 2008.11.10 21:40 MKIV fmt: 2008.11.21 int: english/english Output in attachement. By the way, I installed the latest context-setup-mswin.zip18-Nov-2008 18:06 3.1M and (see above) it says 2008.11.10 Same under Linux. -- Best, Alan * TeX engine = LuaTeX *ConTeXt minimals ver: 2008.11.10 21:40 MKIV fmt: 2008.11.21 int: english/english * Ubuntu 8.04 Hardy Heron ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] color test not working
Hi: Ummm... Same here with LuaTeX (It is ok here two or three days ago). MKII works fine. So I always keep a production release (ver 2005.01.31 with pdfeTeX 3.141592-1.21a-2.2) to process our journal and use the cutting edge for fun :-) Yue On Fri, Nov 21, 2008 at 12:02 PM, Alan STONE [EMAIL PROTECTED] wrote: On Sat, Sep 13, 2008 at 10:04 PM, Alan Stone [EMAIL PROTECTED] wrote: Hi, \setupcolors[state=start] \setupcolor[rgb] \setupcolor[xwi] \setupcolor[ema] \starttext \midaligned{\tfb \bf RGB colors} \blank[3*big] \showcolor[rgb] \page \midaligned{\tfb \bf XWI colors} \blank[3*big] \showcolor[xwi] \page \midaligned{\tfb \bf EMA colors} \blank[3*big] \showcolor[ema] \stoptext FYI, this currently doesn't work under Windows XP with ConTeXt ver: 2008.11.10 21:40 MKIV fmt: 2008.11.21 int: english/english Output in attachement. By the way, I installed the latest context-setup-mswin.zip18-Nov-2008 18:06 3.1M and (see above) it says 2008.11.10 -- Best, Alan ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Color rendering transparency with metapost
Hi, I have some trouble using a gradient background (solid) with a transparent element : \startMPinclusions def test_shade (expr a, b) = pickup pencircle scaled 1mm ; color ca ; ca := \MPcolor{a} ; color cb ; cb := \MPcolor{b} ; color cc ; cc := \MPcolor{c} ; sh := define_linear_shade(origin shifted(0cm,.5*\overlayheight),origin,ca,cb) ; fill fullsquare xscaled \overlaywidth yscaled \overlayheight withshade sh; draw origin withcolor cc; draw origin shifted(0cm,-.25*\overlayheight) withcolor cc; enddef ; \stopMPinclusions \setupcolors[state=start] \definecolor[a][r=.57254902,g=.784313725,b=.917647059] \definecolor[b][white] \definecolor[c][darkred] \starttext \defineoverlay[bgoverlay][\uniqueMPgraphic{bg_top_shade}] \setupbackgrounds[page][background=bgoverlay] \startuniqueMPgraphic{bg_top_shade} test_shade(origin, origin shifted(0cm,1cm)); draw fullcircle scaled 10cm shifted (0cm,0.25*\overlayheight) withcolor transparent(1,0.5,white) withpen pencircle scaled 2cm; If you comment out the previous line the color rendering is definitelly different... \stopuniqueMPgraphic \input knuth \stoptext I have searched the ML without success, any idea ? Regards, Renaud ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Color rendering transparency with metapost
Thank Luigi for your response, the problem is that the background color rendering isn't the same if you comment out or not the following line : draw fullcircle scaled 10cm shifted (0cm,0.25*\overlayheight) withcolor transparent(1,0.5,white) withpen pencircle scaled 2cm; After some experiments, the problem is solved ( hence not understood ???) using rgb=no in setupcolors... It's maybe a viewer-centric problem : I use acroread 8.1.2 under linux. Renaud luigi scarso a écrit : This is my test. Where is the problem ? minimals-beta Linux luigicasa-laptop 2.6.24-21-generic #1 SMP Tue Oct 21 23:43:45 UTC 2008 i686 GNU/Linux This is LuaTeX, Version snapshot-0.30.2-2008102016, build unknown ConTeXt MtxRun | current version: 2008.10.31 13:58 -- luigi ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Color rendering transparency with metapost
I must add that I have defined the a color with cmyk. Renaud Aubin a écrit : Thank Luigi for your response, the problem is that the background color rendering isn't the same if you comment out or not the following line : draw fullcircle scaled 10cm shifted (0cm,0.25*\overlayheight) withcolor transparent(1,0.5,white) withpen pencircle scaled 2cm; After some experiments, the problem is solved ( hence not understood ???) using rgb=no in setupcolors... It's maybe a viewer-centric problem : I use acroread 8.1.2 under linux. Renaud luigi scarso a écrit : This is my test. Where is the problem ? minimals-beta Linux luigicasa-laptop 2.6.24-21-generic #1 SMP Tue Oct 21 23:43:45 UTC 2008 i686 GNU/Linux This is LuaTeX, Version snapshot-0.30.2-2008102016, build unknown ConTeXt MtxRun | current version: 2008.10.31 13:58 -- luigi ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Color rendering transparency with metapost
On Sat, Nov 1, 2008 at 2:06 AM, Renaud Aubin [EMAIL PROTECTED] wrote: Thank Luigi for your response, the problem is that the background color rendering isn't the same if you comment out or not the following line : draw fullcircle scaled 10cm shifted (0cm,0.25*\overlayheight) withcolor transparent(1,0.5,white) withpen pencircle scaled 2cm; true After some experiments, the problem is solved ( hence not understood ???) using rgb=no in setupcolors... They seem differents again It's maybe a viewer-centric problem : I use acroread 8.1.2 under linux. no, I don't believe. Try to investigate with \pdfcompresslevel0 at the beginning -- luigi ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] how to color italics?
Am 22.09.2008 um 15:00 schrieb Hans Hagen: Taco Hoekwater wrote: Aditya Mahajan wrote: Ah, so that is why it is lowlevel. I wonder why the following does not work. \setupbodyfontenvironment [default] [em={\italic\color[red]}] The em key is a bit extra extra special: it has to be either 'italic' or 'slanted', everything else is ignored. This is because of the need to allow bold emphasis. (\bf\em == \bs or \bi). I would personally be happier if it would just use whatever was in the argument when it is *not* italic or slanted, instead of ignoring the argument, but that's how it is. \def\doemphasistypeface#1#2% {\doifelsevalue{\??ft\fontclass\normalizedbodyfontsize\c!em}\v! slanted {#1}% {\doifelsevalue{\??ft\fontclass\normalizedbodyfontsize\c!em}\v! italic {#2}% {\doifelsevaluenothing{\??ft\fontclass\normalizedbodyfontsize \c!em} {\doifelsevalue{\??ft\normalizedbodyfontsize\c!em}\v! slanted {#1}% {\doifelsevalue{\??ft\normalizedbodyfontsize\c!em}\v! italic {#2}% {\getvalue{\??ft\normalizedbodyfontsize\c!em {\getvalue{\??ft\fontclass\normalizedbodyfontsize\c!em} however, this does not provide italic correction, so better is: \newtoks\everyemphasized \unexpanded\def\em {\relax \ifdim\slantperpoint\zeropoint \settrue\emneeded \else \setfalse\emneeded \fi \setemphasisboldface % new \ifx\fontalternative\c!it % \ifnum\fam=\itfam \def\emphasistypeface{\it}\tf \else\ifx\fontalternative\c!sl % \ifnum\fam=\slfam \def\emphasistypeface{\sl}\tf \else\ifx\fontalternative\c!bf % \ifnum\fam=\bffam \emphasisboldface \else\ifx\fontalternative\c!bs % \ifnum\fam=\bsfam \def\emphasisboldface{\bs}\bf \else\ifx\fontalternative\c!bi % \ifnum\fam=\bifam \def\emphasisboldface{\bi}\bf \else \emphasistypeface \fi\fi\fi\fi\fi \the\everyemphasized \ifconditional\emneeded\relax \else \expandafter\aftergroup \fi \emphasiscorrection} which provides a hook, as in: \appendtoks \red \to \everyemphasized Be careful: this kills the ability of the emphasized word to be hyphenated! (... at least here with MKII) Steffen ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] how to color italics?
Hi, for making editing easier I'd like my italics (\em) to be in PDF typeset colored. Something like \setupem[color=blue] How can this be done? Steffen ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] how to color italics?
On Sep 22, 2008, at 1:24 PM, Steffen Wolfrum wrote: It should be something like \Colorit{this} example: \def\Colorit{\it\color[magenta]} But this above never closes the italics, while ... \def\Colorit{\strut\groupedcommand\it\color[magenta]\/} ... gives an error. Someone can help? St. You want your command to take an argument, so you have to mention that argument in the definition (untested): \define[1]\Colorit% {\color[magenta]{\it #1}} Thomas ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] how to color italics?
On Mon, 22 Sep 2008, Taco Hoekwater wrote: Steffen Wolfrum wrote: But this above never closes the italics, while ... \def\Colorit{\strut\groupedcommand\it\color[magenta]\/} ... gives an error. Someone can help? Worryingly lowlevel: \def\emphasistypeface{\it\color[magenta]} This has to be used {\emphasistypeface }. If you want something that works as \emph{} as well as {\emph ...} and can also be passed as an option to all the style= keys, try \definealternativestyle [emph] [{\it\color[magenta]}] [] Aditya ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] how to color italics?
Am 22.09.2008 um 13:48 schrieb Taco Hoekwater: Steffen Wolfrum wrote: But this above never closes the italics, while ... \def\Colorit{\strut\groupedcommand\it\color[magenta]\/} ... gives an error. Someone can help? Worryingly lowlevel: \def\emphasistypeface{\it\color[magenta]} ... this looks very close to what I wrote in the same email at top: \def\Colorit{\it\color[magenta]} ... and this had the problem of never stopping (closing) the italics again! (BTW: sorry for introducing \it, I need \em of course) Steffen ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] how to color italics?
Am 22.09.2008 um 13:48 schrieb Thomas A. Schmitz: On Sep 22, 2008, at 1:24 PM, Steffen Wolfrum wrote: It should be something like \Colorit{this} example: \def\Colorit{\it\color[magenta]} But this above never closes the italics, while ... \def\Colorit{\strut\groupedcommand\it\color[magenta]\/} ... gives an error. Someone can help? St. You want your command to take an argument, so you have to mention that argument in the definition (untested): \define[1]\Colorit% {\color[magenta]{\it #1}} ... same problem as in Taco's proposal: the \it never stops st. ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] how to color italics?
Steffen Wolfrum wrote: But this above never closes the italics, while ... \def\Colorit{\strut\groupedcommand\it\color[magenta]\/} ... gives an error. Someone can help? Worryingly lowlevel: \def\emphasistypeface{\it\color[magenta]} Best wishes, Taco ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] how to color italics?
Aditya Mahajan wrote: On Mon, 22 Sep 2008, Taco Hoekwater wrote: Steffen Wolfrum wrote: But this above never closes the italics, while ... \def\Colorit{\strut\groupedcommand\it\color[magenta]\/} ... gives an error. Someone can help? Worryingly lowlevel: \def\emphasistypeface{\it\color[magenta]} This has to be used {\emphasistypeface }. If you want something that No. Instead it redefines the internals of the normal \em command. Best wishes, Taco ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] how to color italics?
On Sep 22, 2008, at 1:58 PM, Steffen Wolfrum wrote: ... same problem as in Taco's proposal: the \it never stops st. Then add grouping \define[1]\Colorit% {\color[magenta]{\bgroup\it #1\egroup}} ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] how to color italics?
On Mon, 22 Sep 2008, Taco Hoekwater wrote: Aditya Mahajan wrote: On Mon, 22 Sep 2008, Taco Hoekwater wrote: Steffen Wolfrum wrote: But this above never closes the italics, while ... \def\Colorit{\strut\groupedcommand\it\color[magenta]\/} ... gives an error. Someone can help? Worryingly lowlevel: \def\emphasistypeface{\it\color[magenta]} This has to be used {\emphasistypeface }. If you want something that No. Instead it redefines the internals of the normal \em command. Ah, so that is why it is lowlevel. I wonder why the following does not work. \setupbodyfontenvironment [default] [em={\italic\color[red]}] Aditya ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] how to color italics?
Aditya Mahajan wrote: Ah, so that is why it is lowlevel. I wonder why the following does not work. \setupbodyfontenvironment [default] [em={\italic\color[red]}] The em key is a bit extra extra special: it has to be either 'italic' or 'slanted', everything else is ignored. This is because of the need to allow bold emphasis. (\bf\em == \bs or \bi). I would personally be happier if it would just use whatever was in the argument when it is *not* italic or slanted, instead of ignoring the argument, but that's how it is. Best wishes, Taco ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] how to color footnote?
... while dealing with colored elements: having the footnote number (down in front of the footnote text) in dark green is not that bad, just, why can't it be colored in an other way? I tried in vain both in \setupfootnotes and \setupfootnotedefinition: numbercolor, color... Only \setupfootnotes[textcolor=magenta] affects the footnote number in the main text. But nothing changes in the footnote area. Does this make sense? Steffen ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] how to color italics?
Taco Hoekwater wrote: Aditya Mahajan wrote: Ah, so that is why it is lowlevel. I wonder why the following does not work. \setupbodyfontenvironment [default] [em={\italic\color[red]}] The em key is a bit extra extra special: it has to be either 'italic' or 'slanted', everything else is ignored. This is because of the need to allow bold emphasis. (\bf\em == \bs or \bi). I would personally be happier if it would just use whatever was in the argument when it is *not* italic or slanted, instead of ignoring the argument, but that's how it is. \def\doemphasistypeface#1#2% {\doifelsevalue{\??ft\fontclass\normalizedbodyfontsize\c!em}\v!slanted {#1}% {\doifelsevalue{\??ft\fontclass\normalizedbodyfontsize\c!em}\v!italic {#2}% {\doifelsevaluenothing{\??ft\fontclass\normalizedbodyfontsize\c!em} {\doifelsevalue{\??ft\normalizedbodyfontsize\c!em}\v!slanted {#1}% {\doifelsevalue{\??ft\normalizedbodyfontsize\c!em}\v!italic {#2}% {\getvalue{\??ft\normalizedbodyfontsize\c!em {\getvalue{\??ft\fontclass\normalizedbodyfontsize\c!em} however, this does not provide italic correction, so better is: \newtoks\everyemphasized \unexpanded\def\em {\relax \ifdim\slantperpoint\zeropoint \settrue\emneeded \else \setfalse\emneeded \fi \setemphasisboldface % new \ifx\fontalternative\c!it % \ifnum\fam=\itfam \def\emphasistypeface{\it}\tf \else\ifx\fontalternative\c!sl % \ifnum\fam=\slfam \def\emphasistypeface{\sl}\tf \else\ifx\fontalternative\c!bf % \ifnum\fam=\bffam \emphasisboldface \else\ifx\fontalternative\c!bs % \ifnum\fam=\bsfam \def\emphasisboldface{\bs}\bf \else\ifx\fontalternative\c!bi % \ifnum\fam=\bifam \def\emphasisboldface{\bi}\bf \else \emphasistypeface \fi\fi\fi\fi\fi \the\everyemphasized \ifconditional\emneeded\relax \else \expandafter\aftergroup \fi \emphasiscorrection} which provides a hook, as in: \appendtoks \red \to \everyemphasized both mechanisms will be provided (maybe something emcolor later, when i can get myself motivated for such an possibly never documented feature) - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] how to color italics?
Am 22.09.2008 um 13:48 schrieb Thomas A. Schmitz: On Sep 22, 2008, at 1:24 PM, Steffen Wolfrum wrote: It should be something like \Colorit{this} example: \def\Colorit{\it\color[magenta]} But this above never closes the italics, while ... \def\Colorit{\strut\groupedcommand\it\color[magenta]\/} ... gives an error. Someone can help? St. You want your command to take an argument, so you have to mention that argument in the definition (untested): \define[1]\Colorit% {\color[magenta]{\it #1}} but, hey ... what about this: \define[1]\Colorit% {\color[magenta]{\groupedcommand\em\/ #1}} Thanks for pointing it to that Thomas! Steffen ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] how to color footnote?
... while dealing with colored elements: having the footnote number (down in front of the footnote text) in dark green is not that bad, just, why can't it be colored in an other way? I tried in vain both in \setupfootnotes and \setupfootnotedefinition: numbercolor, color... Only \setupfootnotes[textcolor=magenta] affects the footnote number in the main text. But nothing changes in the footnote area. Does this make sense? Steffen ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] how to color footnote?
Steffen Wolfrum wrote: ... while dealing with colored elements: having the footnote number (down in front of the footnote text) in dark green is not that bad, just, why can't it be colored in an other way? I tried in vain both in \setupfootnotes and \setupfootnotedefinition: numbercolor, color... Only \setupfootnotes[textcolor=magenta] affects the footnote number in the main text. But nothing changes in the footnote area. \setupfootnotedefinition[before={\color[green]}] Best wishes, Taco ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] how to color footnote?
Am 22.09.2008 um 18:38 schrieb Taco Hoekwater: Steffen Wolfrum wrote: ... while dealing with colored elements: having the footnote number (down in front of the footnote text) in dark green is not that bad, just, why can't it be colored in an other way? I tried in vain both in \setupfootnotes and \setupfootnotedefinition: numbercolor, color... Only \setupfootnotes[textcolor=magenta] affects the footnote number in the main text. But nothing changes in the footnote area. \setupfootnotedefinition[before={\color[green]}] Ahh, now I see where my problem lays: \setupcolors[state=start] \starttext \setupinteraction[state=start] \setupfootnotes[textcolor=magenta] \setupfootnotedefinition[before={\color[green]}] test\footnote{test} \stoptext Despite the fact that interaction carries its own color, elements can be re-colored by their own color definition (see above). Only the number of the note in front of the footnote text always gets overridden by interaction color! This distinction I didn't expect. Why should exclusively that poor little number not be allowed to have its own color? Steffen ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] how to color footnote?
On Mon, 22 Sep 2008, Steffen Wolfrum wrote: Ahh, now I see where my problem lays: \setupcolors[state=start] \starttext \setupinteraction[state=start] \setupfootnotes[textcolor=magenta] \setupfootnotedefinition[before={\color[green]}] test\footnote{test} \stoptext Despite the fact that interaction carries its own color, elements can be re-colored by their own color definition (see above). Only the number of the note in front of the footnote text always gets overridden by interaction color! Because it is overridden by interaction color. This distinction I didn't expect. Why should exclusively that poor little number not be allowed to have its own color? There should be a better way to do this (set interaction color and interaction style of each element separately), but for your case you can use \setupcolors[state=start] \starttext \setupinteraction[state=start] \setupfootnotes[textcolor=magenta] \setupfootnotedefinition[before={\color[green]}] test\footnote{test} \stoptext ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] how to color footnote?
THAT'S GREAT: Am 22.09.2008 um 21:32 schrieb Aditya Mahajan: On Mon, 22 Sep 2008, Steffen Wolfrum wrote: Ahh, now I see where my problem lays: \setupcolors[state=start] \starttext \setupinteraction[state=start] \setupfootnotes[textcolor=magenta] \setupfootnotedefinition[before={\color[green]}] test\footnote{test} \stoptext Despite the fact that interaction carries its own color, elements can be re-colored by their own color definition (see above). Only the number of the note in front of the footnote text always gets overridden by interaction color! Because it is overridden by interaction color. It gets overridden by interaction color because it is overriden by interaction color? This distinction I didn't expect. Why should exclusively that poor little number not be allowed to have its own color? There should be a better way to do this (set interaction color and interaction style of each element separately), but for your case you can use \setupcolors[state=start] \starttext \setupinteraction[state=start] \setupfootnotes[textcolor=magenta] \setupfootnotedefinition[before={\color[green]}] test\footnote{test} \stoptext It's like a game for kids ... who finds the 10 differences between Aditya's lines and Steffen's lines? =o) Next try? Volunteers! Who get's the little darkgreen footnote number paint in red ... nobody??? Steffen ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] how to color footnote?
On Mon, 22 Sep 2008, Steffen Wolfrum wrote: THAT'S GREAT: :) Am 22.09.2008 um 21:32 schrieb Aditya Mahajan: On Mon, 22 Sep 2008, Steffen Wolfrum wrote: Ahh, now I see where my problem lays: \setupcolors[state=start] \starttext \setupinteraction[state=start] \setupfootnotes[textcolor=magenta] \setupfootnotedefinition[before={\color[green]}] test\footnote{test} \stoptext Despite the fact that interaction carries its own color, elements can be re-colored by their own color definition (see above). Only the number of the note in front of the footnote text always gets overridden by interaction color! Because it is overridden by interaction color. It gets overridden by interaction color because it is overriden by interaction color? :) Ok, I guess I should read what I write. What I meant was that interaction is added last, so everything gets overridden by interaction colors. This distinction I didn't expect. Why should exclusively that poor little number not be allowed to have its own color? There should be a better way to do this (set interaction color and interaction style of each element separately), but for your case you can use \setupcolors[state=start] \starttext \setupinteraction[state=start] \setupfootnotes[textcolor=magenta] \setupfootnotedefinition[before={\color[green]}] test\footnote{test} \stoptext It's like a game for kids ... who finds the 10 differences between Aditya's lines and Steffen's lines? =o) Next try? Volunteers! Who get's the little darkgreen footnote number paint in red ... nobody??? Hopefully, will past e the correct thing this time \setupcolors[state=start] \setupinteraction[state=start] \setupfootnotes[textcolor=magenta] \setupfootnotedefinition[before={\setupinteraction[color=blue]}] \starttext \section[one] {Fist} test\footnote{test} See section \in[one]. \stoptext Aditya ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] color test not working
On Sat, Sep 13 2008, Alan Stone wrote: All give a blackwhite output, except the rgb (somecolor): and (somecolor)*: ones No problem here. Versions: [EMAIL PROTECTED]:~ context --version MtxRun | current version: 2008.09.10 14:01 [EMAIL PROTECTED]:~ pdftex --version pdfTeX 3.1415926-1.40.9-2.2 (Web2C 7.5.7) [EMAIL PROTECTED]:~ luatex --version This is LuaTeX, Version snapshot-0.29.0-2008072108 Cheers, Peter -- http://pmrb.free.fr/contact/ ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] color test not working
Hans fix this program one week ago. On Sun, Sep 14, 2008 at 5:04 AM, Alan Stone [EMAIL PROTECTED] wrote: Hi, \setupcolors[state=start] \setupcolor[rgb] \setupcolor[xwi] \setupcolor[ema] \starttext \midaligned{\tfb \bf RGB colors} \blank[3*big] \showcolor[rgb] \page \midaligned{\tfb \bf XWI colors} \blank[3*big] \showcolor[xwi] \page \midaligned{\tfb \bf EMA colors} \blank[3*big] \showcolor[ema] \stoptext All give a blackwhite output, except the rgb (somecolor): and (somecolor)*: ones Qué pasa ? Best, Alan * using ConTeXt ver: 2008.08.18 14:00 MKIV fmt: 2008.8.22 int: english/english (on Windows XP) ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] color test not working
Thanks guys. Updating... Best, Alan ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] color test not working
Hi, \setupcolors[state=start] \setupcolor[rgb] \setupcolor[xwi] \setupcolor[ema] \starttext \midaligned{\tfb \bf RGB colors} \blank[3*big] \showcolor[rgb] \page \midaligned{\tfb \bf XWI colors} \blank[3*big] \showcolor[xwi] \page \midaligned{\tfb \bf EMA colors} \blank[3*big] \showcolor[ema] \stoptext All give a blackwhite output, except the rgb (somecolor): and (somecolor)*: ones Qué pasa ? Best, Alan * using ConTeXt ver: 2008.08.18 14:00 MKIV fmt: 2008.8.22 int: english/english (on Windows XP) ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Verbatim with color background
On Fri, 5 Sep 2008, Hans Hagen wrote: B. Tommy Jensen wrote: On Thu, 04 Sep 2008 10:12:47 +0200, Hans Hagen [EMAIL PROTECTED] wrote: Is there any other easy way of controlling the background color on verbatim areas? can you make a small example that shows where it goes wrong? The example I used is shown below. Other observations are: - The code works with mkIV but not mkII - Removing the chapters in the test file also make it work with mkII - I am using the latest win32 standalone ConTeXt works ok here Works ok here also (linux + latex minimals) Aditya ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Verbatim with color background
On Sun, 7 Sep 2008, Aditya Mahajan wrote: On Fri, 5 Sep 2008, Hans Hagen wrote: B. Tommy Jensen wrote: On Thu, 04 Sep 2008 10:12:47 +0200, Hans Hagen [EMAIL PROTECTED] wrote: Is there any other easy way of controlling the background color on verbatim areas? can you make a small example that shows where it goes wrong? The example I used is shown below. Other observations are: - The code works with mkIV but not mkII - Removing the chapters in the test file also make it work with mkII - I am using the latest win32 standalone ConTeXt works ok here Works ok here also (linux + latex minimals) ^ Sigh... I meant latest minimals Aditya ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Verbatim with color background
B. Tommy Jensen wrote: On Thu, 04 Sep 2008 10:12:47 +0200, Hans Hagen [EMAIL PROTECTED] wrote: Is there any other easy way of controlling the background color on verbatim areas? can you make a small example that shows where it goes wrong? The example I used is shown below. Other observations are: - The code works with mkIV but not mkII - Removing the chapters in the test file also make it work with mkII - I am using the latest win32 standalone ConTeXt works ok here - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Verbatim with color background
B. Tommy Jensen wrote: Hi, I have a short question about verbatim areas (\starttyping): I have been trying to define a background color to verbatim areas in a document. My method so far is to define a textbackground named verbatim and refer to this in the setuptyping method: \setuptyping[typing][margin=0.5cm,bodyfont=8.0pt, before={\starttextbackground[verbatim]}, after={\stoptextbackground}] This works only partly. For example, when using long verbatim texts that spans over more than one page, the background color disappears on the last page. Is there any other easy way of controlling the background color on verbatim areas? can you make a small example that shows where it goes wrong? - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Verbatim with color background
On Thu, 04 Sep 2008 10:12:47 +0200, Hans Hagen [EMAIL PROTECTED] wrote: Is there any other easy way of controlling the background color on verbatim areas? can you make a small example that shows where it goes wrong? The example I used is shown below. Other observations are: - The code works with mkIV but not mkII - Removing the chapters in the test file also make it work with mkII - I am using the latest win32 standalone ConTeXt Best regards, Tommy Jensen % START EXAMPLE \setupcolors[state=start] % We use Palatino as the main body font \usetypescript[palatino][ec] \setupbodyfont[palatino,10pt] \definetextbackground[verbatim] [background=color, backgroundcolor=yellow, backgroundoffset=0cm, offset=0.5cm, frame=on, framecolor=black, location=paragraph, color=black] % Setup verbatim \setuptyping[typing][margin=1cm,bodyfont=8.0pt, before={\starttextbackground[verbatim]}, after={\stoptextbackground}] \starttext \chapter{One} Chapter one. \chapter{Two} Chapter two. \chapter{Three} Chapter three. \starttyping This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim section. This is a long verbatim
[NTG-context] Verbatim with color background
Hi, I have a short question about verbatim areas (\starttyping): I have been trying to define a background color to verbatim areas in a document. My method so far is to define a textbackground named verbatim and refer to this in the setuptyping method: \setuptyping[typing][margin=0.5cm,bodyfont=8.0pt, before={\starttextbackground[verbatim]}, after={\stoptextbackground}] This works only partly. For example, when using long verbatim texts that spans over more than one page, the background color disappears on the last page. Is there any other easy way of controlling the background color on verbatim areas? Best regards, Tommy Jensen ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Missing background color with \definetextbackground
On Tue, Sep 2, 2008 at 9:46 AM, B. Tommy Jensen [EMAIL PROTECTED] wrote: On Tue, 02 Sep 2008 00:18:40 +0200, Mojca Miklavec [EMAIL PROTECTED] wrote: % \setupcolors[state=start] \definetextbackground[highlight][backgroundcolor=yellow, frame=on, %add background=color, location=text, color=blue] \starttext \starttextbackground[highlight] This text should have yellow background but it is white. The text is however blue. \stoptextbackground \stoptext %- Thanks for the prompt reply! I have tried to add background=color as an option, but the result is exactly the same; only the text gets colored; no frame and no background color appear. Do you have other ideas? Is metapost or MPtoPDF called, take a in your terminal, dou you have the metafun format and do you use MkII (texexec ...) or MkIV (context ...). Wolfgang ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] \framed[backgroundcolor=x] might imply \framed[background=color]
What would be the drawback of allowing backgroundcolor=n imply background=color and backgroundscreen=x imply background=screen in the setup to \framed. Background compatibility should not be an issue and I am failing to imagine cases where it would not be desirable. Regards, Johan -- Johan Sandblom, MD PhD m +46735521477 Sweden What is wanted is not the will to believe, but the will to find out, which is the exact opposite - Bertrand Russell ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \framed[backgroundcolor=x] might imply \framed[background=color]
On Tue, Sep 2, 2008 at 11:27 AM, Johan Sandblom [EMAIL PROTECTED] wrote: What would be the drawback of allowing backgroundcolor=n imply background=color and backgroundscreen=x imply background=screen in the setup to \framed. Background compatibility should not be an issue and I am failing to imagine cases where it would not be desirable. Regards, Johan backgroundscreen has a default value and with your description the background will be always gray. Wolfgang ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Missing background color with \definetextbackground
On Tue, Sep 2, 2008 at 12:55 PM, B. Tommy Jensen [EMAIL PROTECTED] wrote: On Tue, 02 Sep 2008 11:08:36 +0200, Wolfgang Schuster [EMAIL PROTECTED] wrote: Do you have other ideas? Is metapost or MPtoPDF called, take a in your terminal, dou you have the metafun format and do you use MkII (texexec ...) or MkIV (context ...). Wolfgang Thanks a lot for pointing me in the right direction! I was using the texexec utility. When I tried the same with the context version, it rebuilt some formats and it now works exactly as expected. Sorry for being a novice here; is it so that the texexec utility should be consiered as obsolete? But MkII should work too. Try texexec --make metafun --alone and now texexec myfile. Wolfgang ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Missing background color with \definetextbackground
On Tue, 02 Sep 2008 00:18:40 +0200, Mojca Miklavec [EMAIL PROTECTED] wrote: % \setupcolors[state=start] \definetextbackground[highlight][backgroundcolor=yellow, frame=on, %add background=color, location=text, color=blue] \starttext \starttextbackground[highlight] This text should have yellow background but it is white. The text is however blue. \stoptextbackground \stoptext %- Thanks for the prompt reply! I have tried to add background=color as an option, but the result is exactly the same; only the text gets colored; no frame and no background color appear. Do you have other ideas? Best regards, Tommy Jensen ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Missing background color with \definetextbackground
On Tue, 02 Sep 2008 11:08:36 +0200, Wolfgang Schuster [EMAIL PROTECTED] wrote: Do you have other ideas? Is metapost or MPtoPDF called, take a in your terminal, dou you have the metafun format and do you use MkII (texexec ...) or MkIV (context ...). Wolfgang Thanks a lot for pointing me in the right direction! I was using the texexec utility. When I tried the same with the context version, it rebuilt some formats and it now works exactly as expected. Sorry for being a novice here; is it so that the texexec utility should be consiered as obsolete? Best regards, Tommy Jensen ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Missing background color with \definetextbackground
On Tue, 02 Sep 2008 13:08:56 +0200, Wolfgang Schuster [EMAIL PROTECTED] wrote: Sorry for being a novice here; is it so that the texexec utility should be consiered as obsolete? But MkII should work too. Try texexec --make metafun --alone and now texexec myfile. Wolfgang Thanks - this also now works! The context utility built the format automatically while I had to run the command manually with texexec (So context seems to be smarter than texexec). My installation is the complete windows environment of context. I ran the fist_setup.bat batch file after installation; this built many formats. I don't know why the metafun format wasn't built - perhaps something is missing from the setup file? In any case - thanks a lot for the good advice. Best regards, Tommy Jensen ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Color in math in MkIV
Hi, The color commands do not work inside math mode in MKIV. For example $f(\color[blue]{A}) = b$ $f({\blue A}) = b$ come out black and $f(\blue{A}) = b$ colors everything blue. I have an easy work around for the moment: \unprotected\def\mathcolor[#1]#2% {\preparebinrel{#2} [EMAIL PROTECTED] #2$}}} and then use \mathcolor. Aditya ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Color in math in MkIV
Aditya Mahajan wrote: Hi, The color commands do not work inside math mode in MKIV. For example $f(\color[blue]{A}) = b$ $f({\blue A}) = b$ come out black and $f(\blue{A}) = b$ colors everything blue. I have an easy work around for the moment: \unprotected\def\mathcolor[#1]#2% {\preparebinrel{#2} [EMAIL PROTECTED] #2$}}} and then use \mathcolor. math is on the agenda for later this year ... no attributes there yet Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \framed[backgroundcolor=x] might imply \framed[background=color]
Johan Sandblom schrieb: What would be the drawback of allowing backgroundcolor=n imply background=color and backgroundscreen=x imply background=screen in the setup to \framed. Background compatibility should not be an issue and I am failing to imagine cases where it would not be desirable. The background parameter is not fixed to 'color' or 'screen'. You can use any type of overlay background (which itself can use the parameter backgroundcolor). So the usage of 'backgroundcolor' doesn't always imply 'screen=color'. At least not in my macros.. :) Best Wishes, Peter ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \framed[backgroundcolor=x] might imply \framed[background=color]
Peter Rolf wrote: Johan Sandblom schrieb: What would be the drawback of allowing backgroundcolor=n imply background=color and backgroundscreen=x imply background=screen in the setup to \framed. Background compatibility should not be an issue and I am failing to imagine cases where it would not be desirable. The background parameter is not fixed to 'color' or 'screen'. You can use any type of overlay background (which itself can use the parameter backgroundcolor). So the usage of 'backgroundcolor' doesn't always imply 'screen=color'. At least not in my macros.. :) is anyone using screen? deep down it's already mapped onto color anyway (the color mechanism will reduce colors anyway) .. if not, we might as well remove it from mkiv Hans ps. it dates from the time where not all printers could print gray areas and fallbacks were needed (fakes, real old code often) - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \framed[backgroundcolor=x] might imply \framed[background=color]
So perhaps as expected it turns out that the limitation was only in my imagination. Thanks for the responses. Johan 2008/9/2 Hans Hagen [EMAIL PROTECTED]: Peter Rolf wrote: Johan Sandblom schrieb: What would be the drawback of allowing backgroundcolor=n imply background=color and backgroundscreen=x imply background=screen in the setup to \framed. Background compatibility should not be an issue and I am failing to imagine cases where it would not be desirable. The background parameter is not fixed to 'color' or 'screen'. You can use any type of overlay background (which itself can use the parameter backgroundcolor). So the usage of 'backgroundcolor' doesn't always imply 'screen=color'. At least not in my macros.. :) is anyone using screen? deep down it's already mapped onto color anyway (the color mechanism will reduce colors anyway) .. if not, we might as well remove it from mkiv Hans ps. it dates from the time where not all printers could print gray areas and fallbacks were needed (fakes, real old code often) - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- Johan Sandblom, MD PhD m +46735521477 Sweden What is wanted is not the will to believe, but the will to find out, which is the exact opposite - Bertrand Russell ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \framed[backgroundcolor=x] might imply \framed[background=color]
Johan Sandblom schrieb: So perhaps as expected it turns out that the limitation was only in my imagination. Thanks for the responses. It's limited by your main focus. The drawbacks of specialismn (mine is graphics, so I surely lack the textual part [not always (some would say most times) aware of it]) :D Johan 2008/9/2 Hans Hagen [EMAIL PROTECTED]: Peter Rolf wrote: Johan Sandblom schrieb: What would be the drawback of allowing backgroundcolor=n imply background=color and backgroundscreen=x imply background=screen in the setup to \framed. Background compatibility should not be an issue and I am failing to imagine cases where it would not be desirable. The background parameter is not fixed to 'color' or 'screen'. You can use any type of overlay background (which itself can use the parameter backgroundcolor). So the usage of 'backgroundcolor' doesn't always imply 'screen=color'. At least not in my macros.. :) is anyone using screen? deep down it's already mapped onto color anyway (the color mechanism will reduce colors anyway) .. if not, we might as well remove it from mkiv I can live without (and it's not a big deal to get the same effect with a slightly different setup). So if it doesn't hurt too much, cut of the old pigtails. *ConTeXt is a democratic kingdom* ;) Regards, Peter Hans ps. it dates from the time where not all printers could print gray areas and fallbacks were needed (fakes, real old code often) must be from the time before I was born (or realized what a printer is) ... - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Missing background color with \definetextbackground
Hi, I am strugglig to get the background color visible with the following code: % \setupcolors[state=start] \definetextbackground[highlight][backgroundcolor=yellow, frame=on, location=text, color=blue] \starttext \starttextbackground[highlight] This text should have yellow background but it is white. The text is however blue. \stoptextbackground \stoptext %- The background of the rendered text is always white, independent of the backgroundcolor parameter. The font color is however OK (blue). All other samples I have tried from details.pdf behaves similarly - no background color and no frame/frame color. I am using the latest complete standalone Windows version of Context. Has anybody encountered a similar behaviour? Best regards, Tommy Jensen ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Missing background color with \definetextbackground
On Tue, 2 Sep 2008, B. Tommy Jensen wrote: Hi, I am strugglig to get the background color visible with the following code: % \setupcolors[state=start] \definetextbackground[highlight][backgroundcolor=yellow, background=color,%--- Add this frame=on, location=text, color=blue] \starttext \starttextbackground[highlight] This text should have yellow background but it is white. The text is however blue. \stoptextbackground \stoptext %- Add background=color to \definetextbackground Aditya ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Missing background color with \definetextbackground
On Tue, Sep 2, 2008 at 12:06 AM, B. Tommy Jensen [EMAIL PROTECTED] wrote: Hi, I am strugglig to get the background color visible with the following code: % \setupcolors[state=start] \definetextbackground[highlight][backgroundcolor=yellow, frame=on, %add background=color, location=text, color=blue] \starttext \starttextbackground[highlight] This text should have yellow background but it is white. The text is however blue. \stoptextbackground \stoptext %- The background of the rendered text is always white, independent of the backgroundcolor parameter. The font color is however OK (blue). All other samples I have tried from details.pdf behaves similarly - no background color and no frame/frame color. Mojca ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Background color of sometxt ignored
Aditya Mahajan wrote: Hi, In 2008.08.18 14:00 MKIV the background color of sometxt is ignored. I used to use this trick to unfill the background while drawing a label, but it no longer works (It used to work a month ago). Bug or feature? \unprotected\definetextext[parbox] {\framed [ frame=off, width=2cm, height=.85cm, autowidth=no, align={middle,middle}, background=color, backgroundcolor=white]} \starttext \startMPcode draw (0,0) -- (3cm,3cm) ; label(\sometxt[parbox]{ABC}, (1.5cm,1.5cm)) ; \stopMPcode \stoptext well, white is not the best test example \unprotected\definetextext[parbox] {\framed [ width=2cm, height=.85cm, autowidth=no, align={middle,middle}, background=color, backgroundcolor=white]} \startMPpage[background=color,backgroundcolor=red] draw (0,0) -- (3cm,3cm) ; label(\sometxt[parbox]{ABC}, (1.5cm,1.5cm)) ; \stopMPpage works ok here - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Background color of sometxt ignored
Hi, In 2008.08.18 14:00 MKIV the background color of sometxt is ignored. I used to use this trick to unfill the background while drawing a label, but it no longer works (It used to work a month ago). Bug or feature? \unprotected\definetextext[parbox] {\framed [ frame=off, width=2cm, height=.85cm, autowidth=no, align={middle,middle}, background=color, backgroundcolor=white]} \starttext \startMPcode draw (0,0) -- (3cm,3cm) ; label(\sometxt[parbox]{ABC}, (1.5cm,1.5cm)) ; \stopMPcode \stoptext Aditya ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Background color of sometxt ignored
On Sat, 30 Aug 2008, Aditya Mahajan wrote: Hi, In 2008.08.18 14:00 MKIV the background color of sometxt is ignored. I used to use this trick to unfill the background while drawing a label, but it no longer works (It used to work a month ago). Bug or feature? It works if I add \setupcolors[state=start] \unprotected\definetextext[parbox] {\framed [ frame=off, width=2cm, height=.85cm, autowidth=no, align={middle,middle}, background=color, backgroundcolor=white]} \starttext \startMPcode draw (0,0) -- (3cm,3cm) ; label(\sometxt[parbox]{ABC}, (1.5cm,1.5cm)) ; \stopMPcode \stoptext Aditya ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] color in drawoptions (mplib)
Taco Hoekwater wrote: -extra_endfig := ;draw _tt_p_; extra_endfig ; +extra_endfig := ;addto currentpicture also _tt_p_; extra_endfig; subtle ... fixed Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] color in drawoptions (mplib)
Hans Hagen schrieb: Taco Hoekwater wrote: -extra_endfig := ;draw _tt_p_; extra_endfig ; +extra_endfig := ;addto currentpicture also _tt_p_; extra_endfig; subtle ... fixed yep! works again. thank you! Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] color in drawoptions (mplib)
Peter Rolf wrote: hi, just encountered an expansion problem with color inside drawoptions... The patch below fixes this issue. Best wishes, Taco --- /opt/tex/texmf-local/metapost/context/base/mp-mlib.mp.orig 2008-05-12 12:14:46.0 +0200 +++ /opt/tex/texmf-local/metapost/context/base/mp-mlib.mp 2008-06-12 18:13:34.785337518 +0200 @@ -26,7 +26,7 @@ _tt_p_ := nullpicture ; enddef ; -extra_endfig := ;draw _tt_p_; extra_endfig ; +extra_endfig := ;addto currentpicture also _tt_p_; extra_endfig; extra_beginfig := extra_beginfig resettextexts;; vardef rawtextext(expr str) = ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Background color spaning columns.
I am trying change the background color of some text. It works fine if I am using one column. It also works fine if I am using multiple columns, but restricting my background color changes to only a single line of text in a column. However, if I have a section that I want to I change, and that section spans more than one line in a given column it does not work. What happens is that the background starts to change where you have indicated; however, instead of stopping at the end of the column, the background color changes for the entire text. See the subject entitled Problem 1 below for an example. Is there a fix for this (and no, using a single column is not a solution.) Problem #2 is the same thing only the background change starts in the first column and extends to the second. In this case the output is even worse. It's difficult to describe, so run the code. Solutions? Thanks, Bart *** * Sample Code --- #1 *** \setupcolors[state=start] \definetextbackground[highlight][ backgroundcolor=yellow, frame=off, location=text, color=black] \definestartstop[Highlight][ before={\starttextbackground[highlight]}, after=\stoptextbackground] \starttext \subject{Problem 1} \startcolumns It was a· \starthighlight dark· and stormy night; the rain fell in torrents --- except at occasional intervals, when it was checked by a· violent\stoptextbackground~ gust of wind which swept up the streets (for it is in London that our scene lies), rattling along the housetops, and fiercely agitating the scanty flame of the lamps that struggled against the darkness. \stopcolumns \subject{Problem 2} \startcolumns It was a dark and stormy night; the rain fell in torrents --- except at occasional intervals, when it was checked by a violent gust of wind which· \starthighlight· swept up the streets (for it is in London that our scene lies), rattling along the housetops, and fiercely agitating the scanty flame \stophighlight of the lamps that struggled against the darkness. \stopcolumns \stoptext ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Background color spaning columns.
On Mon, 3 Mar 2008, Bart Wise wrote: I am trying change the background color of some text. It works fine if I am using one column. It also works fine if I am using multiple columns, but restricting my background color changes to only a single line of text in a column. I have encountered this problem in the past. This is a limitations of the simple column mechanism. However, if I have a section that I want to I change, and that section spans more than one line in a given column it does not work. What happens is that the background starts to change where you have indicated; however, instead of stopping at the end of the column, the background color changes for the entire text. See the subject entitled Problem 1 below for an example. Is there a fix for this (and no, using a single column is not a solution.) Use columnsets. They are not as easy and simple as columns, but they provide a lot more features. See the columnset manual for details about using them. Aditya ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] color expansion at runtime
Peter Rolf wrote: I have written such a macro, but sadly it crashes when used inside \color or \definecolor. Tried to debug it, but this is my first experience with the trace commands (probably not the best example to start with). Sigh, still so much to learn.. :) The problem is that it defines things, and you can't do that inside an argument. Solution: rewrite the macro to define a new macro (like \def\currentStateDependentColor{green}) instead of expanding on the fly. Then you have to do something like this: \StateDependentColor[stateA=green,stateC=blue,whatever=yellow,...] \ color[\currentStateDependentColor] And that should work. Best wishes, Taco ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] color expansion at runtime
Taco Hoekwater schrieb: Peter Rolf wrote: I have written such a macro, but sadly it crashes when used inside \color or \definecolor. Tried to debug it, but this is my first experience with the trace commands (probably not the best example to start with). Sigh, still so much to learn.. :) The problem is that it defines things, and you can't do that inside an argument. Solution: rewrite the macro to define a new macro (like \def\currentStateDependentColor{green}) instead of expanding on the fly. Then you have to do something like this: \StateDependentColor[stateA=green,stateC=blue,whatever=yellow,...] \ color[\currentStateDependentColor] And that should work. :)) THANK YOU TACO!!! Best wishes, Peter Best wishes, Taco ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ \setuppagenumber[state=stop] \setupcolors[state=start] \definecolor[colorA] [red] \definecolor[colorB] [green] \definecolor[colorC] [blue] \newconditional\CondA \newconditional\CondB \newconditional\CondC \unprotect \def\CurrentStateDependentColor{} \def\GetStateDependentColor#1% {\bgroup [EMAIL PROTECTED],B=,C=,#1]% \def\docommand##1% {\doifdefined{Cond##1} % conditional is known.. {\expandafter\ifconditional\csname Cond##1\endcsname % ..AND true.. \doifsomething{\csname [EMAIL PROTECTED] % ..AND a color is assigned \donetrue \else\donefalse\fi}% \ifdone\xdef\CurrentStateDependentColor{\csname [EMAIL PROTECTED] \expandafter\quitcommalist\fi}% \processcommacommand[A,B,C]\docommand % raw version does not work! why? \egroup} \protect \starttext %\settrue\CondA \settrue\CondB \settrue\CondC %\tracingonline=1 %\tracingall=1 %\tracingmacros=1 %\tracingcommands=2 \GetStateDependentColor{A=colorA,C=colorC} %\definecolor[testcolor][\TESTcolor] \switchtocolor[\CurrentStateDependentColor] %\tracingmacros=0 %\tracingall=0 THANK YOU TACO!!! \stoptext ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] color expansion at runtime
2007/12/14, Peter Rolf [EMAIL PROTECTED]: Hi, I desperately need runtime defined colors (state dependent) for my macros. The macros are used with different graphic styles, which is the reason why I want to avoid any style dependent part inside them. To give you an example. I need something like this \color[{\StateDependentColor[stateA=green,stateC=blue,whatever=yellow,...]}] If flag 'stateA' is true at runtime, then color 'green' is used (and so on; order is significant). I have written such a macro, but sadly it crashes when used inside \color or \definecolor. Tried to debug it, but this is my first experience with the trace commands (probably not the best example to start with). Sigh, still so much to learn.. :) Any hints are welcome. Regards, Peter Hi Peter, can you try this (untested), \chardef\stateA\zerocount \chardef\stateB\plusone \chardef\stateC\plustwo \let\currentstate\stateA \def\statecolor{\ifcase\currentstate red\or green\or blue\fi} \starttext \color[\statecolor]{Currentstate} \let\currentstate\stateB \color[\statecolor]{Currentstate} \let\currentstate\stateC \color[\statecolor]{Currentstate} \stoptext Wolfgang ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] color expansion at runtime
Wolfgang Schuster schrieb: 2007/12/14, Peter Rolf [EMAIL PROTECTED]: Hi, I desperately need runtime defined colors (state dependent) for my macros. The macros are used with different graphic styles, which is the reason why I want to avoid any style dependent part inside them. To give you an example. I need something like this \color[{\StateDependentColor[stateA=green,stateC=blue,whatever=yellow,...]}] If flag 'stateA' is true at runtime, then color 'green' is used (and so on; order is significant). I have written such a macro, but sadly it crashes when used inside \color or \definecolor. Tried to debug it, but this is my first experience with the trace commands (probably not the best example to start with). Sigh, still so much to learn.. :) Any hints are welcome. Regards, Peter Hi Peter, can you try this (untested), Hi Wolfgang, your idea works pretty good (I haven't thought about \ifcase 'til now). Still the problem is, that - currentstate must be set somehow - the colors and the number of used states vary from macro to macro So I have to define individual variants of \statecolor (with non fixed state=number pairs), or add an entry for every single state (currently 9). The later method is too ugly (imagine the case that you only need states 0 and 8) and will be hard to maintain if new states arise. I end up with 60 macros and that is what I want to avoid. Anyhow thanks for your help. I will try to trace my color macro while listening the right music for such problems (Yo La Tengo - I am not afraid of you and will beat your ass). Hopefully it works. ;) Greetings, Peter \chardef\stateA\zerocount \chardef\stateB\plusone \chardef\stateC\plustwo \let\currentstate\stateA \def\statecolor{\ifcase\currentstate red\or green\or blue\fi} \starttext \color[\statecolor]{Currentstate} \let\currentstate\stateB \color[\statecolor]{Currentstate} \let\currentstate\stateC \color[\statecolor]{Currentstate} \stoptext Wolfgang ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] color expansion at runtime
2007/12/15, Peter Rolf [EMAIL PROTECTED]: Wolfgang Schuster schrieb: 2007/12/14, Peter Rolf [EMAIL PROTECTED]: Hi, I desperately need runtime defined colors (state dependent) for my macros. The macros are used with different graphic styles, which is the reason why I want to avoid any style dependent part inside them. To give you an example. I need something like this \color[{\StateDependentColor[stateA=green,stateC=blue,whatever=yellow,...]}] If flag 'stateA' is true at runtime, then color 'green' is used (and so on; order is significant). I have written such a macro, but sadly it crashes when used inside \color or \definecolor. Tried to debug it, but this is my first experience with the trace commands (probably not the best example to start with). Sigh, still so much to learn.. :) Any hints are welcome. Regards, Peter Hi Peter, can you try this (untested), Hi Wolfgang, your idea works pretty good (I haven't thought about \ifcase 'til now). Still the problem is, that - currentstate must be set somehow - the colors and the number of used states vary from macro to macro So I have to define individual variants of \statecolor (with non fixed state=number pairs), or add an entry for every single state (currently 9). The later method is too ugly (imagine the case that you only need states 0 and 8) and will be hard to maintain if new states arise. It is hard to give a better solution because I don't what do you want to achive and how your interface should look to change the states and colors ... I end up with 60 macros and that is what I want to avoid. Anyhow thanks for your help. I will try to trace my color macro while listening the right music for such problems (Yo La Tengo - I am not afraid of you and will beat your ass). Hopefully it works. ;) Greetings, Peter I wish you good luck to find a better solution, I'm myself a little busy till monday and can't help you for the moment and I run into a few other ConTeXt problems (and bugs, mkii and mkiv) the last two days and wasted to many time with them. Wolfgang ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] color expansion at runtime
Hi, I desperately need runtime defined colors (state dependent) for my macros. The macros are used with different graphic styles, which is the reason why I want to avoid any style dependent part inside them. To give you an example. I need something like this \color[{\StateDependentColor[stateA=green,stateC=blue,whatever=yellow,...]}] If flag 'stateA' is true at runtime, then color 'green' is used (and so on; order is significant). I have written such a macro, but sadly it crashes when used inside \color or \definecolor. Tried to debug it, but this is my first experience with the trace commands (probably not the best example to start with). Sigh, still so much to learn.. :) Any hints are welcome. Regards, Peter \setuppagenumber[state=stop] \setupcolors[state=start] \definecolor[colorA] [red] \definecolor[colorB] [green] \definecolor[colorC] [blue] \newconditional\CondA \newconditional\CondB \newconditional\CondC \unprotect \def\GetStateDependentColor[#1]% {\bgroup [EMAIL PROTECTED],B=,C=,#1]% \def\MYdocommand##1% {\doifdefined{Cond##1} % conditional is known.. {\expandafter\ifconditional\csname Cond##1\endcsname % ..AND true.. \edef\CurrentColor{\csname [EMAIL PROTECTED] \def\CurrentColor{}\fi \doifelsenothing\CurrentColor % ..AND a color is assigned \donefalse\donetrue}% \ifdone\CurrentColor\expandafter\quitcommalist\fi}% \processcommacommand[A,B,C]\MYdocommand % raw version does not work! why? \egroup} \protect \starttext \setfalse\CondA \settrue\CondB \settrue\CondC \tracingonline=1 %\tracingall=1 %\tracingmacros=1 %\tracingcommands=2 color is -\GetStateDependentColor[A=colorA,C=colorC]- % works so far %\tracingmacros=0 %\tracingall=0 % crashes %\tracingall=1 %\tracingmacros=1 %\tracingcommands=2 %\definecolor[testcolor][{\GetStateDependentColor[A=colorA,C=colorC]}] %\color[testcolor] %\color[{\GetStateDependentColor[A=colorA,C=colorC]}] %\expandafter\color\expandafter[\expandafter{\GetStateDependentColor[A=colorA,C=colorC]}] %\tracingall=0 TEST \stoptext ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] color expansion at runtime
On Dec 14, 2007, at 5:57 PM, Peter Rolf wrote: Hi, I desperately need runtime defined colors (state dependent) for my macros. The macros are used with different graphic styles, which is the reason why I want to avoid any style dependent part inside them. To give you an example. I need something like this \color [{\StateDependentColor[stateA=green,stateC=blue,whatever=yellow,...]}] If flag 'stateA' is true at runtime, then color 'green' is used (and so on; order is significant). I have written such a macro, but sadly it crashes when used inside \color or \definecolor. Tried to debug it, but this is my first experience with the trace commands (probably not the best example to start with). Sigh, still so much to learn.. :) Any hints are welcome. I'm not quite sure I understand what you're trying to do, so this is a shot in the dark: instead of low-level trickery, you could use ConTeXt modes: \startmode[A] \definecolor [mycolor] [g=1] \stopmode \startmode[B] \definecolor [mycolor] [r=1] \stopmode You can then set \enablemode[A] in your file or pass the mode on the commandline: texexec --mode=A HTH Thomas ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] color expansion at runtime
Thomas A. Schmitz schrieb: On Dec 14, 2007, at 5:57 PM, Peter Rolf wrote: Hi, I desperately need runtime defined colors (state dependent) for my macros. The macros are used with different graphic styles, which is the reason why I want to avoid any style dependent part inside them. To give you an example. I need something like this \color [{\StateDependentColor[stateA=green,stateC=blue,whatever=yellow,...]}] If flag 'stateA' is true at runtime, then color 'green' is used (and so on; order is significant). I have written such a macro, but sadly it crashes when used inside \color or \definecolor. Tried to debug it, but this is my first experience with the trace commands (probably not the best example to start with). Sigh, still so much to learn.. :) Any hints are welcome. I'm not quite sure I understand what you're trying to do, so this is a shot in the dark: instead of low-level trickery, you could use ConTeXt modes: \startmode[A] \definecolor [mycolor] [g=1] \stopmode \startmode[B] \definecolor [mycolor] [r=1] \stopmode You can then set \enablemode[A] in your file or pass the mode on the commandline: texexec --mode=A Thanks Thomas for your help. I can do this without low-level trickery, but this would mean one or two (fore|backgroundcolor) additional macro(s) per building block (20) for every graphic style (currently 2; more to come). This makes about 60 stupid little macros. nope. I think that in some special cases I must do this anyway (where the color is choosen from a combination of states), but most times a general macro will do. I will try to get it run this weekend (have to learn TeX debugging first). But I wouldn't be surprised if this is the easier part of the problem. We will see :) Greetings, Peter HTH Thomas ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] odd background color behavior
I am using ConTeXt ver: 2007.08.29 19:19 MKII fmt and the pdftex engine \definetextbackground[A][backgroundcolor=red] \setuptextbackground [backgroundoffset=0pt, offset=0pt, frame=off, location=text, background=color, backgroundcorner=round] gives a yellow background and \definetextbackground[A][backgroundcolor=yellow] gives a gray background. Any suggestions about to fix this? Alan___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] odd background color behavior
Sorry for the noise. The problem seems peculiar to the particular file that I was processing. Now to find out why... Cheers, Alan On Sep 2, 2007, at 8:41 AM, Alan Bowen wrote: I am using ConTeXt ver: 2007.08.29 19:19 MKII fmt and the pdftex engine \definetextbackground[A][backgroundcolor=red] \setuptextbackground [backgroundoffset=0pt, offset=0pt, frame=off, location=text, background=color, backgroundcorner=round] gives a yellow background and \definetextbackground[A][backgroundcolor=yellow] gives a gray background. Any suggestions about to fix this? Alan __ _ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net __ _ ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] color expansion (not colo-new related)
Hi all, I tried to seperate some style specific code to external variables. Most things work so far, but the expansion of color causes me problems. I must emphasize that this is no colo-new problem, as my code fails with the old colo-ini too. I have tried several things, but still no luck. What (expansion) magic is missing in my code? Any help is welcome. Peter \setupcolors[state=start] \newconditional\CondA \newconditional\CondB \newconditional\CondC % state dependend color \def\GetFGcolor#1#2#3#4#5{% \ifconditional\CondA \ifconditional\CondC#4 \else#5\fi \else \ifconditional\CondB#1 \else \ifconditional\CondC#2 \else#3\fi \fi \fi}% \starttext %\settrue\CondA %\settrue\CondB \settrue\CondC \setvariables[FOO][foregroundcolor=\GetFGcolor{red}{green}{blue}{lightgray}{darkgray}] \color[red]{color} is working. \edef\FGcolor{\getvariable{FOO}{foregroundcolor}} %\edef\FGcolor{\GetFGcolor{red}{green}{blue}{lightgray}{darkgray}} FGcolor=\FGcolor foregroundcolor= \color[\FGcolor]{\getvariable{FOO}{foregroundcolor}}% no color here \stoptext ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] color expansion (not colo-new related)
Peter Rolf wrote: Hi all, I tried to seperate some style specific code to external variables. Most things work so far, but the expansion of color causes me problems. I must emphasize that this is no colo-new problem, as my code fails with the old colo-ini too. I have tried several things, but still no luck. What (expansion) magic is missing in my code? Any help is welcome. \def\GetFGcolor#1#2#3#4#5{% \ifconditional\CondA \ifconditional\CondC#4% \else#5\fi \else \ifconditional\CondB#1% \else \ifconditional\CondC#2% \else#3\fi \fi \fi} you introduce spaces btw, often its easier to remap colors \def\test{\color[whatever]{some color}} \definecolor[whatever][green] test \definecolor[whatever][red] test or to use palets or ... - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] color expansion (not colo-new related)
Hans Hagen schrieb: Peter Rolf wrote: Hi all, I tried to seperate some style specific code to external variables. Most things work so far, but the expansion of color causes me problems. I must emphasize that this is no colo-new problem, as my code fails with the old colo-ini too. I have tried several things, but still no luck. What (expansion) magic is missing in my code? Any help is welcome. \def\GetFGcolor#1#2#3#4#5{% \ifconditional\CondA \ifconditional\CondC#4% \else#5\fi \else \ifconditional\CondB#1% \else \ifconditional\CondC#2% \else#3\fi \fi \fi} you introduce spaces yes, stupid me :) btw, often its easier to remap colors \def\test{\color[whatever]{some color}} \definecolor[whatever][green] test \definecolor[whatever][red] test or to use palets or ... I will think about it. Thanks Hans! - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Contrast color in \setupinteraction
Hello, I use \setupcolors[state=start] \setupinteraction[state=start] and after I place the contents somewhere, the links that refer to the same page where the content is are red but others are green. I want them to be just the same. I found that \setupinteraction[state=start, color=middleblue, contrastcolor=middleblue] solves my problem, but is it the most elegant way to do? Can I just turn off the contrast? Best, Vyatcheslav Yatskovsky ___ 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://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Colour (color) in mathml
Hello. I'm trying to implement part of a change-tracking system using colour to highlight changed areas in a document. I use MathML for maths, and I need to be able to apply colour to individual elements in an equation. I thought I could do just simply mi color=greenx/mi but evidently not. It does look as though colour is dealt with in x-newmml.tex, but not this way. Is there a way of colouring specific elements of a MathML equation? Thanks very much. Duncan ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Context, Metapost \sometxt and color
Hi The following used to work, the text came out in the color red, now it is shown in black. Am I doing something wrong here ? Or should I use something else instead ? Any help appreciated % example code \setupcolors[state=start] \starttext \startMPcode picture p; p := \sometxt{$R_{\mu \nu } - \frac{1}{2} R - \Lambda g_{\mu \nu} = \kappa T_{\mu \nu}$} ; p := p scaled 3; draw p withcolor red; \stopMPcode \stoptext Version info This is pdfeTeX, Version 3.141592-1.30.3-2.2 (Web2c 7.5.5) \write18 enabled. ConTeXt ver: 2006.11.29 09:55 MK II fmt: 2006.12.2 int: english/english ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context