diff options
author | Karl Berry <karl@freefriends.org> | 2014-04-03 21:52:53 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2014-04-03 21:52:53 +0000 |
commit | b4e5a8790343bc0d5312d3b47ce2b8d970dd333a (patch) | |
tree | 5d80d2ae049ef2b0b8c3ab38cfd4b54fb5fb2882 /Master/texmf-dist/doc/latex/pstricks_calcnotes/Convert_PstricksCode_To_Pdf | |
parent | 560e97df3af167d6520dea870572f63ef457dd49 (diff) |
pstricks_calcnotes (3apr14)
git-svn-id: svn://tug.org/texlive/trunk@33361 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/pstricks_calcnotes/Convert_PstricksCode_To_Pdf')
3 files changed, 6 insertions, 5 deletions
diff --git a/Master/texmf-dist/doc/latex/pstricks_calcnotes/Convert_PstricksCode_To_Pdf/Readme.txt b/Master/texmf-dist/doc/latex/pstricks_calcnotes/Convert_PstricksCode_To_Pdf/Readme.txt index 18c0a961e3d..757b31f60c3 100644 --- a/Master/texmf-dist/doc/latex/pstricks_calcnotes/Convert_PstricksCode_To_Pdf/Readme.txt +++ b/Master/texmf-dist/doc/latex/pstricks_calcnotes/Convert_PstricksCode_To_Pdf/Readme.txt @@ -3,7 +3,7 @@ Dear friends, To convert a PSTricks-code picture into a graphic file ".pdf", as doing an exercise, run the file "convert.tex" by the following steps: - 1) latex convert.tex (you automatically get the output file "convert-fig1.tex". Put the definitions in the preamble + 1) latex convert.tex (you automatically get the output file "convert-fig1.tex", then put the definitions in the preamble of the convert.tex file in that of the convert-fig1.tex file). 2) latex convert-fig1.tex 3) dvips convert-fig1.dvi diff --git a/Master/texmf-dist/doc/latex/pstricks_calcnotes/Convert_PstricksCode_To_Pdf/convert.tex b/Master/texmf-dist/doc/latex/pstricks_calcnotes/Convert_PstricksCode_To_Pdf/convert.tex index d7464faaf32..fdbc1fbadb7 100644 --- a/Master/texmf-dist/doc/latex/pstricks_calcnotes/Convert_PstricksCode_To_Pdf/convert.tex +++ b/Master/texmf-dist/doc/latex/pstricks_calcnotes/Convert_PstricksCode_To_Pdf/convert.tex @@ -6,7 +6,7 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \def\vecfldnew#1#2#3#4#5#6#7#8{% \newcount\intg \newdimen\fx \newdimen\fy \newdimen\slope \newdimen\interm -\def\fintg{\interm=#8 \interm=\intg\interm \ifdim\ifdim\slope<0pt-\fi\slope>\interm\advance\intg by 1\fintg\fi} +\def\fintg{\interm=#8 \interm=\intg\interm \ifdim\ifdim\slope<0pt-\fi\slope<\interm\advance\intg by -1\relax\else\advance\intg by 1\fintg\fi} \multido{#2}{#4} {\multido{#1}{#3} {\curvepnodes[algebraic,plotpoints=2]{0}{1}{\nx+((#5)*t)*(1/sqrt(1+(#6)^2))|\ny+((#5)*t)*(1/sqrt(1+(#6)^2))*(#6)}{P} @@ -33,9 +33,10 @@ \begin{pspicture}(-3,-3)(3,3) \psset{unit=28.5pt,dotsize=2.6pt} \vecfldnew{\nx=-3.00+0.3}{\ny=-3.00+0.3}{20}{20}{0.3}{2*(\nx)*(\ny)/(1+(\ny)^2)} -{\fx=\nx pt\SUMfunction{\ONEfunction}{\SQUAREfunction}{\Fncty} -\Fncty{\ny}{\soly}{\Dsoly}\DIVIDE{\Dsoly}{\soly}{\tempa}\slope=\tempa pt\slope=\decimal\fx\slope}{3pt} -\psaxes[labelFontSize=$\footnotesize$,Dy=1,Dx=1,ticksize=2.2pt,labelsep=4pt,linewidth=0.7pt]{->}(0,0)(-3,-3)(3,3) +{\SUMfunction{\ONEfunction}{\SQUAREfunction}{\Fncty}\Fncty{\ny}{\soly}{\Dsoly} +\DIVIDE{\Dsoly}{\soly}{\tempa}\MULTIPLY{\nx}{\tempa}{\tempb} +\slope=\tempb pt}{2.5pt} +\psaxes[labelFontSize=$\footnotesize$,Dy=1,Dx=1,ticksize=2.2pt,labelsep=4pt,linewidth=0.7pt]{->}(0,0)(-3,-3)(3.1,3) \end{pspicture} \end{pdfpic} \end{document} diff --git a/Master/texmf-dist/doc/latex/pstricks_calcnotes/Convert_PstricksCode_To_Pdf/test.pdf b/Master/texmf-dist/doc/latex/pstricks_calcnotes/Convert_PstricksCode_To_Pdf/test.pdf Binary files differindex 8df926c72d2..383de63aeec 100644 --- a/Master/texmf-dist/doc/latex/pstricks_calcnotes/Convert_PstricksCode_To_Pdf/test.pdf +++ b/Master/texmf-dist/doc/latex/pstricks_calcnotes/Convert_PstricksCode_To_Pdf/test.pdf |