diff options
author | Karl Berry <karl@freefriends.org> | 2012-03-29 23:18:26 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2012-03-29 23:18:26 +0000 |
commit | 61c935045d7f29c0ecc205b878306598bb596c1b (patch) | |
tree | 3ddd78941a80d7568b28b982b78664afd5e614ce /Master/texmf-dist/tex | |
parent | 3c29bba3b1087cea47fa30393f5ff6a4300b48a3 (diff) |
new tikz package tikzpfeile (29mar12)
git-svn-id: svn://tug.org/texlive/trunk@25777 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/tikzpfeile/tikzpfeile.sty | 101 |
1 files changed, 101 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/tikzpfeile/tikzpfeile.sty b/Master/texmf-dist/tex/latex/tikzpfeile/tikzpfeile.sty new file mode 100644 index 00000000000..33bc7dbdd8f --- /dev/null +++ b/Master/texmf-dist/tex/latex/tikzpfeile/tikzpfeile.sty @@ -0,0 +1,101 @@ +%% +%% This is file `tikzpfeile.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% tikzpfeile.dtx +%% +%% IMPORTANT NOTICE: +%% +%% For the copyright see the source file. +%% +%% Any modified versions of this file must be renamed +%% with new filenames distinct from tikzpfeile.sty. +%% +%% For distribution of the original source see the terms +%% for copying and modification in the file tikzpfeile.dtx. +%% +%% This generated file may be distributed as long as the +%% original source files, as listed above, are part of the +%% same distribution. (The sources need not necessarily be +%% in the same archive or directory.) +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{tikzpfeile}[2012/03/28 v1.0 A LaTeX package for drawing arrows using PGF/TikZ] +\RequirePackage{tikz} +\usetikzlibrary{arrows} +\RequirePackage{kvoptions} +\DeclareStringOption[1]{length} +\DeclareLocalOptions{length} +\ProcessKeyvalOptions* +\newcommand*{\smapsto}{\raisebox{-1pt}{\tikz{% + \draw[xscale=\tikzpfeile@length,thin,shorten >=3pt, |->] (0,0)% + node{\hspace*{0pt}}% + -- node{} (0.7,0);}}\penalty1000\relax} +\newcommand*{\lsmapsto}{\raisebox{-1pt}{\tikz{% + \draw[xscale=\tikzpfeile@length,thin,shorten >=3pt, <-|] (0,0)% + node{\hspace*{0pt}}% + -- node{} (0.7,0);}}\penalty1000\relax} +\newcommand*{\ra}[1][]{\raisebox{-1pt}{\tikz{% + \draw[xscale=\tikzpfeile@length,thin,shorten >=3pt, ->,font=\scriptsize] (0,0)% + node{\hspace*{-2pt}} -- (0.5,0) node[above] {#1}% + -- node{} (1,0);}}\penalty1000\relax} +\newcommand*{\la}[1][]{\raisebox{-1pt}{\tikz{% + \draw[xscale=\tikzpfeile@length,thin,shorten >=3pt, <-,font=\scriptsize] (0,0)% + node{\hspace*{-2pt}} -- (0.5,0) node[above] {#1}% + -- node{} (1,0);}}\penalty1000\relax} +\let\oldmapsto\mapsto +\renewcommand*{\mapsto}{\raisebox{-1pt}{\tikz{% + \draw[xscale=\tikzpfeile@length,thin,shorten >=3pt, |->] (0,0)% + node{\hspace*{0pt}}% + -- node{} (1,0);}}\penalty1000\relax} +\newcommand*{\lmapsto}{\raisebox{-1pt}{\tikz{% + \draw[xscale=\tikzpfeile@length,thin,shorten >=3pt, <-|] (0,0)% + node{\hspace*{0pt}}% + -- node{} (1,0);}}\penalty1000\relax} +\newcommand*{\inj}[1][]{\raisebox{-1pt}{\tikz{% + \draw[xscale=\tikzpfeile@length,thin,shorten >=3pt, right hook->,% + font=\scriptsize] (0,0)% + node{\hspace*{0pt}} -- (0.5,0) node[above] {#1} --% + node{} (1,0);}}\penalty1000\relax} +\newcommand*{\linj}[1][]{\raisebox{-1pt}{\tikz{% + \draw[xscale=\tikzpfeile@length,thin,shorten >=3pt, <-left hook,% + font=\scriptsize] (0,0)% + node{\hspace*{0pt}} -- (0.5,0) node[above] {#1} --% + node{} (1,0);}}\penalty1000\relax} +\newcommand*{\surj}[1][]{\raisebox{-1pt}{\tikz{% + \draw[xscale=\tikzpfeile@length,thin,shorten >=3pt, ->>,font=\scriptsize] (0,0)% + node{\hspace*{0pt}} -- (0.5,0) node[above] {#1}% + -- node{} (1,0);}}\penalty1000\relax} +\newcommand*{\lsurj}[1][]{\raisebox{-1pt}{\tikz{% + \draw[xscale=\tikzpfeile@length,thin,shorten >=3pt, <<-,font=\scriptsize] (0,0)% + node{\hspace*{0pt}} -- (0.5,0) node[above] {#1}% + -- node{} (1,0);}}\penalty1000\relax} +\newcommand*{\isom}{\raisebox{-1pt}{\tikz{% + \draw[xscale=\tikzpfeile@length,thin,shorten >=3pt, ->] % + (0,0) node{\hspace*{0pt}} -- node{} (1,0);% + \draw[xscale=\tikzpfeile@length] (0.4,0.1) node {$\sim$};}}% + \penalty1000\relax} +\newcommand*{\lisom}{\raisebox{-1pt}{\tikz{% + \draw[xscale=\tikzpfeile@length,thin,shorten >=3pt, <-] % + (0,0) node{\hspace*{0pt}} -- node{} (1,0);% + \draw[xscale=\tikzpfeile@length] (0.4,0.1) node {$\sim$};}}% + \penalty1000\relax} +\newcommand*{\lra}[1][]{\raisebox{-1pt}{\tikz{% + \draw[xscale=\tikzpfeile@length,thin,shorten >=3pt, <->,font=\scriptsize] (0,0) % + node{\hspace*{-2pt}} -- (0.5,0) node[above] {#1} --% + node{} (1,0);}}\penalty1000\relax} +\newcommand*{\ppf}[1][]{\raisebox{-1pt}{\tikz{% + \draw[xscale=\tikzpfeile@length,densely dashed,thin,shorten >=3pt,% + ->,font=\scriptsize] (0,0) % + node{\hspace*{0pt}} -- (0.5,0) node[above] {#1}% + -- node{} (1,0);}}\penalty1000\relax} +\newcommand*{\lppf}[1][]{\raisebox{-1pt}{\tikz{% + \draw[xscale=\tikzpfeile@length,densely dashed,thin,shorten >=3pt,% + <-,font=\scriptsize] (0,0) % + node{\hspace*{0pt}} -- (0.5,0) node[above] {#1}% + -- node{} (1,0);}}\penalty1000\relax} + +\endinput +%% +%% End of file `tikzpfeile.sty'. |