From 45919681c5a1d4dd078abbabac51a5de84aa75b2 Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Mon, 18 Jan 2010 23:41:42 +0000
Subject: knitting update (18jan10)

git-svn-id: svn://tug.org/texlive/trunk@16778 c570f23f-e606-0410-a88d-b1316a301751
---
 Master/texmf-dist/tex/latex/knitting/knitting.sty | 36 +++++++++++------------
 1 file changed, 18 insertions(+), 18 deletions(-)

(limited to 'Master/texmf-dist/tex/latex/knitting/knitting.sty')

diff --git a/Master/texmf-dist/tex/latex/knitting/knitting.sty b/Master/texmf-dist/tex/latex/knitting/knitting.sty
index 6d5537be95e..b6912d21c4b 100644
--- a/Master/texmf-dist/tex/latex/knitting/knitting.sty
+++ b/Master/texmf-dist/tex/latex/knitting/knitting.sty
@@ -23,7 +23,7 @@
 % the file `knitting-doc.pdf' and its source code `knitting-doc.tex'.
 %
 
-\ProvidesPackage{knitting}[2010/01/16]
+\ProvidesPackage{knitting}[2010/01/17]
 
 %\pdfmapfile{+knitfont.map}
 
@@ -96,23 +96,23 @@
 \newcounter{rownumberskip} \setcounter{rownumberskip}{1}
 \def\passnum@knit{2} 
 
-\newcommand\stitchwd{\fontdimen6\csname T1/knit/\series@knit/n/\f@size\endcsname}
-\newcommand\stitchdp{\fontdimen8\csname T1/knit/\series@knit/n/\f@size\endcsname}
-\newcommand\stitchht{\fontdimen9\csname T1/knit/\series@knit/n/\f@size\endcsname}
-\newcommand\gridwidth{\fontdimen10\csname T1/knit/\series@knit/n/\f@size\endcsname}
-\newcommand\knitlinewd{\fontdimen11\csname T1/knit/\series@knit/n/\f@size\endcsname}
+\newcommand\stitchwd{\fontdimen6\csname U/knit/\series@knit/n/\f@size\endcsname}
+\newcommand\stitchdp{\fontdimen8\csname U/knit/\series@knit/n/\f@size\endcsname}
+\newcommand\stitchht{\fontdimen9\csname U/knit/\series@knit/n/\f@size\endcsname}
+\newcommand\gridwidth{\fontdimen10\csname U/knit/\series@knit/n/\f@size\endcsname}
+\newcommand\knitlinewd{\fontdimen11\csname U/knit/\series@knit/n/\f@size\endcsname}
 \newcommand\narrowincraise@knit{\fontdimen12\the\font} % The rest of them aren't \the\font because I want them to still work outside of a chart
 \newcommand\fontvoffset@knit{\fontdimen13\the\font}
-\newcommand\purlextend@knit{\fontdimen14\csname T1/knit/\series@knit/n/\f@size\endcsname}
-\newcommand\rownumberwd{\fontdimen6\csname T1/knit/\series@knit/n/10\endcsname}
+\newcommand\purlextend@knit{\fontdimen14\csname U/knit/\series@knit/n/\f@size\endcsname}
+\newcommand\rownumberwd{\fontdimen6\csname U/knit/\series@knit/n/10\endcsname}
 
 \DeclareTextFontCommand {\knitsfsmall@knit}{\dimen0=\f@size pt\fontfamily{cmss}\fontseries{m}\fontshape{n}\fontsize{0.8\dimen0}{\f@baselineskip}\selectfont}
 \DeclareTextFontCommand     {\cablesf@knit}{\dimen0=\f@size pt\fontfamily{cmss}\fontseries{m}\fontshape{n}\fontsize{0.8\dimen0}{\f@baselineskip}\selectfont}
 \DeclareTextFontCommand{\cablesfsmall@knit}{\dimen0=\f@size pt\fontfamily{cmss}\fontseries{m}\fontshape{n}\fontsize{0.6\dimen0}{\f@baselineskip}\selectfont}
 
-\newcommand\knitnogrid{\gridfalse\def\series@knit{n}{\fontencoding{T1}\fontfamily{knit}\fontseries{\series@knit}\fontshape{n}\selectfont}}
-\newcommand  \knitgrid{\gridtrue \def\series@knit{g}{\fontencoding{T1}\fontfamily{knit}\fontseries{\series@knit}\fontshape{n}\selectfont}}
-\newcommand  \knitwide{\gridtrue \def\series@knit{w}{\fontencoding{T1}\fontfamily{knit}\fontseries{\series@knit}\fontshape{n}\selectfont}}
+\newcommand\knitnogrid{\gridfalse\def\series@knit{n}{\fontencoding{U}\fontfamily{knit}\fontseries{\series@knit}\fontshape{n}\selectfont}}
+\newcommand  \knitgrid{\gridtrue \def\series@knit{g}{\fontencoding{U}\fontfamily{knit}\fontseries{\series@knit}\fontshape{n}\selectfont}}
+\newcommand  \knitwide{\gridtrue \def\series@knit{w}{\fontencoding{U}\fontfamily{knit}\fontseries{\series@knit}\fontshape{n}\selectfont}}
 % Some extra effort is made to make sure that the fonts actually exist.
 % This is done so that the fonts are defined before they are used,
 % which is necessary to make \gridwidth work
@@ -123,7 +123,7 @@
 
 \knitgrid
 
-\newcommand\textknit[1]{\mbox{\fontencoding{T1}\fontfamily{knit}\fontseries{\series@knit}%
+\newcommand\textknit[1]{\mbox{\fontencoding{U}\fontfamily{knit}\fontseries{\series@knit}%
 	\rlap{\def\passnum@knit{0}\color{purlgray}\fontshape{n}\selectfont\fontshape{p}\selectfont#1}%
 	\ifgrid\rlap{\def\passnum@knit{1}\color{gridcolor}\fontshape{g}\selectfont#1}\fi
 	\def\passnum@knit{2}\fontshape{n}\selectfont#1}}
@@ -274,7 +274,7 @@
 	\rlap{#1}%
 	\hbox to \wd0{\char14\char11\hskip\stitchwd\leaders\hbox to \stitchwd{\char7\hfil}\hfil}}
 
-\newcommand\cableleft[2]{{\def\series@knit{n}\fontencoding{T1}\fontfamily{knit}\fontseries{n}\ifvmode\leavevmode\fi 
+\newcommand\cableleft[2]{{\def\series@knit{n}\fontencoding{U}\fontfamily{knit}\fontseries{n}\ifvmode\leavevmode\fi 
 	\ifcase\passnum@knit 
 	\hbox{\gridfalse \fontshape{p}\selectfont #1#2}
 	\or
@@ -282,7 +282,7 @@
 	\else
 	\hbox{\gridfalse \let \textsf \cablesf@knit \let \knitsfsmall@knit \cablesfsmall@knit {\fontshape{l}\selectfont \overcableleft@knit{#1}}{\fontshape{r}\selectfont \undercableright@knit{#2}}}
 	\fi}}
-\newcommand\cableright[2]{{\def\series@knit{n}\fontencoding{T1}\fontfamily{knit}\fontseries{n}\ifvmode\leavevmode\fi
+\newcommand\cableright[2]{{\def\series@knit{n}\fontencoding{U}\fontfamily{knit}\fontseries{n}\ifvmode\leavevmode\fi
 	\ifcase\passnum@knit 
 	\hbox{\gridfalse \fontshape{p}\selectfont #1#2}
 	\or
@@ -398,8 +398,8 @@
 	\setbox1=\hbox{\textnormal{5}}%
 	\edef\rnmiddle@knit{\hskip \the\wd1}%
 	\setbox\bgbox@knit=\vbox{\def\passnum@knit{0}\hsize=\maxdimen
-		\fontencoding{T1}\fontfamily{knit}\fontseries{\series@knit}\fontshape{n}\selectfont % This is kind of silly, but to make \stitchht work, we need to be sure that the foreground font exists.
-		\fontencoding{T1}\fontfamily{knit}\fontseries{\series@knit}\fontshape{p}\selectfont
+		\fontencoding{U}\fontfamily{knit}\fontseries{\series@knit}\fontshape{n}\selectfont % This is kind of silly, but to make \stitchht work, we need to be sure that the foreground font exists.
+		\fontencoding{U}\fontfamily{knit}\fontseries{\series@knit}\fontshape{p}\selectfont
 		\lineskip=0pt
 		\parskip=0pt
 		\baselineskip=0pt
@@ -417,7 +417,7 @@
 	\csname setbgshift#1@knit\endcsname
 	\ifgrid
 		\setbox\ggbox@knit=\vbox{\def\passnum@knit{1}\hsize=\maxdimen
-		\fontencoding{T1}\fontfamily{knit}\fontseries{\series@knit}\fontshape{g}\selectfont
+		\fontencoding{U}\fontfamily{knit}\fontseries{\series@knit}\fontshape{g}\selectfont
 		\lineskip=0pt
 		\parskip=0pt
 		\baselineskip=0pt
@@ -430,7 +430,7 @@
 		\csname auto#1@knit\endcsname #2\par}%
 	\fi
 	\setbox\fgbox@knit=\vbox{\def\passnum@knit{2}\hsize=\maxdimen
-		\fontencoding{T1}\fontfamily{knit}\fontseries{\series@knit}\fontshape{n}\selectfont
+		\fontencoding{U}\fontfamily{knit}\fontseries{\series@knit}\fontshape{n}\selectfont
 		\lineskip=0pt
 		\parskip=0pt
 		\baselineskip=0pt
-- 
cgit v1.2.3

