[pstricks] Tabular Integration by Parts

Dougherty, Michael michael.dougherty at swosu.edu
Sun Jan 25 20:57:26 CET 2009


You can do it by brute force.  I'm working on a calculus textbook project myself
and while I haven't done that yet, I had to mull for a long time how to make
integration techniques look close enough to what might be written on 
the board or notes/tests/etc., so you can have a look if you like:
http://faculty.swosu.edu/michael.dougherty/book/book.html

OR you can look at how I did some "lattice method" arithmetic layouts
for a fellow who wanted to submit a paper to a journal in math education.
See below.

What I like about PSTricks is that you can use some fairly primitive
code to get what you want, if you're willing to think about your
chart on a grid and just put things where you want them.

In fact you can put a table inside a pspicture and then add the other stuff
however you like, or put a pspicture somewhere else with 
a little box to set coordinates
(like \begin{pspicture}(0,0)(1,1))
and put stuff way outside the box if you like, 
like \psline{->}(12,15)(15,20)
though that's not very elegant.

Others may have more sophisticated ways.  Good luck!

--Mike D.


%%%%%%%%%%%%% FIGURE 1 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{center}
\begin{pspicture}(-1.5,-.5)(6,3.3)
\psset{xunit=1.5cm,yunit=1.5cm}
\psframe[linewidth=1.2pt](0,0)(3,2)
\psline[linewidth=1.2pt](1,0)(1,2)
\psline[linewidth=1.2pt](2,0)(2,2)
\psline[linewidth=1.2pt](0,1)(3,1)
\psline[linewidth=1.2pt](0,1)(1,2)
\psline[linewidth=1.2pt](0,0)(2,2)
\psline[linewidth=1.2pt](1,0)(3,2)
\psline[linewidth=1.2pt](2,0)(2,1)
\psline[linewidth=1.2pt](2,0)(3,1)
\rput(.5,2.3){2}
\rput(1.5,2.3){1}
\rput(2.5,2.3){6}
\rput(3.3,1.5){3}
\rput(3.3,.5){4}
\rput(.75,1.4){6}
\rput(1.75,1.4){3}
\rput(2.75,1.4){8}
\rput(2.25,1.8){1}
\rput(2.25,.8){2}
\rput(.75,.4){8}
\rput(1.75,.4){4}
\rput(2.75,.4){4}
\rput(-.9,-.3){7}
\rput(0.1,-.3){3}
\rput(1.1,-.3){4}
\rput(2.1,-.3){4}
\rput(1.4,1.85){\tiny{\bf 1}}
\rput(2.4,1.85){\tiny{\bf 1}}
\psline[linewidth=.5pt]{->}(1.2,1.8)(-.8,-.2)
\psline[linewidth=.5pt]{->}(2.2,1.8)(.2,-.2)
\psline[linewidth=.5pt]{->}(2.8,1.4)(1.2,-.2)
\psline[linewidth=.5pt]{->}(2.8,.4)(2.2,-.2)
\end{pspicture}
\end{center}


%%%%%%%%%%% FIGURE 2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\end{doublespace}
\begin{center}
\begin{pspicture}(-1.5,-.5)(8,3.3)
\psset{xunit=1.5cm,yunit=1.5cm}
\psframe[linewidth=1.2pt](0,0)(3,2)
\psline[linewidth=1.2pt](1,0)(1,2)
\psline[linewidth=1.2pt](2,0)(2,2)
\psline[linewidth=1.2pt](0,1)(3,1)
\rput(.5,2.3){200}
\rput(1.5,2.3){10}
\rput(2.5,2.3){6}
\rput(3.3,1.5){30}
\rput(3.3,.5){4}
\rput(.5,1.5){6000}
\rput(1.5,1.5){300}
\rput(2.5,1.5){180}
\rput(.5,.5){800}
\rput(1.5,.5){40}
\rput(2.5,.5){24}
\rput(-.7,.7){+6000}
\rput(-.7,-.3){+1100}
\rput(.4,-.3){+220}
\rput(1.4,-.3){+24}
\psline[linewidth=.5pt]{->}(2.75,.75)(1.75,-.25)
\psline[linewidth=.5pt]{->}(2.75,1.75)(.75,-.25)
\psline[linewidth=.5pt]{->}(1.75,1.75)(-.25,-.25)
\psline[linewidth=.5pt]{->}(.75,1.75)(-.25,.75)
\rput(4.5,1){${\begin{array}{r}
24\\ 220\\ 1100 \\ + \ 6000 \\ \hline  7344
\end{array}}$}
\end{pspicture}
\end{center}



-----Original Message-----
From: pstricks-bounces at tug.org on behalf of David Arnold
Sent: Sun 1/25/2009 1:16 PM
To: Graphics with PSTricks
Subject: [pstricks] Tabular Integration by Parts
 
All,

Anyone have a good idea how to use PSTricks to set up this tabular  
integration by parts?

D.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 4116 bytes
Desc: not available
Url : http://tug.org/pipermail/pstricks/attachments/20090125/d7a1ab8f/attachment.bin 


More information about the PSTricks mailing list