Created
January 14, 2014 08:30
-
-
Save dohyunkim/8415061 to your computer and use it in GitHub Desktop.
mplib figure as a page background
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| %\pdfcompresslevel=0 | |
| %\pdfobjcompresslevel=0 | |
| \input luamplib.sty | |
| \mplibsetformat{metafun} | |
| \newbox\MpPageBg | |
| \setbox\MpPageBg\hbox{% | |
| \mplibcode | |
| beginfig(0); | |
| draw btex D R A F T etex scaled 14 rotated 60 | |
| withcolor transparent("normal", 0.2, black); | |
| endfig; | |
| \endmplibcode | |
| }\wd\MpPageBg=0pt\ht\MpPageBg=0pt\dp\MpPageBg=0pt | |
| \edef\pagebody{\unexpanded\expandafter{\pagebody\copy\MpPageBg}} | |
| \count255=0 \loop | |
| This is a test line. This is a test line. | |
| This is a test line. This is a test line. \endgraf | |
| \ifnum\count255<120 \advance\count255 by 1 \repeat | |
| \bye |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment