åå¿è ãWord代ããã«TeXã使ãããã®æä½éã®è¨å®ãªã©ãã¾ã¨ãã
ãå¿
è¦æ§ããªããã©ãã¡ãã£ã¨ä¾¿å©ãããã¨ããã¬ãã«ã®ãã®ãå°å
¥ããéã®æå¤§ã®é¢å¿äºã¯ãä»åºæ¥ããã¨ãæ°ããç°å¢ã§ãåºæ¥ããã©ãããã§ã
ãã£ã¨ç´°ããè¨ãã¨ãæ°ããã¡ãªãããã ãã§ã¯äººãåããã«ã¯ååã§ã¯ãªãããç¾ç¶ã®ã¡ãªããã®ä¿è¨¼ããå¿
è¦ã§ããã¨æãã
ä½ã®è©±ãã¨ããã¨TeXã®è©±ãªã®ã ãã©ãç¸å¤ããã大ãããã¨ç¡ã話ãå°é£ããè©±ã«æã£ã¦è¡ã奴ã§ããã
ã§ãè«æãæ¸ãã®ã«ï¼ä»æ´ï¼æ¬æ ¼çã«TeXã使ãå§ãã¦ã¿ããã ãã©ãããããã便å©ã§ããªãã§ä»ã¾ã§Wordã使ã£ã¦ããã®ã*1ãããå°å ¥ãé¢åããããã ã£ãããã ããå®éé¢åãããã£ããã©ããããè£ã£ã¦ãã¾ãããå¿«é©ç°å¢ãåºæ¥ã¦ãããå¬ããã
æ¹ãã¼ã¸ãå³ã®æ¿å ¥ä½ç½®ãèªåã§ãã¡ãã¡èãããã追è¨ãã¦å ¨é¨ãã£ãããºã¬ãã®ãä¸ã¤ä¸ã¤ç´ãå¿ è¦ãç¡ãã好ãåæã«æ¸ãã¦ã³ã³ãã¤ã«ããã°ãããæãã®ä½ç½®ã«æ´ãã¦ããããè³¢ãï¼å ãã¦æ¬ä½ã®.texã¯ããã¹ããªã®ã§è»½ãããã¡ãã£ã¨ããå¦çããããããããã ããã£ã±ãã¯ã»ãåé¡ãããã®ã§ã諸æãæãã¦ä¸äººã«ãªã¹ã¹ã¡ã¯ã§ããªãã
ãã®ã¨ã³ããªã®ç®çã¯ãç®åã«è¿«ã£ãææ¸ä½æãWordã§æ®éã«ä½ãã®ã¨éè²ãªãä»ä¸ããããã ãã®TeXè¨å®ãæ¼ãããããã¨ã
ã¨ããããã§ãå°å
¥ã¡ã¢ã¨ææ³ãªã©ãæ¸ãã¦ãããç¡é§ã«ç»åã¨ã使ã£ã¦ãã¾ãã®ã¯åãæ§ãHashã®ãã ããªãã¨ããã§è©°ã¾ãã¹ãã«ã«ã¯å®è©ãããããåç´çãªå
容ã¨ãªã£ã¦ããã¾ãã失æã®æ¹æ³ã¯ã»ã¼ç¡æ°ã«ããã®ã§æããã¦èª°ãã®å½¹ã«ç«ã¤ãã©ããããããªããã
ã¡ãªã¿ã«ç°å¢ã¯Mac OS X 10.5.8*2ããã®âãã±ã«æ´æ°ãããã¾ãç°å¢ããããå¿
è¦ããããããããªãã
ããã¦ãã¤
- (ã¤ã³ã¹ãã¼ã«ã¨ç°å¢)
- ã¨ãããã.texãã.pdf
- æ¸é¡ã®ã¬ã¤ã¢ã¦ããç®æ¬¡ãæ¹è¡
- jpgã¨ãpngã®ã¾ã¾å³ãåãè¾¼ã¿ãã
- BibTeXã«ããåèæç®ã®å¦ç
- ã·ã§ã«ã¹ã¯ãªããã§å¦çãã¾ã¨ãã
- TeXã®ãããã¨ãã
ã¤ã³ã¹ãã¼ã«ã¨ç°å¢
ãTeX ã¤ã³ã¹ãã¼ã« Macãã¨ãã§ã°ã°ãã°ããããããæ å ±ããããããããããã¯ãããªã«é£ãããªãã¨ããã...ããã¤ã³ã¹ãã¼ã«æ¹æ³ã«ãã£ã¦ä½¿ããããã±ã¼ã¸ãåæè¨å®ãªã©ãéã£ã¦ãããããªã®ã§ãåã®æ¹æ³ãç°¡åã«æ¸ãã¦ããã¾ãã
JIS X0212 for pTeXãã
ã®ãµãã¤ããã¦ã³ãã¼ããã¤ã³ã¹ãã¼ã«ãããã ããï¼MacPortsããã§ãã¤ã³ã¹ãã¼ã«åºæ¥ããããï¼

ã¡ãªã¿ã«ä½¿ã£ã¦ããã¨ãã£ã¿ã¯MacVimã§ãã>id:sinxãã
ã¨ãããã.texãã.pdf
ã¨ããããç°å¢ãåºæ¥ããã.texãã.pdfã¸ããä¸éããã£ã¦ã¿ãããã¨ãã°
\documentclass[11pt]{jsarticle} \title{ããã¨ãã§ã} \author{ã¯ã£ãã } \date{\today} \begin{document} \maketitle \section{ããããããã} \subsection{ãã¶ããããã} å 容 \end{document}
ãããªæãã§"hoge.tex"ã¨ãããã¡ã¤ã«ã使ãã¦
platex hoge.tex
ã¨ããã³ãã³ããå®è¡ããã㨠hoge.aux, hoge.dvi, hoge.log ã¨ããæ°ãããã¡ã¤ã«ãåºæ¥ã¦ããã ããã«
dvipdfmx hoge.dvi
ããã° hoge.pdf ã¨ãããã¡ã¤ã«ãåºæ¥ããããã§ã¨ããããä¸é£ã®æµãã¯OKã
ããã¾ã§ã§è©°ã¾ãã¨ããã*3
- platexã¨ããã³ãã³ããç¡ããï¼
- æ¥æ¬èªãå
¥ããã¨ã¨ã©ã¼ãåºã
- ãã¡ã¤ã«ã®æåã³ã¼ãã¡ããã¨ä¼ã£ã¦ãï¼
- TeXShopãªã©ã使ãã°ãã®ã¸ãããããªã«ãã£ã¦ãããã
- ãã¡ã¤ã«ã®æåã³ã¼ãã¡ããã¨ä¼ã£ã¦ãï¼
- dvipdfmãã¨ã©ã¼åºãï¼
- dvipdfmã§ã¯ãªãdvipdfmxã§éã£ããã©ãéããç¥ããªããã©
æ¸é¡ã®ã¬ã¤ã¢ã¦ã
ã²ã¨ã¨ããæ¹æ³ãåãã£ã¦æ¬æãã¡ãã£ã¨æ¸ãã¦ã¿ãã¨ãããã¤ãæ°ã«ãªãç¹ãåºã¦ããããã¨ãã°ãä½ç½åºãããããï¼ããªã©ãããã調æ´ããã«ã¯ãããªã¢ã³ãã«ã«*4
\usepackage{geometry} \geometry{a4paper} \setlength{\textwidth}{\fullwidth} \setlength{\textheight}{23.5cm} \setlength{\voffset}{-2.5cm}
ãããªæãã§è¨å
¥ãããå¤ãå¤ããããã¦å¥½ã¿ã®ã¬ã¤ã¢ã¦ãã«ãã¦ãã ããã
ç®æ¬¡ã欲ããï¼
\begin{document} \maketitle
ãã®ä¸ãããã«ã§ãã\tableofcontentsãã¨ãä¸è¡è¿½å ããã°ããã\section, \subsectionã®å
容ãèªåã§ç®æ¬¡ã«ã¾ã¨ãã¦ããã¾ãã
æ¹è¡ããããã§ãã
æ¹è¡ã¯ã\parãã追å ãããããã§æ®µè½ãåºåããããæ®µè½ãå¤ããã«æ¹è¡ãããæã¯ã\\ãããããã¯ï¼.texã§ï¼2è¡ä»¥ä¸ã®ç©ºè¡ã空ããã¨ãæ¹è¡ã¨ãã¦èªèãããã
ãã®ä»
- ã®ãªã·ã£æåãå ¥ããã
- ä¸ä»ããä¸ä»ãæåãæ¸ããã
- ä¸ä»ãã$x^{2}$ããä¸ä»ãã$x_n$ãã$A_{2,3}$ã
jpgã¨ãpngã®ã¾ã¾TeXã«å³ãåãè¾¼ã¿ãã
TeXã§ã¯å³ã使ãæepsãã¡ã¤ã«ã«ãããã ãã©ãä½ã£ãç»åãjpgã¨ãã®ã¾ã¾ãã³ãã³çªã£è¾¼ã¿ããã¨ãã¡ãã£ã¨é¢åãããããããããªããWordã¿ããã«ãã©ãã°ï¼ããããã§å¥½ããªä½ç½®ã«å
¥ããããããã¾ã§ã®æè»½ãã¯ãªããã®ã®ãgraphicxããã±ã¼ã¸ã§ã©ã¯ãåºæ¥ããとりぷる ぷぅ ã¨ãåèã«ã
ã¾ã使¥ãã£ã¬ã¯ããªã« img ãªã©ã®ç»åã¹ããã¯ãã©ã«ããä½ã£ã¦ããã®ä¸ã«ä½¿ããã¡ã¤ã«ãçªã£è¾¼ãã§ããã¨ç®¡çãæ¥½ã ã¨æããä¾ã¨ãã¦nyoro.jpgã¨ããç»åãåãè¾¼ãã§ã¿ããããã§å¿ããã¡ãªãã¤ã³ããªã®ã ããimg å ã®nyoro.jpgã«å¯¾ãã¦
ebb nyoro.jpg
ã¨ããå¦çããã¦ãã*5ãããã¨åããã©ã«ãã«nyoro.bbã¨ãããã¡ã¤ã«ãåºæ¥ããããããä½ã£ã¦ãããªãã¨ã¨ã©ã¼ãåºããã©ããç»åãµã¤ãºãªã©ã®ãã¼ã¿ãå
¥ã£ã¦ããã¿ãã*6ã
ãã©ã«ãã®æºåãã§ããããããªã¢ã³ãã«ã«
\usepackage[dvipdfm]{graphicx}
ãè¨è¿°ããã ã¡ãªã¿ã«[]å
ã®è¨è¿°ã¯dvipdfmxï¼xãã¤ãã¦ãï¼ã§ã¯ã ãã ã£ãã
ããã¦.texä¸ã®å³ãå
¥ãããç®æã«
\begin{figure}[htbp] \centering \includegraphics[width=4cm]{img/nyoro.jpg} \caption{ããã¯åæã®ç½ ã } \label{nyoro} \end{figure}
ãã®ããã«è¨å
¥ãããæä¸ã§ãå³ã»ãã»ãã«ããã°...ãã¨ãè¨ãããæã¯ãlabelå¤ã§å¼ç¨ãã¦ãããç»åã§ä¾ã示ãã

ããã¾ã§ã§ãããããã¨ã¯
platex hoge.tex
dvipdfmx hoge.dvi
ãã¦ãã§ããpdfãéãã¦ã¿ãã
ç»åãå
¥ã£ã¦ãã¾ããã åºã¦æ¥ãé çªã«å³1, 2...ã¨çªå·ãæ¯ã£ãããç»åã大ããããããæ¹ãã¼ã¸ãã¦ããå³ãå
¥ãããã¨ãããããã£ãå¦çã¯TeXããããããªã«ãã£ã¦ããã¾ãã
ããã«é²ãã§ãå³2(a)(b)ãã¨è¤æ°ã®ç»åãä¸ã¤ã®å³ã¨ãã¦æ±ãããå ´åãsubfigureããã±ã¼ã¸ã使ãã¨ãããããããã®subfigureãlabelå¤ãæã¤ã®ã§ãå³2(a)ã¨ã(b)ã«å¯¾ãã¦åå¥ã«å¼ç¨åºæ¥ã*7ãããã§ã¯çç¥ã
BibTeXã«ããåèæç®ã®å¦ç
ããããä»åTeXã使ããã¨æã£ãä¸çªã®çç±ãããã
ä»ã¾ã§ã¯åèæç®ã¯åæ°å ±ããããã ã£ããã©ãæ¬æ ¼çã«è«æçãªãã®ãæ¸ãå§ããã¨è»½ã50ãè¶
ããããããéä¸ãæ´åæ§ã¨ã£ã¦ãéè¤ãç¡ããã¦ãæ¬æã®é çªã«åããã¦æ´åãã¦...ã¨æåã§ããã®ã¯æ°ãé ããªããWord 2007ã«ã¯Referenceæ©è½ã追å ãããããããã¾ãEndnoteãªã©Wordã¨ã®é£ç¹ããµãã¼ããã¦ããã½ãããããã®ã ãã©ã
ã¾ãè©±ã®æµãçã«ããã§BibTeXã§ããã
åã¯åã ããè«æç®¡çã¯Bibtexå½¢å¼ã§ãã£ã¦ããã®ã§ï¼iBookæä»£ã¯BibDeskãWindowsæä»£ã¯JabrefãMacbookã«æ»ã£ã¦æ¥ãä»ãJabrefï¼ãããããã¡ãªãããæå¤§éã«çãããæãã ã
- åè:
BibTeXã®ä½ããããããã¨è¨ãã¨ã.bibãã¡ã¤ã«ã«ãã¨ãã°ãããªå½¢å¼ã§

è«æãã¼ã¿ãæºãã¦ãããåå¥ã«å²ãæ¯ããã赤åã®è¨å·ãbibtex keyã¨è¨ã£ã¦ãããã使ã£ã¦æä¸ã®å¥½ããªä½ç½®ã§\cite{hogehoge}ã¨ãããã¨...

pdfã«ããæãèªåã§çªå·ãæ¯ãããã

æå¾ã«ãåèæç®ãã¨ãã¦æä¸ã§å¼ç¨ããæç®ããªã¹ãã¢ãããããã ãã©ããã®ããã«ã¯documentæå¾ã®æ¹ã«ã\bibliography{nanntoka.bib}ãã¨ã\bibliographystyle{plain}ããªã©ãåãè¾¼ãã°OKã
ã¡ãªã¿ã«bibliographystyle{unsrt}ã«ããã¨æä¸ã§å¼ç¨ãããé ã«çªå·ãæ¯ãããã®ã§ãåã¯ããã使ã£ã¦ããã
BIBINPUTSãè¨å®ãã
ç°å¢å¤æ°BIBINPUTSã¯ãèªã¿ã«è¡ãã¹ã.bibãã¡ã¤ã«ã®ä½ç½®ãBibTeXã«ç¥ããããã®ã§ããããè¨å®ããªãã¨.bibãã¡ã¤ã«ãã¡ããã¨èªãã§ãããªããç 究室ã®Windowsã¨æ®æ®µä½¿ãã®Macbookã§è«æãã¼ã¿ãåæãããããã«DropBoxãã©ã«ãã«å
¥ãã¦ããã*8
ãªã®ã§ã~/.profile ã«
export BIBINPUTS=/Users/thash/Dropbox/papers/
ã¨è¨å
¥ãã¦ããããã TerminalçµäºããããOSåèµ·åããã¨ãªã»ãããããããããã.zshrcã¨ãã®æ¹ãããã®ããªã
ã³ã³ãã¤ã«
BibTeXã使ã£ãã¨ãã¯ã³ã³ãã¤ã«ãå¤å°é¢åã«ãªã£ã¦ã
platex filename
bibtex filename
platex filename
platex filename
dvipdfmx filename.dvi
ã®é ã¨ãªããçç±ã¯è¯ãç¥ããªãã
ã·ã§ã«ã¹ã¯ãªããã§å¦çãã¾ã¨ãã
platexã¨ãdvipdfmxã¨ããããããããBibTeXã使ãã ãã¨ããã«ããã©ããããã·ã§ã«ã¹ã¯ãªãããæ¸ãã¦ã¾ã¨ãããåã¯ããã¾ã¾ã§è¦ã¦æ¥ãä¸é£ã®æµãã«ä¸éãã¡ã¤ã«ã®åé¤ãopen filename.pdfã³ãã³ããå ãã¦ã次ã®ããã«ãã¦ããã
#!/bin/sh platex filename((æ¡å¼µåã¯ãªãã¦ããã)) bibtex filename platex filename platex filename dvipdfmx filename.dvi rm -rf filename.aux rm -rf filename.dvi rm -rf filename.blg rm -rf filename.bbl rm -rf filename.log rm -rf filename.toc open filename.pdf # ããã㯠open -a Skim.app filename.pdf ãªã©
ããã«é©å½ã«a.shã¨ãååãã¤ãã¦ä¿åããchmod +x a.sh ãã¦å®è¡æ¨©éãä»ãã¦ããã¦ãpdfãä½ãããæå®è¡ããããã«ãããOMakeã§èªåã³ã³ãã¤ã«ããããã«ããã¨ããã«æ¥½ãããªãã ãã©ãããã¯ã¾ãä»åº¦æ°ãåãããã
ãããã
ãã®ã¸ãã®è¨å®ããããããããã°ãã¨ãããã1æ¥ãããããã°ãã°æä½éã®ææ¸ä½æã¯ã§ããããã«ãªãããããªããã¨æããã ããã©ãã ããæãããã£ããããã¡ãã£ã¨Wordã§åºæ¥ãã¢ã¬ãããããã ãã©ã©ãããã®ãã¨ããçªã£è¾¼ã¿ãããã°ãããããé¡ããã¾ã(åå¼·ã«ããªãã®ã§)(ãã¾ãããã¢ãã¯ãªä½¿ãæ¹ã¯æ³å®å¤)ã
TeXã®ãããã¨ãã
å®éã«ä½¿ã£ã¦ã¿ã¦æªãæã¨ãã
å°å ¥ãããã©ããããæ £ããã¾ã§å¤§å¤
æå¿ã«ãã£ã¦pTeXãªã©ã®ã¯ã³ã¯ãªãã¯åããã±ã¼ã¸ãç¨æããã¦ããã¨ã¯è¨ã£ã¦ããããããå°å
¥ããé¢åããããä»®ã«å°å
¥ãçµãã£ã¦ããç´æçã«ä½¿ããããã¥ã¡ã³ãã½ããã¨éã£ã¦ãããç¨åº¦ææ³ã®çè§£ãå¿
è¦ã«ãªããã°ã°ãã°ãããã ãã©ãåæãåããã¾ã§ã¯ã¹ãã¬ã¹æºã¾ãã¨æãã
åã¯ã©ã¡ããã¨ããã¨åºæ¥ãªã人ã®å´ã«è¿ãã¨æãã®ã§ãããã¯é¢åããããªãã¨ãã¿ãã¿æã£ããæåã«è¡ã£ãéãããã®åã®ã¡ãªããã¯ãã£ããã ãã©ãã
äºææ§ãæªã
ä¸ã®ä¸ã®ããã¡ã¯ãã¹ã¿ã³ãã¼ãã¯ãã¯ãMS Wordãææ¸ãWordã§éããã¦ããã®ãã¶ã©ã ããä¼ç¤¾ã«å
¥ã£ããããã¨ã¾ãä½¿ãæ©ä¼ã¯ãªãããã ãå½¹ã«ç«ããªãã ããã¨æãã
å¥ã«å°æ¥çãªè©±ã«éãããã¢ã«ãããã¯ãªç°å¢ã§ãä¸å¸ï¼ææãã婿ï¼ãTeXã使ããªãã¨ã©ããããããªãã
ä»å¾ãããããã¨
- ãã¬ã¼ã³è³æãä½ãæãKeynote/PPTã®ä»£ããã«Beamerã使ã
- OMakeでTeX自動コンパイル
syouå çã¨ãhayamizå çã®èä¸ã追ãããããªããããããããèä¸è¦ãã¦ãªããã©
*1:iWorkãå ¥ãã¦ããã¯ããææ¸ãã§ããã°ä½ã§ãOKã§ããã°Wordããã¬ãã¬ãåãPagesã使ã£ã¦ãããã©
*2:ç ç©¶ã䏿®µè½ãããSnow Leopardã«ã¢ããã°ã¬ã¼ãäºå®
*3:åã¬ãã«ã«ãªãã¨ãã®è¾ºã§æ¢ã«è©°ã¾ãã®ã§ããèªæ ¢ãããªããã©
*4:ããªã¢ã³ãã«ã®æå³ã¯ã°ã°ã£ã¦ãã ãã
*5:大äºãªãã¨ãªã®ã§ãã©ã³ãã§å¼·èª¿ãã¾ãã
*6:ã©ããplatexã®æ®µéã§.bbãã¡ã¤ã«ã®å¤ãå ã«ãããã ãã®å¤§ããã®Boxã空ãã¦ãããã¨æå®ãã¦ã¬ã¤ã¢ã¦ããä½ãããã®å¾ã®dvipdfmxã§å¯¾å¿ããç»åãåãè¾¼ãã§ããããã
*7:ãã®ã¸ãã¨ãè¦ãã¨ãããã: [http://nlab.ee.tokushima-u.ac.jp/nlab/haruna/memo/TeX/TeXtips.html:title]
*8: åè: [http://d.hatena.ne.jp/Hash/20090521/1242937683:title]

