\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{tabularx}
\begin{document}
\newcounter{question}
\setcounter{question}{0}
\newcommand\Q{%
\refstepcounter{question}
\paragraph{Question \thequestion.}
}
\newcommand\A{%
\smallskip
}
\Q Question.
\A
\begin{table}[h!]
\begin{tabular}{lll}
\hline
~ & HR application & Manufacturing application \\
\hline
Agency monitoring & \multicolumn{2}{l}{CIO over two units} \\
Agency bonding & \multicolumn{2}{l}{Units over CIO} \\
Agency residual loss & \multicolumn{2}{l}{Dissatisfaction, misunderstandings...} \\
\hline
Transaction cost & \multicolumn{2}{l}{Search company, contract stipulation, relationship with outsourcer (communications, meetings...)} \\
\hline
Decision & \multicolumn{2}{l}{Collection and communications} \\
\hline
\end{tabular}
\end{table}
\end{document}
How can I wrap the table inside the page margins centralizing it and to get a new line if the text is too much to be contained inside the column margins?
UPDATE1:
\begin{tabularx}{\textwidth}{lX}
\toprule
& HR application \hfill Manufacturing application \\
\hline
Agency monitoring & CIO over two units \\
Agency bonding & Units over CIO \\
Agency residual loss & Dissatisfaction, misunderstandings... \\
Transaction cost & Search company, contract stipulation, relationship with
outsourcer communications, meetings \\
Decision & Collection and communications \\
\bottomrule
\end{tabularx}
gives me the following result
However I need that HR application and Manufacturing application create two different columns.
This table
\begin{tabularx}{\textwidth}{lll}
\toprule
Agency monitoring & Control employees & Control company service \\
Agency bonding & Employees' report & Company report \\
Agency residual loss & None & None \\
\hline
Transaction cost & None & Search company, establish contract \\
\hline
Decision & Collection of KPIs, cleaning logs & Collection of KPIs, cleaning logs \\
\hline
KPI1 - Cost & Cost of employees and equipment & Cost of service \\
KPI2 - Quality & \multicolumn{2}{l}{Level of cleanness} \\
KPI3 - Frequency & \multicolumn{2}{l}{Frequency of cleaning, n times per week a place is cleaned} \\
\bottomrule
\end{tabularx}
include columns with text out of table margins. Is it possible to have all two tables aligned with the paragraphs?






