mac os下用emacs写latex

记录一下mac os下用emacs写latex文件的注意事项:

  • 下载安装 mactex 和 auctex
  • 参考B站教程https://www.bilibili.com/video/av31840518/?p=2安装cdlatex
  • 注意需要运行Emacs.app进入Emacs GUI而不是在terminal直接输入emacs命令打开, 同时必须确保Emacs GUI中的环境变量与terminal中的PATH是一致的,可以通过这个emacs插件实现https://github.com/purcell/exec-path-from-shell, 将插件安装后, 执行M-x exec-path-from-shell-initialize和M-x exec-path-from-shell-copy-env将Emacs GUI中的PATH设置为与terminal中的一致,可以通过在eshell中输入echo $PATH验证
  • 通过上面的注意事项,可以解决的报错有:
  1. LaTeX found no preview images
  2. /bin/sh: pdflatex: command not found

猜你喜欢

转载自blog.csdn.net/www_minna_com/article/details/86143897