summaryrefslogtreecommitdiff
path: root/Master/texmf-dist
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2006-01-13 00:10:55 +0000
committerKarl Berry <karl@freefriends.org>2006-01-13 00:10:55 +0000
commitf88fe31bc3bee63a2c2878d32f4cf704c2e5f87c (patch)
treef4a5d593d47b46812e0a30ed0dfde5394df4d72c /Master/texmf-dist
parentae7f93dd966ceececdd9f097e2d6b9250f3aa995 (diff)
vector
git-svn-id: svn://tug.org/texlive/trunk@1437 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r--Master/texmf-dist/tex/latex/vector/vector.sty60
1 files changed, 60 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/vector/vector.sty b/Master/texmf-dist/tex/latex/vector/vector.sty
new file mode 100644
index 00000000000..f1b848a2599
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/vector/vector.sty
@@ -0,0 +1,60 @@
+%%
+%% This is file `vector.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% vector.dtx (with options: `package')
+%%
+%% Copyright (C) 1994 by Nick Efford
+%%
+%% This file is distributed in the hope that it will be useful,
+%% but WITHOUT ANY WARRANTY; without even the implied warranty of
+%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+%%
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{vector}[1994/09/16 v1.0 vector macros for LaTeX2e (nde)]
+\RequirePackage{ifthen}
+\RequirePackage{calc}
+\newboolean{@wavy}
+\DeclareOption{wavy}{\setboolean{@wavy}{true}}
+\ProcessOptions
+\newcommand{\bvec}[1]{\ensuremath{\mathbf{#1}}}
+\newcommand{\buvec}[1]{\ensuremath{\mathbf{\hat{#1}}}}
+\newcommand{\svec}[1]{\ensuremath{\mathsf{#1}}}
+\newcommand{\suvec}[1]{\ensuremath{\mathsf{\hat{#1}}}}
+\ifthenelse{\boolean{@wavy}}{%
+ \PackageInfo{vector}{wavy underlining selected}
+ \newcommand{\undertilde}[1]{\mathord{\vtop{\ialign{##\crcr
+ $\hfil\displaystyle{#1}\hfil$\crcr\noalign{\kern1.5pt\nointerlineskip}
+ $\hfil\tilde{}\hfil$\crcr\noalign{\kern1.5pt}}}}}
+ \newcommand{\uvec}[1]{\ensuremath{\undertilde{#1}}}
+ \newcommand{\uuvec}[1]{\ensuremath{\hat{\undertilde{#1}}}}}{%
+ \newcommand{\uvec}[1]{\ensuremath{\underline{#1}}}
+ \newcommand{\uuvec}[1]{\ensuremath{\hat{\underline{#1}}}}}
+\def\first@element{1}
+\newcommand{\firstelement}[1]{\def\first@element{#1}}
+\newcommand{\irvec}[2][n]{\ensuremath{{#2}_{\first@element},\ldots,{#2}_{#1}}}
+\newcommand{\icvec}[2][n]{%
+ \begin{array}{c}
+ {#2}_{\first@element}\\ \vdots\\ {#2}_{#1}
+ \end{array}}
+\newcounter{vec@elem}
+\newcommand{\rvec}[3]{%
+ \ensuremath{%
+ \ifthenelse{#3 > #2}{%
+ \setcounter{vec@elem}{#2}
+ \whiledo{\value{vec@elem} < #3}%
+ {{#1}_{\thevec@elem}, \stepcounter{vec@elem}}%
+ {#1}_{#3}}{{#1}_{#2}}}}
+\newcommand{\cvec}[3]{%
+ \ifthenelse{#3 > #2}{%
+ \setcounter{vec@elem}{#2}
+ \begin{array}{c}
+ \whiledo{\value{vec@elem} < #3}%
+ {{#1}_{\thevec@elem} \\ \stepcounter{vec@elem}}%
+ {#1}_{#3}
+ \end{array}}{{#1}_{#2}}}
+\endinput
+%%
+%% End of file `vector.sty'.