Graphics, Figures & TablesMathematical figure

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
krislodz
Posts: 42
Joined: Sun Nov 08, 2009 1:13 pm

Mathematical figure

Post by krislodz »

Hello,
I am trying to format a simple drawing presenting memory layout, but the second row is wider and I cannot get it to fit the width.

Code: Select all

\documentclass[draft,10pt]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}

\usepackage{amsmath}

\begin{document}
\begin{table}
 \caption{Memory view of the data types conventions used.}
 \label{tab:MemoryConventions}
  \centering
  $\overbrace{ \overbrace{b_{7} \ldots b_{0}}^{\text{byte }B_0} 
               \overbrace{b_{15} \ldots b_{8}}^{\text{byte }B_1}
               \overbrace{b_{23} \ldots b_{16}}^{\text{byte }B_2}
               \overbrace{b_{31} \ldots b_{24}}^{\text{byte }B_3}
               \overbrace{b_{39} \ldots b_{32}}^{\text{byte }B_4}
               \overbrace{b_{47} \ldots b_{40}}^{\text{byte }B_5}
               \overbrace{b_{55} \ldots b_{48}}^{\text{byte }B_6}
               \overbrace{b_{63} \ldots b_{56}}^{\text{byte }B_7}
              }^{\text{word }w_0}$ \\
  $\overbrace{ \overbrace{b_{71} \ldots b_{64}}^{\text{byte }B_8} 
               \overbrace{b_{79} \ldots b_{72}}^{\text{byte }B_9}
               \overbrace{b_{87} \ldots b_{80}}^{\text{byte }B_{10}}
               \overbrace{b_{95} \ldots b_{88}}^{\text{byte }B_{11}}
               \overbrace{b_{103} \ldots b_{96}}^{\text{byte }B_{12}}
               \overbrace{b_{111} \ldots b_{104}}^{\text{byte }B_{13}}
               \overbrace{b_{119} \ldots b_{112}}^{\text{byte }B_{14}}
               \overbrace{b_{127} \ldots b_{120}}^{\text{byte }B_{15}}
              }^{\text{word }w_1}$
\end{table}
\end{document}
I tried putting it to tabular but did not work. Any suggestions?

Recommended reading 2024:

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

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

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Mathematical figure

Post by localghost »

Modify the type area. For standard classes you can use the geometry package. Other classes may have built-in features.


Thorsten
krislodz
Posts: 42
Joined: Sun Nov 08, 2009 1:13 pm

Re: Mathematical figure

Post by krislodz »

What I would like to get is both rows being of the same size. It is possible, I have seen such result in a paper.
Post Reply