hgbook
diff ja/99defs.tex @ 1079:58fefdf069c5
reformated
author | Zhaoping Sun <zhaopingsun@gmail.com> |
---|---|
date | Fri Nov 20 22:53:55 2009 -0500 (2009-11-20) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/ja/99defs.tex Fri Nov 20 22:53:55 2009 -0500 1.3 @@ -0,0 +1,183 @@ 1.4 +% Bug ID. 1.5 +\newcommand{\bug}[1]{\index{Mercurial 1.6 + $B%P%0%G!<%?%Y!<%9(B! 1.7 + \href{http://www.selenic.com/mercurial/bts/issue#1}{$B%P%0(B~#1} 1.8 + }\href{http://www.selenic.com/mercurial/bts/issue#1}{Mercurial 1.9 + $B%P%0HV9f(B~#1}} 1.10 + 1.11 +% File name in the user's home directory. 1.12 +\newcommand{\tildefile}[1]{\texttt{\~{}/#1}} 1.13 + 1.14 +% File name. 1.15 +\newcommand{\filename}[1]{\texttt{#1}} 1.16 + 1.17 +% Directory name. 1.18 +\newcommand{\dirname}[1]{\texttt{#1}} 1.19 + 1.20 +% File name, with index entry. 1.21 +% The ``s'' prefix comes from ``special''. 1.22 +\newcommand{\sfilename}[1]{\index{\texttt{#1} $B%U%!%$%k(B}\texttt{#1}} 1.23 + 1.24 +% Directory name, with index entry. 1.25 +\newcommand{\sdirname}[1]{\index{\texttt{#1} $B%G%#%l%/%H%j(B}\texttt{#1}} 1.26 + 1.27 +% Mercurial extension. 1.28 +\newcommand{\hgext}[1]{\index{\texttt{#1} $B%$%/%9%F%s%7%g%s(B}\texttt{#1}} 1.29 + 1.30 +% Command provided by a Mercurial extension. 1.31 +\newcommand{\hgxcmd}[2]{\index{\texttt{#2} $B%3%^%s%I(B (\texttt{#1} 1.32 + $B%$%/%9%F%s%7%g%s(B) 1.33 + }\index{\texttt{#1} $B%$%/%9%F%s%7%g%s(B!\texttt{#2} $B%3%^%s%I(B 1.34 + }``\texttt{hg #2}''} 1.35 + 1.36 +% Mercurial command. 1.37 +\newcommand{\hgcmd}[1]{\index{\texttt{#1} $B%3%^%s%I(B}``\texttt{hg #1}''} 1.38 + 1.39 +% Mercurial command, with arguments. 1.40 +\newcommand{\hgcmdargs}[2]{\index{\texttt{#1} $B%3%^%s%I(B}``\texttt{hg #1 #2}''} 1.41 + 1.42 +\newcommand{\tplkword}[1]{\index{\texttt{#1} $B%F%s%W%l!<%H%-!<%o!<%I(B 1.43 + }\index{$B%F%s%W%l!<%H%-!<%o!<%I(B!\texttt{#1}}\texttt{#1}} 1.44 + 1.45 +\newcommand{\tplkwfilt}[2]{ 1.46 + \index{\texttt{#1} $B%F%s%W%l!<%H%-!<%o!<%I(B!\texttt{#2} $B%U%#%k%?(B 1.47 + }\index{$B%F%s%W%l!<%H%U%#%k%?(B! 1.48 + \texttt{#2}}\index{\texttt{#2} $B%F%s%W%l!<%H%U%#%k%?(B}\texttt{#2}} 1.49 + 1.50 +\newcommand{\tplfilter}[1]{\index{$B%F%s%W%l!<%H%U%#%k%?(B!\texttt{#1} 1.51 + }\index{\texttt{#1} $B%F%s%W%l!<%H%U%#%k%?(B}\texttt{#1}} 1.52 + 1.53 +% Shell/system command. 1.54 +\newcommand{\command}[1]{\index{\texttt{#1} $B%7%9%F%`%3%^%s%I(B}\texttt{#1}} 1.55 + 1.56 +% Shell/system command, with arguments. 1.57 +\newcommand{\cmdargs}[2]{\index{\texttt{#1} $B%3%^%s%I(B}``\texttt{#1 #2}''} 1.58 + 1.59 +% Mercurial command option. 1.60 +\newcommand{\hgopt}[2]{\index{\texttt{#1} $B%3%^%s%I(B!\texttt{#2} $B%*%W%7%g%s(B 1.61 + }\texttt{#2}} 1.62 + 1.63 +% Mercurial command option, provided by an extension command. 1.64 +\newcommand{\hgxopt}[3]{ 1.65 + \index{\texttt{#2} $B%3%^%s%I(B(\texttt{#1} $B%$%/%9%F%s%7%g%s(B)! 1.66 + \texttt{#3} $B%*%W%7%g%s(B 1.67 + }\index{\texttt{#1} $B%$%/%9%F%s%7%g%s(B!\texttt{#2} $B%3%^%s%I(B! 1.68 + \texttt{#3} $B%*%W%7%g%s(B}\texttt{#3}} 1.69 + 1.70 +% Mercurial global option. 1.71 +\newcommand{\hggopt}[1]{\index{$B%0%m!<%P%k%*%W%7%g%s(B!\texttt{#1} $B%*%W%7%g%s(B 1.72 + }\texttt{#1}} 1.73 + 1.74 +% Shell/system command option. 1.75 +\newcommand{\cmdopt}[2]{\index{\texttt{#1} $B%3%^%s%I(B!\texttt{#2} $B%*%W%7%g%s(B 1.76 + }\texttt{#2}} 1.77 + 1.78 +% Command option. 1.79 +\newcommand{\option}[1]{\texttt{#1}} 1.80 + 1.81 +% Software package. 1.82 +\newcommand{\package}[1]{\index{\texttt{#1} $B%Q%C%1!<%8(B}\texttt{#1}} 1.83 + 1.84 +% Section name from a hgrc file. 1.85 +\newcommand{\rcsection}[1]{\index{\texttt{hgrc} $B%U%!%$%k(B!\texttt{#1} $B%;%/%7%g%s(B 1.86 + }\texttt{[#1]}} 1.87 + 1.88 +% Named item in a hgrc file section. 1.89 +\newcommand{\rcitem}[2]{\index{\texttt{hgrc} $B%U%!%$%k(B! 1.90 + \texttt{#1} $B%;%/%7%g%s(B!\texttt{#2} $B9`L\(B}\texttt{#2}} 1.91 + 1.92 +% hgrc file. 1.93 +\newcommand{\hgrc}{\index{$B@_Dj%U%!%$%k(B!\texttt{hgrc}(Linux/Unix) 1.94 + }\index{\texttt{hgrc} $B@_Dj%U%!%$%k(B}\texttt{hgrc}} 1.95 + 1.96 +% Mercurial.ini file. 1.97 +\newcommand{\hgini}{\index{$B@_Dj%U%!%$%k(B!\texttt{Mercurial.ini}(Windows) 1.98 + }\index{\texttt{Mercurial.ini} $B@_Dj%U%!%$%k(B 1.99 + }\texttt{Mercurial.ini}} 1.100 + 1.101 +% Hook name. 1.102 +\newcommand{\hook}[1]{\index{\texttt{#1} $B%U%C%/(B 1.103 + }\index{$B%U%C%/(B!\texttt{#1}}\texttt{#1}} 1.104 + 1.105 +% Environment variable. 1.106 +\newcommand{\envar}[1]{\index{\texttt{#1} $B4D6-JQ?t(B 1.107 + }\index{$B4D6-JQ?t(B!\texttt{#1}}\texttt{#1}} 1.108 + 1.109 +% Python module. 1.110 +\newcommand{\pymod}[1]{\index{\texttt{#1} $B%b%8%e!<%k(B}\texttt{#1}} 1.111 + 1.112 +% Python class in a module. 1.113 +\newcommand{\pymodclass}[2]{\index{\texttt{#1} $B%b%8%e!<%k(B!\texttt{#2} $B%/%i%9(B 1.114 + }\texttt{#1.#2}} 1.115 + 1.116 +% Python function in a module. 1.117 +\newcommand{\pymodfunc}[2]{\index{\texttt{#1} $B%b%8%e!<%k(B!\texttt{#2} $B4X?t(B 1.118 + }\texttt{#1.#2}} 1.119 + 1.120 +% Code sample, eating 4 characters of leading space. 1.121 +\DefineVerbatimEnvironment{codesample4}{Verbatim}{ 1.122 + frame=single, 1.123 + gobble=4, 1.124 + xleftmargin=0.1\textwidth, 1.125 + xrightmargin=0.1\textwidth, 1.126 + baselinestretch=0.8, 1.127 + numbers=left, 1.128 + commandchars=\\\{\} 1.129 +} 1.130 + 1.131 +% Code sample, eating 2 characters of leading space. 1.132 +\DefineVerbatimEnvironment{codesample2}{Verbatim}{ 1.133 + frame=single, 1.134 + gobble=2, 1.135 + xleftmargin=0.1\textwidth, 1.136 + xrightmargin=0.1\textwidth, 1.137 + baselinestretch=0.8, 1.138 + numbers=left, 1.139 + commandchars=\\\{\} 1.140 +} 1.141 + 1.142 +% Interaction from the examples directory. 1.143 +\newcommand{\interaction}[1]{ 1.144 + \vspace{1.5\kanjicharheight} 1.145 + \VerbatimInput[ 1.146 + frame=single, 1.147 + xleftmargin=0.1\textwidth, 1.148 + xrightmargin=0.1\textwidth, 1.149 + baselinestretch=0.8, 1.150 + numbers=left, 1.151 + commandchars=\\\{\} 1.152 + ]{% 1.153 +% examples/#1.out 1.154 + examples/#1.lxo 1.155 + } 1.156 + \vspace{1.5\kanjicharheight} 1.157 +} 1.158 +% Example code from the examples directory. 1.159 +\newcommand{\excode}[1]{ 1.160 + \vspace{1.5\kanjicharheight} 1.161 + \VerbatimInput[ 1.162 + frame=single, 1.163 + xleftmargin=0.1\textwidth, 1.164 + xrightmargin=0.1\textwidth, 1.165 + baselinestretch=0.8, 1.166 + numbers=left, 1.167 + commandchars=\\\{\} 1.168 + ]{../examples/#1} 1.169 + \vspace{1.5\kanjicharheight} 1.170 +} 1.171 + 1.172 +% Reference entry for a command. 1.173 +\newcommand{\cmdref}[2]{\section{\hgcmd{#1}---#2}\label{cmdref:#1} 1.174 + \index{\texttt{#1} $B%3%^%s%I(B}} 1.175 + 1.176 +% Reference entry for a command option with long and short forms. 1.177 +\newcommand{\optref}[3]{\subsubsection{\hgopt{#1}{--#3} $B$J$$$7(B 1.178 + \hgopt{#1}{-#2}}} 1.179 + 1.180 +% Reference entry for a command option with only long form. 1.181 +\newcommand{\loptref}[2]{\subsubsection{\hgopt{#1}{--#2} $B%*%W%7%g%s(B}} 1.182 + 1.183 +%%% Local Variables: 1.184 +%%% mode: latex 1.185 +%%% TeX-master: "00book" 1.186 +%%% End: