latex,emacs学习记录1

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/kqingyu/article/details/50894077

昨天下了codeRunner。发现可用latex.想到还没用熟latex,就下了macTex。但是发现还需要:于是:

https://www.zhihu.com/question/19954023

我的配置3(Emacs + AUCTex

TeXLive + Emacs + AUCTex + SumatraPDF。

这个配置唯一难在需要熟练使用 Emacs,如果不是常用,比较费时,不过,从效率上来看,熟练后的效率当是最高的。



1.下载macTex

emacs:  http://emacsformacosx.com/

2.下aucTex

http://www.gnu.org/software/auctex/download-for-macosx.html

3. 

 Go to the Auctex directory, configure with the command:

./configure --with-emacs=/Applications/Emacs.app/Contents/MacOS/Emacs --with-lispdir=/Applications/Emacs.app/Contents/Resources/site-lisp --with-texmf-dir=/usr/local/texlive/texmf-local

Execute:

make; sudo make install

to install the elisp files inside the Emacs.app, the info files to /usr/local/share/info, etc.

Edit your ~/.emacs file to load Auctex/preview-latex, and point Emacs to your Latex executables:

(setenv "PATH" (concat "/usr/texbin:/usr/local/bin:" (getenv "PATH")))
(setq exec-path (append '("/usr/texbin" "/usr/local/bin") exec-path))
(load "auctex.el" nil t t)
(load "preview-latex.el" nil t t)


在pdf选择上,SumatraPDF。发现了一个问题:

https://github.com/sumatrapdfreader/sumatrapdf/wiki/Why-only-Windows%3F

People sometimes suggest that Sumatra should be available for some other operating system: Linux, Mac, Android etc.

This won't happen.

The first reason is that current developers don't know how to write software for those other platforms.

Second reason is that it would mean writing the whole program from scratch for a new platform.

Sumatra is tightly integrated with and optimized for Windows. Making a version for another operating system is not a matter of making a few changes here and there but writing all the UI code from scratch i.e. redoing years of development that went into Sumatra.

SumatraPDF is an open-source project so anyone is free to take our source code and use as much of it as they want to create equivalent for some other operating system, but we're unlikely to do it ourselves. 

初学latex:

http://www.360doc.com/content/13/0117/11/2886802_260681908.shtml    emacs -nw 1hello.c 可以在终端打开emacs. open -a preview 2hello.pdf  可以用preview 打开pdf
在emacs中不小心c-z 或者 c-x c-z 挂起emacs (挂起就是 把程序放到后台操作,前台回到shell提示符上,输入fg回到emacs界面)。\
阅读更多
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页