MacBook Air(Lion)ã«Texç°å¢ãå°å ¥ããã
TexãEmacsã®YaTeXã§ç·¨éãããã¦ãã®ç°å¢ãä½ã£ããã ãã©ããªããéä¸ã¨ã©ã¼ã¨ãåºã¾ãã£ã¦åãè¦å´ããã®ã§ãããè¦ããªããä½æ¥è¨é²ãæ®ãã¦ã¿ãã
ä½ã¯ã¨ãããTexã®ã¤ã³ã¹ãã¼ã«ãè¡ãã
MacTexããã¦ã³ãã¼ããã¦ã¤ã³ã¹ãã¼ã«ããã
æ¥æ¬èªã®è¨å®ããããããAdditional Tools for MacTeX/TeXLive 2011ãè½ã¨ãã¦å®è¡ã
TexShopã®è¨å®ããããè¨å®ã®æ¸é¡ã¿ãã§ã¨ã³ã³ã¼ããutf8ã«ãå é¨è¨å®ã¿ãã®TeX+dvips+distillerã®Texã¯
~/Library/TeXShop/bin/ptex2pdf-utf8
ã«ãLatexã¯
~/Library/TeXShop/bin/platex2pdf-utf8
ã«ã
ãã®ptex2pdf-utf8ã¨platex2pdf-utf8ã¯ããã©ã«ãã§ã¯ç¡ãã®ã§ã¿ã¼ããã«ã§
cd ~/Library/TeXShop/bin cp ptex2pdf-euc ptex2pdf-utf8 cp platex2pdf-euc platex2pdf-utf8
ã¨åªæãå±ãã¦ä½ãã*1
ãã®ã¾ã¾ã§ã¯platex2pdf-utf8ãå®è¡ããã¨ã
I can't find format file `platex-utf8.fmt'!
ã£ã¦ã¨ã©ã¼ãåºãã®ã§ã¿ã¼ããã«ã§
perl -pi.bak -e 's/-fmt=\$PTEX-\$ENCODE\s+//' ~/Library/TeXShop/bin/p*tex2pdf-*
ã¨åªæãå±ãã*2
ãã®ã¾ã¾ã§ã¯æ¬¡ã®ãããªã¨ã©ã¼ãåºã
pLaTeX2e <2006/11/10> (based on LaTeX2e <2009/09/24> patch level 0) ) ) Beginning to dump on file platex.fmt (format=platex 2011.11.3) 5837 strings of total length 89414 50206 memory locations dumped; current usage is 204&47384 3494 multiletter control sequences \font\nullfont=nullfont \font\OMX/cmex/m/n/10=cmex10 (ç¥) \font\JT1/gt/m/n/12=tgoth10 at 12.0pt \font\@bannerfont=cmtt9 7512 words of font info for 31 preloaded fonts 745 hyphenation exceptions Hyphenation trie of length 303577 has 7340 ops out of 35111 14 for language 57 50 for language 56 (ç¥) 2 for language 1 181 for language 0 No pages of output. Transcript written on platex.log. fmtutil: /Users/*****/Library/texlive/2011/texmf-var/web2c/eptex/platex.fmt installed. /Users/*****/Library/texlive/2011/texmf-var/web2c/eptex/platex.fmt was written by eptex (Fatal format file error; I'm stymied) typeset exited abnormally with code 1 at Thu Nov 3 10:04:45
ã®ã§ãplatex2pdf-utf8ã®
ptex -kanji=$ENCODE -progname=$PTEX $1 && \
ã®è¡ã
platex -kanji=$ENCODE -progname=$PTEX $1 && \
ã«å¤ãã(æåã®ptexãplatexã«å¤ãã)
次ã«YaTeXãã¤ã³ã¹ãã¼ã«ããã
ここããYaTeXãè½ã¨ãã解åãã¦makefileã
EMACS=/Applications/Emacs.app/Contents/MacOS/Emacs PREFIX=/Applications/Emacs.app/Contents/Resources EMACSDIR=${PREFIX}
ã£ã¦æããªè¨å®ã«æ¸ãæãã¦ã¿ã¼ããã«ã§
sudo make install sudo make install-info
ã¨åªæãå±ããã
ã§ã~/.emacs.d/init.elã«ä»¥ä¸ã®è¨å®ã追å ããã*3 *4 *5
;; yatexã®è¨å® (setq auto-mode-alist (cons (cons "\\.tex$" 'yatex-mode) auto-mode-alist)) (autoload 'yatex-mode "yatex" "Yet Another LaTeX mode" t) (setq dvi2-command "open -a TeXShop" tex-command "~/Library/TeXShop/bin/platex2pdf-utf8" YaTeX-kanji-code nil) ;; ä½æ ãplatexçã使ããªãã£ãã®ã§(platex: command not foundã¨ã表示ããã)pathãéãã ;; å¿ è¦ãªã®ã¯å¤å/usr/texbinã ãã ãã©ãã³ããå ã®è¨å®ããã®ã¾ã¾æµç¨ããã (dolist (dir (list "/sbin" "/usr/sbin" "/bin" "/usr/bin" "/opt/local/bin" "/sw/bin" "/usr/local/bin" "/usr/texbin" (expand-file-name "~/bin") (expand-file-name "~/.emacs.d/bin") )) ;; PATH 㨠exec-path ã«åãç©ã追å ãã¾ã (when (and (file-exists-p dir) (not (member dir exec-path))) (setenv "PATH" (concat dir ":" (getenv "PATH"))) (setq exec-path (append (list dir) exec-path))))
æãã¦ãããç¥ããªããã©ãããªæãã§ãã£ã¨texç°å¢ãæ´ã£ããã¾ãã§èª¿ã¹ãã®æéããã£ãããã