Hi Wolfgang,
Combing through various setups and definitions of my document, finally I could
find the culprit: the error message was due to the change in the way \color
should be used now.
Changing all over \color[darkred] (for instance) with
\startcolor[darkred]…\stopcolor, fixed the error
)
withcolor \MPcolor\simpleslidesGridColor ;
label.bot(textext(\switchtobodyfont[9pt]\startcolor[simpleslides:textcolor]
decimal i \stopcolor),
(i/10*OverlayWidth, 0)) ;
label.top(textext(\switchtobodyfont[9pt]\startcolor[simpleslides:textcolor
2011.10.05 23:53,
LuaTeX, Version beta-0.70.1-2011051907 (rev 4277).
use \startcolor ... \starttextcolor is meant for whole documents (and
actually can go away in mkiv as we have a setup command
file is attached. Tested with beta from 2011.10.05 23:53,
LuaTeX, Version beta-0.70.1-2011051907 (rev 4277).
use \startcolor ... \starttextcolor is meant for whole documents (and
actually can go away in mkiv as we have a setup command)
Will do so. Thanks for the info.
Peter
6cm;
\stopreusableMPgraphic
\starttext
\startcolor[white]
\title{metafun}
\includeMPgraphic{variympyrat}
\title{svg}
\externalfigure[variympyrat.svg]
\title{png}
\externalfigure[variympyrat.png]
\stoptext
and here is the output:
https://pi-xi.net/share/context_reader_test.png
https://pi-xi.net/share
]\getvariable{exam}{title}}
\blank
\getvariable{exam}{course}
\stopframedtext
\blank[big]
\startcolor[colortwo]
\doifelsevariable{exam}{date}{\expanded{\date[\getvariable{exam}{date}]}}{\currentdate}
\hfill
Start: \getvariable{exam}{start
Hey folks,
How do I set the body text foreground colour? I tried the following, but
it just ignored it:
\definecolor[colour_text][r=0.754,g=0.516,b=0.324]
\setupbodyfontenvironment
[default]
[em=italic,
color=colour_text]
I don't want to have to use \startcolor and \stopcolor every time
=0.324]
\setupbodyfontenvironment
[default]
[em=italic,
color=colour_text]
I don't want to have to use \startcolor and \stopcolor every time I wish
this default to be applied.
--
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com
want to have to use \startcolor and \stopcolor every time I wish
this default to be applied.
\setupcolors[textcolor=...]
Wolfgang
___
If your question is of interest to others as well, please add an entry to the
Wiki
to use \startcolor and \stopcolor every time I wish
this default to be applied.
\definehighlight[emph][style=em,color=red]
\emph{...}
Aditya
___
If your question is of interest to others as well, please add an entry
\startcolor and \stopcolor every time I wish
this default to be applied.
\definehighlight[emph][style=**em,color=red]
\emph{...}
Aditya
__**__**
___
If your question is of interest to others as well, please add
\setuppapersize[S6][S6]
\setuppagenumbering[state=stop]
\switchtobodyfont[modern,20pt]
\setupcolors[state=start]
\setupbackgrounds[page][background=color,backgroundcolor=darkblue]
\startcolor[white]
\setuptolerance[verytolerant,stretch]
\definecolor[a][r=0,g=0,b=1]
\definecolor[b][r=0,g=0,b=0.05
\startframedtext[right][frame=off,align=flushright,offset=none,width=fit]%
\startcolor[darkgreen]#2\stopcolor
\blank{\it – #1}%
\stopframedtext
\blank}
For one reason or another \par gave:
Paragraph ended before \complexdefine was complete.
I also put a color on the citation itself. I
[middle]
\startcolor[darkgreen]#2\stopcolor
\stopalignment
\startalignment[flushright]
{\it #1}%
\stopalignment
\stopframedtext
\blank
}
I think it does not look bad. But I have to let it grow on me.
--
Cecil Westerhof
][frame=off,offset=none,width=fit]%
\startalignment[middle]
\startcolor[darkgreen]#2\stopcolor
\stopalignment
\startalignment[flushright]
{\it #1}%
\stopalignment
\stopframedtext
\blank
}
I think it does not look bad. But I have to let it grow on me.
\define[2]\epigraph
2011/3/8 Wolfgang Schuster schuster.wolfg...@googlemail.com
I made it:
\define[2]\epigraph{
\blank
\startframedtext[middle][frame=off,offset=none,width=fit]%
\startalignment[middle]
\startcolor[darkgreen]#2\stopcolor
\stopalignment
\startalignment[flushright]
{\it #1
=color, backgroundcolor=darkblue,
foreground=color, foregroundcolor=white,
frame=off,corner=0,backgroundoffset=5pt,] {#1}
~~~ \tfd \startcolor[darkblue]{'} \stopcolor \tfa
\blank}
Called with things like:
\speechBubble {They could be above or below the frequency we can hear, so
called
=force,align={flushleft},
background=color, backgroundcolor=darkblue,
foreground=color, foregroundcolor=white,
frame=off,corner=0,backgroundoffset=5pt,] {#1}
~~~ \tfd \startcolor[darkblue]{'} \stopcolor \tfa
\blank}
Called with things like:
\speechBubble {They could be above or below
, foregroundcolor=white,
frame=off,corner=0,backgroundoffset=5pt,] {#1}
~~~ \tfd \startcolor[darkblue]{'} \stopcolor \tfa
\blank}
Called with things like:
\speechBubble {They could be above or below the frequency we can hear, so
called infra-sound or ultra-sound, or the amplitude could be just too
tal que \startcolor[middlered]\underbars{la cinquena part d'aquest nombre}\stopcolor\ menys tres és igual al \processwords{doble del nombre} més \setupunderbar[alternative=a,rulecolor=middlegreen,rulethickness=2pt]\startcolor[red]\underbars{aquest mateix nombre}\stopcolor
\stopframedtext}
\eTD
Wolfgang Schuster:
Am 29.11.2010 um 10:29 schrieb Steffen Wolfrum:
Hi,
please have a look at this:
\definestartstop[redimportant][before={\startcolor[red]\bf\penalty1\hskip\zeropoint},after={\/\stopcolor}]
\definestartstop
[redimportant]
[style=bold,
color=red,
after
Am 29.11.2010 um 14:39 schrieb Wolfgang Schuster:
Am 29.11.2010 um 10:29 schrieb Steffen Wolfrum:
Hi,
please have a look at this:
\definestartstop[redimportant][before={\startcolor[red]\bf\penalty1\hskip\zeropoint},after={\/\stopcolor}]
\definestartstop
[redimportant
Hi,
please have a look at this:
\definestartstop[redimportant][before={\startcolor[red]\bf\penalty1\hskip\zeropoint},after={\/\stopcolor}]
\starttext
This is normal, but this\startredimportant one\startfootnote at least
\stopfootnote is bold\stopredimportant style.
This is normal
Am 29.11.2010 um 10:29 schrieb Steffen Wolfrum:
Hi,
please have a look at this:
\definestartstop[redimportant][before={\startcolor[red]\bf\penalty1\hskip\zeropoint},after={\/\stopcolor}]
\definestartstop
[redimportant]
[style=bold,
color=red,
after=\autoinsertnextspace
;
label.bot(textext(\switchtobodyfont[30pt]\startcolor[orange]
decimal PageNumber \stopcolor\ -- \startcolor[darkblue] decimal
NOfPages \stopcolor), z[1]) ;
StopPage ;
\stopuseMPgraphic
\defineoverlay
[pageback]
[\useMPgraphic{back}]
\setupbackgrounds[page][background=pageback
=\paperwidth,height=\paperheight]
%\showframe
\define[1]\myNumber{%
\setlayer[NumberRight][preset=righttop,voffset=45mm,hoffset=3mm,reset]
% without reset the problem is the same
{\offset[location=rt,rightoffset=-3mm]
{\tlap{\startcolor[darkgreen
$A^c \cap B^c$
\item $A \cap B^c$
\stopitemize
\stopexercici
[...]
\stopcolumns
but the itemize does NOt display as two columns. What is the solution
for that?
Please, CCme
Thanks a lot,
Xan.
PS: The exercici enviroment is defined as:
\defineenumeration
[exercici]
[text={\startcolor
[mindmap,arrows,calc]
%\usetikzlibrary[trees]
% AMSTHM
\defineenumeration
[exercici]
[text={\startcolor[middlecyan]Exercici\stopcolor},headstyle=bold,between=\blank,titledistance=0em,textdistance=1em,
stopper={.\space},location=serried,left={\bgroup\bf},right={\egroup},width=fit,headstyle=\ss
]
\stopbuffer
\typebuffer \getbuffer
The following example code looks messy but this has to do with
the fact that we want properly spaced sample injection.
\startbuffer
from here
\startcolor[white]%
\startbar[backbar]%
\input zapf
\removeunwantedspaces
\stopbar
Am 23.01.10 14:32, schrieb Hans van der Meer:
Further experimentation has shown that it is not impossible to color
\vrule's, thus \blackrule is not specifically needed.
\blackrule is a \vrule which is enclosed in \startcolor/\stopcolor.
Let me first mention that I put the colored rules away
On 23 jan 2010, at 14:49, Wolfgang Schuster wrote:
Am 23.01.10 14:32, schrieb Hans van der Meer:
Further experimentation has shown that it is not impossible to color
\vrule's, thus \blackrule is not specifically needed.
\blackrule is a \vrule which is enclosed in \startcolor/\stopcolor
](Some magenta
without overprint)}
\color[black]
\startoverprint
\input tufte
\stopoverprint
\stoptext
--
hm I believed was
\color[red]{..}
and
\startcolor[red]
...
\stopcolor
see
http://wiki.contextgarden.net/Colors
--
luigi
Hi Luigi,
luigi scarso luigi.sca...@gmail.com writes:
hm I believed was
\color[red]{..}
and
\startcolor[red]
...
\stopcolor
You're right, I mixed things up here. But nontheless, my example was
(unintendedly) syntactically correct, because either \color[black]{\bf
...} and \color
luigi scarso luigi.sca...@gmail.com writes:
On Fri, Dec 11, 2009 at 5:37 PM, Oliver Heins o...@sopos.org wrote:
Hi Luigi,
luigi scarso luigi.sca...@gmail.com writes:
hm I believed was
\color[red]{..}
and
\startcolor[red]
...
\stopcolor
You're right, I mixed things up here
luigi scarso wrote:
On Fri, Dec 11, 2009 at 5:37 PM, Oliver Heins o...@sopos.org wrote:
Hi Luigi,
luigi scarso luigi.sca...@gmail.com writes:
hm I believed was
\color[red]{..}
and
\startcolor[red]
...
\stopcolor
You're right, I mixed things up here. But nontheless, my example
$
% Styles specific to the pres and MS modes: \input presentation.tex
\input manuscript.tex
\starttext
\startcolor[TextColor]
\setupalign[right, nothyphenated]
\setuptolerance[horizontal,verytolerant]
% Title
\titlepage{Gems, The Earth \ its Works
Dear all,
I'm trying to change the color of the
footer text. I typed:
\def\footerstyle#1{\startcolor[red]#1\stopcolor}
\setupfooter[style=\footerstyle]
But I receive an error that I can't
interpret.
! Argument of \footerstyle has an extra }.
inserted text
\par
to be read
Antoine Cailliau wrote:
Dear all,
I'm trying to change the color of the
footer text. I typed:
\def\footerstyle#1{\startcolor[red]#1\stopcolor}
\setupfooter[style=\footerstyle]
has to do with the fact that style does not pass an argument
does
\setupfooter[color=red]
work
Dear,
\def\footerstyle#1{\startcolor[red]#1\stopcolor}
\setupfooter[style=\footerstyle]
has to do with the fact that style does not pass an argument
does
\setupfooter[color=red]
work?
Yes, perfectly. I did not tried it since
this was not documented (or at least I may
misread
Hello,
I have problems with the following minimal example (I only want to
typeset white labels inside the table), but maybe I'm the only one
again:
\setupcolors[state=start]
\starttext
\startcolor[white]
\placetable[force]{none}{\starttable[|r|]
\NC \color[red]{me} \AR
\stoptable
On Mon, Sep 14, 2009 at 19:53, Mojca Miklavec wrote:
Hello,
I have problems with the following minimal example (I only want to
typeset white labels inside the table), but maybe I'm the only one
again:
\setupcolors[state=start]
\starttext
\startcolor[white]
\placetable[force]{none
Mojca Miklavec wrote:
Hello,
I have problems with the following minimal example (I only want to
typeset white labels inside the table), but maybe I'm the only one
again:
\setupcolors[state=start]
\starttext
\startcolor[white]
\placetable[force]{none}{\starttable[|r|]
\NC \color[red
En/na Xan ha escrit:
Hi,
Is it possible to put numerstyle=boldstyle in this enumeration?:
\defineenumeration
[exercici]
[text={\startcolor[middlecyan]Exercici\stopcolor},headstyle=bold,between=\blank,titledistance=0em,textdistance=1em,
stopper={.\space},location=serried,titleleft
On Thu, 5 Mar 2009, Xan wrote:
En/na Xan ha escrit:
Hi,
Is it possible to put numerstyle=boldstyle in this enumeration?:
\defineenumeration
[exercici]
[text={\startcolor[middlecyan]Exercici\stopcolor},headstyle=bold,between=\blank,titledistance=0em,textdistance=1em,
stopper={.\space
En/na Aditya Mahajan ha escrit:
On Thu, 5 Mar 2009, Xan wrote:
En/na Xan ha escrit:
Hi,
Is it possible to put numerstyle=boldstyle in this enumeration?:
\defineenumeration
[exercici]
[text={\startcolor[middlecyan]Exercici\stopcolor},headstyle=bold,between=\blank,titledistance=0em
Hi,
Is it possible to put numerstyle=boldstyle in this enumeration?:
\defineenumeration
[exercici]
[text={\startcolor[middlecyan]Exercici\stopcolor},headstyle=bold,between=\blank,titledistance=0em,textdistance=1em,
stopper={.\space},location=serried,titleleft=(,titleright=),width=fit
.
\startsetups header:chapter:middle
\startcolor[red]
\it Chapter page
\stopcolor
\stopsetups
\definetext[chapter][header][\setups{chapter:header:middle}]
Wolfgang
___
If your question is of interest to others
On Sun, Feb 15, 2009 at 11:04 AM, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:
You can format the text in \definetext.
\startsetups header:chapter:middle
\startcolor[red]
\it Chapter page
\stopcolor
\stopsetups
\definetext[chapter][header][\setups{chapter:header:middle
okay. So there should be something
wrong with my flowchart code. But I do not see anything. What is going
wrong here?
Don't use \startcolor[white] to change the color of the main text,
use \setupcolors[state=start,textcolor=white] instead.
Wolfgang
. This looks okay. So there should be something
wrong with my flowchart code. But I do not see anything. What is going
wrong here?
Don't use \startcolor[white] to change the color of the main text,
use \setupcolors[state=start,textcolor=white] instead.
That works. I got the code from
http
with a script that can automatically check
if the pdf output changed with different version. However, it has been
dormat for about a year now. For more info see
http://wiki.contextgarden.net/Test
and add more tests.
Adiyta, you shouldn't have hard-coded:
./frontmatter.tex:\startcolor[darkred
No the citations aren't working.
Am I the only one who thinks ConTeXt needs a extensive set of regression
tests?
Adiyta, you shouldn't have hard-coded:
./frontmatter.tex:\startcolor[darkred]\titlefont \hskip 1.5em Chapters
\stopcolor}
Changing L191 env-thesis.tex, has no effect
tests.
Adiyta, you shouldn't have hard-coded:
./frontmatter.tex:\startcolor[darkred]\titlefont \hskip 1.5em Chapters
\stopcolor}
Yeah, I know. This was just a quick change, so I did not bother with
elegance. The proper way of doing it would be to define a titlecolor
and use that.
Changing
at an important
job-talk...
I don't if this will help you but you can try the following three changes.
1. Change the defintion of \sln
\define\sln{\startcolor[red][\nextSlideNumber]\stopcolor}
2. Put a \relax after the xml setup for \sln
\startxmlsetups xml:sln
\sln\relax
\stopxmlsetups
3
On Nov 28, 2008, at 10:22 AM, Wolfgang Schuster wrote:
I don't if this will help you but you can try the following three
changes.
1. Change the defintion of \sln
\define\sln{\startcolor[red][\nextSlideNumber]\stopcolor}
2. Put a \relax after the xml setup for \sln
\startxmlsetups
On Fri, Nov 28, 2008 at 11:16 AM, Thomas A. Schmitz
[EMAIL PROTECTED] wrote:
On Nov 28, 2008, at 10:22 AM, Wolfgang Schuster wrote:
I don't if this will help you but you can try the following three
changes.
1. Change the defintion of \sln
\define\sln{\startcolor[red][\nextSlideNumber
\stoptext
Tex colors do not work inside textext. Try
label(textext(\startcolor[red] red \stopcolor), origin) ;
One way to get around this is to use \sometxt.
label(\sometxt{\doattributes{label}{style}{color}{Label}},(5cm,0)) ;
But then you have to be careful about the differences between
(\startcolor[red] red \stopcolor), origin) ;
One way to get around this is to use \sometxt.
label(\sometxt{\doattributes{label}{style}{color}{Label}},(5cm,0)) ;
But then you have to be careful about the differences between \sometxt in
MKII and MKIV (which I need to summarize on the wiki
\labelcolor{red}
\stopMPenvironment
This gives you only bold label.
\starttext
\startMPcode
label(textext(\doattributes{label}{style}{color}{Label}),origin) ;
\stopMPcode
\stoptext
Tex colors do not work inside textext. Try
label(textext(\startcolor[red] red \stopcolor), origin) ;
One
.
\starttext
\startMPcode
label(textext(\doattributes{label}{style}{color}{Label}),origin) ;
\stopMPcode
\stoptext
Tex colors do not work inside textext. Try
label(textext(\startcolor[red] red \stopcolor), origin) ;
One way to get around this is to use \sometxt.
label(\sometxt{\doattributes{label
\labelcolor{red}
\stopMPenvironment
This gives you only bold label.
I try to avoid this.
\starttext
\startMPcode
label(textext(\doattributes{label}{style}{color}{Label}),origin) ;
\stopMPcode
\stoptext
Tex colors do not work inside textext. Try
label(textext(\startcolor[red] red
Wolfgang Schuster wrote:
\bTABLE[aligncharacter=yes,alignmentcharacter={/}]
\bTR
\bTD 4 \startcolor[red] 0/8 \stopcolor \eTD
\bTD[foregroundcolor=red] ... \eTD
this will not add potentially interfering nodes (in mkii
on garden as well to ensure it was not an issue
in my setup --
1. \placefloat[here]{none} fails. \placegraphic works instead. This
works on MkII. See test_placefloat.tex.
2. MkIV fails due to the \startcolor...\stopcolor sequence embedded in
a natural table (see test_color.tex
is
\placefloat[floattype][here|page|...]{}{}
2. MkIV fails due to the \startcolor...\stopcolor sequence embedded
in a natural table (see test_color.tex). A working alternative is
commented in that file.
\bTD 4 \clear 0/8 \eTD
I think Hans is faster to find the bug, here is a shorter
{\startcolor[red]\em\penalty1\hskip0pt }
{\/\stopcolor}}
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
\/}
\def\Colorit%
{\groupedcommand{\color[red]\em\penalty1\hskip0pt }\/}
\color expects an argument
\def\Colorit%
{\groupedcommand
{\startcolor[red]\em\penalty1\hskip\zeropoint}
{\stopcolor\/}}
\starttext
test\footnote{text text text text text text text text text
):
\def\Colorit%
{\groupedcommand
{\startcolor[red]\em\penalty1\hskip0pt }
{\/\stopcolor}}
works! and that from Hans too.
Hans ends with ... {\stopcolor\/}}
Tacos with ... {\/\stopcolor}}
Sorry, this is too sophisticated for me to figure out:
Which one is better, i.e. more
for everything else):
\def\Colorit%
{\groupedcommand
{\startcolor[red]\em\penalty1\hskip0pt }
{\/\stopcolor}}
works! and that from Hans too.
Hans ends with ... {\stopcolor\/}}
Tacos with ... {\/\stopcolor}}
Sorry, this is too sophisticated for me to figure out
some typing
\stoptyping
should be same as this:
\starttyping
some typing
\stoptyping
This:
\startcolor[blue]
\starttyping
some typing
\stoptyping
\stopcolor
should be same as this:
\startcolor[blue]
\starttyping
some typing
\stoptyping
\stopcolor
some text
\stoptext
Cheers, Peter
: 3.689073
the chemical.tex file:
\starttext
\chapter{Chemical}
\usemodules[pictex,chemic]
\startchemical\chemical[SIX,B,B]\stopchemical
\startcolor[blue] \startchemical
\color[red]{\chemical[SIX,B,R14,RD25,RB36,RZ36][OH,COOH] }
\stopchemical \stopcolor
\stoptext
On Tue, Jun 3, 2008 at 2:16 PM, Yanli Li [EMAIL PROTECTED] wrote:
[log file]
the chemical.tex file:
\starttext
\chapter{Chemical}
\usemodules[pictex,chemic]
What is the result if you try it without PiCTeX.
\usemodule[chemic]
\startchemical\chemical[SIX,B,B]\stopchemical
\startcolor
Hello,
Another problem with PGF+ConTeXt is the handling of cmyk colors:
\usemodule[tikz]
\setupcolors[state=start]
\definecolor[my_yellow][c=0,m=0.3,y=0.94,k=0]
\starttext
\startcolor[my_yellow]
Yellow text.
\stopcolor
\starttikzpicture
\fill[my_yellow] (0,0) circle(1);
\stoptikzpicture
formatted exactly as I need.
you should better use, as Hans told in his mail the simple color command
could cause a unwanted result.
\definereferenceformat
[givenote]
[command=\in,
left={\startcolor[blue]},
right=\stopcolor]
Wolfgang
a unwanted result.
\definereferenceformat
[givenote]
[command=\in,
left={\startcolor[blue]},
right=\stopcolor]
Wolfgang
___
If your question is of interest to others as well, please add an
entry
\startbuffer[name] \stopbuffer
\startcolor[name] \stopcolor
\startcolumns[settings] \stopcolumns
\startcombination[matrix] \stopcombination
\startcomment[name][settings] \stopcomment
\startcomponent file \stopcomponent
\startdescription{text} \stopdescription
\startdocument[name] \stopdocument
Hi,
the visualization module did at the moment not work in mkiv, the fault
is the unbalanced \start/stopcolor command in the definition of
\fakerule.
The current definition is:
\def\fakerule#1%
{\strut
%\startcolor[fakerulecolor]%
\iffakebaseline
\vrule\!!height1.25ex\!!depth
Wolfgang Schuster wrote:
Hi,
the visualization module did at the moment not work in mkiv, the fault
is the unbalanced \start/stopcolor command in the definition of
\fakerule.
The current definition is:
\def\fakerule#1%
{\strut
%\startcolor[fakerulecolor]%
hm, i wonder when
Hi,
this minimal example compiles fine in mkii:
\setupcolors[state=start]
\starttext
\starttabulate
\startcolor[red]
\NC One \NC A \NC \NR
\NC Two \NC B \NC \NR
\stopcolor
\NC Three \NC C \NC \NR
\stoptabulate
\stoptext
With mkiv, I get this error:
! Missing \endgroup inserted.
inserted
Thomas A. Schmitz wrote:
Hi,
this minimal example compiles fine in mkii:
\setupcolors[state=start]
\starttext
\starttabulate
\startcolor[red]
\NC One \NC A \NC \NR
\NC Two \NC B \NC \NR
\stopcolor
\NC Three \NC C \NC \NR
\stoptabulate
\stoptext
well, with mkii you're just
] [PANTONE428CS][p=.8]
\definecolor[my_lightgrey] [PANTONE428CS][p=.5]
\setuppapersize[A4][A4]
\starttext
\section{CMYK colours}
\startcolor[cyan]
\input ward
\stopcolor
\startcolor[magenta]
\input ward
\stopcolor
\startcolor[yellow]
\input ward
\stopcolor
\section{Spot colours
{ \framed[height=6.16cm,width=6.22cm,x=0mm,y=0mm,frame=off,offset=none,frameoffset=0mm] {} \framed[height=61.6mm,width=21.4mm,x=0mm,y=0mm,frame=off,offset=none,frameoffset=0mm,align=right] {
\startcolor[myblack]
\startuseMPgraphic{mycircle}
draw fullcircle scaled 20.2mm;
draw fullcircle scaled
]\copy\scratchbox\egroup
\startcolor[green]\copy\scratchbox\stopcolor
\box\scratchbox
\stoptext
This always gives me black text, as color is not activated. How do I get
the correct gray scale values for the text?
Peter
___
ntg-context mailing list
ntg
{\startcolor[darkgray]
\vrule\c!height.5\!!dimena\c!width\hsize\hss
\stopcolor}%
\midaligned{\box\scratchbox}
\egroup}
\protect
\setupcolors[state=start]
\setuphead
[section]
[command=\cvsection,
textstyle=\ss\bf]
\starttext
\section{Work experience}
\stoptext
, *Zhichu Chen* [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] wrote:
Hi there,
Just a testing code:
=
\setupcolors [state=start]
\definecolor [testcolor] [r=1,g=.62,b=.0625]
\starttext
\startcolor [testcolor
=.62,b=.0625]
\starttext
\startcolor [testcolor]
\startcolumns [direction=left]
\dorecurse{15}{\input knuth\endgraf}
\stopcolumns
\stopcolor
\stoptext
=
And I find it's not perfectly what I really want. Is there any
Hi everybody,
Does this only happen to me?
On 2/9/07, Zhichu Chen [EMAIL PROTECTED] wrote:
Hi there,
Just a testing code:
=
\setupcolors [state=start]
\definecolor [testcolor] [r=1,g=.62,b=.0625]
\starttext
\startcolor [testcolor]
\startcolumns
:[EMAIL PROTECTED] wrote:
Hi there,
Just a testing code:
=
\setupcolors [state=start]
\definecolor [testcolor] [r=1,g=.62,b=.0625]
\starttext
\startcolor [testcolor]
\startcolumns [direction=left
[state=start]
\definecolor [testcolor] [r=1,g=.62,b=.0625]
\starttext
\startcolor [testcolor]
\startcolumns [direction=left]
\dorecurse{15}{\input knuth\endgraf}
\stopcolumns
\stopcolor
\stoptext
I'm really struggling to get this working... I've got some keywords
which i want to mark in the text with a special style:
--
\starttext
\usetypescript[adobekb][\defaultencoding]
\setupbodyfont[pos,9pt]
\setupcolors[state=start]
\define[1]\Keyword{%
{\startcolor[darkgreen]\bf{#1
]' $OUT.tex
echo '\long\def\startDeleted*#1\stopDeleted*{\overstrikes{#1}}' $OUT.tex
echo '\long\def\startAdded*#1\stopAdded*{\startcolor[blue]#1\stopcolor}' \
$OUT.tex
wdiff -w '\startDeleted*' -x '\stopDeleted*' \
-y '\startAdded*' -z '\stopAdded*' $OLD $NEW $OUT.tex
texexec $@ $OUT
OF textext
\unexpanded\def\startcolor
{\ifincolor
\expandafter\doglobalstartcolor
\else
\expandafter\noglobalstartcolor
\fi}
\unexpanded\def\stopcolor
{\ifincolor
\doglobalstopcolor
\else
\noglobalstopcolor
\fi}
and
% PATCH FOR STANDALONE GRAPHICS WHERE textext WAS NOT WORKING
! Missing \endcsname inserted.
to be read again
\bgroup
\switchtocolor [#1]-\bgroup
\startcolor [#1]\aftergroup \stopcolor \aftergr...
\doifcolorelse ...\ifcsname \??cr \currentpalet #1
\endcsname
Hans van der Meer wrote:
Thanks, that worked. But it leads to my next question, I am afraid.
This really should have worked:
\definecolor [brightred][r=0.7, g=.1, b=.1]
\definecolor [FrameColor][brightred]
\setupcolors[state=start]
\starttext
\startcolor[FrameColor]Bright Red
in
\startcolor[\MPcolor{FrameColor}]...\stopcolor
or\startcolor[FrameColor]...\stopcolor
but neither of these worked, nor did
{\switchtocolor[FrameColor]...}\crlf
{\switchtocolor[\MPcolor{FrameColor}]...}\crlf
How can I use FrameColor here to? Without defining extra macros
around
Thanks, that worked. But it leads to my next question, I am afraid.
When I define:
\definecolor [brightred][r=0.7, g=.1, b=.1]
then I can use this in \startcolor[brightred]...\stopcolor
according to \meaning brightred being \protected macro \switchtocolor
[brightred]
Now I am fond
}), (0,0)); % returns
black XYZ on execute
label(textext(\startcolor[red]{XYZ}\stopcolor), (0,20)); % returns
unknown on execute
\stopuseMPgraphic
\starttext
\forceMPTEXgraphictrue
\startMPpage
\includeMPgraphic{test}
\stopMPpage
\stoptext
I tried to run this on context
\startcolor[#1]\processinlineverbatim{\stopcolor\egroup}}
\setuplines[space=yes]
\starttext
\startlines
\setverbatimspaceskip
\frenchspacing
\parindent\zeropoint
\verbatimfont
\highlight[Comment]{/*}
\highlight[Comment]{ * contents: A minimal C program.}
\highlight[Comment]{ *}
\highlight[Comment
Nikolai Weibull wrote:
* Willi Egger (Mar 20, 2005 18:00):
May be you should try a buffer to put the typing in. In the overlay
you can call the buffer with \typebuffer[...]
\startbuffer[title]
...
\stopbuffer
\defineoverlay
[TitleGraphic]
[{\startcolor[titlegraphic]\typebuffer[title
]
\definecolor [blue] [c=1,m=.38,y=0,k=.64]
\definecolor [yellow] [c=0,m=.28,y=1,k=.06]
\definecolor [blue-100] [blue] [p=1]
\definecolor [yellow-100] [yellow] [p=1]
\definemultitonecolor [combicolor] [blue=.12,yellow=.28] [c=.1,m=.1,y=.3,k=.1]
\starttext
\startcolor[blue]\blackrule[width=3cm
]
{\initializefox
\expanded{\definecolor[fx:color:\foxlabel][\foxarguments]}}
\defineXMLnested
[fx:color] [fox]
[label=fallbackfont]
{\initializefox
\startcolor[fx:color:\foxlabel]}
{\stopcolor}
% margin things
\setupinmargin[style=,color=]
\defineXMLargument
[fx:margintext] [fox] [label=default
101 - 200 of 201 matches
Mail list logo