From 05c835a6040bd6fa00faa62d865285e19ee0242c Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Wed, 26 Oct 2011 22:56:55 +0000 Subject: gauss (26oct11) git-svn-id: svn://tug.org/texlive/trunk@24411 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/gauss/README | 21 +++++++++ Master/texmf-dist/doc/latex/gauss/gauss-doc.pdf | Bin 168376 -> 120119 bytes Master/texmf-dist/doc/latex/gauss/gauss-ex.pdf | Bin 24263 -> 33188 bytes Master/texmf-dist/doc/latex/gauss/readme.txt | 21 --------- Master/texmf-dist/tex/latex/gauss/gauss.sty | 58 ++++++++++++++---------- Master/tlpkg/libexec/ctan2tds | 36 ++++++++------- 6 files changed, 73 insertions(+), 63 deletions(-) create mode 100644 Master/texmf-dist/doc/latex/gauss/README delete mode 100644 Master/texmf-dist/doc/latex/gauss/readme.txt diff --git a/Master/texmf-dist/doc/latex/gauss/README b/Master/texmf-dist/doc/latex/gauss/README new file mode 100644 index 00000000000..3aa9b67027a --- /dev/null +++ b/Master/texmf-dist/doc/latex/gauss/README @@ -0,0 +1,21 @@ + +gauss.sty -- A Package for Typesetting Matrix Operations +-------------------------------------------------------- + +To use the package, just place the gauss.sty file at a +location where TeX will find it, and insert + + \usepackage{gauss} + +to your document's preamble. This will define a new +environment gmatrix whose usage is well explained in +the gauss-doc.dvi file. + +This program may be distributed and/or modified under the +conditions of the LaTeX Project Public License, either +version 1.1 of this license or (at your option) any later +version. + +--- + +(c) 2001, 2002 by Manuel Kauers diff --git a/Master/texmf-dist/doc/latex/gauss/gauss-doc.pdf b/Master/texmf-dist/doc/latex/gauss/gauss-doc.pdf index 024287c4ce9..10a20b939d1 100644 Binary files a/Master/texmf-dist/doc/latex/gauss/gauss-doc.pdf and b/Master/texmf-dist/doc/latex/gauss/gauss-doc.pdf differ diff --git a/Master/texmf-dist/doc/latex/gauss/gauss-ex.pdf b/Master/texmf-dist/doc/latex/gauss/gauss-ex.pdf index aa2c04a8578..51ada55ed81 100644 Binary files a/Master/texmf-dist/doc/latex/gauss/gauss-ex.pdf and b/Master/texmf-dist/doc/latex/gauss/gauss-ex.pdf differ diff --git a/Master/texmf-dist/doc/latex/gauss/readme.txt b/Master/texmf-dist/doc/latex/gauss/readme.txt deleted file mode 100644 index 3aa9b67027a..00000000000 --- a/Master/texmf-dist/doc/latex/gauss/readme.txt +++ /dev/null @@ -1,21 +0,0 @@ - -gauss.sty -- A Package for Typesetting Matrix Operations --------------------------------------------------------- - -To use the package, just place the gauss.sty file at a -location where TeX will find it, and insert - - \usepackage{gauss} - -to your document's preamble. This will define a new -environment gmatrix whose usage is well explained in -the gauss-doc.dvi file. - -This program may be distributed and/or modified under the -conditions of the LaTeX Project Public License, either -version 1.1 of this license or (at your option) any later -version. - ---- - -(c) 2001, 2002 by Manuel Kauers diff --git a/Master/texmf-dist/tex/latex/gauss/gauss.sty b/Master/texmf-dist/tex/latex/gauss/gauss.sty index 7c1dc7c34f9..a6da7faa147 100644 --- a/Master/texmf-dist/tex/latex/gauss/gauss.sty +++ b/Master/texmf-dist/tex/latex/gauss/gauss.sty @@ -1,3 +1,9 @@ +% TODO: +% * ALLOW FINE TUNING OF ARROW ETC ARRANGEMENT BY PARAMETERS +% (Suggestion by Antonis Tsolomitis) +% * BUG: ROWOPMINSIZE AND COLOPMINSIZE DONT WORK IN \swap01 etc. +% (MAXIMUM COMPUTATION MISSIG) +% * BUG: ARROWHT HAS TWO CONTRADICTING MEANINGS % % \title{\texttt{gauss.sty} -- A Package for Typesetting Matrix Operations} % \author{Manuel Kauers} @@ -39,11 +45,11 @@ % \add[-3]01 % \add[-1]02 % \swap34 -% \mult5{\cdot0} +% \mult5{\cdot 0} % \add[x^2-1]53 % \colops % \swap01 -% \mult3{\cdot1} +% \mult3{\cdot 1} % \add[0]24 % \end{gmatrix} = \begin{gmatrix}[v] % 0 & 1 & 5 & 7 & 2 \\ @@ -102,11 +108,11 @@ % commands are specified as follows: % % \begin{enumerate} -% \item |\mult{i}{\cdot b}| typesets the operation ``multiply the $i$th row (or column) +% \item |\mult{i}{\cdot b}| typesets the operation ``multiply the $i$th row (or column) % by~$b$'', % \item |\swap[a][b]{i}{j}| typesets the operation ``swap the $i$th and the $j$th row % (or column)''. -% $a$~and~$b$ are labels to typeset at the end of the arrows, similar to the $\cdot b$ of +% $a$~and~$b$ are labels to typeset at the end of the arrows, similar to the $\cdot b$ of % the |\mult| command. The command does nothing if $i=j$. % \item |\add[a][b]{i}{j}| typesets the operation ``add the $a$-fold of row (or column)~$i$ to % row (or column)~$j$. $b$~is a label for the $j$th line. The command does nothing if $i=j$. @@ -118,7 +124,7 @@ % Rows are counted top-down, and columns are counted from left to right. The uppermost row % and the leftmost column have the index~0. There is also the posibility to use |*| as index % which causes the typesetting of several operations where |*| runs over all indices. For -% example, |\mult{*}{5}| in the |\rowops| section of a $n\times n$ matrix is equivalent to +% example, |\mult{*}{5}| in the |\rowops| section of a $n\times n$ matrix is equivalent to % state |\mult{0}{5}|,\dots,|\mult{|$n-1$|}{5}|. % \end{macro} % \end{macro} @@ -135,12 +141,12 @@ % | 7 & 8 & 9| % |\rowops| % | \swap{0}{1}| -% | \mult{0}{\cdot 7}| +% | \mult{0}{\cdot 7}| % | \add[5]{1}{2}| % |\end{gmatrix}| % \switch % \begin{gmatrix}[p] 1&2&3\\4&5&6\\7&8&9 \rowops -% \swap01\mult0{\cdot 7}\add[5]12 +% \swap01\mult0{\cdot 7}\add[5]12 % \end{gmatrix} % \end{example} % \item The same operations in an other ordering @@ -152,11 +158,11 @@ % |\rowops| % | \add[5]{1}{2}| % | \swap{0}{1}| -% | \mult{0}{\cdot 7}| +% | \mult{0}{\cdot 7}| % |\end{gmatrix}| % \switch % \begin{gmatrix}[p] 1&2&3\\4&5&6\\7&8&9 \rowops -% \add[5]12\swap01\mult0{\cdot 7} +% \add[5]12\swap01\mult0{\cdot 7} % \end{gmatrix} % \end{example} % \item A matrix with column operations @@ -167,12 +173,12 @@ % | 7 & 8 & 9| % |\colops| % | \swap{0}{1}| -% | \mult{0}{\cdot 7}| +% | \mult{0}{\cdot 7}| % | \add[5]{1}{2}| % |\end{gmatrix}| % \switch % \begin{gmatrix}[p] 1&2&3\\4&5&6\\7&8&9 \colops -% \swap01\mult0{\cdot 7}\add[5]12 +% \swap01\mult0{\cdot 7}\add[5]12 % \end{gmatrix} % \end{example} % \item A matrix with both row and column operations @@ -183,18 +189,18 @@ % | 7 & 8 & 9| % |\rowops| % | \swap{1}{2}| -% | \mult{2}{\cdot 3}| +% | \mult{2}{\cdot 3}| % | \add[-5]{1}{0}| % | \add[-3]{1}{2}| % |\colops| % | \swap{0}{1}| -% | \mult{0}{\cdot 7}| +% | \mult{0}{\cdot 7}| % | \add[5]{1}{2}| % |\end{gmatrix}| % \switch % \begin{gmatrix}[v] 1&2&3\\4&5&6\\7&8&9 \rowops -% \swap12\mult2{\cdot 3}\add[-5]10\add[-3]12 \colops -% \swap01\mult0{\cdot 7}\add[5]12 +% \swap12\mult2{\cdot 3}\add[-5]10\add[-3]12 \colops +% \swap01\mult0{\cdot 7}\add[5]12 % \end{gmatrix} % \end{example} % \item Multiple operations using the |*| index @@ -246,16 +252,16 @@ % Even nested |gmatrix|es are possible: % \[ % \def\littleA#1#2#3#4{\begin{gmatrix}[p]#1\\#3\rowops \add[-#3/#1]01\end{gmatrix}} -% \def\littleB#1#2#3#4#5{\begin{gmatrix}[p]#1\\#3\rowops \mult0{\cdot#5}\end{gmatrix}} +% \def\littleB#1#2#3#4#5{\begin{gmatrix}[p]#1\\#3\rowops \mult0{\cdot #5}\end{gmatrix}} % \def\littleC#1#2#3#4{\begin{gmatrix}[p]#1\\#3\rowops \swap01\end{gmatrix}} % \kern-1.5em % \begin{gmatrix}[v] % \littleA 2233 & \littleC 1234 & \littleA abcd \\ % \rule[-20pt]{0pt}{45pt}\littleB 0110\pi & \littleC vwxy & \littleC 1xx{x^2} \\ -% \littleB 12345 & \littleA \cdot\cdot\cdot\cdot & \littleB 54321 +% \littleB 12345 & \littleA \cdot \cdot \cdot \cdot & \littleB 54321 % \rowops % \add[\pi^2/6]01 -% \mult1{\cdot42} +% \mult1{\cdot 42} % \swap02 % \end{gmatrix} % \kern-1.5em @@ -270,7 +276,7 @@ % dimension parameters described in this section. % % \def\test{\begin{gmatrix}[p]a&b&c\\d&e&f\\g&h&i\rowops -% \add[x]01\add[y]12\mult1{\cdot y}\swap02\end{gmatrix}}% +% \add[x]01\add[y]12\mult1{\cdot y}\swap02\end{gmatrix}}% % \def\ttest#1=#2.{\[#1=#2\relax\test\]}% % % \begin{macro}{\rowarrowsep} @@ -480,12 +486,14 @@ % The current version of |gauss| therefore redefines all those environments % using our |\newmatrix| tool, and requires |amsmath| to be loaded prior to % the |gauss| package. -% \item Morten H\o gholm suggested the introduction of fontifying macros and +% \item Morten H{\o}gholm suggested the introduction of fontifying macros and % the use of changeable lengths as discussed in Section~\ref{ssec:atp}. % He also suggested some very fine typographic tunings. % \item Herbert Voss found that a |\unitlength=1pt| was missing to make the % behaviour of the package independent of redefinitions of |\unitlength| -% outside |gmatrix|. +% outside |gmatrix|. (Fixed.) +% \item Michael Hagedorn noticed that signs in entries a treated like +% binary relations, i.e., wrong spacing is used. (Fixed.) % \end{itemize} % % \StopEventually @@ -493,7 +501,7 @@ % \section{Implementation} % % \begin{macrocode} -\ProvidesPackage{gauss}[2002/10/11] +\ProvidesPackage{gauss}[2003/01/14] \RequirePackage{amsmath} \makeatletter % \end{macrocode} @@ -1073,7 +1081,7 @@ \setbox\g@trash=\hbox{$\leftarrow$}% \global\g@arrowwd\wd\g@trash % 3. What is the minimum height of a vertical arrow? - \setbox\g@trash=\vbox{\g@vertline} + \setbox\g@trash=\vbox{\g@vertline}% \global\g@arrowht=\ht\g@trash \global\advance\g@arrowht\dp\g@trash \global\advance\g@arrowht\lineskip @@ -1226,7 +1234,7 @@ \def\g@rbox#1#2#3{% \setbox\g@label=\hbox{$\relax#3\relax$}% \ht\g@label\z@\dp\g@label\z@ - \setbox\g@label=\hbox{$\mathstrut\box\g@label$}% + \setbox\g@label=\hbox{$\mathstrut\box\g@label$}% \put(\g@double{#1},\g@double{#2})% {\makebox(0,0)[l]{\kern-\p@\copy\g@label}}% } @@ -1764,7 +1772,7 @@ % \begin{environment}{g@matrix} % Finally, we have the following definition of |g@matrix|: % \begin{macrocode} -\edef\g@prae{\hfil$\relax\noexpand\mathstrut} +\edef\g@prae{\hfil\noexpand\mathstrut$\relax} \edef\g@post{\relax$\hfil} \newenvironment{g@matrix} {\setbox\g@trash=\hbox\bgroup diff --git a/Master/tlpkg/libexec/ctan2tds b/Master/tlpkg/libexec/ctan2tds index ac2cbd35162..28b06f5dd3b 100755 --- a/Master/tlpkg/libexec/ctan2tds +++ b/Master/tlpkg/libexec/ctan2tds @@ -926,6 +926,7 @@ chomp ($Build = `cd $Master/../Build/source && pwd`); 'fixme' => '&PREHOOK_fixme', 'ibygrk' => '&PREHOOK_ibygrk', 'mathspic' => '&PREHOOK_mathspic', + 'musixtex' => '&PREHOOK_musixtex', 'mp3d' => '&PREHOOK_mp3d', 'pictex' => '&PREHOOK_pictex', 'skb' => '&PREHOOK_flatten1', @@ -963,7 +964,6 @@ chomp ($Build = `cd $Master/../Build/source && pwd`); 'latex2e-help-texinfo' => '&POSTlatex2ehelptexinfo', 'lithuanian' => '&POSTlithuanian', 'montex' => '&POSTmontex', - 'musixtex' => '&POSTmusixtex', 'niceframe' => '&POSTrmsymlink', 'pgf' => '&POSTpgf', 'prerex' => '&POSTprerex', @@ -1446,6 +1446,7 @@ $standardtex='\.(.bx|cfg|sty|clo|ldf|cls|def|fd|cmap|4ht)$'; 'mkpattern', 'plain', 'mkjobtexmf', 'generic', 'mpattern', 'metapost', + 'musixtex', 'generic', 'mxedruli', 'fonts', 'nkarta', 'fonts', 'oberdiek', 'generic', @@ -2381,12 +2382,11 @@ sub do_posthook { # For most packages, this is the first thing called. It copies # everything from $packagedir to the doc directory of the package. # -sub setup -{ +sub setup { my ($ctl) = @_; print "doing setup($ctl)...\n"; - # precreate the directories we might need + # precreate the directories we might need. $DOCDIR = "$DEST/doc/$whichdocformat/$package"; &SYSTEM ("mkdir -p $DOCDIR"); &SYSTEM ("mkdir -p $DEST/tex/$whichformat/$package"); @@ -2406,7 +2406,7 @@ sub donormal { print "doing donormal($ctrl) with DEST=$DEST\n"; - # check for tds-ready packages + # Check for tds-ready packages if (-e "$RAW_DIR/$packagedir/TDS_READY") { print "using TDS_READY tree\n"; &SYSTEM ("$RM $RAW_DIR/$packagedir/TDS_READY"); @@ -2427,7 +2427,7 @@ sub donormal { } } else { - #use the normal procedure + # Use the normal procedure, not TDS. &setup unless $ctrl eq "nosetup"; &xchdir ("$DEST/doc/$whichdocformat/$package"); @@ -4265,6 +4265,18 @@ sub PREHOOK_mp3d { &SYSTEM ("$RM -rf v1.0"); } +sub PREHOOK_musixtex { + # must unzip first so we can find the scripts. + print "PREHOOK_$package - unzip, man\n"; + &xchdir ($DEST); + &SYSTEM ("unzip -q doc/generic/$package/$package-texmf.zip"); + # + my $mandest = "$TOPDEST/texmf/doc/man/man1/"; + &xmkdir ($mandest); + &SYSTEM ("$CP $DEST/doc/generic/$package/scripts/*.1 $mandest/"); + &tl_man_to_pdf (); +} + sub PREHOOK_pictex { print "PREHOOK_$package - rm autoarea\n"; &SYSTEM ("$RM -rf addon/autoarea*"); @@ -4524,7 +4536,7 @@ sub POSTknitting { sub POSTknuth { print "POST$package - removing nonfree/duplicated files\n"; # - &xchdir ("$DEST"); + &xchdir ($DEST); &xmkdir ("doc/generic"); &SYSTEM ("$MV doc/knuth doc/generic/"); # @@ -4575,16 +4587,6 @@ sub POSTmontex { &SYSTEM ("$MV 00readme 00readme.mfinput.km"); } -# post instead of specialman because we use the tds.zip, which has the -# man pages in an unusual place. -sub POSTmusixtex { - print "POST$package - cp man pages\n"; - my $mydest = "$TOPDEST/texmf/doc/man/man1/"; - &xmkdir ($mydest); - &SYSTEM ("$CP $DEST/doc/generic/$package/scripts/*.1 $mydest/"); - &tl_man_to_pdf (); -} - sub POSTpgf { print "POST$package - mv generic,latex,... directories\n"; &SYSTEM ("cd $DEST && mkdir tex && mv context generic latex plain tex"); -- cgit v1.2.3