[XeTeX] XeTeX Digest, Vol 75, Issue 34

Alan Munn amunn at gmx.com
Mon Jun 14 17:18:59 CEST 2010


On Jun 14, 2010, at 2:08 AM, Ross Moore wrote:

> Hi Alan, and Ashok,
>
> On 14/06/2010, at 2:23 PM, Alan Munn wrote:
>
>> This isn't really a XeLaTeX question, but a very elementary latex  
>> question.  There are so many things wrong with the table you posted  
>> it's hard to know where to start.
>
> I think you may be being a bit harsh here.
> It looks to me like every \ has been stripped out,
> except for \\ being reduced to a single backslash.
>
> This could have been the result of some badly written filter
> having been applied to the email message as a whole, rather
> than it having started with very poorly-written LaTeX coding.

You're right Ross (as usual!).  Since I spoke too quickly on what was  
clearly a general problem with Ashok's message and not the table  
itself I'll do my penance :-)  by reformatting it with booktabs and  
dcolumn to show what a nice table could look like:

\documentclass[a4paper]{article}
\usepackage{amsmath,array,booktabs,dcolumn}
\usepackage[margin=2cm]{geometry}
\begin{document}


\newcolumntype{d}{D{.}{.}{3}}
\newcolumntype{C}{>{$}c<{$}}
\newcolumntype{L}{>{$}l<{$}}
\addtolength{\tabcolsep}{-2pt}
\noindent\begin{tabular}{LdddddddD{.}{.}{0}}
\toprule
{} &{} & {} & \multicolumn{3}{C}{(\triangle E_B)_g}  &{}&  
\multicolumn{2}{C}{M_B}\\
  \cmidrule{4-6} \cmidrule{8-9}
\multicolumn{1}{C}{\text{Baryon}} & \multicolumn{1}{C}{E_B} &  
\multicolumn{1}{C}{(\triangle E_B)_{\text{cm}}} & \multicolumn{1}{C} 
{(\triangle E_B)^m_g} & \multicolumn{1}{C}{(\triangle E_B)^e_g} &  
\multicolumn{1}{C}{\text{Total}} & \multicolumn{1}{C}{(\delta M_B)_ 
\chi} & \multicolumn{1}{c}{\text{Calculation}} & \multicolumn{1}{C} 
{\text{Expt.}}\\
\midrule
N & 1507.335& -191.467 & -99.851 & 0 & -99.851 & -276.017 & 940 & 940 \\

\triangle & 1507.335 & -191.467 & 99.851 & 0 & 99.851 &-183.719 & 1232  
& 1232\\

\Lambda & 1622.074 & -192.833 & -99.851 & -46.769 &-146.62& -166.621 &  
1116 & 1116\\

\sum & 1622.074 & -192.833 & -91.938 & -46.769 & -138.707 &-97.718 &  
1192.816 & 1193\\

\sum^* & 1622.074 & -192.833 & 95.893 & -46.769 &49.124& -97.718 &  
1380.647 & 1385\\

\Xi & 1736.812 & -193.996 & -90.312 & -46.769 & -137.081& -82.537 &  
1323.198 & 1321\\

\Xi^* & 1736.812 & -193.996 & 97.516 & -46.769 & 50.747 & -82.537 &  
1517.026 & 1533\\

\Omega^- & 1851.551 & -194.999 & 104.719 & 0 & 104.719& -79.139 &  
1682.132 & 1672\\
\bottomrule

\end{tabular}
\end{document}


-- 
Alan Munn
amunn at gmx.com






More information about the XeTeX mailing list