summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/hhtensor
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2006-01-12 23:56:47 +0000
committerKarl Berry <karl@freefriends.org>2006-01-12 23:56:47 +0000
commit436e31e232d33822a803a7d7db2e092caeeb5c9c (patch)
treec9a39096ff31463e96dfed648201f80059b00f1b /Master/texmf-dist/tex/latex/hhtensor
parentc0ab42c2dba9941316ff2957fd13bbb2c50e162e (diff)
hhtensor
git-svn-id: svn://tug.org/texlive/trunk@976 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/hhtensor')
-rw-r--r--Master/texmf-dist/tex/latex/hhtensor/hhtensor.sty75
1 files changed, 75 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/hhtensor/hhtensor.sty b/Master/texmf-dist/tex/latex/hhtensor/hhtensor.sty
new file mode 100644
index 00000000000..555f1a8fdd2
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/hhtensor/hhtensor.sty
@@ -0,0 +1,75 @@
+%%
+%% This is file `hhtensor.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% hhtensor.dtx (with options: `package')
+%%
+%% hhtensor package
+%%
+%% Copyright 2003 Harald Harders
+%%
+%% This program can be redistributed and/or modified under the terms
+%% of the LaTeX Project Public License Distributed from CTAN
+%% archives in directory macros/latex/base/lppl.txt; either
+%% version 1 of the License, or any later version.
+%%
+%% h.harders@tu-bs.de
+%%
+\def\fileversion{0.6}
+\def\filedate{2003/10/15}
+\def\docdate{2003/10/15}
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{hhtensor}[\filedate\space v\fileversion\space
+ Print numbers]
+\message{Package `hhtensor', Version \fileversion\space of \filedate.}
+\RequirePackage{ushort}
+\RequirePackage{amsmath}
+\newif\iftensor@bold
+\newif\iftensor@uline
+\DeclareOption{bold}{\tensor@boldtrue\tensor@ulinefalse}
+\DeclareOption{uline}{\tensor@boldfalse\tensor@ulinetrue}
+\DeclareOption{arrow}{\tensor@boldfalse\tensor@ulinefalse}
+\ExecuteOptions{arrow}
+\ProcessOptions\relax
+\newcommand\origvec{}
+\let\origvec=\vec
+\iftensor@bold
+ \DeclareRobustCommand*\vec[1]{\ensuremath{\boldsymbol{#1}}}
+ \DeclareRobustCommand*\matr[1]{\ensuremath{\boldsymbol{#1}}}
+ \DeclareRobustCommand*\tens[2]{\ensuremath{\boldsymbol{#1}}}
+\else
+ \iftensor@uline
+ \DeclareRobustCommand*\vec[1]{\ushort{#1}}
+ \DeclareRobustCommand*\matr[1]{\ushortd{#1}}
+ \DeclareRobustCommand*\tens[2]{%
+ \begingroup
+ \setlength{\arraycolsep}{0pt}
+ \begin{array}[t]{c}%
+ #1 \\[-2.05ex]
+ {\scriptstyle \sim} \\[-2.1ex]
+ {\scriptscriptstyle #2}\\[-0.7ex]
+ \end{array}%
+ \endgroup
+ }
+ \else
+ \DeclareRobustCommand*\matr[1]{\ensuremath{\vec{\vec{#1}}}}
+ \DeclareRobustCommand*\tens[2]{%
+ \begingroup
+ \setlength{\arraycolsep}{0pt}
+ \begin{array}[t]{c}%
+ #1 \\[-2.05ex]
+ {\scriptstyle \sim} \\[-2.1ex]
+ {\scriptscriptstyle #2}\\[-0.7ex]
+ \end{array}%
+ \endgroup
+ }
+ \fi
+\fi
+\DeclareRobustCommand*\dcdot{\mathrel{\cdot\mkern 0.0mu \cdot}}%
+\DeclareRobustCommand*\trans{^{\mathrm{T}}}
+
+\endinput
+%%
+%% End of file `hhtensor.sty'.