summaryrefslogtreecommitdiff
path: root/Master/texmf-dist
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-12-02 21:58:31 +0000
committerKarl Berry <karl@freefriends.org>2019-12-02 21:58:31 +0000
commit8df13fd48100cd18141b466e7286b8afc18486e0 (patch)
tree0617eca873eb5b9f45e75861ca902a722db7101e /Master/texmf-dist
parent0fe8f6d1c939037fe88ed07bd52373bce394ad2f (diff)
pinoutikz (2dec19)
git-svn-id: svn://tug.org/texlive/trunk@52999 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r--Master/texmf-dist/doc/latex/pinoutikz/README.md9
-rw-r--r--Master/texmf-dist/doc/latex/pinoutikz/pinoutikz_doc_en.pdfbin68332 -> 68402 bytes
-rw-r--r--Master/texmf-dist/doc/latex/pinoutikz/pinoutikz_doc_en.tex6
-rw-r--r--Master/texmf-dist/tex/latex/pinoutikz/pinoutikz.sty50
4 files changed, 43 insertions, 22 deletions
diff --git a/Master/texmf-dist/doc/latex/pinoutikz/README.md b/Master/texmf-dist/doc/latex/pinoutikz/README.md
index f042634706b..a45453e5baa 100644
--- a/Master/texmf-dist/doc/latex/pinoutikz/README.md
+++ b/Master/texmf-dist/doc/latex/pinoutikz/README.md
@@ -1,8 +1,8 @@
_________________
pinoutikz package
- 1.1.0
- 2019/11/25
+ 1.1.1
+ 2019/12/02
_________________
This package provides macros for chip pinout diagrams typesetting.
@@ -29,8 +29,11 @@ License:
------------------------------------------------------------------------------
This material is subject to the LATEX Project Public License 1.3c
-Change history:
+Revision history:
------------------------------------------------------------------------------
+Version 1.1.1, 2019/12/02 (against 1.1.0)
+* PLCC package: 1st-pin index added
+* Documentation updated
Version 1.1.0, 2019/11/25 (against 1.0.1)
* New packages added: TQFP, PLCC
* Pin label syntax changed -> <pin position>/<pin label>
diff --git a/Master/texmf-dist/doc/latex/pinoutikz/pinoutikz_doc_en.pdf b/Master/texmf-dist/doc/latex/pinoutikz/pinoutikz_doc_en.pdf
index 82680ea7865..6ca7da1886f 100644
--- a/Master/texmf-dist/doc/latex/pinoutikz/pinoutikz_doc_en.pdf
+++ b/Master/texmf-dist/doc/latex/pinoutikz/pinoutikz_doc_en.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/pinoutikz/pinoutikz_doc_en.tex b/Master/texmf-dist/doc/latex/pinoutikz/pinoutikz_doc_en.tex
index b0013609291..8b27813ff85 100644
--- a/Master/texmf-dist/doc/latex/pinoutikz/pinoutikz_doc_en.tex
+++ b/Master/texmf-dist/doc/latex/pinoutikz/pinoutikz_doc_en.tex
@@ -136,7 +136,7 @@ All the macros of \pinouTikz are displayed in {\makeatletter\color{@xs@keywordsp
\verbinline|\PDIP|\arguD{pincount}\ARGU{pinarray}
\smallskip
-Draws a PDIP package, with generic number of pins.
+Draws a PDIP package with generic number of pins.
\begin{itemize}
\item \argu{pincount} the number of pins of a DIP package and should be an even number.
@@ -253,6 +253,8 @@ Draws a PDIP package, with generic number of pins.
\verbinline|\TQFP|\arguD{pinnumber}\ARGU{pinarray}
\smallskip
+Draws a TQFP package with generic number of pins.
+
\begin{itemize}
\item \argu{pincount} the number of pins of a DIP package and should be an even number.
\item \ARGU{pinarray} is a comma-separated list of pins - each pin definition is as follows: \argu{pinnumber}/\ARGU{pinlabel}.
@@ -344,6 +346,8 @@ Draws a PDIP package, with generic number of pins.
\verbinline|\PLCC|\arguD{pinnumber}\ARGU{pinarray}
\smallskip
+Draws a PLCC package with generic number of pins.
+
\begin{itemize}
\item \argu{pincount} the number of pins of a DIP package and should be an even number.
\item \ARGU{pinarray} is a comma-separated list of pins - each pin definition is as follows: \argu{pinnumber}/\ARGU{pinlabel}.
diff --git a/Master/texmf-dist/tex/latex/pinoutikz/pinoutikz.sty b/Master/texmf-dist/tex/latex/pinoutikz/pinoutikz.sty
index 30656c61435..0aafc9e188f 100644
--- a/Master/texmf-dist/tex/latex/pinoutikz/pinoutikz.sty
+++ b/Master/texmf-dist/tex/latex/pinoutikz/pinoutikz.sty
@@ -38,7 +38,7 @@
\usetikzlibrary{shapes.misc, shapes.geometric}
\def\pinoutikzname {pinouTikz}
-\def\pinoutikzversion {1.1.0}
+\def\pinoutikzversion {1.1.1}
\def\pinoutikzdate {2019/11/25}
%% Formatt a pin name
@@ -58,15 +58,30 @@
}
%% package rectangle
-\def\CASE(#1)#2#3#4 {%
+\def\CASE(#1)#2 {%
+% \CASE(#3){\width*.5-0.75*.5,\width*.5-0.75*.5}{\width cm + 0.75 cm}{\height cm + 0.75 cm}
+ \def\edgecount{4}
+ \pgfmathparse{#2/\edgecount-1}\let\cntpinsl\pgfmathresult
+ \pgfmathparse{#2/\edgecount}\let\cntstr\pgfmathresult
+ \pgfmathparse{#2-1}\let\cntpinsr\pgfmathresult
+ \pgfmathparse{\cntstr*.4+.4}\let\height\pgfmathresult
+ \pgfmathparse{\height}\let\width\pgfmathresult
\ifthenelse{\equal{#1}{TQFP}}{%
- \node[draw=black, rectangle,minimum width=#3,minimum height=#4,line width=1.5pt, chamfered rectangle, chamfered rectangle corners={north west, north east, south east, south west}] at (#2) (case) {};
- \draw (-.39 cm,#4-1.15cm) circle (1.5mm);
+ \pgfmathparse{\width*.5-0.75*.5}\let\posx\pgfmathresult
+ \pgfmathparse{\height*.5-0.75*.5}\let\posy\pgfmathresult
+ \pgfmathparse{\width cm + 0.75 cm}\let\widthB\pgfmathresult
+ \pgfmathparse{\height cm + 0.75 cm}\let\heightB\pgfmathresult
+ \node[draw=black, rectangle,minimum width=\widthB,minimum height=\heightB,line width=1.5pt, chamfered rectangle, chamfered rectangle corners={north west, north east, south east, south west}] at (\posy,\posy) (case) {};
+ \draw (-.44 cm,\height cm + 0.75 cm-1.1cm) circle (1.25mm);
}{}%
\ifthenelse{\equal{#1}{PLCC}}{%
- \node[draw=black, rectangle,minimum width=#3,minimum height=#4,line width=1.5pt, chamfered rectangle, chamfered rectangle corners={north west}] at (#2) (case) {};
- %\node[draw=black, circle,minimum size=1.5mm] at (#3*.5 cm,#4-1.25cm) (mark) {};
- }{}%
+ \pgfmathparse{\width*.5-0.75*.5}\let\posx\pgfmathresult
+ \pgfmathparse{\height*.5-0.75*.5}\let\posy\pgfmathresult
+ \pgfmathparse{\width cm + 0.75 cm}\let\widthB\pgfmathresult
+ \pgfmathparse{\height cm + 0.75 cm}\let\heightB\pgfmathresult
+ \node[draw=black, rectangle,minimum width=\widthB,minimum height=\heightB,line width=1.5pt, chamfered rectangle, chamfered rectangle corners={north west}] at (\posx,\posy) (case) {};
+ \draw (\posx,\posy+\height*.5-.2) circle (1.25mm);
+ }{}%
}
%% PIN diagram with label decoding
@@ -116,7 +131,7 @@
\pgfmathparse{#1-1}\let\cntpinsr\pgfmathresult
\pgfmathparse{\cntstr*.5}\let\height\pgfmathresult
\draw[line width=1.5pt] (0,-0.5) rectangle (1.88,\height);
- \draw (0.80,\height) arc (180:360:2mm);
+ \draw (0.75 cm,\height cm) arc (180:360:2mm);
%iterate through pin definitions
\foreach \pinnum/\i in {#2}%
{%
@@ -131,29 +146,28 @@
\pgfmathparse{(\pinidx-\cntstr)*0.5}\let\ypin\pgfmathresult
\PIN[right](1.88,\ypin){\i}{\pinnum}
}
-% \fi
}
}
\end{scope}
\end{tikzpicture}
}
-% #1 - pin count
-% #2 - pin array
-% #3 - case type
-% #4 - pin offset
+% Generic 4-edged package diagram
+% @param#1 - pin count
+% @param#2 - pin array
+% @param#3 - case type
+% @param#4 - pin offset
\def\GENFOUREDGE(#1)#2#3#4{%
\sffamily
\textsf{%
\def\pins{{#2}}
- \pgfmathparse{#1/4-1}\let\cntpinsl\pgfmathresult
- \pgfmathparse{#1/4}\let\cntstr\pgfmathresult
+ \def\edgecount{4}
+ \pgfmathparse{#1/\edgecount-1}\let\cntpinsl\pgfmathresult
+ \pgfmathparse{#1/\edgecount}\let\cntstr\pgfmathresult
\pgfmathparse{#1-1}\let\cntpinsr\pgfmathresult
\pgfmathparse{\cntstr*.4+.4}\let\height\pgfmathresult
\pgfmathparse{\height}\let\width\pgfmathresult
- %\draw[line width=1.5pt] (-0.75,-0.75) rectangle (\width,\height);
-% \node[draw=black, rectangle,minimum width=\width cm + 0.75 cm,minimum height=\height cm + 0.75 cm,line width=1.5pt, chamfered rectangle, chamfered rectangle corners={north west}] at (\width*.5-0.75*.5,\width*.5-0.75*.5) (case) {};
- \CASE(#3){\width*.5-0.75*.5,\width*.5-0.75*.5}{\width cm + 0.75 cm}{\height cm + 0.75 cm}
+ \CASE(#3){#1}
%iterate through pin definitions
\foreach \pinnum/\i in {#2}%
{%