Graphics, Figures & Tablestabulary | Table format

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
cyrlang
Posts: 5
Joined: Fri Jul 27, 2012 6:49 pm

tabulary | Table format

Post by cyrlang »

Hi all,

I want to draw a table with vertical left border, except for the first cell. I have do it many times before, but that time, the compilation give me a single vertical line before the first row of the table. This behavior persists if I switch the tabulary environment for a simple tabular, or for tabularx (with appropriate syntax for each, of course).

I use in preamble the packages array, tabulary, longtable and mhchem (for the chemical formula, as \ce{Al2O3}).

Code: Select all

\begin{table}[htdp]
\caption{Analyses chimiques des laves du secteur du cirque des Boutières. {\footnotesize B~: basanite de Ranchon~; H~: hawaiite au S du Mézenc~; M~: mugéarite du cirque des Boutières~; Bm~: benmoréite de la cote 1554~; T-Q~: trachyte quartzifère de la Roche Pointue~; Ph~: phonolite du Mézenc. (D'après Maury \& Varet, 1980)}}
\centering 
\begin{tabulary}{\textwidth}{|>{\small }L >{\small }L |*{6}{>{\small } C} |}\\ \cline{3-8}
\multicolumn{2}{l|}{} & B & H & M & Bm & T-Q & Ph \\ \hline
\ce{SiO2} & & 43,66 & 47,07 & 53,28 & 57,77 & 64,52 & 60,05\\
\ce{TiO2} & & 2,38 & 2,46 & 1,82 & 1,09 & 0,43 & 0,26 \\
\ce{Al2O3} & & 12,91 & 17,32 & 18,06 & 18,28 & 17,08 & 19,15\\
\ce{Fe2O3} & & 3,14 & 4,55 & 1,17 & 3,29 & 2,67 & 2,51\\
\ce{FeO} & & 8,30 & 5,44 & 7,44 & 3,94 & 1,50 & 1,11 \\
\ce{MnO} & & 0,18 & 0,22 & 0,19 & 0,21 & 0,11 & 0,30 \\
\ce{MgO} & & 11,13 & 3,94 & 1,87 & 1,66 & 0,46 & 0,16 \\
\ce{CaO} & & 11,04 & 7,79 & 5,32 & 4,70 & 1,20 & 0,99\\
\ce{Na2O} & & 3,36 & 4,82 & 5,24 & 5,23 & 5,77 & 7,57 \\
\ce{K2O} & & 1,58 & 1,68 & 3,22 & 3,30 & 5,49 & 5,11 \\
\ce{P2O5} & & 0,73 & 1,10 & 0,90 & 0,79 & 0,16 & 0,04 \\
\ce{H2O^{+}} & & 1,93 & 1,76 & 1,93 & 0,27 & 0,51 & 0,76 \\
\ce{H2O^{-}} & & 0,29 & 1,20 & 0,29 & 0,26 & 0,55 & 0,50 \\
Total & & 100,63 & 99,35 & 100,73 & 100,79 & 100,45 & 98,51 \\
Q & & & & & 3,33 & 8,14 & \\
Or & & 9,49 & 10,30 & 19,31 & 19,43 & 31,68 & 31,04 \\
Ab & & 6,13 & 34,78 & 41,49 & 44,12 & 47,58 & 53,04 \\
An & & 15,72 & 21,44 & 16,50 & 16,62 & 5,64 & 3,29 \\
Ne & & 12,33 & 4,07 & 1,90 & & & 6,66 \\
Le & & & & & & & \\
Ac & & & & & & & \\
Wo & & & & & & & 0,07 \\
\multirow{3}{0.75cm}{Di $\Bigg\{$} & Wo & 14,77 & 4,67 & 1,89 & 0,62 & 0,10 & 0,56 \\
 & En & 10,23 & 3,37 & 0,59 & 0,34 & 0,07 & 0,41 \\
 & Fs & 3,34 & 0,88 & 1,27 & 0,26 & 0,03 & 0,10 \\
En & & & & & 3,78 & 1,34 & \\
Fs & & & & & 2,84 & 0,49 & \\
Fo & & 12,57 & 4,77 & 2,90 & & & \\
Fa & & 4,52 & 1,38 & 6,89 & & & \\
Mt & & 4,62 & 6,84 & 1,72 & 4,76 & 3,67 & 3,74 \\
He & & & & & & &  \\
Il & & 4,59 & 4,84 & 3,51 & 2,06 & 0,90 & 0,51 \\
Ap & & 1,69 & 2,71 & 2,17 & 1,87 & 0,37 & 0,10 \\
Ak & & & & & & & \\ \hline
S. I. & & 40,46 & 19,51 & 9,84 & 9,60 & 2,57 & 0,97 \\
D. I. & & 27,94	& 49,15 & 62,70 & 66,89 & 87,39 & 91,24 \\ \hline
\end{tabulary}
\label{tab:AnalysesVelay}
\end{table}%
The problem stay at the beginning of the tabulary environment :

Code: Select all

\begin{tabulary}{\textwidth}{|>{\small }L >{\small }L |*{6}{>{\small } C} |}\\ \cline{3-8}
It gives me a left border for the table but also a vertical line before the first row (as if the left border instruction was misunderstood). It disappears, but the entire left border also, when I erase the first |.

I need to say I've started to use MacTeX 2012 instead of MacTeX 2011 since a couple of days.

Many thanks for help.
Last edited by localghost on Tue Jul 31, 2012 4:41 pm, edited 2 times in total.

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

cyrlang
Posts: 5
Joined: Fri Jul 27, 2012 6:49 pm

tabulary | Table format

Post by cyrlang »

My apologies for the previous post! I finally found the source of my problem: a very, very basic mistake! :oops:
I have written :

Code: Select all

\begin{tabulary}{\textwidth}{|>{\small }L >{\small }L |*{6}{>{\small } C} |}\\ \cline{3-8}
instead of

Code: Select all

\begin{tabulary}{\textwidth}{|>{\small }L >{\small }L |*{6}{>{\small } C} |} \cline{3-8}
User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

tabulary | Table format

Post by Stefan Kottwitz »

Hi cyrlang,

welcome to the board!

Thanks for posting the solution you found. Just a remark: there's no d placement option for tables, perhaps you mean

Code: Select all

\begin{table}[htbp]
Stefan
LaTeX.org admin
Post Reply