summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/pinoutikz
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-07-27 21:40:58 +0000
committerKarl Berry <karl@freefriends.org>2020-07-27 21:40:58 +0000
commitba2c7ccf62b4e72729ed0f6c47b7b4ed12a57a9f (patch)
treee9f76e32a602a49f61db012d9c9ab211d9a1ed53 /Master/texmf-dist/tex/latex/pinoutikz
parent547d2a3a3fecee1b1732bbce70143191f12932fa (diff)
pinoutikz (27jul20)
git-svn-id: svn://tug.org/texlive/trunk@55966 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/pinoutikz')
-rw-r--r--Master/texmf-dist/tex/latex/pinoutikz/pinoutikz.sty48
1 files changed, 34 insertions, 14 deletions
diff --git a/Master/texmf-dist/tex/latex/pinoutikz/pinoutikz.sty b/Master/texmf-dist/tex/latex/pinoutikz/pinoutikz.sty
index 0aafc9e188f..a672e0dd7fc 100644
--- a/Master/texmf-dist/tex/latex/pinoutikz/pinoutikz.sty
+++ b/Master/texmf-dist/tex/latex/pinoutikz/pinoutikz.sty
@@ -38,8 +38,8 @@
\usetikzlibrary{shapes.misc, shapes.geometric}
\def\pinoutikzname {pinouTikz}
-\def\pinoutikzversion {1.1.1}
-\def\pinoutikzdate {2019/11/25}
+\def\pinoutikzversion {1.1.2}
+\def\pinoutikzdate {2020/07/27}
%% Formatt a pin name
\def\FormatPinLabel#1{
@@ -116,12 +116,7 @@
\end{scope}
}
-%% PDIP package diagram
-%% @param#1: offset
-%% @param#2: number of pins (divisible by 2)
-%% @param#3: comma separated definitions list for every pin - every pin definition must be enclosed in quotation marks ("")
-\def\PDIP(#1)#2{%
- \begin{tikzpicture}
+\def\pctPDIP(#1)#2{%
\begin{scope}[shift={(0,0)}]
\sffamily
\textsf{%
@@ -149,6 +144,15 @@
}
}
\end{scope}
+}
+
+%% PDIP package diagram
+%% @param#1: offset
+%% @param#2: number of pins (divisible by 2)
+%% @param#3: comma separated definitions list for every pin - every pin definition should be enclosed in quotation marks ("")
+\def\PDIP(#1)#2{%
+ \begin{tikzpicture}
+ \pctPDIP(#1){#2}
\end{tikzpicture}
}
@@ -199,27 +203,43 @@
}
}
-%% PLCC package diagram
+%% PLCC package picture
%% @param#1: offset
%% @param#2: number of pins (divisible by 2)
%% @param#3: comma separated definitions list for every pin - every pin definition must be enclosed in quotation marks ("")
-\def\PLCC(#1)#2{%
- \begin{tikzpicture}
+\def\pctPLCC(#1)#2{%
\begin{scope}[shift={(0,0)}]
\GENFOUREDGE(#1){#2}{PLCC}{round(#1*.125)}
\end{scope}
- \end{tikzpicture}
}
-%% TQFP package diagram
+
+%% PLCC package diagram
%% @param#1: offset
%% @param#2: number of pins (divisible by 2)
%% @param#3: comma separated definitions list for every pin - every pin definition must be enclosed in quotation marks ("")
-\def\TQFP(#1)#2{%
+\def\PLCC(#1)#2{%
\begin{tikzpicture}
+ \pctPLCC(#1){#2}
+ \end{tikzpicture}
+}
+
+%% TQFP package picture
+%% @param#1: offset
+%% @param#2: number of pins (divisible by 2)
+%% @param#3: comma separated definitions list for every pin - every pin definition must be enclosed in quotation marks ("")
+\def\pctTQFP(#1)#2{%
\begin{scope}[shift={(0,0)}]
\GENFOUREDGE(#1){#2}{TQFP}{0}
\end{scope}
+}
+%% TQFP package diagram
+%% @param#1: offset
+%% @param#2: number of pins (divisible by 2)
+%% @param#3: comma separated definitions list for every pin - every pin definition must be enclosed in quotation marks ("")
+\def\TQFP(#1)#2{%
+ \begin{tikzpicture}
+ \pctTQFP(#1){#2}
\end{tikzpicture}
}