我想在Ubuntu上用Mathpix Snipping Tool
,官網上提示在Ubuntu中用以下命令安裝.
sudo snap install mathpix-snipping-tool
但是一直卡在如下命令.
Download snap "core" (6673) from channel "stable"
於是去這個第三方平臺下了mathpix-snipping-tool
的.snap
文件,想直接安裝.snap文件.又報錯.
snap install mathpix-snipping-tool.snap
error: cannot find signatures with metadata for snap "mathpix-snipping-tool.snap"
在這個論壇中,說是要
snap ack snipping-tool.assert
但是我在第三方平臺中只能下.snap包,沒有.assert文件.
If you don’t care about the assertion, you can run
snap install --dangerous <the darktable snap you downloaded>
, but then you won’t receive updates.
但是可以用 --dangerous
參數.不管更新.
snap install --dangerous mathpix-snipping-tool.snap
半小時後,終於安裝好了(淚).
常用命令
snap changes
查看正在進行的changesudo snap abort ID
殺死某個進程
效果
我一般在Ubuntu下寫代碼,所以想在Ubuntu下寫筆記,同時用公式來解釋代碼非常直觀.這是我在Ubuntu下安裝Mathpix Snipping Tool
的初衷.下面的公式就是用 ctr+alt+M
組合鍵得到的公式.
對應代碼
Eigen::Matrix2d Rij_inv = (Zij.topLeftCorner(2,2)).transpose();
Eigen::Matrix2d Ri_inv = (Xi.topLeftCorner(2,2)).transpose();
Eigen::Matrix2d JR_theta;
JR_theta << -Xi(1,0), Xi(0,0),
-Xi(0,0), -Xi(1,0);
Ai.setZero();
Ai.topLeftCorner(2,2) = -Rij_inv * Ri_inv;
Ai.topRightCorner(2,1) = Rij_inv * JR_theta * (Xj.topRightCorner(2,1) - Xi.topRightCorner(2,1));
Ai(2,2) = -1;
Bi.setZero();
Bi.topLeftCorner(2,2) = Rij_inv * Ri_inv;
Bi(2,2) = 1;
參考
- snap教程https://itsfoss.com/use-snap-packages-ubuntu-16-04/