Inserting Latex Tables for Fill in the blanks

Hi, I want to know how to enter a Latex table for the content type, "Fill in the blanks". 

I created an exercise for students to enter the missing values.  I have tried adding spaces and tabs for the text to align.  Nothing has worked.  The original table is attached, where the figures enclosed in asterisks (*) are the blanks.

I have found a website that converted my table to plain text, but the content still failed to align when I pasted it back to h5p.  So, I opened a new activity, created a table in the background, and superimposed the missing blanks. Unfortunately, the blanks did not remain on top when saved.  The layers would not stay together. 

My other option is to enter the table as a Latex code generated by a website shown below, but I could not find the procedure.  Please tell me if I need to modify the code or the steps I need to take.

          \begin{table}[]

          \begin{tabular}{|l|c|}

          \hline

          Variable & Mean \\ \hline

          Games – average number of games a player participates in a year          & *65.725*   \\ \hline

          Hours - average total hours spent during all games by a player in a year & *28.037*   \\ \hline

          Wage - annual salary of a player in thousands (\$'000)                   & *1423.828* \\ \hline

          \end{tabular}

          \end{table}

 

Thank you in advance for your assistance.

Anna

Attachments: 
Content types: 
fnoks's picture

Hi,

Unfortunately what you are asking for is not possible. I.e, it is possible to create a table using Latex inside Fill in the blanks, e.g. using something like this:
$$\begin{array} {|r|r|}\hline 0_0 & 0_1 \\ \hline 1_0 & 1_1 \\ \hline  \end{array}$$

The problem is that you can't have the input fields inside the latex. E.g, this won't work:
$$\begin{array} {|r|r|}\hline 0_0 & 0_1 \\ \hline 1_0 & *correct* \\ \hline  \end{array}$$

Dear Fnoks,

Thank you so much for your response. Do you have other alternatives in mind?

Anna

 

icc's picture

I'm afraid you would have to come up with an alternative solution until this is introduced in a later version.

One could be to have the table as part of a Column content type and then reference it from a Blanks task inserted below it.

Alternatively, you could look into the option called "Put input fields on separate lines" under "Behavioural settings.". This would allow you to createa definition list type layout for the task.