As the subject line says, I just started using LaTeX the past few weeks. I am trying to create tables, but cannot. I have looked everywhere I can think on the internet to try to find answers, and some of them are close, but none are perfect.
So it looks almost perfect, the problem is I would like the table name and number to be further left justified. I put the {l} code in there, but it's not as far justified as I would like (this is a minor problem). Second, and more important, I cannot get the very bottom row to put my source information in there correctly. I can either have the information in first, left, cell, but the info is crammed into the left, small cell. OR, I use the \multicolumn command to combine the two cells, but then the cell content doesn't scroll.
This code gives me the two cells at the end with the reference info crammed into the first cell (Shown in first pic)(I'm using the "longtable" package because other tables are very long).
Code: Select all
\documentclass{article}
\usepackage{graphicx} % Required for inserting images
\usepackage{booktabs}
\usepackage{longtable}
\begin{document}
\centering
\scriptsize
\label{tab:label}
\begin{longtable}{p{4cm}p{8.5cm}}
\caption{l}{EXAMPLES OF BIOLOGICAL WARFARE THROUGH HISTORY}\\
\hline
Time/Year & Event\\
\hline
Pre-historic times & Melanesian (Vanuatu) tribesman used arrowheads contaminated with tetanus\\
14th century BC & Hittite army sends rams infected with tularemia to their enemies\\
\hline
Adapted from Oliveira, Manuela, Gabriella Mason-Buck, David Ballard, Wojciech Branicki, and António Amorim. 2020. “Biowarfare, Bioterrorism and Biocrime: A Historical Overview on Microbial Harmful Applications.”
\textit{Forensic Science International}
314 (September): 1–12. https://doi.org/10.1016/j.forsciint.2020.110366 and Long, Daniel E.
\textit{WAR IS HELL: The Rise of Total War from Napoleon to the Present}
(Mechanicsburg, PA: Stackpole Books, 2025).
\end{longtable}
\end{document}
Code: Select all
\documentclass{article}
\usepackage{graphicx} % Required for inserting images
\usepackage{booktabs}
\usepackage{longtable}
\begin{document}
\centering
\scriptsize
\label{tab:label}
\begin{longtable}{p{4cm}p{8.5cm}}
\caption{l}{EXAMPLES OF BIOLOGICAL WARFARE THROUGH HISTORY}\\
\hline
Time/Year & Event\\
\hline
Pre-historic times & Melanesian (Vanuatu) tribesman used arrowheads contaminated with tetanus\\
14th century BC & Hittite army sends rams infected with tularemia to their enemies\\
\hline
\multicolumn{2}{l}
Adapted from Oliveira, Manuela, Gabriella Mason-Buck, David Ballard, Wojciech Branicki, and António Amorim. 2020. “Biowarfare, Bioterrorism and Biocrime: A Historical Overview on Microbial Harmful Applications.”
\textit{Forensic Science International}
314 (September): 1–12. https://doi.org/10.1016/j.forsciint.2020.110366 and Long, Daniel E.
\textit{WAR IS HELL: The Rise of Total War from Napoleon to the Present}
(Mechanicsburg, PA: Stackpole Books, 2025).
\end{longtable}
\end{document}
DL