Can you write a latex code to generate a table
Yes, here is an example LaTeX code to generate a simple table:
\begin{table}[h] \centering \begin{tabular}{|c|c|c|} \hline \textbf{Name} & \textbf{Age} & \textbf{Gender} \ \hline John & 25 & Male \ \hline Jenny & 30 & Female \ \hline David & 20 & Male \ \hline \end{tabular} \caption{Example of a simple table} \label{tab:example} \end{table}
This code will produce a table with three columns (Name, Age, and Gender) and three rows with some example data. The table will be centered and have vertical lines separating each column and horizontal lines separating each row. A caption and label have also been added for reference purposes
原文地址: https://www.cveoy.top/t/topic/cJAR 著作权归作者所有。请勿转载和采集!