# Using Longtable and Multicolumns having problems with setting the width of a column

by Harombidlo   Last Updated August 14, 2019 09:23 AM - source

I have tried many answers to other questions but my problem wasn't solved. I would like my third column to have a certain width. And optimaly i would like to have my first and second column the width of the first cell.

I tried the p{} argument but it didnt work. Here my code:

\documentclass[a4paper,12pt]{article} \usepackage[utf8]{inputenc} \usepackage{multirow} \usepackage[table,xcdraw]{xcolor} \usepackage{longtable} \usepackage[a4paper,left=2cm, top=1cm]{geometry}

\begin{document}

\begin{longtable}[c]{ccp{6cm}}
\hline
\multicolumn{3}{c}{\textbf{Product Quality - ISO/IEC 25010}}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      \\ \hline
%
%
\hline
\endfoot
%
\endlastfoot
%
\rowcolor[HTML]{C0C0C0}
\multicolumn{1}{|c|}{\cellcolor[HTML]{C0C0C0}\textbf{Characteristics}}                                                                    & \multicolumn{1}{c|}{\cellcolor[HTML]{C0C0C0}\textbf{Sub-Characteristics}}                  & \multicolumn{1}{c|}{\cellcolor[HTML]{C0C0C0}\textbf{Definition}}                                                                                                                                                                                                                                                                         \\ \cline{3-3}
\multicolumn{1}{|c|}{\cellcolor[HTML]{DFB460}}                                                                                            & \multicolumn{1}{c|}{\cellcolor[HTML]{F0D39A}\textbf{Functional Completeness}}              & \multicolumn{1}{l|}{\cellcolor[HTML]{FDF0D8}degree to which the set of functions covers all the specified tasks and user objectives}                                                                                                                                                                                                     \\
\multicolumn{1}{|c|}{\cellcolor[HTML]{DFB460}}                                                                                            & \multicolumn{1}{c|}{\cellcolor[HTML]{F0D39A}\textbf{Functional Correctness}}               & \multicolumn{1}{l|}{\cellcolor[HTML]{FDF0D8}degree to which a product or system provides the correct results with the needed degree of precision}                                                                                                                                                                                        \\
\multicolumn{1}{|c|}{\multirow{-3}{*}{\cellcolor[HTML]{DFB460}\textbf{Functional Suitability}}}                                           & \multicolumn{1}{c|}{\cellcolor[HTML]{F0D39A}\textbf{Functional Appropriateness}}           & \multicolumn{1}{l|}{\cellcolor[HTML]{FDF0D8}degree to which the functions facilitate the accomplishment of specified tasks and objectives}                                                                                                                                                                                               \\ \hline
\multicolumn{1}{|c|}{\cellcolor[HTML]{8ED27E}}                                                                                            & \multicolumn{1}{c|}{\cellcolor[HTML]{C4ECBA}\textbf{Time-behaviour}}                       & \multicolumn{1}{l|}{\cellcolor[HTML]{E1F7DB}Degree to which the response and processing times and throughput rates of a product or system, when performing its functions, meet requirements}                                                                                                                                             \\
\multicolumn{1}{|c|}{\cellcolor[HTML]{8ED27E}}                                                                                            & \multicolumn{1}{c|}{\cellcolor[HTML]{C4ECBA}\textbf{Resource Utilisation}}                 & \multicolumn{1}{l|}{\cellcolor[HTML]{E1F7DB}degree to which the amounts and types of resources used by a product or system, when performing its functions, meet requirements}                                                                                                                                                            \\
\multicolumn{1}{|c|}{\multirow{-3}{*}{\cellcolor[HTML]{8ED27E}\textbf{\begin{tabular}[c]{@{}[email protected]{}}Performance\\ Efficiency\end{tabular}}}} & \multicolumn{1}{c|}{\cellcolor[HTML]{C4ECBA}\textbf{Capacity}}                             & \multicolumn{1}{l|}{\cellcolor[HTML]{E1F7DB}degree to which the maximum limits of a product or system parameter meet requirements}                                                                                                                                                                                                       \\ \hline
\multicolumn{1}{|c|}{\cellcolor[HTML]{74BACC}}                                                                                            & \multicolumn{1}{c|}{\cellcolor[HTML]{C0E1EA}\textbf{Co-existence}}                         & \multicolumn{1}{l|}{\cellcolor[HTML]{DEF5FB}degree to which a product can perform its required functions efficiently while sharing a common environment and resources with other products, without detrimental impact on any other Product}                                                                                              \\
\multicolumn{1}{|c|}{\multirow{-2}{*}{\cellcolor[HTML]{74BACC}\textbf{Compatibility}}}                                                    & \multicolumn{1}{c|}{\cellcolor[HTML]{C0E1EA}\textbf{Interoperability}}                     & \multicolumn{1}{l|}{\cellcolor[HTML]{DEF5FB}degree to which two or more systems, products or components can exchange information and use the information that has been exchanged}                                                                                                                                                        \\ \hline
\multicolumn{1}{|c|}{\cellcolor[HTML]{A987CC}}                                                                                            & \multicolumn{1}{c|}{\cellcolor[HTML]{D7C3EC}\textbf{Appropriateness recognisability}}      & \multicolumn{1}{l|}{\cellcolor[HTML]{F3E7FF}degree to which users can recognise whether a product or system is appropriate for their needs}                                                                                                                                                                                              \\
\multicolumn{1}{|c|}{\cellcolor[HTML]{A987CC}}                                                                                            & \multicolumn{1}{c|}{\cellcolor[HTML]{D7C3EC}\textbf{Learnability}}                         & \multicolumn{1}{l|}{\cellcolor[HTML]{F3E7FF}degree to which a product or system can be used by specified users to achieve specified goals of learning to use the product or system with effectiveness, efficiency, freedom from risk and satisfaction in a specified context of use}                                                     \\
\multicolumn{1}{|c|}{\cellcolor[HTML]{A987CC}}                                                                                            & \multicolumn{1}{c|}{\cellcolor[HTML]{D7C3EC}\textbf{User error protection}}                & \multicolumn{1}{l|}{\cellcolor[HTML]{F3E7FF}degree to which a system protects users making errors \textbackslash{}TODO vs OLD {[}degree to which a product or system protects users against making errors{]}}                                                                                                                            \\
\multicolumn{1}{|c|}{\cellcolor[HTML]{A987CC}}                                                                                            & \multicolumn{1}{c|}{\cellcolor[HTML]{D7C3EC}\textbf{Operability}}                          & \multicolumn{1}{l|}{\cellcolor[HTML]{F3E7FF}degree to which a product or system has attributes that make it easy to operate and control}                                                                                                                                                                                                 \\
\multicolumn{1}{|c|}{\cellcolor[HTML]{A987CC}}                                                                                            & \multicolumn{1}{c|}{\cellcolor[HTML]{D7C3EC}\textbf{User interface aesthetics}}            & \multicolumn{1}{l|}{\cellcolor[HTML]{F3E7FF}degree to which a user interface enables pleasing and satisfying interaction for the user}                                                                                                                                                                                                   \\
\multicolumn{1}{|c|}{\multirow{-6}{*}{\cellcolor[HTML]{A987CC}\textbf{Usability}}}                                                        & \multicolumn{1}{c|}{\cellcolor[HTML]{D7C3EC}\textbf{Accessibility}}                        & \multicolumn{1}{l|}{\cellcolor[HTML]{F3E7FF}degree to which a product or system or system can be used by people with the widest range of characteristics and capabilities to achieve a specified goal in a specified content of use}                                                                                                     \\ \hline
\multicolumn{1}{|c|}{\cellcolor[HTML]{E8DB76}}                                                                                            & \multicolumn{1}{c|}{\cellcolor[HTML]{FFF7BC}\textbf{Maturity}}                             & \multicolumn{1}{l|}{\cellcolor[HTML]{FFFCE7}degree to which a system, product or component meets for reliability under normal operation}                                                                                                                                                                                                 \\
\multicolumn{1}{|c|}{\cellcolor[HTML]{E8DB76}}                                                                                            & \multicolumn{1}{c|}{\cellcolor[HTML]{FFF7BC}\textbf{Availability}}                         & \multicolumn{1}{l|}{\cellcolor[HTML]{FFFCE7}degree to which a system, product or component is operational and accessible when required for use}                                                                                                                                                                                          \\
\multicolumn{1}{|c|}{\cellcolor[HTML]{E8DB76}}                                                                                            & \multicolumn{1}{c|}{\cellcolor[HTML]{FFF7BC}\textbf{Fault tolerance}}                      & \multicolumn{1}{l|}{\cellcolor[HTML]{FFFCE7}degree to which a system, product or component operates as intended despite the presence of hardware or software faults}                                                                                                                                                                     \\
\multicolumn{1}{|c|}{\multirow{-4}{*}{\cellcolor[HTML]{E8DB76}\textbf{Reliability}}}                                                      & \multicolumn{1}{c|}{\cellcolor[HTML]{FFF7BC}\textbf{Recoverability}}                       & \multicolumn{1}{l|}{\cellcolor[HTML]{FFFCE7}degree to which, in the event of an interruption or a failure, a product or system can recover the data directly affected and re-establish the desired state of the system}                                                                                                                  \\ \hline
\multicolumn{1}{|c|}{\cellcolor[HTML]{E85151}}                                                                                            & \multicolumn{1}{c|}{\cellcolor[HTML]{E38383}\textbf{Confidentiality}}                      & \multicolumn{1}{l|}{\cellcolor[HTML]{FFC0C0}degree to which a product or system ensures that data are accessible only to those authorized to have access}                                                                                                                                                                                \\
\multicolumn{1}{|c|}{\cellcolor[HTML]{E85151}}                                                                                            & \multicolumn{1}{c|}{\cellcolor[HTML]{E38383}\textbf{Integrity}}                            & \multicolumn{1}{l|}{\cellcolor[HTML]{FFC0C0}degree to which a system, product or component prevents unauthorized access to, or modification of, computer program or data}                                                                                                                                                                \\
\multicolumn{1}{|c|}{\cellcolor[HTML]{E85151}}                                                                                            & \multicolumn{1}{c|}{\cellcolor[HTML]{E38383}\textbf{Non-repudiation}}                      & \multicolumn{1}{l|}{\cellcolor[HTML]{FFC0C0}degree to which actions or events can be proven to have taken place, so that the events or actions cannot be repudiated later}                                                                                                                                                               \\
\multicolumn{1}{|c|}{\cellcolor[HTML]{E85151}}                                                                                            & \multicolumn{1}{c|}{\cellcolor[HTML]{E38383}\textbf{Accountability}}                       & \multicolumn{1}{l|}{\cellcolor[HTML]{FFC0C0}degree to which the actions of an entity can be traced uniquely to the entity}                                                                                                                                                                                                               \\
\multicolumn{1}{|c|}{\multirow{-5}{*}{\cellcolor[HTML]{E85151}\textbf{Security}}}                                                         & \multicolumn{1}{c|}{\cellcolor[HTML]{E38383}\textbf{Authenticity}}                         & \multicolumn{1}{l|}{\cellcolor[HTML]{FFC0C0}degree to which the identity of a subject or resource can be proved to be the one claimed}                                                                                                                                                                                                   \\ \hline
\multicolumn{1}{|c|}{\cellcolor[HTML]{7FB6B8}{\color[HTML]{000000} }}                                                                     & \multicolumn{1}{c|}{\cellcolor[HTML]{B3D7D8}{\color[HTML]{000000} \textbf{Modularity}}}    & \multicolumn{1}{l|}{\cellcolor[HTML]{E0FAFB}{\color[HTML]{000000} degree to which a system or computer program is composed of discrete components such that a change to one component has minimal impact on other components}}                                                                                                           \\
\multicolumn{1}{|c|}{\cellcolor[HTML]{7FB6B8}{\color[HTML]{000000} }}                                                                     & \multicolumn{1}{c|}{\cellcolor[HTML]{B3D7D8}{\color[HTML]{000000} \textbf{Reusability}}}   & \multicolumn{1}{l|}{\cellcolor[HTML]{E0FAFB}{\color[HTML]{000000} degree to which an asset can be used in more than one system, or in building other assets}}                                                                                                                                                                            \\
\multicolumn{1}{|c|}{\cellcolor[HTML]{7FB6B8}{\color[HTML]{000000} }}                                                                     & \multicolumn{1}{c|}{\cellcolor[HTML]{B3D7D8}{\color[HTML]{000000} \textbf{Analysability}}} & \multicolumn{1}{l|}{\cellcolor[HTML]{E0FAFB}{\color[HTML]{000000} degree of effectiveness and efficiency with which it is possible to assess the impact on a product or system of an intended change to one or more of its parts, or to diagnose a product for deficiencies or causes of failures, or to identify parts to be modified}} \\
\multicolumn{1}{|c|}{\cellcolor[HTML]{7FB6B8}{\color[HTML]{000000} }}                                                                     & \multicolumn{1}{c|}{\cellcolor[HTML]{B3D7D8}{\color[HTML]{000000} \textbf{Modifiability}}} & \multicolumn{1}{l|}{\cellcolor[HTML]{E0FAFB}{\color[HTML]{000000} degree to which a product or system can be effectively modified without introducing defects or degrading existing product quality}}                                                                                                                                    \\
\multicolumn{1}{|c|}{\multirow{-5}{*}{\cellcolor[HTML]{7FB6B8}{\color[HTML]{000000} \textbf{Maintainability}}}}                           & \multicolumn{1}{c|}{\cellcolor[HTML]{B3D7D8}{\color[HTML]{000000} \textbf{Testability}}}   & \multicolumn{1}{l|}{\cellcolor[HTML]{E0FAFB}{\color[HTML]{000000} Degree of effectiveness and efficiency with which test criteria can be established for a system, product or component and tests can be performed to determine whether those criteria have been met}}                                                                   \\ \hline
\multicolumn{1}{|c|}{\cellcolor[HTML]{C0C0C0}}                                                                                            & \multicolumn{1}{c|}{\cellcolor[HTML]{DFDFDF}\textbf{Adaptability}}                         & \multicolumn{1}{l|}{\cellcolor[HTML]{EFEFEF}degree to which a product or system can effectively and efficiently be adapted for different or evolving hardware, software or other operational or usage environments}                                                                                                                      \\
\multicolumn{1}{|c|}{\cellcolor[HTML]{C0C0C0}}                                                                                            & \multicolumn{1}{c|}{\cellcolor[HTML]{DFDFDF}\textbf{Installability}}                       & \multicolumn{1}{l|}{\cellcolor[HTML]{EFEFEF}degree of effectiveness and efficiency with which a product or system can be successfully installed and/or uninstalled in a specified environment}                                                                                                                                           \\
\multicolumn{1}{|c|}{\multirow{-3}{*}{\cellcolor[HTML]{C0C0C0}\textbf{Portability}}}                                                      & \multicolumn{1}{c|}{\cellcolor[HTML]{DFDFDF}\textbf{Replaceability}}                       & \multicolumn{1}{l|}{\cellcolor[HTML]{EFEFEF}degree to which a product can replace another specified software product for the same purpose in the same environment}                                                                                                                                                                       \\ \hline
\multicolumn{3}{c}{\textbf{Quality in Use - ISO/IEC 25010}}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       \\ \hline
\rowcolor[HTML]{DFB460}
\multicolumn{2}{|c|}{\cellcolor[HTML]{DFB460}\textbf{Effektiveness}}                                                                                                                                                                   & \multicolumn{1}{l|}{\cellcolor[HTML]{FDF0D8}accuracy and completeness with which users achieve specified goals}                                                                                                                                                                                                                          \\ \hline
\rowcolor[HTML]{8ED27E}
\multicolumn{2}{|c|}{\cellcolor[HTML]{8ED27E}\textbf{Efficiency}}                                                                                                                                                                      & \multicolumn{1}{l|}{\cellcolor[HTML]{E1F7DB}resources expended in relation to the accuracy and completeness with which users achieve goals}                                                                                                                                                                                              \\ \hline
\multicolumn{1}{|c|}{\cellcolor[HTML]{74BACC}}                                                                                            & \multicolumn{1}{c|}{\cellcolor[HTML]{C0E1EA}\textbf{Usefullness}}                          & \multicolumn{1}{l|}{\cellcolor[HTML]{DEF5FB}degree to which a user is satisfied with their perceived achievement of pragmatic goals, including the results of use and the consequences of use}                                                                                                                                           \\
\multicolumn{1}{|c|}{\cellcolor[HTML]{74BACC}}                                                                                            & \multicolumn{1}{c|}{\cellcolor[HTML]{C0E1EA}\textbf{Trust}}                                & \multicolumn{1}{l|}{\cellcolor[HTML]{DEF5FB}degree to which a user or other stakeholder has confidence that a product or system will behave as intended}                                                                                                                                                                                 \\
\multicolumn{1}{|c|}{\cellcolor[HTML]{74BACC}}                                                                                            & \multicolumn{1}{c|}{\cellcolor[HTML]{C0E1EA}\textbf{Pleasure}}                             & \multicolumn{1}{l|}{\cellcolor[HTML]{DEF5FB}degree to which a user obtains pleasure from fulfilling their personal needs}                                                                                                                                                                                                                \\
\multicolumn{1}{|c|}{\multirow{-4}{*}{\cellcolor[HTML]{74BACC}\textbf{Satisfaction}}}                                                     & \multicolumn{1}{c|}{\cellcolor[HTML]{C0E1EA}\textbf{Comfort}}                              & \multicolumn{1}{l|}{\cellcolor[HTML]{DEF5FB}degree to which the user is satisfied with physical comfort}                                                                                                                                                                                                                                 \\ \hline
\multicolumn{1}{|c|}{\cellcolor[HTML]{A987CC}}                                                                                            & \multicolumn{1}{c|}{\cellcolor[HTML]{D7C3EC}\textbf{Health and safety risk mitigation}}    & \multicolumn{1}{l|}{\cellcolor[HTML]{F3E7FF}degree to which a product or system mitigates the potential risk to people in the intended contexts of use}                                                                                                                                                                                  \\
\multicolumn{1}{|c|}{\cellcolor[HTML]{A987CC}}                                                                                            & \multicolumn{1}{c|}{\cellcolor[HTML]{D7C3EC}\textbf{Economic risk mitigation}}             & \multicolumn{1}{l|}{\cellcolor[HTML]{F3E7FF}degree to which a product or system mitigates the potential risk to financial status, effivient operation, commercial property, reputation or other resources in the intended contexts of use}                                                                                               \\
\multicolumn{1}{|c|}{\multirow{-3}{*}{\cellcolor[HTML]{A987CC}\textbf{Freedom from risk}}}                                                & \multicolumn{1}{c|}{\cellcolor[HTML]{D7C3EC}\textbf{Environmental risk mitigation}}        & \multicolumn{1}{l|}{\cellcolor[HTML]{F3E7FF}degree to wich a product or system mitigates the potential risk to property or the environment in the intended contexts of use}                                                                                                                                                              \\ \hline
\multicolumn{1}{|c|}{\cellcolor[HTML]{E8DB76}}                                                                                            & \multicolumn{1}{c|}{\cellcolor[HTML]{FFF7BC}\textbf{Context completeness}}                 & \multicolumn{1}{l|}{\cellcolor[HTML]{FFFCE7}degree to which a product can be used with effectiveness, efficiency, freedom from risk and satisfaction in all specified contexts of use}                                                                                                                                                   \\
\multicolumn{1}{|c|}{\multirow{-2}{*}{\cellcolor[HTML]{E8DB76}\textbf{Context coverage}}}                                                 & \multicolumn{1}{c|}{\cellcolor[HTML]{FFF7BC}\textbf{Flexibility}}                          & \multicolumn{1}{l|}{\cellcolor[HTML]{FFFCE7}degree to which a product or system can be used with effectiveness, efficiency, freedom from risk an satisfaction in contexts beyond those initially specified in the requirements}                                                                                                          \\ \hline
\textbf{}                                                                                                                                 & \textbf{}                                                                                  &                                                                                                                                                                                                                                                                                                                                          \\ \hline
\caption{ISO Standards Product Quality and Quality in Use from the ISO/IEC 25010}
\label{tab:ISO}\\
\end{longtable}

\end{document}


Tags :

## Longtable and multicolumn

Updated June 14, 2017 18:23 PM