blob: 2452991e81d34148e58ae6e42f9b7f7984f1770d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
% TeXdraw macros
% $Id: texdraw.sty,v 2.4 2019/03/28 texdraw-V2R0a $
% 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 Engineering
% McGill University
% 3480 University
% Montreal, Quebec
% Canada H3A 2A7
% peter dot kabal at mcgill dot ca
% ===============================================================
\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}
|