手工生成Emacs Manual PDF
clone emacs源代码
git clone --branch ${branch} --depth=1 git://git.sv.gnu.org/emacs.git
生成makefile文件
cd emacs ./autogen.sh && ./configure
emacs文档资料存放在
doc
目录下ls doc
emacs lispintro lispref man misc
在每个目录中都有很多
texi
的文件ls doc/emacs
abbrevs.texi ack.texi anti.texi arevert-xtra.texi basic.texi buffers.texi building.texi calendar.texi cal-xtra.texi ChangeLog.1 cmdargs.texi commands.texi custom.texi dired.texi dired-xtra.texi display.texi doclicense.texi docstyle.texi emacs.texi emacsver.texi emacsver.texi.in emacs-xtra.texi emerge-xtra.texi entering.texi files.texi fixit.texi fortran-xtra.texi frames.texi glossary.texi gnu.texi gpl.texi help.texi indent.texi killing.texi kmacro.texi macos.texi maintaining.texi Makefile Makefile.in mark.texi mini.texi misc.texi modes.texi msdos.texi msdos-xtra.texi mule.texi m-x.texi package.texi picture-xtra.texi programs.texi regs.texi rmail.texi screen.texi search.texi sending.texi text.texi trouble.texi vc1-xtra.texi vc-xtra.texi windows.texi xresources.texi
我们要做的就是通过这些
texi
文件生成对应的pdf文件,在这个过程中需要用到TeX,因此先要安装texlivesudo pacman -S texlive-core --noconfirm
make 生成想要的pdf
cd doc/emacs && make emacs.pdf cd ../lispref && make elisp.pdf cd ../misc && make calc.pdf
将生成的PDF拷出来
find ./ -name "*.pdf" |xargs -I{} mv {} ~/Documents/