Hanjie's Blog

一只有理想的羊驼

在/Applications/MWeb.app/Contents/Resources/PreviewAsset/MathJax/config/TeX-AMS-MML_HTMLorMML.js中添加

1
MathJax.Hub.Config({TeX:{equationNumbers:{autoNumber:"AMS"}}});

然后就可以使用: \[\begin{equation} \label{e1} a = b + c \end{equation}\]

引用(\(\ref{e1}\))

When I type the Chinese character in a Markdown cell, there is a offset in the cursor location.

PastedGraphic-1

The location of cursor is not the location between two characters.

屏幕快照 2015-12-09 下午2.21.07

I changed the css style of ace_editor, which makes the font-family to SimSun:

Soluation

1
2
3
4
5
6
7
.markdown-cell .ace_editor {
background-color: #FFFFFF;
color: #333;
font-size: 12px;
font-family: SimSun;
line-height: 1.5;
}

bug fixed.

问题主要是升级内核后会破坏显卡驱动,需要重新安装Parallels Tools。

在升级内核前,需要先打开开机内核选择菜单功能。

1
sudo gedit /etc/default/grub

修改如下内容1

1
2
3
4
GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=30

然后执行:

1
sudo update-grub

重启,选择新内核,进入命令行模式,然后输入2

1
2
3
4
5
eject /dev/sr0
mkdir /media/cdrom
mount -o exec /dev/sr0 /media/cdrom
cd /media/cdrom
./install

完成安装过程后重启即可。


  1. https://gss.blog.ustc.edu.cn/2015/04/%E5%A6%82%E4%BD%95%E5%9C%A8ubuntu-14-04-2%E4%B8%8A%E9%85%8D%E7%BD%AEbeignet%EF%BC%9F/↩︎

  2. http://kb.parallels.com/cn/118876↩︎

0%