当前位置:网站首页>latex公式及表格识别
latex公式及表格识别
2022-06-24 08:16:00 【qq_45759229】
公式识别
今天发现了一个好东西,就是如果想复制人家文章里的公式到自己的latex中,可以使用下面的网站
https://www.latexlive.com/home##
登陆后,就可以直接截图,然后就可以得到对应的latex代码
例如
直接截图复制到那个在线网站上
可以看到这个结果可比自己一个一个敲要快多了
有了上面的这个,我想做另外一个事,是否有让latex识别表格的插件呢,
我搜了一下,这个是有的,是excel2latex啦
安装excel2latex
参考
https://www.bilibili.com/read/cv14219721/
首先去官网下载
https://ctan.org/tex-archive/support/excel2latex/
然后打开excel

进入
然后找到刚才下载的xla文件,点击确定就可以安装了
如果安装成功,那么最终的结果如下
使用教程
首先准备一个excel表格,如下
首先选择表格的全部数据
然后选择加载项里对应的那么个表格,如下
这里就可以生成
点击Copy to Clipboard就可以复制到粘贴板了,保存到文件好像是报错了,不过我也不需要这个,
不过这里有个小bug,
现在复制得到的latex代码其实格式是乱的,直接复制到texstudio中
这个太乱了,直接运行会报错,需要值\begin{table}和\end{table}前自己换一下行
,或者可以先把代码复制到typora中,然后从typora中把latex代码复制到texstudio中
这里可以看到,格式变好了,最终就可以运行texstudio看表格的结果了,下面是我的测试代码
% 例5
\documentclass{
article}
\usepackage{
booktabs}
\usepackage{
multirow}
\title{
My First Document}
\author{
Mingliang Zhang}
\date{
\today}
\begin{
document}
\maketitle
Hello,$$f(x)=3x^2+x-1$$This is a message.
\begin{
table}[htbp]
\centering
\caption{
Add caption}
\begin{
tabular}{
lrrrrrrrr}
4batch\_4celltype\_multi & \multicolumn{
1}{
l}{
tDCA} & \multicolumn{
1}{
l}{
fastMNN} & \multicolumn{
1}{
l}{
harmony} & \multicolumn{
1}{
l}{
Seurat3} & \multicolumn{
1}{
l}{
scanorama} & \multicolumn{
1}{
l}{
INSCT} & \multicolumn{
1}{
l}{
BBKNN} & \multicolumn{
1}{
l}{
liger} \\
ARI & 1 & 1 & 0.333 & 1 & 1 & 1 & 1 & 0.866 \\
NMI & 1 & 1 & 0.667 & 1 & 1 & 1 & 1 & 0.816 \\
ASW\_label & 0.727 & 0.655 & 0.533 & 0.643 & 0.632 & 0.962 & 0.93 & 0.563 \\
ASW\_label/batch & 0.98 & 0.981 & 0.276 & 0.925 & 0.988 & 0.854 & 0.565 & 0.971 \\
BatchKL & 0.187 & 0.205 & 2 & 0.612 & 0.158 & 0.611 & 1.499 & 0.167 \\
cLISI & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1.037 \\
iLISI & 3.132 & 3.089 & 1 & 2.174 & 3.217 & 2.462 & 1.173 & 3.225 \\
\end{
tabular}%
\label{
tab:addlabel}%
\end{
table}%
% Table generated by Excel2LaTeX from sheet '4batch_4celltype_multi_evaluati'
\begin{
table}[htbp]
\centering
\caption{
Add caption}
\begin{
tabular}{
lrrrrrrrr}
& \multicolumn{
1}{
l}{
tDCA} & \multicolumn{
1}{
l}{
fastMNN} & \multicolumn{
1}{
l}{
harmony} & \multicolumn{
1}{
l}{
Seurat3} & \multicolumn{
1}{
l}{
scanorama} & \multicolumn{
1}{
l}{
INSCT} & \multicolumn{
1}{
l}{
BBKNN} & \multicolumn{
1}{
l}{
liger} \\
ARI & 1 & 1 & 0.333 & 1 & 1 & 1 & 1 & 0.866 \\
NMI & 1 & 1 & 0.667 & 1 & 1 & 1 & 1 & 0.816 \\
ASW\_label & 0.727 & 0.655 & 0.533 & 0.643 & 0.632 & 0.962 & 0.93 & 0.563 \\
ASW\_label/batch & 0.98 & 0.981 & 0.276 & 0.925 & 0.988 & 0.854 & 0.565 & 0.971 \\
BatchKL & 0.187 & 0.205 & 2 & 0.612 & 0.158 & 0.611 & 1.499 & 0.167 \\
cLISI & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1.037 \\
iLISI & 3.132 & 3.089 & 1 & 2.174 & 3.217 & 2.462 & 1.173 & 3.225 \\
\end{
tabular}%
\label{
tab:addlabel}%
\end{
table}%
% Table generated by Excel2LaTeX from sheet 'Sheet1'
\begin{
table}[htbp]
\centering
\caption{
Add caption}
\begin{
tabular}{
c|lrrrrrrrrr}
\toprule
\multicolumn{
2}{
c}{
\multirow{
2}[4]{
*}{
\textbf{
Method}}} & \multicolumn{
3}{
c}{
\textbf{
Dataset 1}} & \multicolumn{
3}{
c}{
\textbf{
Dataset 2}} & \multicolumn{
3}{
c}{
\textbf{
Dataset 3}} \\
\cmidrule{
3-11} \multicolumn{
2}{
c}{
} & \multicolumn{
1}{
c}{
RMSE} & \multicolumn{
1}{
c}{
MAE} & \multicolumn{
1}{
c}{
ACC} & \multicolumn{
1}{
c}{
RMSE} & \multicolumn{
1}{
c}{
MAE} & \multicolumn{
1}{
c}{
ACC} & \multicolumn{
1}{
c}{
RMSE} & \multicolumn{
1}{
c}{
MAE} & \multicolumn{
1}{
c}{
ACC} \\
\midrule
\multirow{
2}[2]{
*}{
Non-Graph} & MLP & & & & & & & & & \\
& SVR & & & & & & & & & \\
\midrule
\multirow{
5}[2]{
*}{
Graph} & GCN & & & & & & & & & \\
& GAT & & & & & & & & & \\
& RGCN & & & & & & & & & \\
& GIN & & & & & & & & & \\
& ChebNet & & & & & & & & & \\
\midrule
\midrule
\textbf{
Proposed} & \textbf{
ABC} & & & & & & & & & \\
\bottomrule
\end{
tabular}%
\label{
tab:addlabel}%
\end{
table}%
% Table generated by Excel2LaTeX from sheet 'Sheet1'
\begin{
table}[htbp]
\centering
\setlength{
\abovecaptionskip}{
2pt}%
\setlength{
\belowcaptionskip}{
10pt}%
\caption{
It is a table.}
\begin{
tabular}{
c|lrrrrrrrrr}
\bottomrule %\toprule
\multicolumn{
2}{
c}{
\multirow{
2}[4]{
*}{
\textbf{
Method}}} & \multicolumn{
3}{
c}{
\textbf{
Dataset 1}} & \multicolumn{
3}{
c}{
\textbf{
Dataset 2}} & \multicolumn{
3}{
c}{
\textbf{
Dataset 3}} \\
\cmidrule(r){
3-5} \cmidrule(r){
6-8} \cmidrule{
9-11} \multicolumn{
2}{
c}{
} & \multicolumn{
1}{
c}{
RMSE} & \multicolumn{
1}{
c}{
MAE} & \multicolumn{
1}{
c}{
ACC} & \multicolumn{
1}{
c}{
RMSE} & \multicolumn{
1}{
c}{
MAE} & \multicolumn{
1}{
c}{
ACC} & \multicolumn{
1}{
c}{
RMSE} & \multicolumn{
1}{
c}{
MAE} & \multicolumn{
1}{
c}{
ACC} \\
\hline
\multirow{
2}[2]{
*}{
Non-Graph} & MLP & & & & & & & & & \\
& SVR & & & & & & & & & \\
\hline
\multirow{
5}[2]{
*}{
Graph} & GCN & & & & & & & & & \\
& GAT & & & & & & & & & \\
& RGCN & & & & & & & & & \\
& GIN & & & & & & & & & \\
& ChebNet & & & & & & & & & \\
\hline
\hline
\textbf{
Proposed} & \textbf{
ABC} & & & & & & & & & \\
\toprule %\bottomrule
\end{
tabular}%
\label{
tab:addlabel}%
\end{
table}%
% Table generated by Excel2LaTeX from sheet '4batch_4celltype_multi_evaluati'\begin{
table}[htbp] \centering \caption{
Add caption} \begin{
tabular}{
lrrrrrrrr} 4batch\_4celltype\_multi & \multicolumn{
1}{
l}{
tDCA} & \multicolumn{
1}{
l}{
fastMNN} & \multicolumn{
1}{
l}{
harmony} & \multicolumn{
1}{
l}{
Seurat3} & \multicolumn{
1}{
l}{
scanorama} & \multicolumn{
1}{
l}{
INSCT} & \multicolumn{
1}{
l}{
BBKNN} & \multicolumn{
1}{
l}{
liger} \\ ARI & 1 & 1 & 0.333 & 1 & 1 & 1 & 1 & 0.866 \\ NMI & 1 & 1 & 0.667 & 1 & 1 & 1 & 1 & 0.816 \\ ASW\_label & 0.727 & 0.655 & 0.533 & 0.643 & 0.632 & 0.962 & 0.93 & 0.563 \\ ASW\_label/batch & 0.98 & 0.981 & 0.276 & 0.925 & 0.988 & 0.854 & 0.565 & 0.971 \\ BatchKL & 0.187 & 0.205 & 2 & 0.612 & 0.158 & 0.611 & 1.499 & 0.167 \\ cLISI & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1.037 \\ iLISI & 3.132 & 3.089 & 1 & 2.174 & 3.217 & 2.462 & 1.173 & 3.225 \\ \end{
tabular}% \label{
tab:addlabel}%\end{table}%
\end{
document}
最终结果如下

可以看到达到了我想要的结果
边栏推荐
- Weekly recommended short video: is the ultimate form of computing "meta universe"?
- CF566E-Restoring Map【bitset】
- Depens:*** but it is not going to be installed
- 12、 Demonstration of all function realization effects
- Leetcode -- linked list
- Alibaba Senior Software Testing Engineer recommends testers to learn -- Introduction to security testing
- 转:三星电子CEO:一切决策都要从认清自己开始
- 数字化转型的失败原因及成功之道
- The native applet uses canvas to make posters, which are scaled to the same scale. It is similar to the uniapp, but the writing method is a little different
- PHP使用递归和非递归方式实现创建多级文件夹
猜你喜欢

零基础自学SQL课程 | HAVING子句

二十、处理器调度(RR时间片轮转,MLFQ多级反馈队列,CFS完全公平调度器,优先级翻转;多处理器调度)

CF566E-Restoring Map【bitset】

CF566E-Restoring Map【bitset】

12、 Demonstration of all function realization effects
Depens:*** but it is not going to be installed

学习太极创客 — ESP8226 (十二)ESP8266 多任务处理

解决:jmeter5.5在win11下界面上的字特别小

EasyExcel单sheet页与多sheet页写出

零基础自学SQL课程 | 子查询
随机推荐
Redis实现全局唯一ID
ApplicationContextInitializer的三种使用方法
PhpStrom代码格式化设置
Learning Tai Chi Maker - esp8226 (XIII) OTA
牛客网 十进制整数转十六进制字符串
[noi Simulation Competition] send (tree DP)
php单例模式详解
Depens:*** but it is not going to be installed
十二、所有功能实现效果演示
金仓KFS replicator安装(Oracle-KES)
Zero foundation self-study SQL course | sub query
Linux (centos7.9) installation and deployment of MySQL Cluster 7.6
每周推荐短视频:计算的终极形态是“元宇宙”?
Redis implements a globally unique ID
Remote connection of raspberry pie without display by VNC viewer
Niuke.com string deformation
LeetCode: 377. 组合总和 Ⅳ
关于thinkphp5 使用模型save()更新数据提示 method not exist:think\db\Query-> 报错解决方案
P6698-[balticoi 2020 day2] virus [AC automata, DP, SPFA]
Niuke network realizes simple calculator function