我发现是temp文件夹地址的问题
(if (memq system-type '(windows-nt cygwin)) (setq temporary-file-directory “d:/.emacs_temp”) )
我这样设置后,org-latex-preview 可以正常工作了
我发现是temp文件夹地址的问题
(if (memq system-type '(windows-nt cygwin)) (setq temporary-file-directory “d:/.emacs_temp”) )
我这样设置后,org-latex-preview 可以正常工作了
我觉得这算一个特性,让你能看着之前的公式进行修改
mac的話也可以用這個:
(defun hermanhel/org-insert-clipboard-image (img-filename)
"save clipboard image in ./resource/buffer-filname/img-filname.png, and insert a link to it at point"
(interactive
(list (read-string "[filename].png:")))
(let* ((cur-file (file-name-base buffer-file-name))
(resource (concat "./resource/" cur-file "/")))
(when (not (file-directory-p "./resource/"))
(make-directory "./resource/"))
(when (not(file-directory-p resource))
(make-directory resource))
(shell-command (concat "pngpaste " (shell-quote-argument resource) img-filename ".png"))
(insert "#+attr_html: :width 600px \n#+ATTR_ORG: :width 600\n") ;; default 900 width.
(insert (concat "[[" resource img-filename ".png" "]]"))
(org-display-inline-images)
)
這個函數會把剪貼板上的圖片存在./resource/buffer-filename/filename.png,然後在point插一個鏈接,加一個默認高度.
org-bars
非常不错,还有别的美化 org-mode
的包么?
预览确实是好的,但吃掉最后的\end{equation}
是否有些太偏激了呢?比如我想换成{equation*}
之类的,就无从下手了。
为什么不试试math-preview呢,很好用啊。
不会像inline-preview一样在文件夹下生成一堆图片。
xenops感觉有点重,如果开启hook,导致启动org很慢,preview到是速度很快。不过math-preview也很快。
切换主题颜色也没问题。
不过要装外部软件,npm。这个win下我没用过,linux,mac没什么问题。