How might one define a command \rectangle, invoked via e.g.
\rectangle{70cm}{70cm}
that produces a black-outline rectangle of the specified dimensions?
|
How might one define a command
that produces a black-outline rectangle of the specified dimensions? |
|||
|
A way without any package is the following:
With Instead of If one wants to specify also a depth, then the extension is quite easy:
so that
will build the same, but placed slightly below the baseline. |
||||
|
|
An alternative answer using TikZ is
(You need to add If you want to have a rectangle filled with black, replace
and many other things. |
||||
|
|
|
My attempt at using
|
|||
|
|
\rule{<width>}{<height>}– Mohan Dec 5 '12 at 16:49