MHB Understanding the Preamble of Tabbing Environment for Overlap Issues

  • Thread starter Thread starter Dustinsfl
  • Start date Start date
AI Thread Summary
The discussion focuses on the tabbing environment in LaTeX, specifically addressing issues of overlap in the displayed content. The preamble portion of the tabbing environment is crucial as it defines the tab locations. Each \= command sets the next tab position, and the .17\linewidth in the \hspace command indicates the space allocated before the next item appears. To resolve overlap issues, it is suggested to adjust the spacing by increasing the .3\linewidth to .4\linewidth, which should help in properly aligning the elements without overlap.
Dustinsfl
Messages
2,217
Reaction score
5
I using the tabbing environment but there is some overlap. Can someon explain the preamble portion of the tabbing environment? http://img850.imageshack.us/img850/209/tabbing.png
Code:
\begin{tabbing}\hspace{.17\linewidth} \= 11.\quad \= \hspace{.3\linewidth} \= 11.\quad \= \kill
\> $\sigma_{\text{\MakeUppercase{\romannumeral 1}}}:$\> $\begin{bmatrix}
3 - \sigma_{\text{\MakeUppercase{\romannumeral 1}}} & 0 & 2\\
0 & 1 - \sigma_{\text{\MakeUppercase{\romannumeral 1}}} & 0\\
2 & 0 & -2 - \sigma_{\text{\MakeUppercase{\romannumeral 1}}}
\end{bmatrix}$\> $=$\> $\begin{bmatrix}
4 & 0 & 2\\
0 & 4 & 0\\
2 & 0 & 1
\end{bmatrix}$\\
\> \> \> $=$\> $\begin{bmatrix}
2 & 0 & 1\\
0 & 1 & 0\\
0 & 0 & 0
\end{bmatrix}$
\end{tabbing} 
\begin{tabbing}\hspace{.17\linewidth} \= 11.\quad \= \hspace{.3\linewidth} \= 11.\quad \= \kill
\> $\sigma_{\text{\MakeUppercase{\romannumeral 2}}}:$\> $\begin{bmatrix}
3 - \sigma_{\text{\MakeUppercase{\romannumeral 2}}} & 0 & 2\\
0 & 1 - \sigma_{\text{\MakeUppercase{\romannumeral 2}}} & 0\\
2 & 0 & -2 - \sigma_{\text{\MakeUppercase{\romannumeral 2}}}
\end{bmatrix}$\> $=$\> $\begin{bmatrix}
0 & 0 & 2\\
0 & 0 & 0\\
2 & 0 & -3
\end{bmatrix}$\\
\> \> \> $=$\> $\begin{bmatrix}
0 & 0 & 1\\
0 & 0 & 0\\
2 & 0 & -3
\end{bmatrix}$
\end{tabbing} 
\begin{tabbing}\hspace{.17\linewidth} \= 11.\quad \= \hspace{.3\linewidth} \= 11.\quad \= \kill
\> $\sigma_{\text{\MakeUppercase{\romannumeral 3}}}:$\> $\begin{bmatrix}
3 - \sigma_{\text{\MakeUppercase{\romannumeral 3}}} & 0 & 2\\
0 & 1 - \sigma_{\text{\MakeUppercase{\romannumeral 3}}} & 0\\
2 & 0 & -2 - \sigma_{\text{\MakeUppercase{\romannumeral 3}}}
\end{bmatrix}$\> $=$\> $\begin{bmatrix}
-1 & 0 & 2\\
0 & -1 & 0\\
2 & 0 & -4
\end{bmatrix}$\\
\> \> \> $=$\> $\begin{bmatrix}
-1 & 0 & 2\\
0 & -1 & 0\\
0 & 0 & 0
\end{bmatrix}$
\end{tabbing}
 
Physics news on Phys.org
Re: tabbing environment setup

With a tabbing environment, the tab locations are fixed by the preamble. Each \= gives you the next tab location. The .17\linewidth inside the hspace command means allow .17 of the width of the line before you get to the next item.

To make your example not overlap, increase the .3\linewidth to 0.4\linewidth and see what you get.
 

Similar threads

Replies
21
Views
2K
Replies
1
Views
3K
Replies
3
Views
3K
Replies
43
Views
3K
Back
Top