I'm new to Latex, and I'm using an overleaf template called Concordia University Thesis Template to write my thesis. Furthermore, I have a wide table containing a lot of text, and since I'm obligated with specific page margins, I can't change them. the problem that the table is getting out of the page, and I tried to make the text under each other in the same cell but still didn't fix the solution for me, and the table looks like this
the code that I used is like this
%################### BEGIN: Environment Setup #######################
\documentclass[letterpaper,11pt,onecolumn,final]{report} % define document type
\usepackage[left=1.5in,right=1in,top=1in,bottom=1in]{geometry} % margin settings, required by Concordia University
\usepackage{setup/ConcordiaU} % page maker definition for Title Page, Signature Page, and styles customized for Concordia University
\usepackage{setspace} % manually configuration to spacing is needed.
\doublespacing % double spaced, required by Concordia University
\usepackage[natbibapa]{apacite} % citation and bibliography package
\usepackage{amsmath} % equations/formulas
\usepackage[dvips]{graphicx} % to include images. For those who use .eps images. The option [dvips] must be there.
\graphicspath{{figures/}} % all figures are put in the folder named "figures"
%\usepackage{subfigure} % enable subfigures
\usepackage{multirow} % multirow in a table cellcc
\usepackage{indentfirst} % add indent to the first line of each paragraph
\usepackage{algorithmicx, algpseudocode} % write algorithms in pseudo code in a uniform style
\usepackage{algorithm} % algorithm and pseudocode environment
\usepackage[colorlinks,linkcolor=blue,anchorcolor=blue,citecolor=blue,urlcolor=blue]{hyperref} % blue color for all links, urls and citations
\usepackage{enumitem}
\renewcommand{\labelenumi}{(\arabic{enumi})} % "(1)." style for enumerated items
\renewcommand{\labelitemii}{$\circ$} % (o) for the second level bullet items
\usepackage[titletoc,title]{appendix}
\ref{table:GIS_API} illustrates all possible API that can be used to extract data from it.
\begin{table}[htb]
\begin{tabular}{|c|c|c|c|c|c|}
\label{table:GIS_API}
\hline Application name & Owned by & Has an API? & API NAME & Pricing & Number of transaction \ \hline
openstreetmap & Openstreetmap Orgnization & yes & Overpass api & Free & Unlimited \ \hline
Google Earth engine &
Google inc. &
yes &
Eearth engine api &
\begin{tabular}[c]{@{}c@{}}free for research, \ education, and\ nonprofit use.\ For commercial\ applications, \ they offer paid \ commercial licenses.\end{tabular} &
-- \ \hline
Tomtom developer & tomtom & yes & Tomtom maps-api & 0.42$ per 1000 tranaction & Limited by the cost \ \hline
HERE developer &
Here &
yes &
Rest api &
Has a free version and paied version &
\begin{tabular}[c]{@{}c@{}}The free version has \ 250K transaction \ and you can pay for more\end{tabular} \ \hline
\end{tabular}
\end{table}
is there a way to make the table aligned within the page borders
adjustboxto make a table fit into the available space since it leads to inconsistent font sizes. Please also make your code compilable by adding the documentclass as well as the relevant packages. Also move the\labeloutside of thetabularenvironment. You should get a corresponding error message upon rying to compile your code. – leandriis Mar 17 '21 at 16:40ptype columns of appropriate widths handle the required linebreaks for you. – leandriis Mar 17 '21 at 16:40ConcordiaUpackage isn't available in any of the standard TeX distributions. Is it available online somewhere? – Mico Mar 17 '21 at 16:49Concordia University Thesis Templatethat's why they add the path in it – ربيع Mar 17 '21 at 16:53linkcolor=blue, anchorcolor=blue, citecolor=blue, urlcolor=blue, do consider writingallcolors=blue. – Mico Mar 17 '21 at 17:02