diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /graphics/texdraw/texdraw.sty |
Initial commit
Diffstat (limited to 'graphics/texdraw/texdraw.sty')
-rw-r--r-- | graphics/texdraw/texdraw.sty | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/graphics/texdraw/texdraw.sty b/graphics/texdraw/texdraw.sty new file mode 100644 index 0000000000..c91c6b5af0 --- /dev/null +++ b/graphics/texdraw/texdraw.sty @@ -0,0 +1,45 @@ +% TeXdraw macros + +% $Id: texdraw.sty 2.6 2019/04/18 TeXdraw-v2r3 $ + +% Copyright (C) 1991-2019 Peter Kabal + +% This work is licensed under the Creative Commons Attribution (CC-BY) +% License, any version. To view the licenses, visit +% creativecommons.org/licenses/by or send a letter to +% Creative Commons, PO Box 1866, Mountain View, CA 94042, USA. + +% Peter Kabal +% Department of Electrical & Computer Engineering +% McGill University + +% peter dot kabal at mcgill dot ca +% http://www-mmsp.ece.mcgill.ca/MMSP/Documents/Software/ + +% =============================================================== + +\NeedsTeXFormat{LaTeX2e} + +% Pass all options to the graphics package +\DeclareOption*{\PassOptionsToPackage{\CurrentOption}{graphics}} +\ProcessOptions + +% Load the graphics package if not already loaded +\RequirePackage{graphics} + +% Define the error routine +\def\t@xderror #1{% + \GenericError{% + \space\space\space\@spaces\@spaces\@spaces + }{% + TeXdraw Error: #1% + }{% + See the TeXdraw manual for an explanation.% + }{\@ehc}% +} + +% Load the TeXdraw macros +\input texdraw +\ProvidesPackage{texdraw}[\TeXdrawId] +\newenvironment{texdraw}{\leavevmode\btexdraw}{\etexdraw} + |