Problem:
I wish to break my one-column table, written in tabularx
, over two pages in a two-column environment. I have seen examples where this could be done using supertabular
, longtable
and xtab
but it does not seem to work in my example.
Minimal Working Example (MWE):
\documentclass[twocolumn]{article}
\usepackage[OT6,T1]{fontenc}
\usepackage{booktabs}
\usepackage{tabularx}
\begin{document}
\begin{table*}[t]
\caption{Caption here}
\begin{tabularx}{\textwidth}{Xcc}
\toprule
\textbf{Question} & \textbf{Responses} & \textbf{Frequency} \\
\midrule
\textbf{1. I prefer the following greeting by a chatbot:} & & \\
\hspace{2.5mm} By saying hello. & 11 & 14.7\% \\
\hspace{2.5mm} By saying hello, followed by my name. & 7 & 9.3\% \\
\hspace{2.5mm} By saying hello, followed by my name and asking me what I want help with. & 27 & 36\% \\
\hspace{2.5mm} It should be my initiative to start a conversation. & 30 & 40\% \\
\textbf{2. I prefer the following response when a chatbot does not understand me:} & & \\
\hspace{2.5mm} \textquotedbl I am sorry, I do not understand.\textquotedbl & 11 & 14.7\% \\
\hspace{2.5mm} \textquotedbl I am sorry, I do not understand. Maybe you can help me by asking your question in a different way? & 11 & 14.7\% \\
\hspace{2.5mm} \textquotedbl I am sorry, I do not understand. Do you want to talk with a human instead?\textquotedbl & 11 & 14.7\% \\
\hspace{2.5mm} \textquotedbl I do not know what you mean, try again!\textquotedbl & 11 & 14.7\% \\
\hspace{2.5mm} \textquotedbl I have searched the internet for \textquotedbl[your previous question/statement]\textquotedbl. & 11 & 14.7\% \\
\textbf{3. You have asked a chatbot to help you look for destinations for your next business trip.} & & \\
\hspace{2.5mm} \textbf{Which update message do you prefer?} & & \\
\hspace{2.5mm} \textquotedbl Back soon.\textquotedbl & 11 & 14.7\% \\
\hspace{2.5mm} \textquotedbl Searching for destinations...\textquotedbl & 11 & 14.7\% \\
\hspace{2.5mm} \textquotedbl Going through all the exciting options.\textquotedbl & 11 & 14.7\% \\
\hspace{2.5mm} \textquotedbl I don't want an update, only the result when the chatbot has finished the search.\textquotedbl & 11 & 14.7\% \\
\hspace{2.5mm} \textquotedbl Oh, a trip! *clapping hands* Can I come with? Think about it while I look up the
best options for your & 11 & 14.7\% \\
\hspace{2.5mm} destination.\textquotedbl & & \\
\hspace{2.5mm} \textquotedbl Drifting away, dreaming about the perfect destination, back soon...\textquotedbl & 11 & 14.7\% \\
\textbf{4. You ask a chatbot when the next bus to a train station leaves. Which response do you prefer?} & & \\
\hspace{2.5mm} \textquotedbl 12:15\textquotedbl & 11 & 14.7\% \\
\hspace{2.5mm} \textquotedbl Bus 11 towards *destination* leaves at 12:15.\textquotedbl & 11 & 14.7\% \\
\hspace{2.5mm} \textquotedbl Bus 11 leaves at 12:15, Bus 24 leaves at 12:18 and Bus 11 leaves at 12:25.\textquotedbl & 11 & 14.7\% \\
\hspace{2.5mm} \textquotedbl There are five different buses leaving to the train station from your bus stop,
number 11, number 24, & 11 & 14.7\% \\
\hspace{2.5mm} number 4, number 13 and number 121. Bus 11 leaves at 12:15, bus 24 leaves at 12:18, bus 4 leaves at 12:26, & & \\
\hspace{2.5mm} bus 13 leaves at 12:30 and bus 121 leaves at 12:31.\textquotedbl & & \\
\textbf{5. You have asked a chatbot for the weather tomorrow. Which response do you prefer?} & & \\
\hspace{2.5mm} \textquotedbl In what city?\textquotedbl & 11 & 14.7\% \\
\hspace{2.5mm} \textquotedbl 15 degrees celsius.\textquotedbl & 11 & 14.7\% \\
\hspace{2.5mm} \textquotedbl 15 degrees celsius and sunny with some clouds.\textquotedbl & 11 & 14.7\% \\
\hspace{2.5mm} \textquotedbl In Gothenburg it will be 15 degrees celsius and sunny with some clouds
tomorrow.\textquotedbl & 11 & 14.7\% \\
\textbf{6. You are interacting with a chatbot that is connected to your bank.} & & \\
\hspace{2.5mm} \textbf{Which opening message do you prefer?} & & \\
\hspace{2.5mm} \textquotedbl Yo, where's the money?\textquotedbl & 11 & 14.7\% \\
\hspace{2.5mm} \textquotedbl Hello, how can I help you today?\textquotedbl & 11 & 14.7\% \\
\hspace{2.5mm} \textquotedbl Hi! Are you looking to save or spend today?\textquotedbl & 11 & 14.7\% \\
\hspace{2.5mm} \textquotedbl Good morning. I am your banking assistant bot. How can I be of service today?\textquotedbl & 11 & 14.7\% \\
\textbf{7. You are interacting with a bot that helps you play music. Which opening message do you prefer?} & & \\
\hspace{2.5mm} \textquotedbl Please state genre, artist or song title in order to receive appropriate choices.\textquotedbl & 11 & 14.7\% \\
\hspace{2.5mm} \textquotedbl Tell me what you want to listen to, and I can help you find it!\textquotedbl & 11 & 14.7\% \\
\hspace{2.5mm} \textquotedbl Hi! Good to see you again, which genre do you feel like listening to today?\textquotedbl & 11 & 14.7\% \\
\hspace{2.5mm} \textquotedbl Groovy, you're back! I have some sweet tunes for you, you ready to get down?\textquotedbl & 11 & 14.7\% \\
\textbf{8. You are interacting for the first time with a chatbot at work to book a meeting.} & & \\
\hspace{2.5mm} \textbf{Which opening message do you prefer?} & & \\
\hspace{2.5mm} \textquotedbl Hi, I am your meeting buddy! What is on your mind? :)\textquotedbl & 11 & 14.7\% \\
\hspace{2.5mm} \textquotedbl Hello! Nice to see you here, let me know how I can help you.\textquotedbl & 11 & 14.7\% \\
\hspace{2.5mm} \textquotedbl Do you want to book a room or manage your calendar?\textquotedbl & 11 & 14.7\% \\
\hspace{2.5mm} \textquotedbl Welcome, would you like to see available times in your calendar?\textquotedbl & 11 & 14.7\% \\
\hspace{2.5mm} \textquotedbl Welcome, I am a bot that can help you to manage your calendar and book a
meeting room. Do you want & 11 & 14.7\% \\
\hspace{2.5mm} me to suggest appropriate times for a meeting?\textquotedbl & & \\
\textbf{9. You have booked a trip with a chatbot. Which response do you prefer?} & & \\
\hspace{2.5mm} \textquotedbl Trip booked leaving tomorrow 09:05 arriving 12:08 in Stockholm.\textquotedbl & 11 & 14.7\% \\
\hspace{2.5mm} \textquotedbl Your trip is booked. Leaving tomorrow at 09:05 and arriving 12:08 in
Stockholm.\textquotedbl & 11 & 14.7\% \\
\hspace{2.5mm} \textquotedbl Your trip is booked. Your train departs from the station tomorrow at 09:05 and
will be arriving at 12:08 & 11 & 14.7\% \\
\hspace{2.5mm} in Stockholm.\textquotedbl & & \\
\textbf{10. You are frustrated that a chatbot can not understand what you want and have expressed the} & & \\
\hspace{2.5mm} \textbf{frustration to the chatbot. Which response do you prefer?} & & \\
\hspace{2.5mm} \textquotedbl I don't understand. Please try again.\textquotedbl & 11 & 14.7\% \\
\hspace{2.5mm} \textquotedbl I am sorry, it seems I am not following, could you please rephrase and try again?\textquotedbl & 11 & 14.7\% \\
\hspace{2.5mm} \textquotedbl I am so sorry, I really want to help you but I just can not understand. Please
rephrase or try simple keywords instead.\textquotedbl & 11 & 14.7\% \\
\hspace{2.5mm} \textquotedbl I am terribly sorry, this is not how I wanted it to end up either..! I am doing my best to help you, please bare with me, I will do everything in my power to make it up to you.\textquotedbl & 11 & 14.7\% \\
\bottomrule
\end{tabularx}
\end{table*}
\end{document}
Output:
Desired output:
To make tabularx
(or any other table solution) continue over two pages with a footnote saying "continued from previous page".
xltabular
package. Remove thetable*
environment and use\onecolunn
before and\twocolumn
after thexltabular
. This will lead to a pagebreak between the tabular and the following twocolumn text. – leandriis Aug 26 '19 at 14:16