diff options
Diffstat (limited to 'Master/texmf-dist/doc/fonts/knitting/knitexamples.tex')
-rw-r--r-- | Master/texmf-dist/doc/fonts/knitting/knitexamples.tex | 85 |
1 files changed, 57 insertions, 28 deletions
diff --git a/Master/texmf-dist/doc/fonts/knitting/knitexamples.tex b/Master/texmf-dist/doc/fonts/knitting/knitexamples.tex index 81c2d30fd2d..6b98fcfbae8 100644 --- a/Master/texmf-dist/doc/fonts/knitting/knitexamples.tex +++ b/Master/texmf-dist/doc/fonts/knitting/knitexamples.tex @@ -24,14 +24,17 @@ % The complete list of files considered part of this work is in % the file `knitting-doc.pdf' and its source code `knitting-doc.tex'. % -% Date: 2010/01/17 - +% Date: 2010/08/29 +% +% Version: 2 -\documentclass{article} +\documentclass[draft]{article} \usepackage[chartsonly]{knitting} -\textwidth = 3in +\usepackage{calc} + +%\textwidth = 3in \begin{document} @@ -79,12 +82,10 @@ \ifchartsonly \else Even-number ribbed braid \fi \knitnogrid -\rnevenonly \newdimen\knitlinewd \setlength{\knitlinewd}{1.2pt} % Zigzagging lines will look better if we make them a little wider - -\chart[right]{ +\chart[oddleft]{ =--==\!==----==\!==--= \-{18} =--==\!==CCkk==\!==--= @@ -106,10 +107,13 @@ \knitnogrid \definecolor{knitlinecolor}{rgb}{0,0,0.8} +\definecolor{rncolor}{rgb}{0,0,0.8} +\definecolor{rnarrowcolor}{rgb}{0,0,0.6} -\chart[evenright]{ +\rnevenonly +\stitchcountchart[right]{ ===,,,,,,===--===,,,,,,=== -===,,,,,,===--==,,,A,,,=== +===,,,,,,===--==,,,\>3,,,=== ===,,,,,,===--==,,---,,=== ===,,,,,,===--==,,>-<,,=== ===,,,,,,===--==,-----,=== @@ -117,16 +121,15 @@ ===,,,,,,===--==-------=== ===,,,,,,===--==--O-O--=== ===,,,,,,===--==,-----,=== -===,,,A,,,==--==,-O-O-,=== -\overline{% -===,,---,,==--==,,---,,===} +\overline{===,,,\>3,,,==--==,-O-O-,===} +===,,---,,==--==,,---,,=== ===,,>-<,,==--==,,O-O,,=== ===,-----,==--==-,,,,,,=== ===,>---<,==--=pK,,,,,,=== ===-------==--=-=,,,,,,=== ===--O-O--==--pK=,,,,,,=== ===,-----,==---==,,,,,,=== -===,-O-O-,==-kK=,,,A,,,=== +===,-O-O-,==-kK=,,,\>3,,,=== ===,,---,,==--==,,---,,=== ===,,O-O,,==--==,,>-<,,=== ===,,,,,,-==--==,-----,=== @@ -134,9 +137,9 @@ ===,,,,,,=-=--==-------=== ===,,,,,,=Kp--==--O-O--=== ===,,,,,,==---==,-----,=== -===,,,,,,==Kk-==,-O-O-,=== \overline{% -===,,,,,,===--==,,---,,===} +===,,,,,,==Kk-==,-O-O-,===} +===,,,,,,===--==,,---,,=== ===,,,,,,===--==,,O-O,,=== ===,,,,,,===--==-,,,,,,=== ===,,,,,,===--=pK,,,,,,=== @@ -146,19 +149,11 @@ ===,,,,,,===-kK==,,,,,,=== ===,,,,,,===--===,,,,,,=== } +\rnnormal -\ifchartsonly \else The letter Z\fi - -\chart{ -,=========, -=;+++++-==, -======pK==, -=====pK===, -====pK====, -===pK=====, -==pK======, -==s+++++O== -==,=====,==} +\definecolor{knitlinecolor}{rgb}{0.7,0,0} +\definecolor{rncolor}{rgb}{0.6,0,0} +\definecolor{rnarrowcolor}{rgb}{0.45,0,0} \ifchartsonly \else Print o' the Wave \fi @@ -195,7 +190,6 @@ \definecolor{green}{rgb}{0,0.6,0.1} \definecolor{lightgreen}{rgb}{0.5,1,0.5} \definecolor{yellow}{rgb}{1,1,0.35} -\definecolor{knitlinecolor}{rgb}{0.8,0,0} \catcode `\^=\active % Since we aren't using math, we turn ^ into an active character @@ -230,4 +224,39 @@ -|--------------| }} +\renewcommand{\printrightrownumber}[1]{% + \knitleftarrowhead + \textnormal{\color{rncolor}% + #1 (\thestitchcountout\ sts)}} + +\newcommand\threepartrow[3]{% + % Count the stitches, counting the middle stitches 4 times + \mainpass{\countstitches{#1 #2#2#2#2 #3}}% + % Print the row + #1\|#2\|#3 + % Print a bar if we have a stitch count mismatch + \mainpass{\stitchcountwarningbar}} + +\knitgrid +\resetrnfalse +\setcounter{rownumber}{12} +\setcounter{rownumberskip}{2} + +% Setting stitchcountin to any number less than -99 suppresses the +% warning bar on the first row. +\setcounter{stitchcountin}{-100} + +\chart[right]{ + ~~~~~~~~\hskip\knitlinewd % + \mainpass{\makebox[18\stitchwd][c]{\color{rncolor}\textnormal{% + Repeat 4 times}}} \nonumber `` + % The `` is necessary for proper vertical alignment + \threepartrow{-O------}{..-----OAO-----..-}{-----O-} + ~\threepartrow{-O-----}{..----O>-<O----..-}{----O-} + ~~\threepartrow{-O----}{..<--O>OAO<O-->..-}{---O-} + ~~~\threepartrow{-O---}{.<--O>O>-<O<O-->.-}{--O-} + ~~~~\threepartrow{-O--}{<--O>O>---<O<O-->-}{-O-} + ~~~~~\threepartrow{-O-}{..------\narrowincrease{7}------..-}{O-} + } + \end{document} |