I'm using the package longtable to define a table in two pages but it has too much width when I write long text in a cell that fills until the border of the page and doesn´t have room for all the text. Is there a way to fix or limit the width of the table or make the text fill in some lines?
I´ve just used double '\' to fill the long lines in many lines but there is a big space between them. Here is the code that i´ve used
\begin{longtable}{lp{5cm}lp{5cm}lp{5cm}}
\hline
Característica & DDS & MQTT \\
\hline
\endfirsthead
\hline
Característica & DDS & MQTT \\
\hline
\\
\endhead
\multicolumn{3}{c}{(Continúa en la página siguiente)} \\
\endfoot
\multicolumn{3}{c}{(Fin del Cuadro)} \\
\endlastfoot
%Aqui añadimos el cuerpo de la tabla
\\
Abstracción & Publicación/Suscripción & Publicación/Suscripción \\
\\
Arquitectura & Descentralizada (\emph{Global Data Space}) & Broker \\
\\
API & Si & No \\
\\
QoS & 22 & 3 \\
\\
Interoperabilidad & Si & Parcial \\
\\
Rendimiento & Más de 1000 mensajes fiables por segundo por suscriptor & Típicamente desde cientos \\
& & (persistentes) hasta más de \\
& & 1000 (\emph{best effort}) mensajes \\
& & por segundo por suscriptor \\
\\
\emph{Real-Time} severo & Si & No \\
\\
Transporte & UDP por defecto (otros transportes como TCP pueden ser también usados) & TCP \\
\\
Control de suscripción & Particiones, tópicos con filtrado de mensajes & Tópicos con coincidencia \\
& & jerárquica \\
\\
Filtrado & Contenido/Tiempo & No \\
\\
Serialización de datos & CDR & N/A \\
\\
Estándares & RTPS y DDSI de OMG & Propuesto por OASIS el \\
& & estándar MQTT \\
\\
Codificación & Binaria & Binaria \\
\\
Modelo de licencia & Open Source y Licencia Comercial & Open Source y Licencia \\
& & Comercial \\
\\
Descubrimiento dinámico & Si & No \\
\\
Dispositivos móviles & Si & Si \\
(Android, iOS) & & \\
\\
Dispositivos 6LoWPAN & Si & Si \\
\\
Transacciones multifase & No & No \\
Seguridad & Específica del vendedor pero típicamente basada en SSL o TLS con control de acceso propietario & Simple Nombre de \\
& & usuario/Password, \\
& & Autenticación, SSL para \\
& & cifrado de datos \\
\\
\hline
\\
\caption{Comparativa de características entre DDS y MQTT.}
\label{ta:comparativa-dds-mqtt}
\end{longtable}
And this is a piece of the result:




\documentclass{...}and ending with\end{document}. – Jul 18 '14 at 16:11longtableandtabularxenvironments? The latter lets you prespecify a desired overall width of the table -- say,\textwidth-- and lets you specify one or more columns that will automatically expand to take up the available width, while letting long lines of text wrap. Combining the capabilities of the two environments can be done with the help of theLTXtablepackage. – Mico Jul 18 '14 at 16:25