Debian Codegraph @

texmf-dist/tex/generic/mfpic/mfpic.sty

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