LaTeX forum ⇒ Scientific Word/Workplace ⇒ Elsevier Table Format Topic is solved

Information and discussion about Scientific Word and Scientific Workplace, two commercial WYSIWYG-like editors for Windows
Burak
Posts: 7
Joined: Tue Oct 09, 2012 1:45 pm

Elsevier Table Format

Hi all,

I'm very new Latex user. I don't have so much Latex background but I can handle with my basic algorithm background for now

I'm preparing a paper to submit one of the Elsevier journals. I use texstudio and couldn't create any table similar as Elsevier format. Can you please help me?

Stefan Kottwitz
Posts: 9203
Joined: Mon Mar 10, 2008 9:44 pm
Hi Burak,

welcome to the board!

What did you try so far? Can you post code of a table, you tried, even if it's not yet in Elsevier format but a normal table?

And can you explain what this format is, do you have an image which you can post here? Which class do you use?

Stefan

Burak
Posts: 7
Joined: Tue Oct 09, 2012 1:45 pm
Hi Stefan,
the table format should be something like as follows:
\begin{tabular}{ccc}1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9 \\ 1 & 2 & 3 \\ \end{tabular}

The only difference is there should be lines above and below the first row.

Stefan Kottwitz
Posts: 9203
Joined: Mon Mar 10, 2008 9:44 pm
You could use the booktabs package. For example:

\documentclass{article}\usepackage{booktabs}\begin{document}\begin{tabular}{ccc}   \toprule   1 & 2 & 3 \\   \midrule   4 & 5 & 6 \\   7 & 8 & 9 \\   1 & 2 & 3 \\\end{tabular} \end{document}

table.png (1.77 KiB) Viewed 18326 times

Stefan

Burak
Posts: 7
Joined: Tue Oct 09, 2012 1:45 pm
Thank you

kaiserkarl13
Posts: 607
Joined: Tue Mar 25, 2008 5:02 pm
The more usual way is this:
     \begin{tabular}{ccc}     \hline     1 & 2 & 3 \\     \hline     4 & 5 & 6 \\     7 & 8 & 9 \\     1 & 2 & 3 \\     \end{tabular}

Burak
Posts: 7
Joined: Tue Oct 09, 2012 1:45 pm
I have a new question for you.

Consider that we have a table in Chapter 2.2 as coded below. I want to name it as "Table 1. Experimental conditions" and write a sentence " Experimental conditions can be found in Table 1". How can I refer it?

\begin{tabular}{ccc}     \hline     1 & 2 & 3 \\     \hline     4 & 5 & 6 \\     7 & 8 & 9 \\     1 & 2 & 3 \\     \end{tabular}

Stefan Kottwitz
Posts: 9203
Joined: Mon Mar 10, 2008 9:44 pm
Use a table environment for the table, \caption for setting a caption text, \label and \ref for placing a label and for referring to it.

A complete example:

\documentclass{article}\begin{document}\listoftables\begin{table}[htbp]   \centering   \caption{Experimental conditions}   \label{tab:expcond}   \begin{tabular}{ccc}     \hline     1 & 2 & 3 \\     \hline     4 & 5 & 6 \\     7 & 8 & 9 \\     1 & 2 & 3\end{tabular}\end{table}Experimental conditions can be found in Table \ref{tab:expcond}.\end{document}

You can also put the caption before the end of the table environment. Just note that the \label command should come after the \caption command, not before.

Tables and figures with captions are a basic topic which is usually explained in LaTeX introductions and tutorials, perhaps have a look at the recommendations here: LaTeX Resources for Beginners.

Stefan

Burak
Posts: 7
Joined: Tue Oct 09, 2012 1:45 pm
It was very helpful for me. But I face another problem. I have 5 columns right now and their titles are very long. The whole text fits only 3-4 columns the other one was disappeared. Reducing punto of the table would be fine I think: My code is as follows:

\begin{table}[htbp]\caption{Experimental conditions}   \label{tab:Table 1}   \begin{tabular}{ccccc}     \hlineExp. Number & Solution Concentration (M) & Reaction Temperature ($\,^{\circ}\mathrm{C}$)  & Carrier Gas Flow Rate (mL/min) & Carrier Gas Type \\      \hlineE1 & 0.05 & 700 & 500 & Air \\ E2 & 0.05 & 800 & 500 & Air \\ E3 & 0.05 & 900 & 500 & Air \\ E4 & 0.1 & 700 & 500 & Air \\ E5 & 0.1 & 800 & 500 & Air \\ E6 & 0.1 & 900 & 500 & Air \\ E7 & 0.2 & 700 & 500 & Air \\ E8 & 0.2 & 800 & 500 & Air \\ E9 & 0.2 & 900 & 500 & Air \\\end{tabular}\end{table}

p.s: I checked most of the documents you said. But I couldn't find any detailed information about referring and cross-reference.

Stefan Kottwitz
Posts: 9203
Joined: Mon Mar 10, 2008 9:44 pm
You could use p columns for columns where line breaks are allowed. It's also possible to modify single cells such as in headings, using \multicolumn. Here I use the array package, because it allows to define a new column type, for centered paragraph columns:

\usepackage{array}\newcolumntype{C}[1]{>{\centering\arraybackslash}p{#1}}...\begin{tabular}{C{1.5cm}*3{C{3cm}}C{2cm}}...\end{tabular}

Just specify the width you need. Btw. I used *3{...} to repeat a column specification three times, also a feature of the array package.

Stefan