Graphics, Figures & Tables ⇒ Please help with this table!
Please help with this table!
Please! Thank you all for your interest!
Tony
- Attachments
-
- table-prblm.jpg (47.39 KiB) Viewed 1933 times
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
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Please help with this table!
Code: Select all
\documentclass[11pt,a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{geometry}
\usepackage[%
font=small,
labelfont=bf,
labelsep=period,
tableposition=top
]{caption}
\usepackage{mathtools} % loads »amsmath«
\usepackage{booktabs,multirow}
\usepackage[version=3]{mhchem}
\usepackage{siunitx}
\sisetup{%
load-configurations=abbreviations
}
\begin{document}
\begin{table}[!ht]
\caption{Table caption}\label{tab:let}
\centering
\begin{tabular}{%
l
S[table-number-alignment=left]
S[table-number-alignment=center]
S[table-number-alignment=center]
S[table-number-alignment=center]
S[table-number-alignment=center]
S[table-number-alignment=center]
}\toprule
\multirow{3}{*}{\parbox{4em}{\raggedright Charged particle \ce{^MN^Z}}} &
\multirow{3}{*}{\parbox{8em}{\raggedright $E$ (\si{\MeV\per\atomicmassunit}) $\text{Range}=\SI{262}{\mm}$}} &
\multicolumn{5}{c}{LET (\si{\keV\per\micro\meter}) at various} \\
& & \multicolumn{5}{c}{residual ranges in water (\si{\mm})} \\\cmidrule(lr){3-7}
& & {262} & {150} & {70} & {30} & {1} \\ \midrule
\ce{^1H^{+1}} & 200.0 & 0.5 & 0.6 & 0.8 & 1.1 & 4.8 \\
\ce{^4He^{+2}} & 202.0 & 1.8 & 2.2 & 3.1 & 4.4 & 20.0 \\
\ce{^7Li^{+3}} & 234.3 & 3.7 & 4.6 & 6.2 & 8.9 & 40.0 \\
\ce{^{11}B^{+5}} & 329.5 & 8.5 & 10.0 & 13.5 & 19.0 & 87.5 \\
\ce{^{12}C^{+6}} & 390.7 & 11.0 & 13.5 & 17.5 & 24.5 & 112.0 \\
\ce{^{14}N^{+7}} & 430.5 & 13.5 & 14.5 & 22.5 & 31.5 & 142.0 \\
\ce{^{12}O^{+8}} & 468.0 & 18.0 & 21.5 & 28.0 & 39.0 & 175.0 \\\bottomrule
\end{tabular}
\end{table}
\end{document}
Best regards and welcome to the board
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Please help with this table!
I am still a new by so I couldn't find the right indentation.
I will study everything you wrote me.
The only thing is that as I have wrote by far with different packages , when compiling it will not accept packages like
\usepackage[utf8]{inputenc}
and also I will not change the main document class!
Thank you very much!
Tony.
Please where i can find the manuals for each package!?
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Please help with this table!
What do you mean with indentation in this context?Tony20721 wrote:[…] I am still a new by so I couldn't find the right indentation. […]
You should elaborate that a bit more. The inputenc package is not mandatory if you write in English but helps with inserting special characters in other languages. And the code does not depend on the document class. My example is just a basic structure, especially regarding the class.Tony20721 wrote:[…] The only thing is that as I have wrote by far with different packages , when compiling it will not accept packages likeand also I will not change the main document class! […]Code: Select all
\usepackage[utf8]{inputenc}
You can either find them on CTAN or on your local machine via command line.Tony20721 wrote:[…] Please where i can find the manuals for each package!?
Code: Select all
texdoc ‹packagename›
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Please help with this table!
I'll see what \usepackage[utf8]{inputenc}allows me to do. Since now it has not recognized many symbols that i wrote in a different way, id does not reconize them!
Thank you so much!