File: TeXMPobj.tex

package info (click to toggle)
mfpic 0.4.0-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 620 kB
  • ctags: 5
  • sloc: makefile: 44; sh: 30
file content (51 lines) | stat: -rw-r--r-- 952 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
%%% TeXMPobj.tex
%%% part of mfpic 0.4.0 2000/08/31
%%%
%  Testing mfpic objects in plainTeX using Metapost
%
\magnification\magstep1

\newdimen\paperheight
\newdimen\paperwidth
%%!!!!!!!!!!!!!!!!!!!!!!!!!!!
% adjust these to your liking:
\paperheight 11 truein
\paperwidth 8.5 truein

% Default plainTeX margins
\hsize \paperwidth
\advance\hsize -2 truein
\hoffset 0 truein
%
\vsize\paperheight
\advance\vsize -2.1 truein
\voffset 0 truein

\input mfpic
\usemetapost
\usetruebbox
\usemplabels
\ifx\pdfoutput\UndEfInEd
\else
  \pdfpageheight=\paperheight
  \pdfpagewidth=\paperwidth
\fi

\mfpverbtex
{\immediate\write16{Thank you for trying mfpic!}}

\opengraphsfile{objs}

\fillcolor{cmyk(1,0,1,.2)} % a not quite so bright green
\drawcolor[rgb]{0,0,1}     % blue
\hatchcolor{RGB(200,200,0)}% not-so-bright yellow
\headcolor{Red}            % dvipsname for red

\centerline{\bf Pictures in \TeX\ with MetaPost}

\input MPobjs

\closegraphsfile

\end