summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-02-26 22:22:21 +0000
committerKarl Berry <karl@freefriends.org>2021-02-26 22:22:21 +0000
commita22a3291a200704a6d22143fea110cdedf4e9048 (patch)
tree5b1cfb8b7a887145d25f04e9888f91f98e1c7e5f /Master
parent0dc9bb8afcb2eca293a9c139b47771554ea2890f (diff)
blox (26feb21)
git-svn-id: svn://tug.org/texlive/trunk@57949 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r--Master/texmf-dist/doc/latex/blox/README3
-rw-r--r--Master/texmf-dist/doc/latex/blox/blox.pdfbin424593 -> 419381 bytes
-rw-r--r--Master/texmf-dist/source/latex/blox/blox.dtx51
-rw-r--r--Master/texmf-dist/tex/latex/blox/blox.sty14
4 files changed, 48 insertions, 20 deletions
diff --git a/Master/texmf-dist/doc/latex/blox/README b/Master/texmf-dist/doc/latex/blox/README
index e8c3cff73fc..7be1bae2f8d 100644
--- a/Master/texmf-dist/doc/latex/blox/README
+++ b/Master/texmf-dist/doc/latex/blox/README
@@ -5,6 +5,7 @@ File Contents
..README
..blox.dtx
..blox.pdf
+..blox.sty
Purpose
This package, along with tikz, will typeset block diagrams for
@@ -18,7 +19,7 @@ package so that blox works for the MikTeX installation I have.
License.
blox: Just an English translation of the schemabloc package.
-Copyright (C) 2014 Ben Reish
+Copyright (C) 2014-2021 Ben Reish
This file may be distributed and/or modified under the
conditions of the LaTeX Project Public License, either version 1.3
diff --git a/Master/texmf-dist/doc/latex/blox/blox.pdf b/Master/texmf-dist/doc/latex/blox/blox.pdf
index f6d2abd72c5..28faf1c893c 100644
--- a/Master/texmf-dist/doc/latex/blox/blox.pdf
+++ b/Master/texmf-dist/doc/latex/blox/blox.pdf
Binary files differ
diff --git a/Master/texmf-dist/source/latex/blox/blox.dtx b/Master/texmf-dist/source/latex/blox/blox.dtx
index 0accefac210..568498d9116 100644
--- a/Master/texmf-dist/source/latex/blox/blox.dtx
+++ b/Master/texmf-dist/source/latex/blox/blox.dtx
@@ -1,7 +1,7 @@
% \iffalse meta-comment
% \preamble
%
-% Copyright (C) 2014 by Ben Reish
+% Copyright (C) 2014-2021 by Ben Reish
% -----------------------------------
%
% This file may be distributed and/or modified under the
@@ -17,15 +17,18 @@
% \endpreamble
% \fi
%
+% \iffalse %% makeindex -s gind.ist -o blox.ind blox.idx \fi
+% \iffalse %% makeindex -s gglo.ist -o blox.gls blox.glo
+% \fi
% \iffalse
%<package>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
%<package>\ProvidesPackage{blox}%
-%<package>[2014/08/20 v2.5 Just an English translation of schemabloc]
+%<package>[2021/2/22 v2.51 Just an English translation of schemabloc]
%
%<*batchfile>
\begingroup
%%
-%% Copyright (C) 2014 by Ben Reish
+%% Copyright (C) 2014-2021 by Ben Reish
%%
%% This file may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either
@@ -42,7 +45,7 @@
\usedir{tex/latex/blox}
\preamble
This is a generated file.
-Copyright (C) 2014 by Ben Reish
+Copyright (C) 2014-2021 by Ben Reish
This file may be distributed and/or modified under the
conditions of the LaTeX Project Public License, either
version 1.3 of this license or (at your option) any later
@@ -84,7 +87,7 @@ LaTeX version 1999/12/01 or later.
%</driver>
% \fi
%
-% \CheckSum{261}
+% \CheckSum{267}
%
% \CharacterTable
% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
@@ -260,7 +263,7 @@ LaTeX version 1999/12/01 or later.
% There are several commands for making blocks in the \blox\ package. They are context sensitive, so where you use them matters. Some do multiple things.
%
% \DescribeMacro{\bXBloc}
-% Usually, something happens inside a block of a block diagram. You'll want to describe what is happening inside the block. The first command for making blocks in \textsf{bloX} is |\bXBloc|\oarg{distance}\marg{Name}\marg{Contents}\marg{Previous Node}. This command makes a single block outline around whatever is in \meta{contents} and places it to the right of \meta{Previous Node} by \meta{distance} units (the default is 2).
+% Usually, something happens inside a block of a block diagram. You'll want to describe what is happening inside the block. The first command for making blocks in \textsf{blox} is |\bXBloc|\oarg{distance}\marg{Name}\marg{Contents}\marg{Previous Node}. This command makes a single block outline around whatever is in \meta{contents} and places it to the right of \meta{Previous Node} by \meta{distance} units (the default is 2).
%
% \DescribeMacro{\bXBlocL}
% The second command for making blocks to the right of the last item is |\bXBlocL|\oarg{distance}\marg{Name}\marg{Contents}\marg{Previous Node}. This command makes a block outline around whatever is in \meta{contents} and places it to the right of \meta{Previous Node} by \meta{distance} units (the default is 2) and then draws the connecting link between \meta{Previous Node} and the new block. (This is a slight labor savings if you don't want to label the link between the two.)
@@ -379,6 +382,10 @@ LaTeX version 1999/12/01 or later.
% |\bXLinkyx|\marg{Previous Node}\marg{Next Node} is the syntax. It creates a link which goes vertically, makes a right angle, and then goes horizontally. It has no label.
%
% To create a feedback loop where there is measurement noise, use |\bXLinkyx|, then create the noise block with |\bXBlocr|, and then use |\bXLinkxy| to finish the feedback loop. If no noise is in the measurement, then use a return.
+%
+% \DescribeMacro{\bXLinktyx}\DescribeMacro{\bXLinktb}
+% |\bXLinktyx|\marg{Previous Node}\marg{Next Node} draws a link from the top, center of \meta{Previous Node} to the closest horizontal connecting node on \meta{Next Node} via a right-angle turn. |\bXLinktb|\marg{Previous Node}\marg{Next Node} draws a link from the top, center of \meta{Previous Node} to the bottom, center connecting node on \meta{Next Node} in a straight line. Neither macro accounts for creating a label. If a label is required, use |\bXBranchy|, or |\bXBranchx| and |\bXLinkName|.
+% \changes{v2.51}{2014/12/04}{Added description of \texttt{bXLinktyx} and \texttt{bXLinktb} macros.}
%
% \subsection{Returns}
% Returns are what I generalized the simple feedback loop as: a line connecting the end of a linear block diagram to the beginning.
@@ -417,17 +424,17 @@ LaTeX version 1999/12/01 or later.
%
% \begin{figure}
% \centering
-% \begin{minipage}{.45\textwidth}
+% \begin{minipage}{.6\textwidth}
% \begin{tikzpicture}
% \bXInput[r]{A}
-% \bXLoop[1.25]{A}{c/Md,d/kid,e/$4<$}
+% \bXLoop[2]{A}{c/Md,d/kid,e/$4<$}
% \end{tikzpicture}
% \end{minipage}\hfil
-% \begin{minipage}{.45\textwidth}
+% \begin{minipage}{.4\textwidth}\vrbfnt
% \begin{verbatim}
% \begin{tikzpicture}
% \bXInput[r]{A}
-% \bXLoop[1.5]{A}{c/Md,d/kid,e/$4<$}
+% \bXLoop[2]{A}{c/Md,d/kid,e/$4<$}
% \end{tikzpicture}
% \end{verbatim}
% \end{minipage}
@@ -485,7 +492,7 @@ LaTeX version 1999/12/01 or later.
% \bXStyleBlocDefault
% \bXBloc[4]{H}{$P_3(s)$}{G}\bXLink[$y_2=u_3$]{G}{H}
% \bXReturn{G-H}{D}{}
-% \end{tiny
+% \end{tiny}
% \bXOutput{I}{H}\bXLink[$y_3$]{H}{I}
% \bXLabelStyle{green!80!black}
% \bXLineStyle{dashed, brown, text=purple}
@@ -642,8 +649,8 @@ LaTeX version 1999/12/01 or later.
% Normal beginning package commands to provide for making sure the package works correctly.
% \begin{macrocode}
\typeout{* }
-\typeout{bloX: Just an English translation of schemabloc package.}
-\typeout{bloX Copyright (C) 2014 Ben Reish}
+\typeout{blox: Just an English translation of schemabloc package.}
+\typeout{blox Copyright (C) 2014-2021 Ben Reish}
\typeout{* }
\typeout{This program comes with ABSOLUTELY NO WARRANTY.}
\typeout{This is free software, and you are welcome to redistribute it}
@@ -814,8 +821,9 @@ node distance=#1em,bXStyleBlocPotato,right] (#2) {#3};
% \end{macrocode}
% \end{macro}
%
-% \begin{macro}{\bXLink}\begin{macro}{\bXLinkxy}\begin{macro}{\bXLinkyx}
-% These macros tell \stikz\ where to place links, between which blocks. The normal macro is |\bXLink| which takes 3 arguments. It draws straight lines between the right edge of the previous node and the left edge of the next node. It names the link \meta{Previous Node}-\meta{Next Node}. This allows the selection of the middle of the link between to blocks for the having a return link drawn from. This macro will draw diagonal lines between nodes on different branches of a diagram. To maintain square corners, use the |\bXLinkxy| to go first horizontally, then vertically; or use |\bXLinkyx| to go first vertically and then horizontally.
+% \begin{macro}{\bXLink}\begin{macro}{\bXLinkxy}\begin{macro}{\bXLinkyx}\begin{macro}{\bXLinktyx}\begin{macro}{\bXLinktb}
+% These macros tell \stikz\ where to place links, between which blocks. The normal macro is |\bXLink| which takes 3 arguments. It draws straight lines between the right edge of the previous node and the left edge of the next node. It names the link \meta{Previous Node}-\meta{Next Node}. This allows the selection of the middle of the link between to blocks for the having a return link drawn from. This macro will draw diagonal lines between nodes on different branches of a diagram. To maintain square corners, use the |\bXLinkxy| to go first horizontally, then vertically; or use |\bXLinkyx| to go first vertically and then horizontally. To link from the top of the first block to the next block horizontally, use |\bXLinktyx| and to link from the top of the first block to the bottom of the second block, use |\bXLinktb|.
+% \changes{v2.51}{2014/12/04}{Added \texttt{bXLinktyx} and \texttt{bXLinktb} to be able to link blocks from the top of the starting block}
% \begin{macrocode}
\newcommand{\bXLink}[3][]{
\draw [bXLineStyle,auto] (#2) -- node[name=#2-#3] {#1} (#3);
@@ -828,6 +836,19 @@ node distance=#1em,bXStyleBlocPotato,right] (#2) {#3};
node[name=#2-#3,near end,right] {#1} (#3) ;
}
% \end{macrocode}
+% This macro draws a right-angled line between two nodes, the top of the first argument and the east or west side of the second argument. \stikz\ will try to connect to the closest node. There is no label making option.
+% \begin{macrocode}
+\newcommand{\bXLinktyx}[2]{
+ \draw [bXLineStyle] (#1.north) |- (#2) ;
+}
+% \end{macrocode}
+% This macro draws a straight line between two nodes, the top of the first argument and the bottom of the second argument. It can be a diagonal line. There is no label making option.
+% \begin{macrocode}
+\newcommand{\bXLinktb}[2]{
+ \draw [bXLineStyle] (#1.north) -- (#2.south) ;
+}
+% \end{macrocode}
+% \end{macro}\end{macro}
% \begin{macro}{\bXReturn}
% This macro creates two nodes, one directly below the second argument and one directly below the third argument. Then it draws straight lines to connect them.
% \begin{macrocode}
diff --git a/Master/texmf-dist/tex/latex/blox/blox.sty b/Master/texmf-dist/tex/latex/blox/blox.sty
index b0782ba4131..a26ad79ab1f 100644
--- a/Master/texmf-dist/tex/latex/blox/blox.sty
+++ b/Master/texmf-dist/tex/latex/blox/blox.sty
@@ -6,7 +6,7 @@
%%
%% blox.dtx (with options: `package')
%% This is a generated file.
-%% Copyright (C) 2014 by Ben Reish
+%% Copyright (C) 2014-2021 by Ben Reish
%% This file may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either
%% version 1.3 of this license or (at your option) any later
@@ -16,7 +16,7 @@
%% LaTeX version 1999/12/01 or later.
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesPackage{blox}%
-[2014/08/20 v2.5 Just an English translation of schemabloc]
+[2021/2/22 v2.51 Just an English translation of schemabloc]
@@ -24,8 +24,8 @@
\typeout{* }
-\typeout{bloX: Just an English translation of schemabloc package.}
-\typeout{bloX Copyright (C) 2014 Ben Reish}
+\typeout{blox: Just an English translation of schemabloc package.}
+\typeout{blox Copyright (C) 2014-2021 Ben Reish}
\typeout{* }
\typeout{This program comes with ABSOLUTELY NO WARRANTY.}
\typeout{This is free software, and you are welcome to redistribute it}
@@ -139,6 +139,12 @@ node distance=#1em,bXStyleBlocPotato,right] (#2) {#3};
\draw [bXLineStyle] (#2) -|
node[name=#2-#3,near end,right] {#1} (#3) ;
}
+\newcommand{\bXLinktyx}[2]{
+ \draw [bXLineStyle] (#1.north) |- (#2) ;
+}
+\newcommand{\bXLinktb}[2]{
+ \draw [bXLineStyle] (#1.north) -- (#2.south) ;
+}
\newcommand{\bXReturn}[4][4]{
\node [below of=#2, node distance=#1em,
minimum size=0em](return#2) {};