Table heading top alignment

15 views
Skip to first unread message

dominic foo

unread,
May 21, 2018, 6:58:36 AM5/21/18
to LaTeX for UTM Thesis
Dear sir,

May I know how to make the table heading vertically top?

Here is my code. I still could not figure out.

Thanks in advanced

\documentclass{article}
\usepackage{tabularx,booktabs}
\usepackage{array} 
\usepackage{makecell}


\begin{document}


\begin{table}[htbp]
\centering
\caption{Anaerobic treatment of antibiotic wastewater}
\label{anaerob}
\vspace{0.2cm}
\newcolumntype{P}[1]{>{\centering\arraybackslash}p{#1}}
\renewcommand{\arraystretch}{1.5}
\begin{tabular}{p{0.25cm}P{2.2cm}P{2.4cm}P{2.4cm}P{2.5cm}P{2.5cm}}
\hline
No&\makecell{Influent\\COD\\(mg L)}&\makecell{Influent\\antibiotics\\(mg L)}&\makecell{COD\\removal\\efficiency (\%)}&\makecell{Antibiotics\\removal\\efficiency (\%)}&Reference\\
\hline
1&9~736 to 19~862& Ampicillin 3; aureomycin 1&91&Ampicillin 67; aureomycin 51&(Zhou, 2006)\\
2&3~000 to 43~000&Penicillin&97&N/A&(Degirmentas, 2004)\\
3&127~000&Erythromycin 1 to 200&94&N/A&(Amin, 2006)\\
4&3~000&Sulfamerazine 10 to 90&69 to 89&76 to 100&(Sponza, 2007)\\
\hline

\end{tabular}
\end{table}

\end{document}

Y.S. Yap

unread,
May 22, 2018, 11:45:30 AM5/22/18
to utmthesi...@googlegroups.com
Hi,

Sorry, I don't understand what you mean by making your table headings vertically top...
Are you referring to the first row? and by "vertically top" are you referring to the alignment?

Regards,

YS Yap






~~~
A lie can travel half way around the world while the truth is putting on its shoes.
Mark Twain
~~~

--
To post to this group, email to utmthesis-discuss@googlegroups.com
To unsubscribe, email to utmthesis-discuss+unsubscribe@googlegroups.com
For more, visit http://groups.google.com/group/utmthesis-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "LaTeX for UTM Thesis" group.
To unsubscribe from this group and stop receiving emails from it, send an email to utmthesis-discuss+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

dominic foo

unread,
May 30, 2018, 4:57:33 AM5/30/18
to LaTeX for UTM Thesis
Yes sir, that's what i meant to do but I can only get as attached. May I know how to make the content in the circle to be top align?

Thanks

Best regards

Jimmy Lye
table.jpg
Reply all
Reply to author
Forward
0 new messages