2 # XFig External Template
4 # This file is part of LyX, the document processor.
5 # Licence details can be found in the file COPYING.
7 # author Asger Alstrup Nielsen
9 # author Johnathan Burchill
11 # Full author contact details are available in file CREDITS.
14 PreambleDef WarnNotFound
15 %% Print a warning encased in an fbox.
16 \def\lyxstripprefix#1>{}
17 \newcommand{\warnNotFound}[1]{%
18 \def\lyxtempfilename{#1}%
20 \ttfamily\expandafter\lyxstripprefix\meaning\lyxtempfilename!}%
21 \typeout{Could not find \lyxtempfilename!}%
26 PreambleDef InputOrWarn
27 %% Input the file if it exists, using \input, else print a warning
28 \newcommand{\inputOrWarn}[1]{%
29 \IfFileExists{#1}{\input{#1}}{\warnNotFound{#1}}}
40 AutomaticProduction true
43 Preview InstantPreview
45 TransformCommand Rotate RotationLatexCommand
46 TransformCommand Resize ResizeLatexCommand
47 Product "$$RotateFront$$ResizeFront\\input{$$AbsOrRelPathMaster$$Basename.pstex_t}$$ResizeBack$$RotateBack"
49 UpdateResult "$$AbsPath$$Basename.pstex_t"
51 Requirement "graphicx"
52 # Preamble WarnNotFound
53 # Preamble InputOrWarn
54 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
55 ReferencedFile latex "$$AbsPath$$Basename.eps"
56 ReferencedFile dvi "$$AbsPath$$Basename.eps"
59 TransformCommand Rotate RotationLatexCommand
60 TransformCommand Resize ResizeLatexCommand
61 Product "$$RotateFront$$ResizeFront\\input{$$AbsOrRelPathMaster$$Basename.pdftex_t}$$ResizeBack$$RotateBack"
63 UpdateResult "$$AbsPath$$Basename.pdftex_t"
65 Requirement "graphicx"
66 # Preamble WarnNotFound
67 # Preamble InputOrWarn
68 ReferencedFile pdflatex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
69 ReferencedFile pdflatex "$$AbsPath$$Basename.pdf"
72 Product "[XFig: $$FName]"
75 Product "<graphic fileref=\"$$AbsOrRelPathMaster$$Basename.eps\"></graphic>"
77 UpdateResult "$$AbsPath$$Basename.eps"
78 ReferencedFile docbook "$$AbsPath$$Basename.eps"
79 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
82 Product "<img src=\"$$AbsOrRelPathMaster$$Basename.svg\" />"
84 UpdateResult "$$AbsPath$$Basename.svg"
85 ReferencedFile xhtml "$$AbsPath$$Basename.svg"