General ⇒ Am I going mad?
-
- Posts: 16
- Joined: Fri Jul 25, 2008 5:54 pm
Am I going mad?
I've been using Tex for a number of years now. And this is the first time i've been truly baffled.
All i'm trying to do is create a table, for which I have pasted the code below. I generated the body of the code from
the excel2latex applet. The table is rendering but there's a problem in the code somewhere because its kicking out
of the margin.
Is this something really obvious or something more devious? There's a note from the download site where I found excel2latex
which says that there is a character in the \end{tabular} command that the Mac OS doesn't like.
But I only used the body of the code.
Any ideas?
\begin{table}[htdp]
\caption{Oyu Tolgoi Measured and Indicated resource estimates including copper and gold grade values and contained metal quantities.
Resources classifications conform to CIM standards on Mineral Resources and Reserves referred to in National Instrument 43-101.}
\begin{center}
\begin{tabular}{|r|ccccc|}
\hline
{\bf Ore Resources} & {\bf Resources} & {\bf Copper } & {\bf Gold} & \multicolumn{ 2}{c}{{\bf Metal Contained}} \\
{\bf } & {\bf (tonnes x103)} & {\bf Grade} & {\bf Grade} & {\bf Copper} & {\bf Gold} \\
{\bf } & {\bf } & {\bf (\%)} & {\bf (g/t)} & {\bf (tonnes x103)} & {\bf (ounces x103)} \\
\hline
{\bf Total Measured} & 101,590.00 & 0.64\% & 1.10 & 650.18 & 3941.83 \\
{\bf Total Indicated} & 1,047,570.00 & 1.33\% & 0.42 & 13932.68 & 15519.82 \\
{\bf Total Measured + Indicated} & 1,149,160.00 & 1.2690\% & 0.48 & 14582.86 & 19461.65 \\
\hline
\end{tabular}
\end{center}
\label{reserve}
\end{table}
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
-
- Posts: 16
- Joined: Fri Jul 25, 2008 5:54 pm
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Am I going mad?
Code: Select all
\begin{table}[!ht]
\centering
\footnotesize
\caption{Oyu Tolgoi Measured and Indicated resource estimates including copper and gold grade values and contained metal quantities. Resources classifications conform to CIM standards on Mineral Resources and Reserves referred to in National Instrument 43-101.}\label{reserve}
\begin{tabular}{|r|ccccc|} \hline
{\bf Ore Resources} & {\bf Resources} & {\bf Copper } & {\bf Gold} & \multicolumn{ 2}{c|}{{\bf Metal Contained}} \\
{\bf } & {\bf (tonnes x103)} & {\bf Grade} & {\bf Grade} & {\bf Copper} & {\bf Gold} \\
{\bf } & {\bf } & {\bf (\%)} & {\bf (g/t)} & {\bf (tonnes x103)} & {\bf (ounces x103)} \\ \hline
{\bf Total Measured} & 101,590.00 & 0.64\% & 1.10 & 650.18 & 3941.83 \\
{\bf Total Indicated} & 1,047,570.00 & 1.33\% & 0.42 & 13932.68 & 15519.82 \\
{\bf Total Measured + Indicated} & 1,149,160.00 & 1.2690\% & 0.48 & 14582.86 & 19461.65 \\ \hline
\end{tabular}
\end{table}
Code: Select all
\caption[Short caption]{Full caption}
Best regards and welcome to the board
Thorsten¹
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
-
- Posts: 16
- Joined: Fri Jul 25, 2008 5:54 pm
Re: Am I going mad?
thanks for the uber fast reply.
To summarise, it was my caption which was the real problem. I've always just inserted tables
as pictures but they look so much prettier as latex tables. I'll check out your advice.
Thanks a bundle
Paul