gpt-3.5-turbo-0613· openai
Suzhen/CodeChat
please add vertical lines between each value in this latex table: \begin{table}[!htb]…
- User
please add vertical lines between each value in this latex table: \begin{table}[!htb] \caption{PSO: Enemies 2, 5, 6} \label{tab:commands} \begin{tabular}[width =0.5\textwidth]{||c c c c c c c c c||} \hline \textbf{Enemy} & \textbf{1} & \textbf{2} & \textbf{3} & \textbf{4} & \textbf{5} & \textbf{6} & \textbf{7} & \textbf{8} \ \hline Player Health & 0 & 76 & 0 & 0 & 58 & 32 & 19 & 28 \ \hline Enemy Health & 70 & 0 & 40 & 80 & 0 & 0 & 0 & 0 \ \hline \end{tabular} \label{table:3} \end{table}
- Assistant
To add vertical lines between each value in the table, you can use the "|" symbol within the column definition. Here is the modified code:
\begin{table}[!htb] \caption{PSO: Enemies 2, 5, 6} \label{tab:commands} \begin{tabular}[width =0.5\textwidth]{||c|c|c|c|c|c|c|c|c||} \hline \textbf{Enemy} & \textbf{1} & \textbf{2} & \textbf{3} & \textbf{4} & \textbf{5} & \textbf{6} & \textbf{7} & \textbf{8} \\ \hline Player Health & 0 & 76 & 0 & 0 & 58 & 32 & 19 & 28 \\ \hline Enemy Health & 70 & 0 & 40 & 80 & 0 & 0 & 0 & 0 \\ \hline \end{tabular} \label{table:3} \end{table}Now, there are vertical lines between each value in the table.