ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* RE: D R A F T on pages
@ 2005-10-07 19:08 Idris Samawi Hamid
  0 siblings, 0 replies; 11+ messages in thread
From: Idris Samawi Hamid @ 2005-10-07 19:08 UTC (permalink / raw)


>===== Original Message From Peter Münster <pmlists@free.fr> =====

>Perhaps a bit simpler:
>
>\setupcolors[state=start]
>\defineoverlay[Draft][{\lightgray
>  \scale[factor=max]{\rotate[rotation=60]{~DRAFT~}}}]
>\setupbackgrounds[page][background=Draft]
>\starttext
>\input tufte
>\stoptext

Indeed! Wonderful!!

Best
Idris

============================
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: D R A F T on pages
  2005-10-07 18:34                     ` Peter Münster
@ 2005-10-07 19:28                       ` Jilani Khaldi
  0 siblings, 0 replies; 11+ messages in thread
From: Jilani Khaldi @ 2005-10-07 19:28 UTC (permalink / raw)



>Perhaps a bit simpler:
>
>\setupcolors[state=start]
>\defineoverlay[Draft][{\lightgray
>  \scale[factor=max]{\rotate[rotation=60]{~DRAFT~}}}]
>\setupbackgrounds[page][background=Draft]
>\starttext
>\input tufte
>\stoptext
>
>  
>
It works! Thank You :-)

-- 
// Jilani KHALDI
http://jkhaldi.oltrelinux.com

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: D R A F T on pages
  2005-10-07 17:35                   ` Thomas A. Schmitz
@ 2005-10-07 18:34                     ` Peter Münster
  2005-10-07 19:28                       ` Jilani Khaldi
  0 siblings, 1 reply; 11+ messages in thread
From: Peter Münster @ 2005-10-07 18:34 UTC (permalink / raw)


On Fri, 7 Oct 2005, Thomas A. Schmitz wrote:

> You'll need to do 2 things:
> 
> in your texmf.cnf, you have to set shellescape to "t" (don't ask me  
> where that is located on a windows system, I have no idea).
> 
> In cont-sys.tex, uncomment these two lines:
> 
> \runMPgraphicstrue
> \runMPTEXgraphicstrue

Perhaps a bit simpler:

\setupcolors[state=start]
\defineoverlay[Draft][{\lightgray
  \scale[factor=max]{\rotate[rotation=60]{~DRAFT~}}}]
\setupbackgrounds[page][background=Draft]
\starttext
\input tufte
\stoptext

Cheers, Peter

-- 
http://pmrb.free.fr/contact/

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: D R A F T on pages
  2005-10-07 10:03                 ` Jilani Khaldi
@ 2005-10-07 17:35                   ` Thomas A. Schmitz
  2005-10-07 18:34                     ` Peter Münster
  0 siblings, 1 reply; 11+ messages in thread
From: Thomas A. Schmitz @ 2005-10-07 17:35 UTC (permalink / raw)


You'll need to do 2 things:

in your texmf.cnf, you have to set shellescape to "t" (don't ask me  
where that is located on a windows system, I have no idea).

In cont-sys.tex, uncomment these two lines:

\runMPgraphicstrue
\runMPTEXgraphicstrue

Good luck


Thomas


On Oct 7, 2005, at 12:03 PM, Jilani Khaldi wrote:

> As you can see, the PDF file has been normaly created, but without  
> any "DRAFT".
>
> Ciao!
>
>

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: D R A F T on pages
  2005-10-06 23:12               ` Idris Samawi Hamid
@ 2005-10-07 10:03                 ` Jilani Khaldi
  2005-10-07 17:35                   ` Thomas A. Schmitz
  0 siblings, 1 reply; 11+ messages in thread
From: Jilani Khaldi @ 2005-10-07 10:03 UTC (permalink / raw)



> Please give the appropriate extracts from the log file, including 
> ConTeXt version and where the error occurs.
>

This is pdfeTeX, Version 3.141592-1.21a-2.2 (MiKTeX 2.4) (preloaded 
format=cont-en 2005.9.28)  7 OCT 2005 11:52
entering extended mode
**draft1.tex
(draft1.tex

ConTeXt  ver: 2005.08.31  fmt: 2005.9.28  int: english  mes: english

language        : language en is active
<protectionstate 0>
system          : cont-new loaded
(C:\texmf\tex\context\base\cont-new.tex
systems         : beware: some patches loaded from cont-new.tex
color           : palette rollover is available
)
system          : cont-old loaded
(C:\texmf\tex\context\base\cont-old.tex
loading         : Context Old Macros
)
system          : cont-fil loaded
(C:\texmf\tex\context\base\cont-fil.tex
loading         : Context File Synonyms
)
system          : cont-sys.rme loaded
(C:\texmf\tex\context\user\cont-sys.rme
(C:\texmf\tex\context\base\./type-exa.tex)
(C:\texmf\tex\context\base\./type-syn.tex)
(C:\texmf\tex\context\base\./type-enc.tex)
(C:\texmf\tex\context\base\./type-dis.tex)
(C:\texmf\tex\context\base\./type-siz.tex)
(C:\texmf\tex\context\base\./type-map.tex)
(C:\texmf\tex\context\base\./type-spe.tex)
(C:\texmf\tex\context\base\./type-akb.tex))
bodyfont        : 12pt rm is loaded
language        : patterns en->ec:ec->1->2:2 uk->ec:ec->2->2:2 
de->texnansi:tex
nansi->3->2:2 de->ec:ec->4->2:2 fr->texnansi:texnansi->5->2:2 
fr->ec:ec->6->2:2
 es->ec:ec->7->2:2 pt->texnansi:texnansi->8->2:2 pt->ec:ec->9->2:2 
it->texnansi
:texnansi->10->2:2 it->ec:ec->11->2:2 nl->texnansi:texnansi->12->2:2 
nl->ec:ec-
 >13->2:2 cz->il2:il2->14->2:2 cz->ec:ec->15->2:2 sk->il2:il2->16->2:2 
sk->ec:ec
->17->2:2 pl->pl0:pl0->18->2:2 pl->ec:ec->19->2:2 loaded
specials        : tex,postscript,rokicki loaded
system          : draft1.top loaded
(./draft1.top
specials        : loading definition file tpd
(C:\texmf\tex\context\base\spec-tpd.tex
specials        : loading definition file fdf
(C:\texmf\tex\context\base\spec-fdf.tex)
specials        : fdf loaded
)
specials        : fdf,tpd loaded
)
color           : system rgb is global activated
(./draft1.tuo) (./draft1.tuo) (./draft1.tuo) (./draft1.tuo) (./draft1.tuo)
(./draft1.tuo) (./draft1.tuo) (./draft1.tuo) (./draft1.tuo) (./draft1.tuo)
(./draft1.tuo) (./draft1.tuo) (./draft1.tuo)
systems         : begin file draft1 at line 14
chapter         : 1 Integrali da 1 a 10
section         : 1.1 I-001
section         : 1.2 I-002
(C:\texmf\tex\context\base\pdfr-ec.tex)
fonts           : resetting map file list
fonts           : using map file: original-base
fonts           : using map file: ec-public-lm
fonts           : using map file: ec-base
fonts           : using map file: original-ams-base
fonts           : using map file: original-public-lm
systems         : randomizer starts with 836731516
[MP to PDF] (./draft1-mpgraph.4000) 
[1.1{original-empty.map}{original-base.map}
{ec-public-lm.map}{ec-base.map}{original-ams-base.map}{original-public-lm.map}]
section         : 1.3 I-003
section         : 1.4 I-004
[MP to PDF] (./draft1-mpgraph.3999) [2.2]
section         : 1.5 I-005
section         : 1.6 I-006
section         : 1.7 I-007
[MP to PDF] (./draft1-mpgraph.3998) [3.3]
section         : 1.8 I-008
section         : 1.9 I-009
[MP to PDF] (./draft1-mpgraph.3997) [4.4]
section         : 1.10 I-010
[MP to PDF] (./draft1-mpgraph.3996) [5.5]
systems         : end file draft1 at line 211
[flush and process draft1-mpgraph.mp afterwards] )
Here is how much of TeX's memory you used:
 1499 strings out of 61144
 24008 string characters out of 647757
 525593 words of memory out of 1080614
 37208 multiletter control sequences out of 60000
 81098 words of font info for 39 fonts, out of 1000000 for 2000
 182 hyphenation exceptions out of 4999
 44i,21n,61p,410b,655s stack positions out of 
5000i,500n,10000p,200000b,32768s
PDF statistics:
 41 PDF objects out of 300000
 0 named destinations out of 300000
 5 words of extra memory for PDF output out of 65536
{cmrm.enc}<C:\texmf\fonts\typ
e1\public\lm\lmr7.pfb><C:\texmf\fonts\type1\bluesky\cm\cmmi9.pfb><C:\texmf\font
s\type1\bluesky\cm\cmsy10.pfb><C:\texmf\fonts\type1\public\lm\lmr9.pfb><C:\texm
f\fonts\type1\bluesky\cm\cmex10.pfb><C:\texmf\fonts\type1\public\lm\lmr12.pfb><
C:\texmf\fonts\type1\bluesky\cm\cmmi12.pfb>{ec-lm.enc}<C:\texmf\fonts\type1\pub
lic\lm\lmr12.pfb>
Output written on draft1.pdf (5 pages, 102920 bytes).
%%%%%%%%%%%% E N D %%%%%%%%%%%%%

As you can see, the PDF file has been normaly created, but without any 
"DRAFT".

Ciao!

-- 
// Jilani KHALDI
http://jkhaldi.oltrelinux.com

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: D R A F T on pages
  2005-10-06 21:49             ` Jilani Khaldi
  2005-10-06 23:12               ` Idris Samawi Hamid
@ 2005-10-07  6:35               ` andrea valle
  1 sibling, 0 replies; 11+ messages in thread
From: andrea valle @ 2005-10-07  6:35 UTC (permalink / raw)


works properly here on macosx with texshop

-a-


On 6 Oct 2005, at 23:49, Jilani Khaldi wrote:

>
>> \startuseMPgraphic{draft}
>> draw "DRAFT" infont "phvb" scaled 9 rotated 57 withcolor .85white ;
>> currentpicture := currentpicture ysized (\overlayheight-3cm) ;
>> \stopuseMPgraphic
>> \defineoverlay[draft][\uniqueMPgraphic{draft}]
>> \setupbackgrounds[page][background=draft]
>
> I can't get it working, could you please give me more information how 
> to use this code?
> Thank you.
>
> -- 
> // Jilani KHALDI
> http://jkhaldi.oltrelinux.com
>
>
>
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>
>
Andrea Valle
Laboratorio multimediale "G. Quazza"
Facoltà di Scienze della Formazione
Università degli Studi di Torino
andrea.valle@unito.it

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: D R A F T on pages
  2005-10-06 21:49             ` Jilani Khaldi
@ 2005-10-06 23:12               ` Idris Samawi Hamid
  2005-10-07 10:03                 ` Jilani Khaldi
  2005-10-07  6:35               ` andrea valle
  1 sibling, 1 reply; 11+ messages in thread
From: Idris Samawi Hamid @ 2005-10-06 23:12 UTC (permalink / raw)


On Thu, 06 Oct 2005 23:49:22 +0200, Jilani Khaldi 
<jilani.khaldi1@virgilio.it> wrote:

>
>> \startuseMPgraphic{draft}
>> draw "DRAFT" infont "phvb" scaled 9 rotated 57 withcolor .85white ;
>> currentpicture := currentpicture ysized (\overlayheight-3cm) ;
>> \stopuseMPgraphic
>> \defineoverlay[draft][\uniqueMPgraphic{draft}]
>> \setupbackgrounds[page][background=draft]
>
> I can't get it working, could you please give me more information how to 
> use this code?
> Thank you.

Please give the appropriate extracts from the log file, including ConTeXt 
version and where the error occurs.

Best
Idris

-- 
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: D R A F T on pages
  2005-10-06 20:36           ` Thomas A. Schmitz
@ 2005-10-06 21:49             ` Jilani Khaldi
  2005-10-06 23:12               ` Idris Samawi Hamid
  2005-10-07  6:35               ` andrea valle
  0 siblings, 2 replies; 11+ messages in thread
From: Jilani Khaldi @ 2005-10-06 21:49 UTC (permalink / raw)



> \startuseMPgraphic{draft}
> draw "DRAFT" infont "phvb" scaled 9 rotated 57 withcolor .85white ;
> currentpicture := currentpicture ysized (\overlayheight-3cm) ;
> \stopuseMPgraphic
> \defineoverlay[draft][\uniqueMPgraphic{draft}]
> \setupbackgrounds[page][background=draft]

I can't get it working, could you please give me more information how to 
use this code?
Thank you.

-- 
// Jilani KHALDI
http://jkhaldi.oltrelinux.com

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: D R A F T on pages
  2005-10-06 20:20         ` D R A F T on pages Jilani Khaldi
  2005-10-06 20:36           ` Thomas A. Schmitz
@ 2005-10-06 20:47           ` Idris Samawi Hamid
  1 sibling, 0 replies; 11+ messages in thread
From: Idris Samawi Hamid @ 2005-10-06 20:47 UTC (permalink / raw)


On Thu, 06 Oct 2005 22:20:34 +0200, Jilani Khaldi 
<jilani.khaldi1@virgilio.it> wrote:

> Hi All,
> how to write the word "DRAFT" (big and transparent) on every page of a 
> document using ConTeXt?
> Thanks!

For one approach, see the following

http://archive.contextgarden.net/search/20061201.070000.00000000@sb:draft.en.html

Best
Idris

-- 
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: D R A F T on pages
  2005-10-06 20:20         ` D R A F T on pages Jilani Khaldi
@ 2005-10-06 20:36           ` Thomas A. Schmitz
  2005-10-06 21:49             ` Jilani Khaldi
  2005-10-06 20:47           ` Idris Samawi Hamid
  1 sibling, 1 reply; 11+ messages in thread
From: Thomas A. Schmitz @ 2005-10-06 20:36 UTC (permalink / raw)


Try this code:

\startuseMPgraphic{draft}
draw "DRAFT" infont "phvb" scaled 9 rotated 57 withcolor .85white ;
currentpicture := currentpicture ysized (\overlayheight-3cm) ;
\stopuseMPgraphic
\defineoverlay[draft][\uniqueMPgraphic{draft}]
\setupbackgrounds[page][background=draft]

HTH

Thomas

On Oct 6, 2005, at 10:20 PM, Jilani Khaldi wrote:

> Hi All,
> how to write the word "DRAFT" (big and transparent) on every page  
> of a document using ConTeXt?
> Thanks!
>
>

^ permalink raw reply	[flat|nested] 11+ messages in thread

* D R A F T on pages
  2005-10-05 16:17       ` Thomas A. Schmitz
@ 2005-10-06 20:20         ` Jilani Khaldi
  2005-10-06 20:36           ` Thomas A. Schmitz
  2005-10-06 20:47           ` Idris Samawi Hamid
  0 siblings, 2 replies; 11+ messages in thread
From: Jilani Khaldi @ 2005-10-06 20:20 UTC (permalink / raw)


Hi All,
how to write the word "DRAFT" (big and transparent) on every page of a 
document using ConTeXt?
Thanks!

-- 
// Jilani KHALDI
http://jkhaldi.oltrelinux.com

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2005-10-07 19:28 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-07 19:08 D R A F T on pages Idris Samawi Hamid
  -- strict thread matches above, loose matches on Subject: below --
2005-10-05 10:48 Anchoring layer Thomas A. Schmitz
2005-10-05 11:12 ` Peter Rolf
2005-10-05 12:57   ` Thomas A. Schmitz
2005-10-05 13:55     ` Peter Rolf
2005-10-05 16:17       ` Thomas A. Schmitz
2005-10-06 20:20         ` D R A F T on pages Jilani Khaldi
2005-10-06 20:36           ` Thomas A. Schmitz
2005-10-06 21:49             ` Jilani Khaldi
2005-10-06 23:12               ` Idris Samawi Hamid
2005-10-07 10:03                 ` Jilani Khaldi
2005-10-07 17:35                   ` Thomas A. Schmitz
2005-10-07 18:34                     ` Peter Münster
2005-10-07 19:28                       ` Jilani Khaldi
2005-10-07  6:35               ` andrea valle
2005-10-06 20:47           ` Idris Samawi Hamid

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).