Vertical and Horizontal Spacing with LaTex

soroban

Elite Member
Joined
Jan 28, 2005
Messages
5,586
Hello, lookagain!

Wow!


\(\displaystyle \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \)\(\displaystyle \text{B}\)
\(\displaystyle \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ *\)
\(\displaystyle \ \ \ \ \ \ \ \ \ \ \ \ \ * \ \ \ \ \ \ \ *\)
\(\displaystyle \ \ \ \ \ \ \ \ \ \ \ * \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ * \)
\(\displaystyle \ \ \ \ \ \ \ \ \ * \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ *\)
\(\displaystyle \ \ \ \ \ \ \ \ ***************\)
\(\displaystyle \ \ \ \ \ \)\(\displaystyle \text{A}\)\(\displaystyle \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \) \(\displaystyle \text{C}\)

I thought you had figured out how I make my ASCII diagrams
. . or that you invented your own system.

Then I saw that you did it in LaTeX !
It must have taken a lot of work . . . Fantastic!



FYI: there are other commands for spacing.

\(\displaystyle \begin{array}{ccc}\text{*\quad*} & *\quad* \\ \text{*\qquad*} & *\qquad* \end{array}\)


For fine tuning, there are these commands.

. . \(\displaystyle \begin{array}{ccc} \text{*\,*} & *\,* \\ \text{*\;*} & *\;* \end{array}\)


You can use \! to reduce spacing.

\(\displaystyle \begin{array}{ccc} \text{**} & ** \\ \text{*\!*} & *\!* \\ \text{*\!\!*} & *\!\!* \\ \text{*\!\!\!*} & *\!\!\!* \end{array}\)


Enjoy!
 
Last edited by a moderator:
or: \hspace

\(\displaystyle \\
\hspace{1.5in}\,\,\,\bigcirc\\
\hspace{1.25in}\bigtriangleup \hspace{0.5in} \bigtriangleup\\
\hspace{1in}\lhd\hspace{1in}\rhd\\
\hspace{0.75in}\boxdot\hspace{1.5in}\boxdot\\
\hspace{1in}\lhd\hspace{1in}\rhd\\
\hspace{1.25in}\bigtriangledown\hspace{0.5in} \bigtriangledown\\
\hspace{1.5in}\,\,\,\bigcirc\\
\)

The character width offsets it a tiny bit, but it works well enough.
 
Hello, daon2!

Thank you for that \hspace . . . it's great!


When I want a symmetric display,
. . I usually use \array.

\(\displaystyle (a+b+c)^3 \;=\;\begin{array}{ccccccc}&&& a^3 \\ && 3a^b && 3a^2c \\ &3ab^2 && 6abc && 3ac^2 \\ b^3 && 3b^2c && 3bc^2 && c^3 \end{array}\)
 
Top