如何快速画一个Latex格式的表格?(自动生成Latex代码 Table Generator)

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接: https://blog.csdn.net/weixin_38244174/article/details/90699875

        以Latex代码的形式去画一个表格对于刚开始投英文期刊的同学来说可能有一点难度,Tables Generator你值得拥有。官网地址:

http://www.tablesgenerator.com/latex_tables

       Table Generator是一款在线表格生成制作工具,代码工具。网站描述TablesGenerator是一个在线制作 LaTeX、HTML、Markdown 格式的表格代码工具,支持在表格中填充数据,修改字体/背景颜色,对齐方式等等,还支持从 Excel、Google Docs 里直接复制粘贴数据,以及多个 HTML 表格样式。下面教大家如何去画一个最简单的表格。

(一)打开官网,熟悉界面:(我给常用的键注明了功能)

         

(二)如何在Latex中画一个最简单的表格如下所示:

                                                   

2.1 在表格编辑框中编辑每个单元格的文字如上所示,点击加边框,如下图所示:

                                             

2.2 点击细粒度操作按钮,点击边框即可删除无用的边框(按shift+鼠标左键可以删除一行的边框)。

                                          

2.3.删除边框,点击居中操作按钮。(支持Ctrl+C,Ctrl+V,Ctrl+Z哦)

                                              

2.4.点击Generate来产生Latex代码。

\begin{table}[]
\begin{tabular}{cccc}
\hline
\textbf{Name} & \textbf{Category} & \textbf{Name} & \textbf{Category} \\ \hline
Name1         & Category1         & Name4         & Category3         \\
Name2         & Category2         & Name5         & Category4         \\
Name3         & Category1         &               &                   \\ \hline
\end{tabular}
\end{table}

2.5.复制代码并粘贴至CTeX_2.9.2.164_Full工具中,点击生成,即可在文章中生成表格,可以调节参数,譬如Centering、字体大小、标题等等来使表格更加美观。

                                                

附:

(1).一个调整后的Latex代码的表格:

\begin{table}[]\footnotesize
\setlength{\tabcolsep}{-6mm}
\centering \caption{This is Caption.}\label{runResult}
 \centering
\setlength{\tabcolsep}{5mm}{
\begin{tabular}{cccc}
\toprule
Name & Category & Name & Category \\ \midrule
Name1         & Category1         & Name4         & Category3         \\
Name2         & Category2         & Name5         & Category4         \\
Name3         & Category1         &               &                   \\
\bottomrule
\end{tabular}
}
\vspace{-6mm}
\end{table}

效果如下: 

                                                      

(2)Latex中字体大小从小到大:

\tiny
\scriptsize
\footnotesize
\small
\normalsize
\large
\Large
\LARGE
\huge
\Huge

猜你喜欢

转载自blog.csdn.net/weixin_38244174/article/details/90699875