4

I want to draw rectangles like the exmaple below in my tex file. I am trying to illustrate the path counting problem on a rectangular mesh.

enter image description here

Marco Daniel
  • 95,681
Naji
  • 1,505
  • 2
    Try here to see if the answers there sufficiently answer your question. – Scott H. Apr 05 '13 at 19:54
  • 1
    Welcome to TeX.sx! On this site, a question should typically revolve around an abstract issue (e.g. "How do I get a double horizontal line in a table?") rather than a concrete application (e.g. "How do I make this table?"). Questions that look like "Please do this complicated thing for me" tend to get closed because they are "too localized". Please try to make your question clear and simple by giving a minimal working example (MWE): you'll stand a greater chance of getting help. – Peter Jansson Apr 05 '13 at 19:57
  • @ScottH. unfortunately, I want rectangles but not squares and I am a newbie. Where can I learn how to make this code for rectangles? Thank you. – Naji Apr 05 '13 at 21:19
  • Unfortunately, it's not really a newbie question. You might add a comment to one of the answers in the linked question and see if they would be willing to generalize the code to include rectangles. – Scott H. Apr 05 '13 at 21:48
  • @ScottH. unfortunately I don't have the privilege to post comment on someone else's post! – Naji Apr 05 '13 at 21:50
  • 1
    In the first code block in the first answer to the linked question, change \newcommand\catalannumber[3] to \newcommand\catalannumber[4] and in the code change #3 to #4, (#2,#2) to (#2,#3) and invoke as \catalannumber{0,0}{2}{3}{0,1,1,1,0}; – Scott H. Apr 05 '13 at 22:14
  • @Naji Your example contains only squares. Can you show an example with real rectangles? – Paul Gaborit May 11 '13 at 13:07
  • @PaulGaborit, I asked the question somewhere else and got the answer already: http://tex.stackexchange.com/questions/107097/what-is-the-for-in-tikz – Naji May 11 '13 at 16:50

0 Answers0