LaTeX booktabs horizontal oveflow - latex

I am new to LaTeX and I want to create a quite simple table (in german). As you can see in my code, it has to contain 5 rows and 5 columns. My problem is that the table is too large for my page and it overflows on the right side of the page. I don't want to rotate the table, so it should use hyphenation to use the given space better.
\documentclass[12pt]{article}
\usepackage[ngerman]{babel}
\usepackage[utf8]{inputenc}
\usepackage{color}
\usepackage[a4paper,lmargin={3cm},rmargin={2cm},
tmargin={2cm},bmargin = {2cm}]{geometry}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{graphicx}
\usepackage{csquotes}
\usepackage{mathptmx}
\usepackage{booktabs}
\MakeOuterQuote{"}
\linespread{1.5}
\begin{document}
\end{document}
\begin{table}[h]
\centering
\caption{Übersicht aller Umfragen zur Landtagswahl in Sachsen-Anhalt im April/Mai 2021.}
\begin{tabular}{l l l l l}
\toprule
Durchgeführt von:
& Erhebungszeitraum
& Datum der Veröffentlichung
& Erhebungsmethode(n)
& Veröffentlicht von:\\
\midrule
infratest dimap
& 16. – 21.April 2021
& 23.April 2021
& zufallsbasierte Telefon- und Onlineinterviews
& mrd.de \\
Forsa
& 20. – 27.April 2021
& 29.April 2021
& k.A.
& welt.de \\
Insa
& 17. – 23.Mai 2021
& 26.Mai 2021
& k.A.
& bild.de \\
infratest dimap
& 25. – 26.Mai 2021
& 27. Mai 2021
& zufallsbasierte Telefon- und Onlineinterviews
& tagesschau.de \\
Mannheimer Forschungsgruppe Wahlen
& 25. – 27.Mai 2021
& 28.Mai 2021
& zufallsbasierte Telefoninterviews
& zdf.de \\
\bottomrule
\end{tabular}
\end{table}
\end{document}
I think a similar problem is described here, but to be honest; my table is much simpler (no multicolumns and no math-symbols), so I have some problems to find the right code to solve my problem.
Thank you very much for reading my question! :)

To get line breaks you'll need a column type of fixed with, e.g. p{<some width>} or you can use the tabularx package to automatically determine the width of the columns.
However even with line breaks, the table will still look awfully crowded. You can safe a bit more space by giving the months as numbers instead of words and adding #{} before/after the first/last column.
\documentclass[12pt]{article}
\usepackage[ngerman]{babel}
\usepackage[utf8]{inputenc}
\usepackage{color}
\usepackage[a4paper,lmargin={3cm},rmargin={2cm},
tmargin={2cm},bmargin = {2cm}]{geometry}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{graphicx}
\usepackage{csquotes}
\usepackage{mathptmx}
\usepackage{booktabs}
\usepackage{tabularx}
\MakeOuterQuote{"}
\linespread{1.5}
\begin{document}
\begin{table}[h]
\centering
\caption{Übersicht aller Umfragen zur Landtagswahl in Sachsen-Anhalt im April/Mai 2021.}
\begin{tabularx}{\linewidth}{#{} *5{>{\raggedright\arraybackslash}X} #{}}
\toprule
Durchgeführt von:
& Erhebungs\-zeitraum
& Datum der Veröffentlichung
& Erhebungs\-methode(n)
& Veröffentlicht von:\\
\midrule
infratest dimap
& 16. – 21.4.2021
& 23.4.2021
& zufallsbasierte Telefon- und Onlineinterviews
& mrd.de \\
Forsa
& 20.–27.4.2021
& 29.4.2021
& k.A.
& welt.de \\
Insa
& 17.–23.5.2021
& 26.5.2021
& k.A.
& bild.de \\
infratest dimap
& 25.–26.5.2021
& 27.5.2021
& zufallsbasierte Telefon- und Onlineinterviews
& tagesschau.de \\
Mannheimer Forschungsgruppe Wahlen
& 25.–27.5.2021
& 28.5.2021
& zufallsbasierte Telefoninterviews
& zdf.de \\
\bottomrule
\end{tabularx}
\end{table}
\end{document}

Related

How do i wrap text in next kine in order to fit this table in landscape orientation in overleaf?

How do i wrap text in next line in order to fit this table in landscape orientation in the latex document. Need to wrap text particularly in column 7, 8 and column 9.
Attached image is how I want it to look in overload....but in landscape orientation.
Code:
\documentclass[a4paper,12pt]{article}
\usepackage[top=1in, bottom=1in, left=1in, right=1in]{geometry}
\usepackage[utf8]{inputenc}
\usepackage{amsmath,comment}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{threeparttable}
\usepackage{booktabs}
\usepackage{lscape}
\usepackage{setspace}
\usepackage{adjustbox}
\usepackage{multirow}
\usepackage{color}
\usepackage{enumerate}
\usepackage{tfrupee}
\usepackage{tabularx}
\newcommand{\remark}[1]{{\color{red} \large \bf~#1~}}
\usepackage{caption}
\captionsetup[table]{name=Exhibit}
\captionsetup[figure]{name=Exhibit}
\usepackage[utf8]{inputenc}
%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{landscape}
\newpage
\begin{table}[htbp]
\setlength{\tabcolsep}{3pt}
\footnotesize
\renewcommand{\arraystretch}{1}
\caption{Cash Flow}
\centering
\begin{tabular}{lcc p{0.2\linewidth} p{0.3\linewidth}cccclrl}
\toprule
SNo. & Funding Date & Round Name & Funding Amount (USD) & Round Post-Money Valuation (USD) & Institutional Investors & Angel Investors & Lead Investor & Total Funding (USD) & Revenue Multiple \\
1 & Jul 26, 2021 & Series A & 2,50,00,000 & 10,39,39,264 & WestBridge,Accel,Tanglin Venture Partners, Calabasas Capital,AngelList,Sparkle Fund, Konark Trust,MMPL Trust,GP Partners & Ashneer Grover,Abhimanyu Munjal,Kushal Nahata,Ashish Singhal,Ankur Ashwin Shah,Ashish Sharma,Karthik Bhat,Gautam Kumar & WestBridge,Accel, Tanglin Venture Partners & 2,85,70,159 & ~ \\
2 & Oct 29, 2020 & Seed & 33,60,820 & 1,36,14,263 & Accel,Titan Capital,QED Innovation,Blue Wolf Capital Partners,ICICI Bank,Sparkle Fund & Sumit Maniyar,Ramakanth Sharma,Gaurav Agarwal,Nitin Gupta,Akshat Sharma,Harish Kumar Goel,Akhil Paul,Pramod Kumar Saraf,Chitransh Sahai,Kunal Bahl,Viswamani Ganesh,Ashish Santhalia,Anjali Bansal,Dilip KumarKarodimal Khandelwal,Rohit Bansal & Accel & 2,85,70,159 & 30.2 \\
3 & Nov 16, 2019 & Seed & 2,09,339 & 14,86,494 & Titan Capital & Rajesh Razdan,Ajay Garg,Mitesh Damania,Bipin Kumar Shah,Sunder Nookala,Kunal Bahl,Rohit Bansal & Titan Capital & 2,85,70,159 & 68.6 \\
\bottomrule
\end{tabular}%
\label{tab:addlabel}%
\end{table}%
\end{landscape}
\end{document}
I think it would be better if you removed the long wordy columns and moved them to another table. Then match everything by ID. To let table contain long text, you get very tall rows. I don't think it looks correct.
\documentclass[a4paper,12pt]{article}
\usepackage{tabularx}
\usepackage[top=1in, bottom=1in, left=1in, right=1in]{geometry}
\usepackage{booktabs}
\usepackage{pdflscape} % \usepackage{lscape}
\usepackage{makecell}
\usepackage{caption}
\captionsetup[table]{name=Exhibit}
\captionsetup[figure]{name=Exhibit}
\begin{document}
\begin{landscape}
\begin{table}[htbp]
\setlength{\tabcolsep}{3pt}
\footnotesize
\renewcommand{\arraystretch}{1}
\renewcommand\theadgape{}
\renewcommand{\theadalign}{ct}
\caption{Cash Flow}
\label{tab:addlabel}
\centering
\begin{tabularx}{\linewidth}{lcc *2{r} *3{>{\raggedright\arraybackslash}X} rc}
\toprule
SNo.
& \thead{Funding\\Date}
& \thead{Round\\Name}
& \thead{Funding\\Amount\\(USD)}
& \thead{Round\\Post-Money\\Valuation\\(USD)}
& \thead{Institutional\\Investors}
& \thead{Angel\\Investors}
& \thead{Lead\\Investor}
& \thead{Total\\Funding\\(USD)}
& \thead{Revenue\\Multiple} \\
\midrule
1
& Jul 26, 2021
& Series A
& 2,50,00,000
& 10,39,39,264
& WestBridge, Accel, Tanglin Venture Partners, Calabasas Capital, AngelList, Sparkle Fund, Konark Trust, MMPL Trust, GP Partners
& Ashneer Grover, Abhimanyu Munjal, Kushal Nahata, Ashish Singhal, Ankur Ashwin Shah, Ashish Sharma, Karthik Bhat, Gautam Kumar
& WestBridge, Accel, Tanglin Venture Partners
& 2,85,70,159
& ~ \\
2
& Oct 29, 2020
& Seed
& 33,60,820
& 1,36,14,263
& Accel, Titan Capital, QED Innovation, Blue Wolf Capital Partners, ICICI Bank, Sparkle Fund
& Sumit Maniyar,Ramakanth Sharma,Gaurav Agarwal,Nitin Gupta,Akshat Sharma,Harish Kumar Goel,Akhil Paul, Pramod Kumar Saraf, Chitransh Sahai, Kunal Bahl, Viswamani Ganesh, Ashish Santhalia, Anjali Bansal, Dilip KumarKarodimal Khandelwal, Rohit Bansal
& Accel
& 2,85,70,159
& 30.2 \\
3
& Nov 16, 2019
& Seed
& 2,09,339
& 14,86,494
& Titan Capital
& Rajesh Razdan,Ajay Garg,Mitesh Damania,Bipin Kumar Shah,Sunder Nookala,Kunal Bahl,Rohit Bansal
& Titan Capital
& 2,85,70,159
& 68.6 \\
\bottomrule
\end{tabularx}
\end{table}%
\end{landscape}
\end{document}

Overfull \hbox and Package array Errors. Latex tabular

I am getting trouble to fit my table - tabular to the paragraph width.
This is the error:
Overfull \hbox (341.06795pt too wide) in paragraph at lines 391--411
Package array Error: Illegal pream-token (M): `c' used.
Package array Error: Illegal pream-token (4cm): `c' used
I have been trying one thousand things and nothing seems to work.
I am using this template from Overleaf, where you can find the document class.
This is my code.
\documentclass{JASSS}
\usepackage{amsmath,systeme}
\usepackage{tabularx,colortbl}
\usepackage{booktabs}
\title{XXXXX}
\reviewcopy{true}
\author[1]{}
\affil[1]{}
\email{XX}
\usepackage{natbib}
\setcitestyle{authoryear,round,aysep={}}
\begin{document}
\maketitle
\begin{abstract}
Bla bla
\end{abstract}
\section{xxxx}
\begin{table}[h!]
\centering
\begin{tabular}{ |M{4cm}||M{4cm}|M{4cm}|M{4cm}|}
% \begin{tabular}{|c|c|c|c|}
\cline{2-4}
\multicolumn{1}{c|}{} & \multicolumn{3}{c|}{Initial value parameter combinations ($t_0=1932$)} \\
\hline
Scenarios from 2020 & $\phi_{B}=\phi_{C}=0.05$ and 1932 electoral results & $\phi_{B}=0.05, \phi_{C}=0.055$ and 1932 electoral results & $\phi_{B}=\phi_{C}=0.05$ and electoral tie \\
\hline
$\phi_{D}=\phi_{E}=0.01$, $\gamma_{B}=\gamma_{C}=\gamma_{D}=\gamma_{E}=0.01$ & S0000 & S0100 & S1000 \\
\hline
\rowcolor{blue!20}
$\phi_{D}=0.015,\phi_{E}=0.01$, $\gamma_{B}=\gamma_{C}=\gamma_{D}=\gamma_{E}=0.01$ & S0001 & S0101 & S1001 \\
\hline
\rowcolor{red!20}
$\phi_{D}=0.01,\phi_{E}=0.015$, $\gamma_{B}=\gamma_{C}=\gamma_{D}=\gamma_{E}=0.01$ & S0010 & S0110 & S1010 \\
\hline
\rowcolor{yellow!20}
$\phi_{D}=0.01,\phi_{E}=0.01$, $\gamma_{B}=\gamma_{C}=\gamma_{D}=\gamma_{E}=0.015$ & S0011 & S0111 & S1011 \\
\hline
\end{tabular}
\bibliographystyle{jasss}
\bibliography{references}
\end{document}
The M column type is not defined by default. If you want to use it, you have to somehow define it. I don't know what you indent it to do, but here some dummy code:
\documentclass{JASSS}
\usepackage{array}
\usepackage{amsmath,systeme}
\usepackage{tabularx,colortbl}
\usepackage{booktabs}
\newcolumntype{M}[1]{p{#1}}
\begin{document}
\begin{table}[h!]
\centering
\begin{tabular}{ |M{4cm}||M{4cm}|M{4cm}|M{4cm}|}
% \begin{tabular}{|c|c|c|c|}
\cline{2-4}
\multicolumn{1}{c|}{} & \multicolumn{3}{c|}{Initial value parameter combinations ($t_0=1932$)} \\
\hline
Scenarios from 2020 & $\phi_{B}=\phi_{C}=0.05$ and 1932 electoral results & $\phi_{B}=0.05, \phi_{C}=0.055$ and 1932 electoral results & $\phi_{B}=\phi_{C}=0.05$ and electoral tie \\
\hline
$\phi_{D}=\phi_{E}=0.01$, $\gamma_{B}=\gamma_{C}=\gamma_{D}=\gamma_{E}=0.01$ & S0000 & S0100 & S1000 \\
\hline
\rowcolor{blue!20}
$\phi_{D}=0.015,\phi_{E}=0.01$, $\gamma_{B}=\gamma_{C}=\gamma_{D}=\gamma_{E}=0.01$ & S0001 & S0101 & S1001 \\
\hline
\rowcolor{red!20}
$\phi_{D}=0.01,\phi_{E}=0.015$, $\gamma_{B}=\gamma_{C}=\gamma_{D}=\gamma_{E}=0.01$ & S0010 & S0110 & S1010 \\
\hline
\rowcolor{yellow!20}
$\phi_{D}=0.01,\phi_{E}=0.01$, $\gamma_{B}=\gamma_{C}=\gamma_{D}=\gamma_{E}=0.015$ & S0011 & S0111 & S1011 \\
\hline
\end{tabular}
\end{table}
\end{document}

The font size of tables is way too small in Latex

I am generating tables in latex. But the text's font is way too small compared to the main text size, which is 12 pt.
Here is the Latex code
\begin{table}[htp]
\renewcommand{\arraystretch}{2}
\large
\resizebox{1\textwidth}{!}{%
\begin{tabular}{|c|c|c|c|c|c|}
\hline
\textbf{Air pollutant} & \textbf{Detection limit} & \textbf{Concentration range to expect
by EPA} & \textbf{Concentration range in Bristol, UK} & \textbf{Range in Bristol, UK} \\[3ex]
\hline
\textbf{Ozone (O$_{3}$) } & \textbf{10 ppb} & \textbf{0--150 ppb }
& \textbf{0--100 ppb} & \\[3ex] \hline
\textbf{Nitrogen dioxide} & \textbf{10 ppb} & \textbf{0--50 ppb}
& \textbf{20--55 ppb} & \\[3ex] \hline
\textbf{PM$_{2.5}$} & \textbf{5 } & \textbf{0--40 \SI{}
{\micro\gram/m^3}} & \textbf{0--40 \SI{}{\micro\gram/m^3} }
& \\[3ex] \hline
\textbf{PM$_{10}$} & \textbf{10} & \textbf{0--100 \SI{}
{\micro\gram/m^3} } & \textbf{0--100 \SI{}{\micro\gram/m^3}}
& \\[3ex] \hline
\textbf{Temperature range} & ----- & ------ & ----
-- & \textbf{3--$ 21 ^\circ C $} \\[3ex]
\hline
\textbf{Humidity } & ----- & ----- & -----
-- & \textbf{50\%--75\% } \\[3ex] \hline
\end{tabular}%
}
\end{table}
and here is a screenshot of part of PDF to compare the main text and table font
I have this issue for several tables, so any help would be greatly appreciated.
Can I suggest a few things?
You should avoid long headings with narrow content like numbers, unless cells contain long paragraphs, as well. Find the way to shorten the headings, e.g. by adding line breaks.
Repeated content can be grouped and move to separate cells, which can also help with excessive widths.
As you load siunitx, I would recommend to use \qtyrange{}{}{}. Typing them takes the same space and time but in case you need to make changes e.g. you have to change a range marker from -- to to you will appreciate to only have to do it in one place via siunitx. If you repeat long units, it is also possible to define your own units, for the same reason to make changes in one place. I think \SI{}{} is deprecated and should be changed to qty{}{}, although I am not entirely sure about it.
This is my personal taste but IMO tables can look much better without vertical bars. I also added booktabs for improved horizontal rules.
Here's a different version of your table
and the code
\documentclass{article}
\usepackage{array}
\usepackage{siunitx}
\usepackage{multirow}
\usepackage{makecell}
\usepackage{rotating}
\usepackage{booktabs}
\sisetup{
range-units=single,
range-phrase={\,--\,},
}
\DeclareSIUnit\ppb{ppb}
\newcommand\nullval{---}
\renewcommand\theadfont{\normalfont\bfseries}
\renewcommand\theadgape{\Gape[0pt][0pt]}
\begin{document}
\begin{sidewaystable}
\renewcommand\arraystretch{1.2}
\caption{Caption of the table}
\label{tab:table}
\centering
\begin{tabular}{
wc{4cm}
wc{2cm} #{\hspace{1em}}
*3{wc{3cm}}
wc{2cm}
}
\toprule
\multirow{3}*{\thead*{Air\\pollutant}}
& \multirow{3}*{\thead{Detection\\limit}}
& \multicolumn{2}{c}{\thead{Concentration range:}}
& \multirow{3}*{\thead{Range\\in Bristol, UK}} \\
\cmidrule(lr){3-4}
& & \thead{to expect\\by EPA} & \thead{in Bristol\\UK} & \\
\midrule
\thead{Ozone (O\textsubscript{3})}
& \qty{10}{\ppb} & \qtyrange{0}{150}{\ppb} & \qtyrange{0}{100}{\ppb} & \nullval \\
\thead{Nitrogen dioxide}
& \qty{10}{\ppb} & \qtyrange{0}{50}{\ppb} & \qtyrange{20}{55}{\ppb} & \nullval \\
\thead{PM\textsubscript{2.5}}
& 5 & \qtyrange{0}{40}{\mg/m^3} & \qtyrange{0}{40}{\ug/m^3} & \nullval \\
\thead{PM\textsubscript{10}}
& 10 & \qtyrange{0}{100}{\ug/m^3} & \qtyrange{0}{100}{\ug/m^3} & \nullval \\
\thead{Temperature range}
& \nullval & \nullval & \nullval & \qtyrange{3}{21}{\degreeCelsius} \\
\thead{Humidity}
& \nullval & \nullval & \nullval & \qtyrange{50}{75}{\%} \\
\bottomrule
\end{tabular}
\end{sidewaystable}
\end{document}
You should never use \resizebox for elements which contain text.
Instead you could save some space by using multiple lines for your header cells and restructure your table a bit:
\documentclass[12pt]{article}
\usepackage[text-series-to-math=true]{siunitx}
\usepackage{tabularray}
\usepackage{geometry}
\begin{document}
\begin{table}[htp]
\caption{... The temperature range in Bristol, UK was 3--\SI{21}{\degree C} and the humidity 50\%--75\% during the measurement.}
\begin{tblr}{
colspec={XXXXX},
columns={halign=c,valign=m},
row{1}={font=\bfseries},
column{1}={font=\bfseries},
stretch=0,
rows={ht=2\baselineskip},
hlines,
vlines
}
Air pollutant & Detection limit & Concentration range to expect
by EPA & Concentration range in Bristol, UK \\
Ozone (O\textsubscript{3}) & 10 ppb & 0--150 ppb & 0--100 ppb \\
Nitrogen dioxide & 10 ppb & 0--50 ppb & 20--55 ppb \\
PM\textsubscript{2.5} & 5 & 0--40 \SI{}{\micro\gram/m^3} & 0--40 \SI{}{\micro\gram/m^3} \\
PM\textsubscript{10} & 10 & 0--100 \SI{}{\micro\gram/m^3} & 0--100 \SI{}{\micro\gram/m^3} \\
\end{tblr}%
\end{table}
\end{document}

Table LateX doesn't show up in the document

For some reason my code is not reproducing the table I wanted in the document. Only a bold line shows up but no cells or text. What am I doing wrong?
\documentclass[12pt,oneside,final]{article}
%\doctype{Thesis}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{layout}
\usepackage[algo2e, ruled, vlined]{algorithm2e}
\usepackage{tabularray}
\usepackage{makecell}
\usepackage{algorithm}
\usepackage{algorithmic}
\usepackage{rotating}
\usepackage{tabularx}
\begin{table}[]
\resizebox{\textwidth}{!}{%
\begin{tabular}{|l|l|l|l|}
\hline
Date & Luis Lacalle Pou & Date & Alberto Fernandez \\ \hline
May 21 & \begin{tabular}[c]{#{}l#{}}Announces the return to in-person classes strategy... \\ “We are taking this decision because we are convinced that the risk is minimal. We wouldn’t be doing it otherwise”(Infobae, 2020)\end{tabular} & April 25 & Announcement of the extension of the lockdown... (Casa Rosada, 2020a) \\ \hline
June 25 & Press conference speech... (CED Uruguay, 2020) & June 20 & Speech during Argentina’s Flag Day... (Casa Rosada, 2020b) \\ \hline
July 12 & Lacalle Pou justified ... (Lacalle Pou, 2020a) & July 18 & Press conference along with Buenos Aires’ ... (Casa Rosada, 2020c) \\ \hline
July 22 & Press conference ... (Lacalle Pou, 2020b) & July 31 & Speech directed to ... (Casa Rosada, 2020d) \\ \hline
September 22 & \begin{tabular}[c]{#{}l#{}}Speech for the General Assembly in the UN. “Our country’s answer to the pandemic (...) \\ (Lacalle Pou, 2020c)\end{tabular} & August 28 & \begin{tabular}[c]{#{}l#{}}Announcement of the extension of the quarantine restrictions. \\ “It has been almost 100 days ... . (Casa Rosada, 2020e)\end{tabular} \\ \hline
\end{tabular}%
}
\end{table}
\end{document}
This is how it looks in my LaTeX doc .
And this is how I would like it to look
This is how it looks in my LaTeX doc .
And this is how I would like it to look
That's not a bold line, that literarily is your table ... just scaled down sooooooo much by \resizebox that you can't see it. That's one of the many reasons you should never use \resizebox for elements which contain text. Other reasons are suboptimal choice of letter shapes and a ransom letter appearance to the final document with all the different font sizes.
Other problems:
\begin{document} is missing
By using l columns for your table and then even wrapping the verrrrrrrrrrrry long lines into additional tables with c columns, you are very efficiently telling latex to never ever break lines in your table. Instead you could use a column of fixed with, or - easier - use the tabularray package with an X column which will automatically calculate the width
no floating specifier like [htbp] is given
\documentclass[12pt,oneside,final]{article}
%\doctype{Thesis}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{layout}
\usepackage[algo2e, ruled, vlined]{algorithm2e}
\usepackage{tabularray}
\usepackage{makecell}
\usepackage{algorithm}
\usepackage{algorithmic}
\usepackage{rotating}
\usepackage{tabularx}
\usepackage{tabularray}
\usepackage{geometry}
%\geometry{hmargin=1cm}
\begin{document}
\begin{table}[htbp]
%\resizebox{\textwidth}{!}{%
\begin{tblr}{|l|X[l]|l|X[l]|}
\hline
Date & Luis Lacalle Pou & Date & Alberto Fernandez \\ \hline
May 21 & Announces the return to in-person classes strategy... “We are taking this decision because we are convinced that the risk is minimal. We wouldn’t be doing it otherwise”(Infobae, 2020) & April 25 & Announcement of the extension of the lockdown... (Casa Rosada, 2020a) \\ \hline
June 25 & Press conference speech... (CED Uruguay, 2020) & June 20 & Speech during Argentina’s Flag Day... (Casa Rosada, 2020b) \\ \hline
July 12 & Lacalle Pou justified ... (Lacalle Pou, 2020a) & July 18 & Press conference along with Buenos Aires’ ... (Casa Rosada, 2020c) \\ \hline
July 22 & Press conference ... (Lacalle Pou, 2020b) & July 31 & Speech directed to ... (Casa Rosada, 2020d) \\ \hline
September 22 & Speech for the General Assembly in the UN. “Our country’s answer to the pandemic (...) (Lacalle Pou, 2020c) & August 28 & Announcement of the extension of the quarantine restrictions. “It has been almost 100 days ... . (Casa Rosada, 2020e) \\ \hline
\end{tblr}%
%}
\end{table}
\end{document}

Minipage in Latex failing to compile

I want to put a table and figure above/below one another in my article tex file as they are related. Until now it has worked in this document but suddenly it isn't working and I can't compile in Overleaf. Please help.
\begin{document}
\begin{minipage}[b]{1\textwidth}
\centering
\captionof{table}{Best Case Scenario A IC values when synthesis, desiccation (and algae collection) have been excluded from the system.}
\label{tab:BestA_synthANDdesiccation_excluded}
\begin{tabular}{#{}llcc#{}}
\toprule
IC & Unit & Total (no collection) & Total (with collection) \\ \midrule
CC & kg CO2 eq & -1.1E+03 & -7.0E+02 \\
Ecotox & CTUe & 2.1E+02 & 1.4E+04 \\
HTnc & CTUh & 6.9E-08 & 1.4E-05 \\
PM & disease inc. & 3.7E-07 & 1.0E-05 \\
RUf & MJ & 9.3E+01 & 5.6E+03 \\
RUm & kg Sb eq & 8.0E-06 & 3.6E-02 \\ \bottomrule
\end{tabular}
\end{minipage}
\begin{minipage}
\includegraphics[width=1\textwidth]{Pictures/A_best_nosynANDnodesiccationANDnocollection.png}
\captionof{figure}{Characterisation of the sub-systems in best-case scenario A when synthesis, desiccation and algae collection have been excluded from the system boundaries. Method: EF 3.0 Method (adapted) V1.00}
\label{fig:Abest_nosyn_nodesiccation}
\end{minipage}
\end{document}
The main problem is that the minipage has an mandatory argument to specify the width, so you'll need
\begin{minipage}{\linewidth}
Some other comments:
best not specify a file type for your image \includegraphics[width=1\textwidth]{Pictures/A_best_nosynANDnodesiccationANDnocollection}. If you have the same image in different formats latex will then include the one best suited for the engine you use to compile your document
Unless your minipage is in a float environment like figure or table you want to add \noindent before the minipage. Without this there is not enough space in your line to fit a minipage with \textwidth
if you want to have the numbers in your table nicely aligned, have a look at the siunitx package
\documentclass{article}
\usepackage{caption}
\usepackage{booktabs}
\usepackage{graphicx}
\begin{document}
\noindent%
\begin{minipage}[b]{1\textwidth}
\centering
\captionof{table}{Best Case Scenario A IC values when synthesis, desiccation (and algae collection) have been excluded from the system.}
\label{tab:BestA_synthANDdesiccation_excluded}
\begin{tabular}{#{}llcc#{}}
\toprule
IC & Unit & Total (no collection) & Total (with collection) \\ \midrule
CC & kg CO2 eq & -1.1E+03 & -7.0E+02 \\
Ecotox & CTUe & 2.1E+02 & 1.4E+04 \\
HTnc & CTUh & 6.9E-08 & 1.4E-05 \\
PM & disease inc. & 3.7E-07 & 1.0E-05 \\
RUf & MJ & 9.3E+01 & 5.6E+03 \\
RUm & kg Sb eq & 8.0E-06 & 3.6E-02 \\ \bottomrule
\end{tabular}
\end{minipage}
\begin{minipage}{\linewidth}
\includegraphics[width=1\textwidth]{example-image-duck}
\captionof{figure}{Characterisation of the sub-systems in best-case scenario A when synthesis, desiccation and algae collection have been excluded from the system boundaries. Method: EF 3.0 Method (adapted) V1.00}
\label{fig:Abest_nosyn_nodesiccation}
\end{minipage}
\end{document}

Resources