I have the following piece of code using the memoir class from asudis:
\newcommand*{\pointsize}{12pt}
\documentclass[letterpaper, % Use US letter-size paper
oneside, % No verso and recto differences
\pointsize] % Uses the font size defined above
{memoir}
\usepackage{booktabs}
\usepackage{multirow}
\begin{document}
\begin{table}
\begin{tabularx}{\textwidth}{@{} p{0.15\textwidth}p{0.15\textwidth}p{0.15\textwidth}p{0.2\textwidth}p{0.25\textwidth}@{}}
\toprule
Node name &
Type &
Conditional dependcy &
States &
Description \ \midrule
Prior &
\multirow{6}{}{Initial ($t=0$)} &
None & 11 states indicating score in the range {[}0-10{]} &
A state of 0 denotes a student who scored a 0 in the pre-test while a state of 10 represents a student who scored 100% in the pre-test \ \cmidrule(r){1-1} \cmidrule(l){3-5}
Knowledge0 & & Prior &
\multirow{10}{}{True and False} &
State of true denotes the possibility that the student has the required knowledge at timestep $t=0$ \ \cmidrule(r){1-1} \cmidrule(lr){3-3} \cmidrule(l){5-5}
Distractor00 & &
\multirow{5}{}{Knowledge0} &
&
\multirow{3}{}{True denotes the evidence that the student has collected this distractor at timestep $t=0$} \ \cmidrule(r){1-1}
Distractor01 & & & &
\ \cmidrule(r){1-1}
Distractor02 & & & &
\ \cmidrule(r){1-1} \cmidrule(l){5-5}
Question0 & & & &
True denotes the evidence that the student answered the quiz correctly at timestep $t=0$ \ \cmidrule(r){1-2} \cmidrule(l){5-5}
Knowledge1 &
\multirow{5}{}{Temporal ($t=1,2,3$)} & & &
True denotes the possibility that the student has the required knowledge at timestep $t=1,2,3$ \ \cmidrule(r){1-1} \cmidrule(lr){3-3} \cmidrule(l){5-5}
Distractor10 & &
\multirow{4}{}{Knowledge1} & &
\multirow{3}{*}{True denotes the evidence that the student has collected this distractor at timestep $t=1,2,3$} \ \cmidrule(r){1-1}
Distractor11 & & & &
\ \cmidrule(r){1-1}
Distractor12 & & & &
\ \cmidrule(r){1-1} \cmidrule(l){5-5}
Question1 & & & &
True denotes the evidence that the student answered the quiz correctly at timestep $t=1,2,3$ \ \bottomrule
\end{tabularx}
\end{table}
\end{document}
Which is rendering the table as follows. I have no idea why the text in the 3rd and 5th row of last column is not wrapping up like the rest of the rows above and below it.
Additionally, how do I make the 7th row 2nd column wrap like the others?


tabularxwith noXcolumn can not do anything useful, just use a normaltabular– David Carlisle Feb 18 '21 at 08:41! Undefined control sequence.<argument> \pointsize– David Carlisle Feb 18 '21 at 08:44tabularinstead gives error regardingtextwidth– Vipin Verma Feb 18 '21 at 08:45\newcommand*{\pointsize}{12pt}at the top – Vipin Verma Feb 18 '21 at 08:47tabularyou don't specify a total width, hence the error regarding\textwidth, correct would be\begin{tabular}{<columns>}<body>\end{tabular}instead. – Skillmon Feb 18 '21 at 08:48\newcommand*{\pointsize}{12pt}– Vipin Verma Feb 18 '21 at 08:49\begin{document}and\end{document}. – Skillmon Feb 18 '21 at 08:51\pointsizebut after it is used so it gives the same error. It is using an undefined environmenttabularxit has no\begin{document}etc. – David Carlisle Feb 18 '21 at 08:51\multirow. – Skillmon Feb 18 '21 at 08:53memoiris not from asudis, but they usememoirin their template. – Skillmon Feb 18 '21 at 09:02\multirow{5}{*}{\linewidth}{Temporal ($t=1,2,3$)}– Vipin Verma Feb 18 '21 at 09:03\usepackage{tabularx}, if you just did the same as we do, copied the code you posted into a new document and tried to run it, you would've seen that. – Skillmon Feb 18 '21 at 09:07\usepackage{tabularx}does not let me compile it – Vipin Verma Feb 18 '21 at 09:11begin{document}missing even though it is not – Vipin Verma Feb 18 '21 at 09:14