hgbook

diff fr/99defs.tex @ 933:4934b0c2947e

review french intro.tex
author Wilk
date Mon Feb 09 14:41:04 2009 +0100 (2009-02-09)
parents 0896fcbccdec
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/fr/99defs.tex	Mon Feb 09 14:41:04 2009 +0100
     1.3 @@ -0,0 +1,146 @@
     1.4 +% Bug ID.
     1.5 +\newcommand{\bug}[1]{\index{Mercurial bug
     1.6 +    database!\href{http://www.selenic.com/mercurial/bts/issue#1}{bug
     1.7 +      ~#1}}\href{http://www.selenic.com/mercurial/bts/issue#1}{Mercurial
     1.8 +    bug no.~#1}}
     1.9 +
    1.10 +% File name in the user's home directory.
    1.11 +\newcommand{\tildefile}[1]{\texttt{\~{}/#1}}
    1.12 +
    1.13 +% File name.
    1.14 +\newcommand{\filename}[1]{\texttt{#1}}
    1.15 +
    1.16 +% Directory name.
    1.17 +\newcommand{\dirname}[1]{\texttt{#1}}
    1.18 +
    1.19 +% File name, with index entry.
    1.20 +% The ``s'' prefix comes from ``special''.
    1.21 +\newcommand{\sfilename}[1]{\index{\texttt{#1} file}\texttt{#1}}
    1.22 +
    1.23 +% Directory name, with index entry.
    1.24 +\newcommand{\sdirname}[1]{\index{\texttt{#1} directory}\texttt{#1}}
    1.25 +
    1.26 +% Mercurial extension.
    1.27 +\newcommand{\hgext}[1]{\index{\texttt{#1} extension}\texttt{#1}}
    1.28 +
    1.29 +% Command provided by a Mercurial extension.
    1.30 +\newcommand{\hgxcmd}[2]{\index{\texttt{#2} command (\texttt{#1}
    1.31 +      extension)}\index{\texttt{#1} extension!\texttt{#2} command}``\texttt{hg #2}''}
    1.32 +
    1.33 +% Mercurial command.
    1.34 +\newcommand{\hgcmd}[1]{\index{\texttt{#1} command}``\texttt{hg #1}''}
    1.35 +
    1.36 +% Mercurial command, with arguments.
    1.37 +\newcommand{\hgcmdargs}[2]{\index{\texttt{#1} command}``\texttt{hg #1 #2}''}
    1.38 +
    1.39 +\newcommand{\tplkword}[1]{\index{\texttt{#1} template keyword}\index{template keywords!\texttt{#1}}\texttt{#1}}
    1.40 +
    1.41 +\newcommand{\tplkwfilt}[2]{\index{\texttt{#1} template keyword!\texttt{#2}
    1.42 +    filter}\index{template filters!\texttt{#2}}\index{\texttt{#2}
    1.43 +    template filter}\texttt{#2}}
    1.44 +
    1.45 +\newcommand{\tplfilter}[1]{\index{template
    1.46 +    filters!\texttt{#1}}\index{\texttt{#1} template
    1.47 +    filter}\texttt{#1}}
    1.48 +
    1.49 +% Shell/system command.
    1.50 +\newcommand{\command}[1]{\index{\texttt{#1} system command}\texttt{#1}}
    1.51 +
    1.52 +% Shell/system command, with arguments.
    1.53 +\newcommand{\cmdargs}[2]{\index{\texttt{#1} system command}``\texttt{#1 #2}''}
    1.54 +
    1.55 +% Mercurial command option.
    1.56 +\newcommand{\hgopt}[2]{\index{\texttt{#1} command!\texttt{#2} option}\texttt{#2}}
    1.57 +
    1.58 +% Mercurial command option, provided by an extension command.
    1.59 +\newcommand{\hgxopt}[3]{\index{\texttt{#2} command (\texttt{#1} extension)!\texttt{#3} option}\index{\texttt{#1} extension!\texttt{#2} command!\texttt{#3} option}\texttt{#3}}
    1.60 +
    1.61 +% Mercurial global option.
    1.62 +\newcommand{\hggopt}[1]{\index{global options!\texttt{#1} option}\texttt{#1}}
    1.63 +
    1.64 +% Shell/system command option.
    1.65 +\newcommand{\cmdopt}[2]{\index{\texttt{#1} command!\texttt{#2} option}\texttt{#2}}
    1.66 +
    1.67 +% Command option.
    1.68 +\newcommand{\option}[1]{\texttt{#1}}
    1.69 +
    1.70 +% Software package.
    1.71 +\newcommand{\package}[1]{\index{\texttt{#1} package}\texttt{#1}}
    1.72 +
    1.73 +% Section name from a hgrc file.
    1.74 +\newcommand{\rcsection}[1]{\index{\texttt{hgrc} file!\texttt{#1} section}\texttt{[#1]}}
    1.75 +
    1.76 +% Named item in a hgrc file section.
    1.77 +\newcommand{\rcitem}[2]{\index{\texttt{hgrc} file!\texttt{#1}
    1.78 +    section!\texttt{#2} entry}\texttt{#2}}
    1.79 +
    1.80 +% hgrc file.
    1.81 +\newcommand{\hgrc}{\index{configuration file!\texttt{hgrc}
    1.82 +    (Linux/Unix)}\index{\texttt{hgrc} configuration file}\texttt{hgrc}}
    1.83 +
    1.84 +% Mercurial.ini file.
    1.85 +\newcommand{\hgini}{\index{configuration file!\texttt{Mercurial.ini}
    1.86 +    (Windows)}\index{\texttt{Mercurial.ini} configuration file}\texttt{Mercurial.ini}}
    1.87 +
    1.88 +% Hook name.
    1.89 +\newcommand{\hook}[1]{\index{\texttt{#1} hook}\index{hooks!\texttt{#1}}\texttt{#1}}
    1.90 +
    1.91 +% Environment variable.
    1.92 +\newcommand{\envar}[1]{\index{\texttt{#1} environment
    1.93 +    variable}\index{environment variables!\texttt{#1}}\texttt{#1}}
    1.94 +
    1.95 +% Python module.
    1.96 +\newcommand{\pymod}[1]{\index{\texttt{#1} module}\texttt{#1}}
    1.97 +
    1.98 +% Python class in a module.
    1.99 +\newcommand{\pymodclass}[2]{\index{\texttt{#1} module!\texttt{#2}
   1.100 +    class}\texttt{#1.#2}}
   1.101 +
   1.102 +% Python function in a module.
   1.103 +\newcommand{\pymodfunc}[2]{\index{\texttt{#1} module!\texttt{#2}
   1.104 +    function}\texttt{#1.#2}}
   1.105 +
   1.106 +% Note: blah blah.
   1.107 +\newsavebox{\notebox}
   1.108 +\newenvironment{note}%
   1.109 +  {\begin{lrbox}{\notebox}\begin{minipage}{0.7\textwidth}\textbf{Note:}\space}%
   1.110 +  {\end{minipage}\end{lrbox}\fbox{\usebox{\notebox}}}
   1.111 +\newenvironment{caution}%
   1.112 +  {\begin{lrbox}{\notebox}\begin{minipage}{0.7\textwidth}\textbf{Caution:}\space}%
   1.113 +  {\end{minipage}\end{lrbox}\fbox{\usebox{\notebox}}}
   1.114 +
   1.115 +% Code sample, eating 4 characters of leading space.
   1.116 +\DefineVerbatimEnvironment{codesample4}{Verbatim}{frame=single,gobble=4,numbers=left,commandchars=\\\{\}}
   1.117 +
   1.118 +% Code sample, eating 2 characters of leading space.
   1.119 +\DefineVerbatimEnvironment{codesample2}{Verbatim}{frame=single,gobble=2,numbers=left,commandchars=\\\{\}}
   1.120 +
   1.121 +% Interaction from the examples directory.
   1.122 +\newcommand{\interaction}[1]{\VerbatimInput[frame=single,numbers=left,commandchars=\\\{\}]{examples/#1.lxo}}
   1.123 +% Example code from the examples directory.
   1.124 +\newcommand{\excode}[1]{\VerbatimInput[frame=single,numbers=left,commandchars=\\\{\}]{../examples/#1}}
   1.125 +
   1.126 +% Graphics inclusion.
   1.127 +\ifpdf
   1.128 +  \newcommand{\grafix}[1]{\includegraphics{#1}}
   1.129 +\else
   1.130 +  \newcommand{\grafix}[1]{\includegraphics{#1.png}}
   1.131 +\fi
   1.132 +
   1.133 +% Reference entry for a command.
   1.134 +\newcommand{\cmdref}[2]{\section{\hgcmd{#1}---#2}\label{cmdref:#1}\index{\texttt{#1} command}}
   1.135 +
   1.136 +% Reference entry for a command option with long and short forms.
   1.137 +\newcommand{\optref}[3]{\subsubsection{\hgopt{#1}{--#3}, also \hgopt{#1}{-#2}}}
   1.138 +
   1.139 +% Reference entry for a command option with only long form.
   1.140 +\newcommand{\loptref}[2]{\subsubsection{\hgopt{#1}{--#2} option}}
   1.141 +
   1.142 +% command to generate a footnote to be used as a translator's note
   1.143 +\newcommand{\ndt}[1]{\footnote{\textbf{N. del T.} #1}}
   1.144 +
   1.145 +
   1.146 +%%% Local Variables: 
   1.147 +%%% mode: latex
   1.148 +%%% TeX-master: "00book"
   1.149 +%%% End: