<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">\documentclass[a4paper]{ltjsreport}
\usepackage[unicode]{hyperref}
\usepackage{jslogo} % for \BibTeX
\usepackage{amsmath}
\usepackage[nameinlink]{cleveref}
\newcommand\ClutTeX{Clut\TeX}
\newcommand\texcmd[1]{\texttt{\textbackslash #1}}
\newcommand\texenv[1]{\texttt{#1}}
\newcommand\texpkg[1]{\texttt{#1}}
\newcommand\metavar[1]{\textsf{#1}}
\crefformat{section}{#2ã‚»ã‚¯ã‚·ãƒ§ãƒ³#1#3}
\crefformat{subsection}{#2ã‚µãƒ–ã‚»ã‚¯ã‚·ãƒ§ãƒ³#1#3}

\ltjsetparameter{
  alxspmode={`\-,allow},
  alxspmode={`\\,allow},
  alxspmode={`\.,allow},
  alxspmode={`\{,preonly},
  alxspmode={`\},postonly},
  alxspmode={`\_,allow},
  alxspmode={`\$,allow},
  alxspmode={`\!,allow},
  alxspmode={`\*,allow},
  alxspmode={`\^,allow},
  alxspmode={`\:,allow},
  alxspmode={`\#,allow},
  alxspmode={`\/,allow},
  alxspmode={`\&lt;,preonly},
  alxspmode={`\&gt;,postonly},
}

\title{\ClutTeX{}ãƒžãƒ‹ãƒ¥ã‚¢ãƒ«\\ï¼ˆãƒãƒ¼ã‚¸ãƒ§ãƒ³0.6ï¼‰}%VERSION
\author{ARATA Mizuki}
\date{2023å¹´11æœˆ18æ—¥}

\begin{document}
\maketitle
\tableofcontents

\chapter{\ClutTeX{}ã®æ¦‚è¦}
\ClutTeX{}ã¯ã€\LaTeX{}å‡¦ç†ã®è‡ªå‹•åŒ–ãƒ„ãƒ¼ãƒ«ã§ã‚ã‚‹ã€‚
åŸºæœ¬çš„ãªç‰¹å¾´ã¨ã—ã¦ã€
\begin{itemize}
\item ä½œæ¥­ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªã‚’\texttt{.aux}ã‚„\texttt{.log}ç­‰ã®ã€Œä½™è¨ˆãªã€ãƒ•ã‚¡ã‚¤ãƒ«ã§æ•£ã‚‰ã‹ã•ãªã„
\item ï¼ˆç›¸äº’å‚ç…§ã®è§£æ±ºãªã©ã§ï¼‰è¤‡æ•°å›žå‡¦ç†ã‚’è¡Œã†å¿…è¦ãŒã‚ã‚‹å&nbsp;´åˆã«ã€å¿…è¦ãªå›žæ•°ã&nbsp;ã‘è‡ªå‹•ã§å‡¦ç†ã™ã‚‹
\item å…¥åŠ›ãƒ•ã‚¡ã‚¤ãƒ«ã‚’ç›£è¦–ã—ã€å¤‰æ›´ãŒã‚ã£ãŸå&nbsp;´åˆã«è‡ªå‹•ã§å†å‡¦ç†ã™ã‚‹ï¼ˆ\texttt{--watch}ã‚ªãƒ—ã‚·ãƒ§ãƒ³\footnote{Unixç³»OSã§ã¯ã€åˆ¥é€”ãƒ—ãƒ­ã‚°ãƒ©ãƒ&nbsp;ãŒå¿…è¦ã€‚}ï¼‰
\item MakeIndex, \BibTeX, Biberç­‰ã®ã‚³ãƒžãƒ³ãƒ‰ã‚’è‡ªå‹•ã§å®Ÿè¡Œã™ã‚‹ï¼ˆ\texttt{--makeindex}ã‚ªãƒ—ã‚·ãƒ§ãƒ³, \texttt{--bibtex}ã‚ªãƒ—ã‚·ãƒ§ãƒ³, \texttt{--biber}ã‚ªãƒ—ã‚·ãƒ§ãƒ³ï¼‰
\item p\TeX ç³»åˆ—ã®å‡¦ç†ç³»ã§PDFã‚’ç”Ÿæˆã™ã‚‹å&nbsp;´åˆã€åˆ¥é€”\texttt{dvipdfmx}ã‚’å®Ÿè¡Œã™ã‚‹å¿…è¦ãŒãªã„ï¼ˆè‡ªå‹•ã§\texttt{dvipdfmx}ã‚’å®Ÿè¡Œã™ã‚‹ï¼‰
  ã‚‚ã—ã‚‚DVIãƒ•ã‚¡ã‚¤ãƒ«ãŒæ¬²ã—ã„ã®ã§ã‚ã‚Œã°ã€\texttt{--output-format=dvi}ã‚’æŒ‡å®šã™ã‚Œã°è‰¯ã„ã€‚
\end{itemize}
ãªã©ãŒã‚ã‚‹ã€‚

\LaTeX{}å‡¦ç†ã®è‡ªå‹•åŒ–ãƒ„ãƒ¼ãƒ«ã¨ã—ã¦ã¯\texttt{latexmk}ãŒæ™®åŠã—ã¦ã„ã‚‹ã€‚
ãã®ã‚ˆã†ãªæ—¢å­˜ã®ãƒ„ãƒ¼ãƒ«ã«å¯¾ã™ã‚‹\ClutTeX{}ã®æœ€å¤§ã®å·®åˆ¥åŒ–ãƒã‚¤ãƒ³ãƒˆã¯ã€Œä½œæ¥­ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªã‚’æ•£ã‚‰ã‹ã•ãªã„ã€ã“ã¨ã§ã‚ã‚‹ã€‚

\texttt{.aux}ç­‰ã®è£œåŠ©ãƒ•ã‚¡ã‚¤ãƒ«ã¯ã€Œå‡¦ç†å¾Œã«æ¶ˆã™ã€ã®ã§ã¯ãªãã€ã€Œéš”é›¢ã•ã‚ŒãŸå&nbsp;´æ‰€ã«ç”Ÿæˆã•ã›ã‚‹ã€ã€‚
ãã®ãŸã‚ã€ã€Œç›¸äº’å‚ç…§ã‚’ä½¿ã†æ–‡æ›¸ã®å‡¦ç†ã«é–¢ã—ã¦ã€\ClutTeX{}ã‚’ä½¿ã‚ãªã„å&nbsp;´åˆã«æ¯”ã¹ã¦\ClutTeX{}ã‚’ä½¿ã†å&nbsp;´åˆã«å®Ÿè¡Œå›žæ•°ãŒå¢—ãˆã‚‹ã€ã‚ˆã†ãªã“ã¨ã¯åŸºæœ¬çš„ã«ã¯ãªã„\footnote{PCã®å†èµ·å‹•ç›´å¾Œãªã©ã€ãƒ†ãƒ³ãƒãƒ©ãƒªãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªãƒ¼ãŒç©ºã®å&nbsp;´åˆã‚’é™¤ãã€‚}ã€‚

\chapter{\ClutTeX{}ã®ä½¿ã„æ–¹}
\section{ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«}
\ClutTeX{}ã¯æœ€æ–°ã®\TeX\ Liveã«åŽéŒ²ã•ã‚Œã¦ã„ã‚‹ã€‚
ã‚ˆã£ã¦ã€\TeX\ Liveã‚’åˆ©ç”¨ã—ã¦ã„ã‚‹æ–¹ã¯ã€\TeX\ Liveã®æ›´æ–°ï¼ˆã‚³ãƒžãƒ³ãƒ‰ãªã‚‰\texttt{tlmgr upgrade --all}ï¼‰ã‚’è¡Œãˆã°\ClutTeX{}ãŒã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«ã•ã‚Œã‚‹ã€‚

ä½•ã‚‰ã‹ã®ç†ç”±ã«ã‚ˆã‚Šæ‰‹å‹•ã§ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«ã—ãŸã„å&nbsp;´åˆã¯ã€GitHub\footnote{\url{https://github.com/minoki/cluttex}}ã‹ã‚‰ã‚¢ãƒ¼ã‚«ã‚¤ãƒ–ã‚’ãƒ€ã‚¦ãƒ³ãƒ­ãƒ¼ãƒ‰ã—ã€ãã®ä¸­ã«ã‚ã‚‹\texttt{bin/cluttex}ã‹\texttt{bin/cluttex.bat}ã‚’PATHã®é€šã£ãŸå&nbsp;´æ‰€ã«ã‚³ãƒ”ãƒ¼ã™ã‚‹ã€‚

\section{ã‚³ãƒžãƒ³ãƒ‰ãƒ©ã‚¤ãƒ³}
åŸºæœ¬çš„ãªä½¿ã„æ–¹ï¼š
\begin{center}
  \texttt{cluttex -e \metavar{ENGINE} \metavar{OPTIONs} [--] \metavar{INPUT}.tex}
\end{center}

åŸºæœ¬çš„ãªã‚ªãƒ—ã‚·ãƒ§ãƒ³ï¼š
\begin{description}
\item[\texttt{-e}, \texttt{--engine=\metavar{ENGINE}}]
  ä½¿ç”¨ã™ã‚‹\TeX{}ã‚¨ãƒ³ã‚¸ãƒ³ãƒ»ãƒ•ã‚©ãƒ¼ãƒžãƒƒãƒˆã‚’æŒ‡å®šã™ã‚‹ã€‚
  \metavar{ENGINE}ã¯ä»¥ä¸‹ã®ã„ãšã‚Œã‹ã‚’æŒ‡å®šã™ã‚‹ï¼š
  \texttt{pdflatex}, \texttt{pdftex},
  \texttt{lualatex}, \texttt{luatex}, \texttt{luajittex},
  \texttt{xelatex}, \texttt{xetex},
  \texttt{latex}, \texttt{etex}, \texttt{tex},
  \texttt{platex}, \texttt{eptex}, \texttt{ptex},
  \texttt{uplatex}, \texttt{euptex}, \texttt{uptex}.
  å¿…é&nbsp;ˆã€‚
\item[\texttt{-o}, \texttt{--output=\metavar{FILE}}]
  å‡ºåŠ›ãƒ•ã‚¡ã‚¤ãƒ«åã‚’æŒ‡å®šã™ã‚‹ã€‚
  ãƒ‡ãƒ•ã‚©ãƒ«ãƒˆï¼š\texttt{\metavar{JOBNAME}.\metavar{FORMAT}}
\item[\texttt{--fresh}]
  è£œåŠ©ãƒ•ã‚¡ã‚¤ãƒ«ã‚’å‰Šé™¤ã—ã¦ã‹ã‚‰å‡¦ç†ã‚’è¡Œã†ã€‚
  \texttt{--output-directory}ã¨ã®ä½µç”¨ã¯ã§ããªã„ã€‚
\item[\texttt{--max-iterations=\metavar{N}}]
  ç›¸äº’å‚ç…§ã®è§£æ±ºç­‰ã®ãŸã‚ã«æœ€å¤§ä½•å›žå‡¦ç†ã‚’è¡Œã†ã‹ã‚’æŒ‡å®šã™ã‚‹ã€‚
  ãƒ‡ãƒ•ã‚©ãƒ«ãƒˆï¼š3
\item[\texttt{--watch[=\metavar{ENGINE}]}]
  å…¥åŠ›ãƒ•ã‚¡ã‚¤ãƒ«ã‚’ç›£è¦–ã™ã‚‹ã€‚
  åˆ¥é€”ã€\texttt{fswatch}ãƒ—ãƒ­ã‚°ãƒ©ãƒ&nbsp;ã¾ãŸã¯\texttt{inotifywait}ãƒ—ãƒ­ã‚°ãƒ©ãƒ&nbsp;ãŒå¿…è¦ã¨ãªã‚‹å&nbsp;´åˆãŒã‚ã‚‹ã€‚
  è©³ã—ãã¯\cref{sec:watch-mode}ã‚’å‚ç…§ã€‚
\item[\texttt{--color[=\metavar{WHEN}]}]
  ã‚¿ãƒ¼ãƒŸãƒŠãƒ«ã¸ã®å‡ºåŠ›ã‚’è‰²ä»˜ã‘ã™ã‚‹ã€‚
  \metavar{WHEN}ã¯\texttt{always}, \texttt{auto}, \texttt{never}ã®ã„ãšã‚Œã‹ã‚’æŒ‡å®šã™ã‚‹ã€‚
  \texttt{--color}è‡ªä½“ã‚’çœç•¥ã—ãŸå&nbsp;´åˆã¯\texttt{auto}, \metavar{WHEN}ã‚’çœç•¥ã—ãŸå&nbsp;´åˆã¯\texttt{always}ãŒä½¿ç”¨ã•ã‚Œã‚‹ã€‚
\item[\texttt{--includeonly=\metavar{NAMEs}}]
  \texttt{\texcmd{includeonly}\{\metavar{NAMEs}\}}ã‚’æŒ¿å…¥ã™ã‚‹ã€‚
\item[\texttt{--make-depends=\metavar{FILE}}]
  Makefileç”¨ã®ä¾å­˜é–¢ä¿‚ã‚’\metavar{FILE}ã«æ›¸ãå‡ºã™ã€‚
\item[\texttt{--engine-executable=\metavar{COMMAND}}]
  å®Ÿéš›ã«ä½¿ã†\TeX{}ã‚³ãƒžãƒ³ãƒ‰ã‚’æŒ‡å®šã™ã‚‹ã€‚
\item[\texttt{--tex-option=\metavar{OPTION}}, \texttt{--tex-options=\metavar{OPTIONs}}]
  \TeX{}ã«è¿½åŠ&nbsp;ã®ã‚ªãƒ—ã‚·ãƒ§ãƒ³ã‚’æ¸¡ã™ã€‚
\item[\texttt{--dvipdfmx-option=\metavar{OPTION}}, \texttt{--dvipdfmx-options=\metavar{OPTIONs}}]
  \texttt{dvipdfmx}ã«è¿½åŠ&nbsp;ã®ã‚ªãƒ—ã‚·ãƒ§ãƒ³ã‚’æ¸¡ã™ã€‚
\item[\texttt{--[no-]change-directory}]
  \TeX{}ã®å®Ÿè¡Œæ™‚ã«ã€å‡ºåŠ›ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªã«ç§»å‹•ã™ã‚‹ã€‚
  ã‚·ã‚§ãƒ«ã‚¨ã‚¹ã‚±ãƒ¼ãƒ—ã™ã‚‹ãƒ‘ãƒƒã‚±ãƒ¼ã‚¸ã‚’åˆ©ç”¨ã™ã‚‹å&nbsp;´åˆã«æœ‰ç”¨ã¨ãªã‚‹å¯èƒ½æ€§ãŒã‚ã‚‹ã€‚
\item[\texttt{-h}, \texttt{--help}]
\item[\texttt{-v}, \texttt{--version}]
\item[\texttt{-V}, \texttt{--verbose}]
\item[\texttt{--print-output-directory}]
  \texttt{--output-directory}ã®å€¤ã‚’æ¨™æº–å‡ºåŠ›ã«å‡ºåŠ›ã—ã¦ã€ãã®ã¾ã¾çµ‚äº†ã™ã‚‹ã€‚
\item[\texttt{--package-support=PKG1[,PKG2,...,PKGn]}]
  å¤–éƒ¨ã‚³ãƒžãƒ³ãƒ‰ã‚’å®Ÿè¡Œã™ã‚‹ãƒ‘ãƒƒã‚±ãƒ¼ã‚¸ç”¨ã®å€‹åˆ¥ã®å¯¾ç­–ã‚’æœ‰åŠ¹ã«ã™ã‚‹ã€‚
  ç¾åœ¨ã®ã¨ã“ã‚ã€\texttt{minted}ã¨\texttt{epstopdf}ã«å¯¾å¿œã—ã¦ã„ã‚‹ã€‚
\item[\texttt{--check-driver=DRIVER}]
  ã„ãã¤ã‹ã®ãƒ‘ãƒƒã‚±ãƒ¼ã‚¸ã«ã¤ã„ã¦ã€æ­£ã—ã„ãƒ‰ãƒ©ã‚¤ãƒãƒ¼ãƒ•ã‚¡ã‚¤ãƒ«ãŒèª­ã¿è¾¼ã¾ã‚Œã¦ã„ã‚‹ã“ã¨ã‚’æ¤œæŸ»ã™ã‚‹ã€‚
  \metavar{DRIVER}ã¯\texttt{dvipdfmx}, \texttt{dvips}, or \texttt{dvisvgm}ã®ã„ãšã‚Œã‹ã§ã‚ã‚‹ã€‚
  ã“ã®ã‚ªãƒ—ã‚·ãƒ§ãƒ³ã¯\texttt{--output-format=dvi}ãŒæŒ‡å®šã•ã‚ŒãŸå&nbsp;´åˆã«ã®ã¿æŒ‡å®šã§ãã‚‹ã€‚
\end{description}

è£œåŠ©ã‚³ãƒžãƒ³ãƒ‰å®Ÿè¡Œç”¨ã®ã‚ªãƒ—ã‚·ãƒ§ãƒ³ï¼š
\begin{description}
\item[\texttt{--makeindex=\metavar{COMMAND}}]
  MakeIndexã‚’å®Ÿè¡Œã™ã‚‹ã€‚
\item[\texttt{--bibtex=\metavar{COMMAND}}]
  \BibTeX{}ã‚’å®Ÿè¡Œã™ã‚‹ã€‚
\item[\texttt{--biber[=\metavar{COMMAND}]}]
  Biberã‚’å®Ÿè¡Œã™ã‚‹ã€‚
  \metavar{COMMAND}ã®ãƒ‡ãƒ•ã‚©ãƒ«ãƒˆå€¤ï¼š\texttt{biber}
\item[\texttt{--makeglossaries[=\metavar{COMMAND}]}]
  makeglossariesã‚’å®Ÿè¡Œã™ã‚‹ã€‚
  ã“ã®ã‚ªãƒ—ã‚·ãƒ§ãƒ³ã¯è©¦é¨“çš„ãªã‚‚ã®ã§ã‚ã‚‹ã€‚
\end{description}

\TeX{}äº’æ›ã‚ªãƒ—ã‚·ãƒ§ãƒ³ï¼š
\begin{description}
\item[\texttt{--[no-]shell-escape}]
\item[\texttt{--shell-restricted}]
\item[\texttt{--synctex=\metavar{NUMBER}}]
  Sync\TeX{}ç”¨ã®ãƒ•ã‚¡ã‚¤ãƒ«ã‚’ç”Ÿæˆã™ã‚‹ã€‚
  æ³¨æ„ç‚¹ã¨ã—ã¦ã€\texttt{.synctex.gz}ãƒ•ã‚¡ã‚¤ãƒ«ã¯\texttt{.pdf}ãƒ•ã‚¡ã‚¤ãƒ«ã¨åŒã˜ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªã«ç”Ÿæˆã•ã‚Œã‚‹ã€‚
  è©³ã—ãã¯\cref{sec:synctex}ã‚’å‚ç…§ã€‚
\item[\texttt{--[no-]file-line-error}]
  ãƒ‡ãƒ•ã‚©ãƒ«ãƒˆï¼šYes
\item[\texttt{--[no-]halt-on-error}]
  ãƒ‡ãƒ•ã‚©ãƒ«ãƒˆï¼šYes
\item[\texttt{--interaction=\metavar{STRING}}]
  \metavar{STRING}ã¯\texttt{batchmode}, \texttt{nonstopmode}, \texttt{scrollmode}, \texttt{errorstopmode}ã®ã„ãšã‚Œã‹ã€‚
  ãƒ‡ãƒ•ã‚©ãƒ«ãƒˆï¼š\texttt{nonstopmode}
\item[\texttt{--jobname=\metavar{STRING}}]
\item[\texttt{--fmt=\metavar{FORMAT}}]
\item[\texttt{--output-directory=\metavar{DIR}}]
  ï¼ˆ\TeX{}å‡¦ç†ç³»ã«ã¨ã£ã¦ã®ï¼‰å‡ºåŠ›ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªã‚’æŒ‡å®šã™ã‚‹ã€‚
  è£œåŠ©ãƒ•ã‚¡ã‚¤ãƒ«ã¯ã“ã“ã§æŒ‡å®šã•ã‚ŒãŸãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªã«ç”Ÿæˆã•ã‚Œã‚‹ã€‚
  ãƒ‡ãƒ•ã‚©ãƒ«ãƒˆï¼šãƒ†ãƒ³ãƒãƒ©ãƒªãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªã®ã©ã“ã‹
\item[\texttt{--output-format=\metavar{FORMAT}}]
  å‡ºåŠ›ãƒ•ã‚©ãƒ¼ãƒžãƒƒãƒˆã‚’æŒ‡å®šã™ã‚‹ã€‚
  \texttt{pdf}ã¾ãŸã¯\texttt{dvi}ã‚’æŒ‡å®šã§ãã‚‹ã€‚
  ãƒ‡ãƒ•ã‚©ãƒ«ãƒˆï¼š\texttt{pdf}
\end{description}

é•·ã„ã‚ªãƒ—ã‚·ãƒ§ãƒ³ã¯åŸºæœ¬çš„ã«ãƒã‚¤ãƒ•ãƒ³ã‚’äºŒã¤å¿…è¦ã¨ã™ã‚‹ãŒã€\TeX{}äº’æ›ã‚ªãƒ—ã‚·ãƒ§ãƒ³ã«é–¢ã—ã¦ã¯ãƒã‚¤ãƒ•ãƒ³ãŒä¸€ã¤ã§ã‚‚å—ç†ã•ã‚Œã‚‹ï¼ˆä¾‹ï¼š\texttt{-color}ã¯å—ç†ã•ã‚Œãªã„ãŒ\texttt{-synctex=1}ã¯å—ç†ã•ã‚Œã‚‹ï¼‰ã€‚
çŸ­ã„ã‚ªãƒ—ã‚·ãƒ§ãƒ³ã‚’è¤‡æ•°ç¹‹ã’ã‚‹æ›¸ãæ–¹ã«ã¯å¯¾å¿œã—ã¦ã„ãªã„ï¼ˆä¾‹ï¼š\texttt{-Ve pdflatex}ã¨ã¯æ›¸ã‘ãªã„ï¼‰ã€‚

\section{Sync\TeX}\label{sec:synctex}
\texttt{--synctex=1}ã‚ªãƒ—ã‚·ãƒ§ãƒ³ã‚’ä½¿ã†ã¨Sync\TeX{}ç”¨ã®ãƒ•ã‚¡ã‚¤ãƒ«ã‚’ç”Ÿæˆã•ã›ã‚‹ã€‚

\ClutTeX{}ã®ãƒ¢ãƒƒãƒˆãƒ¼ã¯ã€Œä½œæ¥­ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªã‚’æ±šã•ãªã„ã€ã§ã‚ã‚‹ãŒã€\texttt{.synctex.gz}ãƒ•ã‚¡ã‚¤ãƒ«ã«é–¢ã—ã¦ã¯PDFãƒ•ã‚¡ã‚¤ãƒ«ã¨åŒã˜å&nbsp;´æ‰€ã«ç”Ÿæˆã•ã‚Œã‚‹ã€‚
ã“ã‚Œã¯ã€\texttt{.synctex.gz}ãƒ•ã‚¡ã‚¤ãƒ«ãŒPDFãƒ•ã‚¡ã‚¤ãƒ«ã¨åŒã˜å&nbsp;´æ‰€ã«ãªã„ã¨Sync\TeX{}ãŒå‹•ä½œã—ãªã„ãŸã‚ã§ã‚ã‚‹ã€‚

\section{ç›£è¦–ãƒ¢ãƒ¼ãƒ‰}\label{sec:watch-mode}
\ClutTeX{}ã«\texttt{--watch}ã‚ªãƒ—ã‚·ãƒ§ãƒ³ã‚’æŒ‡å®šã—ã¦èµ·å‹•ã—ãŸå&nbsp;´åˆã€æ–‡æ›¸ã®å‡¦ç†å¾Œã«\emph{ç›£è¦–ãƒ¢ãƒ¼ãƒ‰}ã«å…¥ã‚‹ã€‚

Windowsä¸Šã§ã¯ã€\ClutTeX{}å˜ä½“ã§ãƒ•ã‚¡ã‚¤ãƒ«ã‚·ã‚¹ãƒ†ãƒ&nbsp;ã®ç›£è¦–ã‚’è¡Œã†ã€‚
ä¸€æ–¹ã§ã€ãã‚Œä»¥å¤–ã®OSï¼ˆUnixç³»ï¼‰ã§ã¯ã€\texttt{fswatch}\footnote{\url{http://emcrisostomo.github.io/fswatch/}}ãƒ—ãƒ­ã‚°ãƒ©ãƒ&nbsp;ã¾ãŸã¯\texttt{inotifywait}ãƒ—ãƒ­ã‚°ãƒ©ãƒ&nbsp;ãŒäºˆã‚ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«ã•ã‚Œã¦ã„ã‚‹å¿…è¦ãŒã‚ã‚‹ã€‚
è£œåŠ©ãƒ—ãƒ­ã‚°ãƒ©ãƒ&nbsp;ã¯è‡ªå‹•æ¤œå‡ºã•ã‚Œã‚‹ãŒã€\metavar{ENGINE}å¼•æ•°ã§æ˜Žç¤ºçš„ã«æŒ‡å®šã™ã‚‹ã“ã¨ã‚‚ã§ãã‚‹ã€‚

\section{MakeIndexã‚„\BibTeX}
MakeIndexã‚„\BibTeX ã‚’ä½¿ã£ã¦å‡¦ç†ã‚’è¡Œã†å&nbsp;´åˆã¯ã€\texttt{--makeindex}ã‚„\texttt{--bibtex}ç­‰ã®ã‚ªãƒ—ã‚·ãƒ§ãƒ³ã‚’æŒ‡å®šã™ã‚‹ã€‚
ã‚ªãƒ—ã‚·ãƒ§ãƒ³ã®å¼•æ•°ã¨ã—ã¦ã¯ã€å®Ÿéš›ã«å‡¦ç†ã«ä½¿ã†ã‚³ãƒžãƒ³ãƒ‰åï¼ˆ\texttt{makeindex}ã‚„\texttt{mendex}ï¼‰ã‚’æŒ‡å®šã™ã‚‹ã€‚

Biberã‚’ä½¿ã£ã¦æ–‡çŒ®ãƒªã‚¹ãƒˆã‚’å‡¦ç†ã™ã‚‹å&nbsp;´åˆã€ä½¿ç”¨ã™ã¹ãã‚ªãƒ—ã‚·ãƒ§ãƒ³ã¯\texttt{--bibtex=biber}ã§ã¯ãªã\texttt{--biber}ã§ã‚ã‚‹ã€‚

%ç´¢å¼•ã‚„æ–‡çŒ®ãƒªã‚¹ãƒˆã‚’ä½¿ç”¨ã™ã‚‹æ–‡æ›¸ã§ã‚ã£ã¦ã‚‚ã€\texttt{--includeonly}ã‚’æŒ‡å®šã™ã‚‹å&nbsp;´åˆã¯\texttt{--makeindex}ã‚„\texttt{--bibtex}ç­‰ã®ã‚ªãƒ—ã‚·ãƒ§ãƒ³ã¯æŒ‡å®šã—ãªã„ã®ãŒå‰ã§ã‚ã‚‹ã€‚

\section{å¤§è¦æ¨¡ãªæ–‡æ›¸ã‚’æ›¸ãå&nbsp;´åˆ}
\LaTeX{}ã§å¤§ããªæ–‡æ›¸ã‚’æ›¸ãå&nbsp;´åˆã¯\texcmd{include}ã‚³ãƒžãƒ³ãƒ‰ã«ã‚ˆã£ã¦ãƒ•ã‚¡ã‚¤ãƒ«åˆ†å‰²ã‚’è¡Œã†ã“ã¨ãŒå¤šã„ã&nbsp;ã‚ã†ã€‚
ã“ã®éš›ã«\texcmd{includeonly}ã‚³ãƒžãƒ³ãƒ‰ã‚’ä½¿ã†ã¨ã€å‡¦ç†æ™‚ã«ã€Œä¸€éƒ¨ã®ãƒ•ã‚¡ã‚¤ãƒ«ã—ã‹å‡¦ç†ã—ãªã„ã€ã‚ˆã†ã«ã§ãã¦ã€å‡¦ç†æ™‚é–“ã®å‰Šæ¸›ãŒã§ãã‚‹ã€‚
ã—ã‹ã—ã€\texcmd{includeonly}ã‚³ãƒžãƒ³ãƒ‰ã‚’\TeX{}ã‚½ãƒ¼ã‚¹ä¸­ã«è¨˜è¿°ã—ã¦ã„ã¡ã„ã¡åˆ‡ã‚Šæ›¿ãˆã‚‹ã®ã¯é¢å€’ã§ã‚ã‚‹ã€‚

ãã“ã§ã€\ClutTeX{}ã§ã¯\texcmd{includeonly}ã‚³ãƒžãƒ³ãƒ‰ã‚’\texttt{--includeonly}ã‚ªãƒ—ã‚·ãƒ§ãƒ³ã«ã‚ˆã£ã¦æŒ‡å®šã§ãã‚‹ã‚ˆã†ã«ã—ãŸã€‚
ä½¿ç”¨ä¾‹ã¯\cref{sec:makefile-example}ã‚’å‚ç…§ã›ã‚ˆã€‚

Tips: \texttt{includeonly}ã‚’ä½¿ç”¨ã™ã‚‹éš›ã¯ã€\texttt{--makeindex}ç­‰ã®ã‚ªãƒ—ã‚·ãƒ§ãƒ³ã¯ä½¿ç”¨ã—ãªã„æ–¹ãŒè‰¯ã„ã€‚

å‡¦ç†æ™‚é–“ã®å‰Šæ¸›æ–¹æ³•ã¨ã—ã¦ã€\texttt{--max-iterations=1}ã‚’æŒ‡å®šã™ã‚‹ã¨ã„ã†æ‰‹ã‚‚ã‚ã‚‹ã€‚
ãƒ‡ãƒ•ã‚©ãƒ«ãƒˆã§ã¯\ClutTeX{}ã¯ç›¸äº’å‚ç…§ç­‰ã‚’æ­£ã—ãã™ã‚‹ãŸã‚ã«\TeX{}ã‚’è¤‡æ•°å›žå®Ÿè¡Œã™ã‚‹ã€‚
ã&nbsp;ãŒã€å¤§è¦æ¨¡ãªæ–‡æ›¸ã§ã‚ã‚Œã°\TeX{}ã‚’ä¸€å›žå®Ÿè¡Œã™ã‚‹ã®ã«ã¯æ•°åç§’ã‚„æ•°åˆ†ã‹ã‹ã‚Šã€è¤‡æ•°å›žå®Ÿè¡Œã™ã‚Œã°ãã®æ•°å€ã®æ™‚é–“ãŒã‹ã‹ã‚‹ã€‚
ä½œæ¥­ä¸­ã®æ–‡æ›¸ã«é–¢ã—ã¦ãã‚Œã&nbsp;ã‘ã®æ™‚é–“ã‚’ã‹ã‘ã¦ç›¸äº’å‚ç…§ç­‰ã‚’æ­£ã—ãã™ã‚‹ã®ã¯æ™‚é–“ã®ç„¡é§„ã§ã‚ã‚ã†ã€‚
ã§ã‚ã‚Œã°ã€ä½œæ¥­ä¸­ã®æ–‡æ›¸ã«é–¢ã—ã¦ã¯\texttt{--max-iterations=1}ã‚’æŒ‡å®šã—ã¦\TeX{}ã®å®Ÿè¡Œå›žæ•°ã‚’æœ€å°é™ã«æ­¢ã‚ã‚‹ã“ã¨ãŒæœ‰åŠ¹ã¨è€ƒãˆã‚‰ã‚Œã‚‹ã€‚

\section{Makefileã¨çµ„ã¿åˆã‚ã›ã‚‹}\label{sec:makefile-example}
å„ãƒ—ãƒ­ã‚¸ã‚§ã‚¯ãƒˆã«å¿œã˜ãŸã‚³ãƒžãƒ³ãƒ‰ã‚’æ¯Žå›žæ‰“ã¡è¾¼ã‚€ã®ã¯å¤§å¤‰ãªã®ã§ã€Makefileã¨çµ„ã¿åˆã‚ã›ã‚‹ã¨è‰¯ã„ã&nbsp;ã‚ã†ã€‚
ä¾‹ï¼š
\begin{verbatim}
main.pdf: main.tex chap1.tex chap2.tex
    cluttex -e lualatex -o $@ --makeindex=mendex $&lt;

main-preview.pdf: main.tex chap1.tex chap2.tex
    cluttex -e lualatex -o $@ --makeindex=mendex --max-iterations=1 $&lt;

chap1-preview.pdf: main.tex chap1.tex
    cluttex -e lualatex -o $@ --max-iterations=1 --includeonly=chap1 $&lt;

chap2-preview.pdf: main.tex chap2.tex
    cluttex -e lualatex -o $@ --max-iterations=1 --includeonly=chap2 $&lt;
\end{verbatim}

\texttt{--make-depends}ã‚ªãƒ—ã‚·ãƒ§ãƒ³ã‚’ä½¿ã†ã¨ã€ä¾å­˜é–¢ä¿‚ã‚’Makefileã®ãƒ«ãƒ¼ãƒ«ã¨ã—ã¦ãƒ•ã‚¡ã‚¤ãƒ«ã«æ›¸ãå‡ºã™ã“ã¨ãŒã§ãã‚‹ã€‚
ã“ã‚Œã‚’ä½¿ã†ã¨ã€\texttt{main.tex}, \texttt{chap1.tex}, \texttt{chap2.tex}ã®3ã¤ã®ãƒ•ã‚¡ã‚¤ãƒ«ã‹ã‚‰ãªã‚‹æ–‡æ›¸ã‚’ä»¥ä¸‹ã®Makefileã§å‡¦ç†ã•ã›ã‚‹ã“ã¨ãŒã§ãã‚‹ã€‚
ã“ã®éš›ã€\texttt{main.pdf}ã®ä¾å­˜å…ˆã«\texttt{chap1.tex}ã¨\texttt{chap2.tex}ã‚’æ˜Žç¤ºã—ãªãã¦ã‚‚è‰¯ã„ã€‚

\begin{verbatim}
main.pdf: main.tex
    cluttex -e lualatex -o $@ --make-depends=main.pdf.dep $&lt;

-include main.pdf.dep
\end{verbatim}

ãŸã&nbsp;ã—ã€\texttt{--make-depends}ã‚ªãƒ—ã‚·ãƒ§ãƒ³ã¯ã¾ã&nbsp;å®Ÿé¨“çš„ãªã‚‚ã®ã§ã‚ã‚Šã€\texttt{--makeindex}ç­‰ã®ä»–ã®æ©Ÿèƒ½ã¨ã®çµ„ã¿åˆã‚ã›ãŒã†ã¾ãå‹•ã‹ãªã‹ã£ãŸã‚Šã€å°†æ¥ã®ãƒãƒ¼ã‚¸ãƒ§ãƒ³ã§ä»•æ§˜ãŒå¤‰æ›´ã•ã‚Œã‚‹ã‹ã‚‚ã—ã‚Œãªã„ã€‚

\section{å‡ºåŠ›ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªã«ã¤ã„ã¦}
ãƒ‡ãƒ•ã‚©ãƒ«ãƒˆã§ã¯ã€\texttt{.aux}ãƒ•ã‚¡ã‚¤ãƒ«ç­‰ã®è£œåŠ©ãƒ•ã‚¡ã‚¤ãƒ«ã¯ã€ãƒ†ãƒ³ãƒãƒ©ãƒªãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªä»¥ä¸‹ã®é©å½“ãªãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªã«ç”Ÿæˆã•ã‚Œã‚‹ã€‚
ã“ã®ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªåã¯ã€ä»¥ä¸‹ã®3è¦ç´&nbsp;ã«ä¾å­˜ã™ã‚‹ï¼š
\begin{itemize}
\item å…¥åŠ›ãƒ•ã‚¡ã‚¤ãƒ«ã®çµ¶å¯¾ãƒ‘ã‚¹
\item \texttt{--jobname}ã‚ªãƒ—ã‚·ãƒ§ãƒ³
\item \texttt{--engine}ã‚ªãƒ—ã‚·ãƒ§ãƒ³
\end{itemize}
ä¸€æ–¹ã€ä»¥ä¸‹ã®è¦ç´&nbsp;ã¯ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªåã«å½±éŸ¿ã—ãªã„ï¼š
\begin{itemize}
\item \texttt{--includeonly}
\item \texttt{--makeindex}, \texttt{--bibtex}, \texttt{--biber}, \texttt{--makeglossaries}
\end{itemize}

ã‚‚ã—ä½•ã‚‰ã‹ã®äº‹æƒ…ã§è‡ªå‹•ç”Ÿæˆã•ã‚ŒãŸå‡ºåŠ›ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªã®ä½ç½®ã‚’çŸ¥ã‚ŠãŸã‘ã‚Œã°ã€\ClutTeX{}ã‚’\texttt{--print-output-directory}ã‚ªãƒ—ã‚·ãƒ§ãƒ³ã‚’ä½¿ã†ã¨ã‚ˆã„ã€‚
ä¾‹ãˆã°ã€Makefileã®\texttt{clean}ã‚¿ãƒ¼ã‚²ãƒƒãƒˆã¯æ¬¡ã®ã‚ˆã†ã«æ›¸ã‘ã‚‹ï¼š
\begin{verbatim}
clean:
    -rm -rf $(shell cluttex -e pdflatex --print-output-directory main.tex)
    -rm main.pdf
\end{verbatim}

å‡ºåŠ›ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªã«ç”Ÿæˆã•ã‚ŒãŸè£œåŠ©ãƒ•ã‚¡ã‚¤ãƒ«ã¯ã€\texttt{--fresh}ã‚ªãƒ—ã‚·ãƒ§ãƒ³ã‚’æŒ‡å®šã—ãªã„é™ã‚Šã€\ClutTeX{}ãŒæ¶ˆåŽ»ã™ã‚‹ã“ã¨ã¯ãªã„ã€‚
ä¸€æ–¹ã€ãƒ†ãƒ³ãƒãƒ©ãƒªãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªã‚’ä½¿ç”¨ã™ã‚‹ã¨ã„ã†ã“ã¨ã¯ã€PCã®å†èµ·å‹•æ™‚ã«è£œåŠ©ãƒ•ã‚¡ã‚¤ãƒ«ãŒå‰Šé™¤ã•ã‚Œã‚‹å¯èƒ½æ€§ãŒã‚ã‚‹ã¨ã„ã†ã“ã¨ã§ã‚‚ã‚ã‚‹ã€‚

\section{ã‚¨ã‚¤ãƒªã‚¢ã‚¹}
Unixç”¨ã‚³ãƒžãƒ³ãƒ‰ã®ä¸­ã«ã¯ã€è‡ªèº«ã®åå‰ã«ã‚ˆã£ã¦æŒ™å‹•ã‚’å¤‰ãˆã‚‹ã‚‚ã®ãŒã‚ã‚‹ã€‚
ã¤ã¾ã‚Šã€ã‚ã‚‹ã‚³ãƒžãƒ³ãƒ‰ã«å¯¾ã—ã¦ã‚·ãƒ³ãƒœãƒªãƒƒã‚¯ãƒªãƒ³ã‚¯ãƒªãƒ³ã‚¯ã«ã‚ˆã£ã¦åˆ¥åã‚’ã¤ã‘ã‚‹ã¨ã€å…ƒã®ã‚³ãƒžãƒ³ãƒ‰ã¨åˆ¥åã«ã‚ˆã£ã¦æŒ™å‹•ã‚’å¤‰ãˆã‚‹ã€‚
\TeX\ Liveã§ã‚‚ã€
\begin{itemize}
\item \texttt{extractbb}, \texttt{dvipdfmx} ã¯ \texttt{xdvipdfmx} ã¸ã®ã‚¨ã‚¤ãƒªã‚¢ã‚¹
\item \texttt{repstopdf} ã¯ \texttt{epstopdf} ã¸ã®ã‚¨ã‚¤ãƒªã‚¢ã‚¹
\end{itemize}
ã¨ã„ã†ä¾‹ãŒã‚ã‚‹ã€‚

\texttt{cluttex} ãŒ \texttt{cl}\(\langle\text{ã‚¨ãƒ³ã‚¸ãƒ³å}\rangle\) ã¨ã—ã¦å‘¼ã³å‡ºã•ã‚ŒãŸå&nbsp;´åˆã€ä½¿ç”¨ã•ã‚Œã‚‹ã‚¨ãƒ³ã‚¸ãƒ³åï¼ˆ\texttt{--engine}ã‚ªãƒ—ã‚·ãƒ§ãƒ³ï¼‰ãŒãã‚Œã«æŒ‡å®šã•ã‚Œã‚‹ã€‚

ä¾‹ãˆã°ã€\texttt{cllualatex}ã¯\texttt{cluttex --engine lualatex}ã®åˆ¥åã§ã‚ã‚Šã€\texttt{clxelatex}ã¯\texttt{cluttex --engine xelatex}ã®åˆ¥åã§ã‚ã‚‹ã€‚

\section{\texpkg{minted}ã¨\texpkg{epstopdf}ã¸ã®å¯¾ç­–}
ä¸€èˆ¬ã«ã€å¤–éƒ¨ã‚³ãƒžãƒ³ãƒ‰å®Ÿè¡Œï¼ˆã‚·ã‚§ãƒ«ã‚¨ã‚¹ã‚±ãƒ¼ãƒ—ï¼‰ã‚’è¡Œã†ãƒ‘ãƒƒã‚±ãƒ¼ã‚¸ã¯\texttt{-output-directory}ã‚’æŒ‡å®šã—ãŸéš›ã«æ­£å¸¸ã«å‹•ä½œã—ãªã„ã€‚
ã—ãŸãŒã£ã¦ã€\ClutTeX{}ã®ä¸‹ã§ã¯ãã†ã„ã†ãƒ‘ãƒƒã‚±ãƒ¼ã‚¸ã¯ã†ã¾ãå‹•ã‹ãªã„ã€‚

ä¸€æ–¹ã§ã€ãƒ‘ãƒƒã‚±ãƒ¼ã‚¸ã«ã‚ˆã£ã¦ã¯\texttt{-output-directory}ã®å€¤ã‚’æŒ‡ç¤ºã™ã‚‹ãŸã‚ã®ãƒ‘ãƒƒã‚±ãƒ¼ã‚¸ã‚ªãƒ—ã‚·ãƒ§ãƒ³ã‚’æŒã£ã¦ã„ã‚‹ã‚‚ã®ãŒã‚ã‚‹ã€‚
ä¾‹ãˆã°ã€\texpkg{minted}ã®\texttt{outputdir}ã‚ªãƒ—ã‚·ãƒ§ãƒ³ã€\texpkg{epstopdf}ã®\texttt{outdir}ã‚ªãƒ—ã‚·ãƒ§ãƒ³ãŒãã‚Œã§ã‚ã‚‹ã€‚

\ClutTeX{}ã‹ã‚‰ã“ã‚Œã‚‰ã®ãƒ‘ãƒƒã‚±ãƒ¼ã‚¸ã‚ªãƒ—ã‚·ãƒ§ãƒ³ã‚’æŒ‡å®šã™ã‚‹ã“ã¨ã¯ã§ãã‚‹ãŒã€ãã®ãŸã‚ã«ã¯ä½¿ç”¨ã™ã‚‹ãƒ‘ãƒƒã‚±ãƒ¼ã‚¸ã‚’\ClutTeX{}ãŒäº‹å‰ã«çŸ¥ã£ã¦ãŠã‹ã­ã°ãªã‚‰ãªã„ã€‚
ä½¿ç”¨ã™ã‚‹ãƒ‘ãƒƒã‚±ãƒ¼ã‚¸ã‚’\ClutTeX{}ã«çŸ¥ã‚‰ã›ã‚‹ã«ã¯ã€\texttt{--package-support}ã‚ªãƒ—ã‚·ãƒ§ãƒ³ã‚’ä½¿ã†ã€‚

ä¾‹ãˆã°ã€\texpkg{minted}ã‚’ä½¿ã†æ–‡æ›¸ã‚’å‡¦ç†ã™ã‚‹å&nbsp;´åˆã¯æ¬¡ã®ã‚ˆã†ã«å®Ÿè¡Œã™ã‚Œã°è‰¯ã„ï¼š
\begin{verbatim}
cluttex -e pdflatex --shell-escape --package-support=minted document.tex
\end{verbatim}

\section{ãƒ‰ãƒ©ã‚¤ãƒãƒ¼ãƒ•ã‚¡ã‚¤ãƒ«ã®æ¤œæŸ»}

\ClutTeX{}ã¯ã€ã„ãã¤ã‹ã®ãƒ‘ãƒƒã‚±ãƒ¼ã‚¸ã«ã¤ã„ã¦æ­£ã—ã„ãƒ‰ãƒ©ã‚¤ãƒãƒ¼ãƒ•ã‚¡ã‚¤ãƒ«ãŒèª­ã¿è¾¼ã¾ã‚Œã¦ã„ã‚‹ã“ã¨ã‚’æ¤œæŸ»ã™ã‚‹ã“ã¨ãŒã§ãã‚‹ã€‚
ç¾åœ¨ã®ãƒãƒ¼ã‚¸ãƒ§ãƒ³ã§å¯¾å¿œã—ã¦ã„ã‚‹ãƒ‘ãƒƒã‚±ãƒ¼ã‚¸ã¯\texpkg{graphics(x)}, \texpkg{color}, \texpkg{expl3}, \texpkg{hyperref}, \texpkg{xy}ã§ã‚ã‚‹ã€‚

PDFãƒ¢ãƒ¼ãƒ‰ã®å&nbsp;´åˆã€ãƒ‰ãƒ©ã‚¤ãƒãƒ¼ã®æ¤œæŸ»ã¯å¸¸ã«è¡Œã‚ã‚Œã‚‹ã€‚
DVIãƒ¢ãƒ¼ãƒ‰ã§æ¤œæŸ»ã‚’æœ‰åŠ¹ã«ã™ã‚‹ã«ã¯ã€\texttt{--check-driver}ã‚ªãƒ—ã‚·ãƒ§ãƒ³ã‚’ä½¿ç”¨ã™ã‚‹ã€‚

\end{document}
</pre></body></html>