foozy@708: % Bug ID. foozy@708: \newcommand{\bug}[1]{\index{Mercurial foozy@708: バグデータベース! foozy@708: \href{http://www.selenic.com/mercurial/bts/issue#1}{バグ~#1} foozy@708: }\href{http://www.selenic.com/mercurial/bts/issue#1}{Mercurial foozy@708: バグ番号~#1}} foozy@708: foozy@708: % File name in the user's home directory. foozy@708: \newcommand{\tildefile}[1]{\texttt{\~{}/#1}} foozy@708: foozy@708: % File name. foozy@708: \newcommand{\filename}[1]{\texttt{#1}} foozy@708: foozy@708: % Directory name. foozy@708: \newcommand{\dirname}[1]{\texttt{#1}} foozy@708: foozy@708: % File name, with index entry. foozy@708: % The ``s'' prefix comes from ``special''. foozy@708: \newcommand{\sfilename}[1]{\index{\texttt{#1} ファイル}\texttt{#1}} foozy@708: foozy@708: % Directory name, with index entry. foozy@708: \newcommand{\sdirname}[1]{\index{\texttt{#1} ディレクトリ}\texttt{#1}} foozy@708: foozy@708: % Mercurial extension. foozy@708: \newcommand{\hgext}[1]{\index{\texttt{#1} イクステンション}\texttt{#1}} foozy@708: foozy@708: % Command provided by a Mercurial extension. foozy@708: \newcommand{\hgxcmd}[2]{\index{\texttt{#2} コマンド (\texttt{#1} foozy@708: イクステンション) foozy@708: }\index{\texttt{#1} イクステンション!\texttt{#2} コマンド foozy@708: }``\texttt{hg #2}''} foozy@708: foozy@708: % Mercurial command. foozy@708: \newcommand{\hgcmd}[1]{\index{\texttt{#1} コマンド}``\texttt{hg #1}''} foozy@708: foozy@708: % Mercurial command, with arguments. foozy@708: \newcommand{\hgcmdargs}[2]{\index{\texttt{#1} コマンド}``\texttt{hg #1 #2}''} foozy@708: foozy@708: \newcommand{\tplkword}[1]{\index{\texttt{#1} テンプレートキーワード foozy@708: }\index{テンプレートキーワード!\texttt{#1}}\texttt{#1}} foozy@708: foozy@708: \newcommand{\tplkwfilt}[2]{ foozy@708: \index{\texttt{#1} テンプレートキーワード!\texttt{#2} フィルタ foozy@708: }\index{テンプレートフィルタ! foozy@708: \texttt{#2}}\index{\texttt{#2} テンプレートフィルタ}\texttt{#2}} foozy@708: foozy@708: \newcommand{\tplfilter}[1]{\index{テンプレートフィルタ!\texttt{#1} foozy@708: }\index{\texttt{#1} テンプレートフィルタ}\texttt{#1}} foozy@708: foozy@708: % Shell/system command. foozy@708: \newcommand{\command}[1]{\index{\texttt{#1} システムコマンド}\texttt{#1}} foozy@708: foozy@708: % Shell/system command, with arguments. foozy@708: \newcommand{\cmdargs}[2]{\index{\texttt{#1} コマンド}``\texttt{#1 #2}''} foozy@708: foozy@708: % Mercurial command option. foozy@708: \newcommand{\hgopt}[2]{\index{\texttt{#1} コマンド!\texttt{#2} オプション foozy@708: }\texttt{#2}} foozy@708: foozy@708: % Mercurial command option, provided by an extension command. foozy@708: \newcommand{\hgxopt}[3]{ foozy@708: \index{\texttt{#2} コマンド(\texttt{#1} イクステンション)! foozy@708: \texttt{#3} オプション foozy@708: }\index{\texttt{#1} イクステンション!\texttt{#2} コマンド! foozy@708: \texttt{#3} オプション}\texttt{#3}} foozy@708: foozy@708: % Mercurial global option. foozy@708: \newcommand{\hggopt}[1]{\index{グローバルオプション!\texttt{#1} オプション foozy@708: }\texttt{#1}} foozy@708: foozy@708: % Shell/system command option. foozy@708: \newcommand{\cmdopt}[2]{\index{\texttt{#1} コマンド!\texttt{#2} オプション foozy@708: }\texttt{#2}} foozy@708: foozy@708: % Command option. foozy@708: \newcommand{\option}[1]{\texttt{#1}} foozy@708: foozy@708: % Software package. foozy@708: \newcommand{\package}[1]{\index{\texttt{#1} パッケージ}\texttt{#1}} foozy@708: foozy@708: % Section name from a hgrc file. foozy@708: \newcommand{\rcsection}[1]{\index{\texttt{hgrc} ファイル!\texttt{#1} セクション foozy@708: }\texttt{[#1]}} foozy@708: foozy@708: % Named item in a hgrc file section. foozy@708: \newcommand{\rcitem}[2]{\index{\texttt{hgrc} ファイル! foozy@708: \texttt{#1} セクション!\texttt{#2} 項目}\texttt{#2}} foozy@708: foozy@708: % hgrc file. foozy@708: \newcommand{\hgrc}{\index{設定ファイル!\texttt{hgrc}(Linux/Unix) foozy@708: }\index{\texttt{hgrc} 設定ファイル}\texttt{hgrc}} foozy@708: foozy@708: % Mercurial.ini file. foozy@708: \newcommand{\hgini}{\index{設定ファイル!\texttt{Mercurial.ini}(Windows) foozy@708: }\index{\texttt{Mercurial.ini} 設定ファイル foozy@708: }\texttt{Mercurial.ini}} foozy@708: foozy@708: % Hook name. foozy@708: \newcommand{\hook}[1]{\index{\texttt{#1} フック foozy@708: }\index{フック!\texttt{#1}}\texttt{#1}} foozy@708: foozy@708: % Environment variable. foozy@708: \newcommand{\envar}[1]{\index{\texttt{#1} 環境変数 foozy@708: }\index{環境変数!\texttt{#1}}\texttt{#1}} foozy@708: foozy@708: % Python module. foozy@708: \newcommand{\pymod}[1]{\index{\texttt{#1} モジュール}\texttt{#1}} foozy@708: foozy@708: % Python class in a module. foozy@708: \newcommand{\pymodclass}[2]{\index{\texttt{#1} モジュール!\texttt{#2} クラス foozy@708: }\texttt{#1.#2}} foozy@708: foozy@708: % Python function in a module. foozy@708: \newcommand{\pymodfunc}[2]{\index{\texttt{#1} モジュール!\texttt{#2} 関数 foozy@708: }\texttt{#1.#2}} foozy@708: foozy@708: % Code sample, eating 4 characters of leading space. foozy@708: \DefineVerbatimEnvironment{codesample4}{Verbatim}{ foozy@708: frame=single, foozy@708: gobble=4, foozy@708: xleftmargin=0.1\textwidth, foozy@708: xrightmargin=0.1\textwidth, foozy@708: baselinestretch=0.8, foozy@708: numbers=left, foozy@708: commandchars=\\\{\} foozy@708: } foozy@708: foozy@708: % Code sample, eating 2 characters of leading space. foozy@708: \DefineVerbatimEnvironment{codesample2}{Verbatim}{ foozy@708: frame=single, foozy@708: gobble=2, foozy@708: xleftmargin=0.1\textwidth, foozy@708: xrightmargin=0.1\textwidth, foozy@708: baselinestretch=0.8, foozy@708: numbers=left, foozy@708: commandchars=\\\{\} foozy@708: } foozy@708: foozy@708: % Interaction from the examples directory. foozy@708: \newcommand{\interaction}[1]{ foozy@708: \vspace{1.5\kanjicharheight} foozy@708: \VerbatimInput[ foozy@708: frame=single, foozy@708: xleftmargin=0.1\textwidth, foozy@708: xrightmargin=0.1\textwidth, foozy@708: baselinestretch=0.8, foozy@708: numbers=left, foozy@708: commandchars=\\\{\} foozy@708: ]{% foozy@708: % examples/#1.out foozy@708: examples/#1.lxo foozy@708: } foozy@708: \vspace{1.5\kanjicharheight} foozy@708: } foozy@708: % Example code from the examples directory. foozy@708: \newcommand{\excode}[1]{ foozy@708: \vspace{1.5\kanjicharheight} foozy@708: \VerbatimInput[ foozy@708: frame=single, foozy@708: xleftmargin=0.1\textwidth, foozy@708: xrightmargin=0.1\textwidth, foozy@708: baselinestretch=0.8, foozy@708: numbers=left, foozy@708: commandchars=\\\{\} foozy@708: ]{../examples/#1} foozy@708: \vspace{1.5\kanjicharheight} foozy@708: } foozy@708: foozy@708: % Reference entry for a command. foozy@708: \newcommand{\cmdref}[2]{\section{\hgcmd{#1}---#2}\label{cmdref:#1} foozy@708: \index{\texttt{#1} コマンド}} foozy@708: foozy@708: % Reference entry for a command option with long and short forms. foozy@708: \newcommand{\optref}[3]{\subsubsection{\hgopt{#1}{--#3} ないし foozy@708: \hgopt{#1}{-#2}}} foozy@708: foozy@708: % Reference entry for a command option with only long form. foozy@708: \newcommand{\loptref}[2]{\subsubsection{\hgopt{#1}{--#2} オプション}} foozy@708: foozy@708: %%% Local Variables: foozy@708: %%% mode: latex foozy@708: %%% TeX-master: "00book" foozy@708: %%% End: