| 1 |
% TeXdraw macros |
| 2 |
|
| 3 |
% $Id: texdraw.sty 2.6 2019/04/18 TeXdraw-v2r3 $ |
| 4 |
|
| 5 |
% Copyright (C) 1991-2019 Peter Kabal |
| 6 |
|
| 7 |
% This work is licensed under the Creative Commons Attribution (CC-BY) |
| 8 |
% License, any version. To view the licenses, visit |
| 9 |
% creativecommons.org/licenses/by or send a letter to |
| 10 |
% Creative Commons, PO Box 1866, Mountain View, CA 94042, USA. |
| 11 |
|
| 12 |
% Peter Kabal |
| 13 |
% Department of Electrical & Computer Engineering |
| 14 |
% McGill University |
| 15 |
|
| 16 |
% peter dot kabal at mcgill dot ca |
| 17 |
% http://www-mmsp.ece.mcgill.ca/MMSP/Documents/Software/ |
| 18 |
|
| 19 |
% =============================================================== |
| 20 |
|
| 21 |
\NeedsTeXFormat{LaTeX2e} |
| 22 |
|
| 23 |
% Pass all options to the graphics package |
| 24 |
\DeclareOption*{\PassOptionsToPackage{\CurrentOption}{graphics}} |
| 25 |
\ProcessOptions |
| 26 |
|
| 27 |
% Load the graphics package if not already loaded |
| 28 |
\RequirePackage{graphics} |
| 29 |
|
| 30 |
% Define the error routine |
| 31 |
\def\t@xderror #1{% |
| 32 |
\GenericError{% |
| 33 |
\space\space\space\@spaces\@spaces\@spaces |
| 34 |
}{% |
| 35 |
TeXdraw Error: #1% |
| 36 |
}{% |
| 37 |
See the TeXdraw manual for an explanation.% |
| 38 |
}{\@ehc}% |
| 39 |
} |
| 40 |
|
| 41 |
% Load the TeXdraw macros |
| 42 |
\input texdraw |
| 43 |
\ProvidesPackage{texdraw}[\TeXdrawId] |
| 44 |
\newenvironment{texdraw}{\leavevmode\btexdraw}{\etexdraw} |
| 45 |
|