* followtokens & font color
@ 2006-01-06 23:18 Renaud AUBIN
2006-01-07 14:20 ` Willi Egger
2006-01-07 14:27 ` headers of multiple pages toc Willi Egger
0 siblings, 2 replies; 8+ messages in thread
From: Renaud AUBIN @ 2006-01-06 23:18 UTC (permalink / raw)
[-- Attachment #1.1: Type: text/plain, Size: 378 bytes --]
Hi all,
I use \followtokens and I would colorize the text.
I've try some drawoptions or ConTeXt command to switch font color (i.e.
{\red red text}) and nothing works. Is it possible to switch color
during \definefont[RotFont][] ?
Any idea on how to do this ?
PS: Please, is there anyone who can answer to my thread [NTG-context]
headers of multiple pages toc ?
Thanks
[-- Attachment #1.2: Type: text/html, Size: 716 bytes --]
[-- Attachment #2: Type: text/plain, Size: 139 bytes --]
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: followtokens & font color
2006-01-06 23:18 followtokens & font color Renaud AUBIN
@ 2006-01-07 14:20 ` Willi Egger
2006-01-08 20:52 ` Renaud AUBIN
2006-01-07 14:27 ` headers of multiple pages toc Willi Egger
1 sibling, 1 reply; 8+ messages in thread
From: Willi Egger @ 2006-01-07 14:20 UTC (permalink / raw)
Hi Renaud,
you can define a color with
\definecolor[brown] [r=.9,g=.8,b=0.6]
in your MEATPOST code you can say things like
drawoptions(withcolor \MPcolor{brown}) i.e. that all will be
drawn in borwn
draw ... withcolor \MPcolor{brown} i.e. append the color to the
drawing statement.
Willi
Renaud AUBIN wrote:
>
> Hi all,
>
> I use \followtokens and I would colorize the text.
> I've try some drawoptions or ConTeXt command to switch font color
> (i.e. {\red red text}) and nothing works. Is it possible to switch
> color during \definefont[RotFont][] ?
> Any idea on how to do this ?
>
> PS: Please, is there anyone who can answer to my thread [NTG-context]
> headers of multiple pages toc ?
>
>
> Thanks
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>ntg-context mailing list
>ntg-context@ntg.nl
>http://www.ntg.nl/mailman/listinfo/ntg-context
>
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: headers of multiple pages toc
2006-01-06 23:18 followtokens & font color Renaud AUBIN
2006-01-07 14:20 ` Willi Egger
@ 2006-01-07 14:27 ` Willi Egger
1 sibling, 0 replies; 8+ messages in thread
From: Willi Egger @ 2006-01-07 14:27 UTC (permalink / raw)
Hi Renaud,
Actually I have the thread deleted...
Still, if I remember correctly, you could do things like
\setupheadertexts[Mybook-title][Contents]
\completecontent[criterium=all, interaction=all]
Where \completecontent places a title and an entry in the TOC itself.
The following pages of the TOC will get a header as setup with the
setupheadertexts command.
Willi
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: followtokens & font color
2006-01-07 14:20 ` Willi Egger
@ 2006-01-08 20:52 ` Renaud AUBIN
0 siblings, 0 replies; 8+ messages in thread
From: Renaud AUBIN @ 2006-01-08 20:52 UTC (permalink / raw)
Hi Willi, all,
Thank you for your answer but it doesn't work... I need it quickly, so
I've a solution but it's not, hum, very clean since I don't know
metapost very well:
\def\followtokens#1%
{\vbox\bgroup
\forgetall
\dontcomplain
\startMPenvironment
\doifundefined{RotFont}{\definefont[RotFont][RegularBold]}
\stopMPenvironment
\MPtoks\emptytoks
\resetMPdrawing
\startMPdrawing
\includeMPgraphic{followtokens}
picture pic[] ; numeric len[], n ; n := 0 ;
\stopMPdrawing
\handletokens#1\with\processfollowingtoken
\startMPdrawing
if unknown RotPath : path RotPath ; RotPath := origin ; fi ;
if unknown RotColor : color RotColor ; RotColor := (0,.625,0) ;
fi ; % mygreen
if unknown TraceRot : boolean TraceRot ; TraceRot := false ; fi ;
...
Renaud
Willi Egger a écrit :
> Hi Renaud,
>
> you can define a color with
> \definecolor[brown] [r=.9,g=.8,b=0.6]
>
> in your MEATPOST code you can say things like
> drawoptions(withcolor \MPcolor{brown}) i.e. that all will be
> drawn in borwn
> draw ... withcolor \MPcolor{brown} i.e. append the color to the
> drawing statement.
>
> Willi
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: headers of multiple pages toc
2006-01-03 17:47 ` Hans Hagen
2006-01-03 19:56 ` Renaud AUBIN
@ 2006-01-04 10:14 ` Renaud AUBIN
1 sibling, 0 replies; 8+ messages in thread
From: Renaud AUBIN @ 2006-01-04 10:14 UTC (permalink / raw)
Hans Hagen a écrit :
> just use \chapter{...} and \placecontent in a \startfrontmatter ..
> \stopfrontmatter section
>
> Hans
Doesn't work in \placecompletecontent... See my previous post...
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: headers of multiple pages toc
2006-01-03 17:47 ` Hans Hagen
@ 2006-01-03 19:56 ` Renaud AUBIN
2006-01-04 10:14 ` Renaud AUBIN
1 sibling, 0 replies; 8+ messages in thread
From: Renaud AUBIN @ 2006-01-03 19:56 UTC (permalink / raw)
Hans Hagen a écrit :
>
> just use \chapter{...} and \placecontent in a \startfrontmatter ..
> \stopfrontmatter section
>
> Hans
I use :
\setupheadertexts[][chapter]
\startfrontmatter
\setupheadertexts[][{\sl \getmarking[chapter]}]
\setuppagenumbering[conversion=romannumerals]
\setuppagenumber[number=1]
\completecontent[alternative=c]
\completelistoffigures[alternative=c]
\component src/chapters/c_intro
\stopfrontmatter
+
\setuphead[chapter][command=\ChapterHeader, style=\tfd, header=high]
\def\ChapterHeader#1#2{%
\framedtext
[width= \overlaywidth,
height=12\bodyfontsize,
background={foreground,HeaderDeco},
offset=0pt,
strut=no,
frame=off,
align=left]{%
\blank[4\bodyfontsize,force]
#1
\blank[small]
#2}}
\setupbackgrounds[header][text][bottomframe=on]
\setupbackgrounds[footer][text][topframe=on]
...in my environment.
My component c_intro contains a chapter on multiple page, the header
text and bottom frame work but I haven't any header text while header
bottom frame work in toc and lof
Cheers,
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: headers of multiple pages toc
2006-01-03 10:54 Renaud AUBIN
@ 2006-01-03 17:47 ` Hans Hagen
2006-01-03 19:56 ` Renaud AUBIN
2006-01-04 10:14 ` Renaud AUBIN
0 siblings, 2 replies; 8+ messages in thread
From: Hans Hagen @ 2006-01-03 17:47 UTC (permalink / raw)
Renaud AUBIN wrote:
> Hi all,
>
> I have multiple pages toc, lof and lot and I want to write headers on
> pages after the first... I have succeeded in writting headers (chapter
> or section titles) in other parts of my product but I dunno how to
> manage this in special part (i.e. in \placecompletecontent).
just use \chapter{...} and \placecontent in a \startfrontmatter ..
\stopfrontmatter section
Hans
^ permalink raw reply [flat|nested] 8+ messages in thread
* headers of multiple pages toc
@ 2006-01-03 10:54 Renaud AUBIN
2006-01-03 17:47 ` Hans Hagen
0 siblings, 1 reply; 8+ messages in thread
From: Renaud AUBIN @ 2006-01-03 10:54 UTC (permalink / raw)
[-- Attachment #1.1: Type: text/plain, Size: 291 bytes --]
Hi all,
I have multiple pages toc, lof and lot and I want to write headers on
pages after the first... I have succeeded in writting headers (chapter
or section titles) in other parts of my product but I dunno how to
manage this in special part (i.e. in \placecompletecontent).
Cheers,
[-- Attachment #1.2: Type: text/html, Size: 601 bytes --]
[-- Attachment #2: Type: text/plain, Size: 139 bytes --]
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2006-01-08 20:52 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-06 23:18 followtokens & font color Renaud AUBIN
2006-01-07 14:20 ` Willi Egger
2006-01-08 20:52 ` Renaud AUBIN
2006-01-07 14:27 ` headers of multiple pages toc Willi Egger
-- strict thread matches above, loose matches on Subject: below --
2006-01-03 10:54 Renaud AUBIN
2006-01-03 17:47 ` Hans Hagen
2006-01-03 19:56 ` Renaud AUBIN
2006-01-04 10:14 ` Renaud AUBIN
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).