ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Peter Rolf <indiego@gmx.net>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: page backgrounds
Date: Tue, 13 Nov 2007 19:12:51 +0100	[thread overview]
Message-ID: <4739E923.40004@gmx.net> (raw)
In-Reply-To: <fhbu4p$kj6$1@ger.gmane.org>

[-- Attachment #1: Type: text/plain, Size: 1089 bytes --]

Hi Olivier,

olivier Turlier schrieb:
> Hi everybody,
> I try to draw several metapost page backgrounds (code found at 
> http://melusine.eu.org/syracuse/poulecl/divers/papiers/ ) for manual
> sketchs on A4 paper.
> Obviously, it does'nt work, and I don't know why.
> TIA for any answers.
> Not so short examples are attached.

not so short working example attached. I had some problems with MP
(compilations stops in MP; CTRL-D or typing 'end' works)...I donno. Some
eof mess.

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
> ___________________________________________________________________________________


[-- Attachment #2: papier-quadrille.tex --]
[-- Type: text/plain, Size: 5902 bytes --]



\mainlanguage[fr]

%D Format de papier A4.
\setuppapersize[A4][A4]

\setuplayout
[width=middle,
topspace=1.5cm,
height=middle,
header=1cm,
footer=1cm]

\setupcolors[state=start]

\MPinclusions{\input constantes.mp
\input papiers.mp}

\starttext



%----------------------------------------------------------------------------------
\startuseMPgraphic{Papier5trait}
%input constantes;
%input papiers;
color macouleur;
macouleur = .7(green+blue);
% beginfig(1);
papiercinq((-5,-5),(5,5),macouleur);
% endfig;
% end
\stopuseMPgraphic
\defineoverlay[Papier5trait][\useMPgraphic{Papier5trait}]
% \defineframedtext[Papier5trait][background=Papier5trait,width=fit,offset=2ex,frame=on,framecolor=red,rulethickness=3pt,corner=round,style=type]
% \defineframedtext[Papier5trait][align=middle,width=\overlaywidth,height=\overlayheight,frame=off,background=Papier5trait]
% \definetextbackground[Papier5trait][location=paragraph,backgroundcolor=white,before=\blank,after=\blank]

\startsetups[Papier5trait]
%\startstandardmakeup
\setupbackgrounds
   [page]
   [background=Papier5trait]
%\stopstandardmakeup
\setuplayout%[reset] % without parameter--> recalculate layout
\stopsetups

%----------------------------------------------------------------------------------
\startuseMPgraphic{Papier5point}
%input constantes;
%input papiers;
color macouleur;
macouleur = .7(red+blue);
% beginfig(1);
papierpointe((-5,-5),(5,5),macouleur);
% endfig;
% end
\stopuseMPgraphic
\defineoverlay[Papier5point][\useMPgraphic{Papier5point}]
% \defineframedtext[Papier5point][background=Papier5point,width=fit,offset=2ex,frame=off]
\startsetups[Papier5point]
%\startstandardmakeup
\setupbackgrounds
   [page]
   [background=Papier5point]
%\stopstandardmakeup
\setuplayout%[reset]
\stopsetups


%----------------------------------------------------------------------------------
\startuseMPgraphic{Papiermillimetre}
%input constantes;
%input papiers;
color macouleur;
macouleur = .8*orange;
% beginfig(1);
papiermil((-4cm,-4cm),1,1,(-5,-5),(5,5),macouleur);
% endfig;
% end
\stopuseMPgraphic
\defineoverlay[Papiermillimetre][\useMPgraphic{Papiermillimetre}]
% \defineframedtext[Papiermillimetre][background=Papiermillimetre,width=fit,offset=2ex,frame=off]
\startsetups[Papiermillimetre]
%\startstandardmakeup
\setupbackgrounds
   [page]
   [background=Papiermillimetre]
%\stopstandardmakeup
\setuplayout%[reset]
\stopsetups

%----------------------------------------------------------------------------------
\startuseMPgraphic{Papier10trait}
%input constantes;
%input papiers;
color macouleur;
macouleur = .7(red+green);
% beginfig(1);
papierun((-5,-5),(5,5),macouleur);
% endfig;
% end
\stopuseMPgraphic
\defineoverlay[Papier10trait][\useMPgraphic{Papier10trait}]
% \defineframedtext[Papier10trait][background=Papier10trait,width=fit,offset=2ex,frame=off]
\startsetups[Papier10trait]
%\startstandardmakeup
\setupbackgrounds
   [page]
   [background=Papier10trait]
%\stopstandardmakeup
\setuplayout%[reset]
\stopsetups

%----------------------------------------------------------------------------------
\startuseMPgraphic{Papiercahierseyes}
%input constantes;
%input papiers;
color macouleur;
macouleur = .7[red,blue];
% beginfig(1);
papiercahier((-5,-5),(5,5),macouleur);
% endfig;
% end
\stopuseMPgraphic
\defineoverlay[Papiercahierseyes][\useMPgraphic{Papiercahierseyes}]
% \defineframedtext[Papiercahierseyes][background=Papiercahierseyes,width=fit,offset=2ex,frame=off]
\startsetups[Papiercahierseyes]
%\startstandardmakeup
\setupbackgrounds
   [page]
   [background=Papiercahierseyes]
%\stopstandardmakeup
\setuplayout%[reset]
\stopsetups

%----------------------------------------------------------------------------------
\startuseMPgraphic{Papierisotrait}
%input constantes;
%input papiers;
color macouleur;
macouleur = .7[green,red];
% beginfig(1);
papierisom((-5,-5),(5,5),macouleur);
% endfig;
% end
\stopuseMPgraphic
\defineoverlay[Papierisotrait][\useMPgraphic{Papierisotrait}]
% \defineframedtext[Papierisotrait][background=Papierisotrait,width=fit,offset=2ex,frame=off]
\startsetups[Papierisotrait]
%\startstandardmakeup
\setupbackgrounds
   [page]
   [background=Papierisotrait]
%\stopstandardmakeup
\setuplayout%[reset]
\stopsetups



%-----------------------------------------------------------------------------
% \setupbackgrounds[page][background=Papier5trait]

\setups[Papier5trait]

\startstandardmakeup
% \framed[background=Papier5trait]{1 }
% \startPapier5trait
1 \vfill{}
% \stopPapier5trait
%\setupbackgrounds[page][background=]

\page
\stopstandardmakeup

%-----------------------------------------------------------------------------
% \setupbackgrounds[page][background=Papier5point]
\setups[Papier5point]

\startstandardmakeup

2 \vfill{}

%\setupbackgrounds[page][background=]

\page
\stopstandardmakeup

%-----------------------------------------------------------------------------
% \setupbackgrounds[page][background=Papiermillimetre]
\setups[Papiermillimetre]

\startstandardmakeup
% \startPapiermillimetre
3 \vfill{}
% \stopPapiermillimetre

%\setupbackgrounds[page][background=]

\page
\stopstandardmakeup

%-----------------------------------------------------------------------------
% \setupbackgrounds[page][background=Papier10trait]
\setups[Papier10trait]

\startstandardmakeup
4 \vfill{}

%\setupbackgrounds[page][background=]

\page
\stopstandardmakeup

%-----------------------------------------------------------------------------
% \setupbackgrounds[page][background=Papiercahierseyes]
\setups[Papiercahierseyes]

\startstandardmakeup
5 \vfill{}

%\setupbackgrounds[page][background=]

\page
\stopstandardmakeup

%-----------------------------------------------------------------------------
% \setupbackgrounds[page][background=Papierisotrait]
\setups[Papierisotrait]

\startstandardmakeup
6 \vfill{}

%\setupbackgrounds[page][background=]

 \page
\stopstandardmakeup

\stoptext

[-- Attachment #3: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

  parent reply	other threads:[~2007-11-13 18:12 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-13 10:26 olivier Turlier
2007-11-13 15:52 ` Wolfgang Schuster
2007-11-13 18:12 ` Peter Rolf [this message]
2007-11-14 15:46   ` olivier Turlier
  -- strict thread matches above, loose matches on Subject: below --
2012-07-09  2:47 Page Backgrounds Kip Warner
2012-07-09  7:45 ` Hans Hagen
2012-07-09  8:06 ` Wolfgang Schuster
2012-07-10  0:28   ` Kip Warner
2003-11-17 15:11 page backgrounds Thomas A. Schmitz
2003-11-17 13:09 Thomas A. Schmitz
2003-11-17 14:03 ` Otared Kavian
2003-11-17 14:41   ` Patrick Gundlach
2003-11-17 14:43   ` Patrick Gundlach
2003-11-17 14:08 ` Patrick Gundlach
2003-11-03 21:05 reset \use[sub]path Hans Hagen
2003-11-15 21:36 ` page backgrounds Thomas A.Schmitz
2003-11-16 20:08   ` Thomas A.Schmitz
2003-11-17  9:59     ` Patrick Gundlach
2003-11-16 22:32   ` Patrick Gundlach

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4739E923.40004@gmx.net \
    --to=indiego@gmx.net \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).