diff options
author | Karl Berry <karl@freefriends.org> | 2006-01-13 00:00:29 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2006-01-13 00:00:29 +0000 |
commit | 8b8fbae5990dee3b8ab739df0de8b7c365e4d227 (patch) | |
tree | 824392c1bb07fe8c8b620efd3992cc0daa3e433a /Master/texmf-dist/tex/latex/ncctools/nccpic.sty | |
parent | e9351f8ac4f8603d6020be78e092e939e24d89d0 (diff) |
ncctools
git-svn-id: svn://tug.org/texlive/trunk@1132 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/ncctools/nccpic.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/ncctools/nccpic.sty | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/ncctools/nccpic.sty b/Master/texmf-dist/tex/latex/ncctools/nccpic.sty new file mode 100644 index 00000000000..eaeeace775f --- /dev/null +++ b/Master/texmf-dist/tex/latex/ncctools/nccpic.sty @@ -0,0 +1,86 @@ +%% +%% This is file `nccpic.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% nccpic.dtx (with options: `package') +%% +%% IMPORTANT NOTICE: +%% +%% This file is a generated file from the sources of the `ncctools' +%% bundle. +%% +%% You are not allowed to modify this file. +%% +%% You are allowed to distribute this file if and only if +%% it is distributed with the corresponding source files in +%% the `ncctools' bundle. +%% +%% For the copying and distribution conditions of the source files, +%% see the README file distributed with the ncctools bundle. +%% +%% File: nccpic.dtx Copyright (C) 2002--2005 by Alexander I. Rozhenko +%% +\NeedsTeXFormat{LaTeX2e}[1995/12/01] +\ProvidesPackage{nccpic} + [2005/03/06 v1.2 NCC Extention of Graphicx (NCC)] +\RequirePackageWithOptions{graphicx}[1999/02/16] +\RequirePackage{nccboxes}[2002/01/09] +\def\@tempa{dvips.def} +\ifx\Gin@driver\@tempa + \DeclareGraphicsExtensions{.eps,.ps,.eps.gz,.ps.gz,.eps.Z,% + .bmp,.msp,.pcx,.pict,.pntg} +\else + \def\@tempa{dvipdf.def} + \ifx\Gin@driver\@tempa + \DeclareGraphicsExtensions{.eps,.ps,.eps.gz,.ps.gz,.eps.Z,% + .bmp,.msp,.jpg} + \fi +\fi +\graphicspath{{graphics/}} +\newcommand\draftgraphics{\Gin@drafttrue} +\newcommand\finalgraphics{\Gin@draftfalse} +\newcommand*{\ipic}[1]{% + \begingroup \let\input@path\Ginput@path + \ignorespaces\input{#1.pic}\unskip + \endgroup +} +\newcommand{\putimage}{} +\def\putimage(#1,#2){% + \@ifnextchar[{\NCC@Gim(#1,#2)}{\NCC@Gim(#1,#2)[#1,#2]}% +} +\def\NCC@Gim(#1,#2)[#3,#4]{% + \ifGin@draft + \def\NCC@temp(##1,##2)##3{% + \edef\@tempa{##3}% + \put(0,0){% + \framebox(#1,#2){\ttfamily\expandafter\strip@prefix\meaning\@tempa}% + }% + }% + \else + \def\NCC@temp(##1,##2)##3{% + \put(##1,##2){% + \includegraphics[width=#3\unitlength,height=#4\unitlength]{##3}% + }% + }% + \fi + \@ifnextchar({\NCC@Gim@(#1,#2)}{\NCC@Gim@(#1,#2)(0,0)}% +} +\def\NCC@Gim@(#1,#2)(#3,#4)#5{% + \jvbox{\Strut}[t]{% + \begin{picture}(#1,#2)\NCC@temp(#3,#4){#5}\end{picture}% + }% +} +\let\NCC@Ginsetfile\Gin@setfile +\def\Gin@setfile#1#2{% + \ifGin@bbox\else + \ifx\\#2\\\else + \IfFileExists{\Gin@base#2}{}{\Gread@false}% + \fi + \fi + \NCC@Ginsetfile{#1}{#2}% +} +\endinput +%% +%% End of file `nccpic.sty'. |