Graphics, Figures & TablesPascal's triangle with Latex/Perltex

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
coach
Posts: 5
Joined: Wed May 27, 2009 10:47 pm

Pascal's triangle with Latex/Perltex

Post by coach »

Dear forum members,
this is my first post here, and unlike etiquette requires I don't have the time
to hang around and get the feel of the community, so please forgive any faux pas that may follow.

I am working on a project, which involves inserting Pascal's triangle into my math paper. I've tries using Perltex to generate the triangle, but the problem is that Perltex does not produce an equilateral triangle. So I was wondering does someone know any tips or tricks(no matter how tedious) which can help me produce an equilateral triangle?

This work is due on Friday, so if someone could help me out before that, it would be much appreciated.
Thank you!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Sagil
Posts: 20
Joined: Tue Mar 24, 2009 1:15 am

Re: Pascal's triangle with Latex/Perltex

Post by Sagil »

Is the problem that you want to draw a nice equilateral triangle around your numbers, or that you want to arrange the numbers in a nice triangular fashion, or both?
1) Check out the pstricks package, the commands \psline or \pspolygon should allow you to create any kinds of triangles easily.
2) The \multido command from the multido package should allow you to arrange your numbers (and any graphic triangles or polygones you want around it) in a nice triangular fashion.
Post Reply