emacs 笔记问题(数学、物理),希望大家不吝赐教 (预览以及插入问题)。

我发现是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 的包么?

借人气问一下org-latex-preview的一个问题,我以前用spacemacs的碰到过,现在用doom emacs也碰到了。 有些字符,预览的时候会出现下面的情况:

预览确实是好的,但吃掉最后的\end{equation}是否有些太偏激了呢?比如我想换成{equation*}之类的,就无从下手了。

为什么不试试math-preview呢,很好用啊。

不会像inline-preview一样在文件夹下生成一堆图片。

xenops感觉有点重,如果开启hook,导致启动org很慢,preview到是速度很快。不过math-preview也很快。

切换主题颜色也没问题。

不过要装外部软件,npm。这个win下我没用过,linux,mac没什么问题。

1 个赞