home *** CD-ROM | disk | FTP | other *** search
/ Meeting Pearls 3 / Meeting_Pearls_III.iso / Pearls / texmf / inputs / latex / unpacked / graphpap.sty < prev    next >
Encoding:
Text File  |  1995-06-21  |  4.5 KB  |  129 lines

  1. %% 
  2. %% This is file `graphpap.sty', generated 
  3. %% on <1995/6/21> with the docstrip utility (2.2i).
  4. %% 
  5. %% The original source files were:
  6. %% 
  7. %% graphpap.dtx  (with options: `package')
  8. %% 
  9. %% 
  10. %% This is a generated file. 
  11. %% 
  12. %% Copyright 1993-1995 the LaTeX3 project and any individual authors 
  13. %% listed elsewhere in this file. All rights reserved. 
  14. %% 
  15. %% For further copyright information see the file legal.txt, and any 
  16. %% other copyright notices in this file. 
  17. %% 
  18. %% This file is part of the LaTeX2e system. 
  19. %% ---------------------------------------- 
  20. %% This system is distributed in the hope that it will be useful, 
  21. %% but WITHOUT ANY WARRANTY; without even the implied warranty of 
  22. %% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
  23. %% 
  24. %% For error reports concerning UNCHANGED versions of this file no more 
  25. %% than one year old, see bugs.txt. 
  26. %% 
  27. %% Please do not request updates from us directly. Primary 
  28. %% distribution is through the CTAN archives. 
  29. %% 
  30. %% 
  31. %% IMPORTANT COPYRIGHT NOTICE: 
  32. %% 
  33. %% You are NOT ALLOWED to distribute this file alone. 
  34. %% 
  35. %% You are allowed to distribute this file under the condition that it is 
  36. %% distributed together with all the files listed in manifest.txt. 
  37. %% 
  38. %% If you receive only some of these files from someone, complain! 
  39. %% 
  40. %% Permission is granted to copy this file to another file with a clearly 
  41. %% different name and to customize the declarations in that copy to serve 
  42. %% the needs of your installation, provided that you comply with 
  43. %% the conditions in the file legal.txt. 
  44. %% 
  45. %% However, NO PERMISSION is granted to generate or to distribute a 
  46. %% modified version of this file under its original name. 
  47. %% 
  48. %% You are NOT ALLOWED to change this file. 
  49. %% 
  50. %% 
  51. %% MODIFICATION ADVICE: 
  52. %% 
  53. %% If you want to customize this file, it is best to make a copy of the 
  54. %% source file(s) from which it was produced. Use a different name for 
  55. %% your copy(ies) and modify the copy(ies); this will ensure that your 
  56. %% modifications do not get overwritten when you install a new release of 
  57. %% the standard system. You should also ensure that your modified source 
  58. %% file does not generate any modified file with the same name as a 
  59. %% standard file. You can then easily distribute your modifications by 
  60. %% distributing the modified and renamed copy of the source file, taking 
  61. %% care to observe the conditions in legal.txt; this will ensure that 
  62. %% other users can safely use your modifications. 
  63. %% 
  64. %% You will also need to produce your own, suitably named, .ins file to 
  65. %% control the generation of files from your source file; this file 
  66. %% should contain your own preambles for the files it generates, not 
  67. %% those in the standard .ins files. 
  68. %% 
  69. %% The names of the source files used are shown above. 
  70. %% 
  71. %% 
  72. %% 
  73. %%
  74. %% File `graphpap.dtx'.
  75. %% Copyright (C) 1994 by Leslie Lamport
  76. %%                       all rights reserved.
  77. %%
  78. \NeedsTeXFormat{LaTeX2e}
  79. \ProvidesPackage{graphpap}
  80.       [1994/08/09 v1.0c Standard LaTeX graphpap package (LL)]
  81. \let\c@@grid\count@
  82. \def\@vgrid(#1,#2)#3#4#5{%
  83.   \setcounter{@grid}{#1}%
  84.   \multiput(#1,#2)(#3,0){#4}{\line(0,1){#5}}%
  85.   \multiput(#1,#2)(#3,0){#4}{\@vgridnumber{#3}}}
  86. \def\@vgridnumber#1{%
  87.   \makebox(0,0)[t]{%
  88.     \shortstack{\rule{0pt}{10pt}\\\arabic{@grid}}}%
  89.   \addtocounter{@grid}{#1}}
  90. \def\@nonumvgrid(#1,#2)#3#4#5{%
  91.   \multiput(#1,#2)(#3,0){#4}{\line(0,1){#5}}}
  92. \def\@hgrid(#1,#2)#3#4#5{%
  93.   \setcounter{@grid}{#2}%
  94.   \multiput(#1,#2)(0,#3){#4}{\line(1,0){#5}}%
  95.   \multiput(#1,#2)(0,#3){#4}{\@hgridnumber{#3}}}
  96. \def\@hgridnumber#1{%
  97.   \makebox(0,0)[r]{\arabic{@grid}\hspace{10pt}}%
  98.   \addtocounter{@grid}{#1}}
  99. \def\@nonumhgrid(#1,#2)#3#4#5{%
  100.   \multiput(#1,#2)(0,#3){#4}{\line(1,0){#5}}}
  101. \newcommand\graphpaper[1][10]{\leavevmode\@grid{#1}}
  102. \def\@grid#1(#2,#3)#4{\@grid@i{#1}{#2}{#3}(}
  103. \def\@grid@i#1#2#3(#4,#5){%
  104.   \@tempcnta=#4\relax
  105.   \divide\@tempcnta#1\relax
  106.   \advance\@tempcnta1\relax
  107.    {\thinlines\@nonumvgrid(#2,#3){#1}{\@tempcnta}{#5}
  108.     \@tempcnta#4\relax
  109.     \divide\@tempcnta5\relax
  110.     \divide\@tempcnta#1\relax
  111.     \advance\@tempcnta1\relax
  112.     \@tempcntb5\relax
  113.     \multiply\@tempcntb#1\relax
  114.     \thicklines\@vgrid(#2,#3){\@tempcntb}{\@tempcnta}{#5}
  115.     \@tempcnta#5\relax
  116.     \divide\@tempcnta #1\relax
  117.     \advance\@tempcnta1\relax
  118.     \thinlines\@nonumhgrid(#2,#3){#1}{\@tempcnta}{#4}
  119.     \@tempcnta#5\relax
  120.     \divide\@tempcnta5\relax
  121.     \divide\@tempcnta#1\relax
  122.     \advance\@tempcnta1\relax
  123.     \thicklines\@hgrid(#2,#3){\@tempcntb}{\@tempcnta}{#4}}%
  124.   \ignorespaces}
  125.  
  126. \endinput
  127. %% 
  128. %% End of file `graphpap.sty'.
  129.