LaTeX forum ⇒ Scientific Word/WorkplaceElsevier 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

Postby Burak » Wed Oct 10, 2012 11:18 am

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?

Thanks for your responses.

User avatar
Stefan Kottwitz
Site Admin
Posts: 8541
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:

Postby Stefan Kottwitz » Wed Oct 10, 2012 11:22 am

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
Site admin

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

Postby Burak » Wed Oct 10, 2012 12:26 pm

Hi Stefan,
the table format should be something like as follows:
  1. \begin{tabular}{ccc}
  2. 1 & 2 & 3 \\
  3. 4 & 5 & 6 \\
  4. 7 & 8 & 9 \\
  5. 1 & 2 & 3 \\
  6. \end{tabular}


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

Thank you for your help.

User avatar
Stefan Kottwitz
Site Admin
Posts: 8541
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:

Postby Stefan Kottwitz » Wed Oct 10, 2012 1:34 pm

You could use the booktabs package. For example:

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


table.png
table.png (1.77 KiB) Viewed 13977 times


Stefan
Site admin

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

Postby Burak » Wed Oct 10, 2012 1:42 pm

Thank you

kaiserkarl13
Posts: 582
Joined: Tue Mar 25, 2008 5:02 pm
Location: Columbia, Missouri, USA

Postby kaiserkarl13 » Fri Oct 12, 2012 5:22 am

The more usual way is this:
  1. \begin{tabular}{ccc}
  2. \hline
  3. 1 & 2 & 3 \\
  4. \hline
  5. 4 & 5 & 6 \\
  6. 7 & 8 & 9 \\
  7. 1 & 2 & 3 \\
  8. \end{tabular}

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

Postby Burak » Fri Oct 12, 2012 9:46 am

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?

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


Thank you for your help.

User avatar
Stefan Kottwitz
Site Admin
Posts: 8541
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:

Postby Stefan Kottwitz » Fri Oct 12, 2012 9:57 am

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:

  1. \documentclass{article}
  2. \begin{document}
  3. \listoftables
  4. \begin{table}[htbp]
  5. \centering
  6. \caption{Experimental conditions}
  7. \label{tab:expcond}
  8. \begin{tabular}{ccc}
  9. \hline
  10. 1 & 2 & 3 \\
  11. \hline
  12. 4 & 5 & 6 \\
  13. 7 & 8 & 9 \\
  14. 1 & 2 & 3
  15. \end{tabular}
  16. \end{table}
  17. Experimental conditions can be found in Table \ref{tab:expcond}.
  18. \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
Site admin

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

Postby Burak » Fri Oct 12, 2012 10:55 am

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:

  1. \begin{table}[htbp]
  2. \caption{Experimental conditions}
  3. \label{tab:Table 1}
  4. \begin{tabular}{ccccc}
  5. \hline
  6. Exp. Number & Solution Concentration (M) & Reaction Temperature ($\,^{\circ}\mathrm{C}$) & Carrier Gas Flow Rate (mL/min) & Carrier Gas Type \\
  7. \hline
  8. E1 & 0.05 & 700 & 500 & Air \\
  9. E2 & 0.05 & 800 & 500 & Air \\
  10. E3 & 0.05 & 900 & 500 & Air \\
  11. E4 & 0.1 & 700 & 500 & Air \\
  12. E5 & 0.1 & 800 & 500 & Air \\
  13. E6 & 0.1 & 900 & 500 & Air \\
  14. E7 & 0.2 & 700 & 500 & Air \\
  15. E8 & 0.2 & 800 & 500 & Air \\
  16. E9 & 0.2 & 900 & 500 & Air \\
  17. \end{tabular}
  18. \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.

User avatar
Stefan Kottwitz
Site Admin
Posts: 8541
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:

Postby Stefan Kottwitz » Fri Oct 12, 2012 2:13 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:

  1. \usepackage{array}
  2. \newcolumntype{C}[1]{>{\centering\arraybackslash}p{#1}}
  3. ...
  4. \begin{tabular}{C{1.5cm}*3{C{3cm}}C{2cm}}
  5. ...
  6. \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
Site admin


Return to “Scientific Word/Workplace”

Who is online

Users browsing this forum: No registered users and 1 guest