blob: bddbccf9b995d4262ba500244f70fe69b74b99c5 (
plain)
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
%%
%% This is file `mfpic.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% mfpic.dtx (with options: `sty')
%%
%% -------------------------------------------------------------------
%%
%% Copyright 2002--2012, Daniel H. Luecking
%%
%% Mfpic may be distributed and/or modified under the conditions of the
%% LaTeX Project Public License, either version 1.3c of this license or (at
%% your option) any later version. The latest version of this license is in
%% <http://www.latex-project.org/lppl.txt>
%% and version 1.3c or later is part of all distributions of LaTeX version
%% 2008/12/01 or later.
%%
%% Mfpic has maintenance status "author-maintained". The Current Maintainer
%% is Daniel H. Luecking. There are several Base Interpreters associated
%% with mfpic: plain TeX, LaTeX, plain Metafont and plain MetaPost.
%%
\ProvidesPackage{mfpic}
[2012/12/03 v1.10. Macros for drawing with Metafont/MetaPost.]%
\DeclareOption{draft}{\mfpicdraft}%
\DeclareOption{final}{%
\mfpicfinal\PassOptionsToPackage{final}{graphics}}%
\DeclareOption{nowrite}{\mfpicnowrite}%
\DeclareOption{metapost}{\mfp@mposttrue}%
\DeclareOption{metafont}{\usemetafont}%
\DeclareOption{centeredcaptions}{\usecenteredcaptions}%
\DeclareOption{justifiedcaptions}{\noraggedcaptions}%
\DeclareOption{raggedcaptions}{\useraggedcaptions}%
\DeclareOption{clip}{\clipmfpic}%
\DeclareOption{truebbox}{\usetruebbox}%
\DeclareOption{mplabels}{\usemplabels}%
\DeclareOption{overlaylabels}{\overlaylabels}%
\DeclareOption{clearsymbols}{\clearsymbols}%
\DeclareOption{debug}{\mfpicdebugtrue}%
\DeclareOption{mfpreadlog}{\mfp@readlogtrue}%
\DeclareOption*{%
\@ifpackageloaded{graphics}%
{\Mfpic@warn{Unrecognized option \CurrentOption.}}%
{\Mfpic@msg{Passing option \CurrentOption\space to %
graphics package.}%
\PassOptionsToPackage{\CurrentOption}{graphics}}}%
\newcommand*\mfpdraftfont{\normalfont\ttfamily}%
\def\@usemetapost{%
\mfp@ifdefined\includegraphics{}{\RequirePackage{graphics}}%
\let\mfp@save@parse@bb\Gread@parse@bb
\newdef\mfp@parse@bb##1 ##2 ##3 ##4 ##5\\{%
\mfp@save@parse@bb##1 ##2 ##3 ##4 ##5\\%
\xdef\mfpicllx{\Gin@llx}\xdef\mfpiclly{\Gin@lly}}%
\ifmfp@pdf \gdef\mfp@Gtype{mps}%
\else \gdef\mfp@Gtype{eps}%
\fi
\gdef\preparemfpicgraphic##1{%
\@namedef{Gin@rule@.\number\mfp@count}####1{{\mfp@Gtype}%
{.\number\mfp@count}{####1}}%
\let\Gread@parse@bb\mfp@parse@bb}%
\global\let\setmfpicgraphic\includegraphics
\gdef\getmfpicoffset##1{}}%
\input mfpic.tex\relax
\endinput
%%
%% End of file `mfpic.sty'.
|