hgbook
changeset 350:74224b4f6928
this file was a symlink; this was intended to keep track of the file on any
change that might appear on the original version of the book. I removed it and
instead created a copy, because some of the modifications needed for the
translation (the traduction of a couple of commands defined there) would have
affected the english version. And we don't want that ;)
change that might appear on the original version of the book. I removed it and
instead created a copy, because some of the modifications needed for the
translation (the traduction of a couple of commands defined there) would have
affected the english version. And we don't want that ;)
author | jerojasro@localhost |
---|---|
date | Sun Oct 19 23:53:39 2008 -0500 (2008-10-19) |
parents | a0d0a802c712 |
children | 59d0b577893d |
files | es/99defs.tex |
line diff
1.1 --- a/es/99defs.tex Sun Oct 19 23:44:02 2008 -0500 1.2 +++ b/es/99defs.tex Sun Oct 19 23:53:39 2008 -0500 1.3 @@ -1,1 +1,146 @@ 1.4 -../en/99defs.tex 1.5 \ No newline at end of file 1.6 +% Bug ID. 1.7 +\newcommand{\bug}[1]{\index{Mercurial bug 1.8 + database!\href{http://www.selenic.com/mercurial/bts/issue#1}{bug 1.9 + ~#1}}\href{http://www.selenic.com/mercurial/bts/issue#1}{Mercurial 1.10 + bug no.~#1}} 1.11 + 1.12 +% File name in the user's home directory. 1.13 +\newcommand{\tildefile}[1]{\texttt{\~{}/#1}} 1.14 + 1.15 +% File name. 1.16 +\newcommand{\filename}[1]{\texttt{#1}} 1.17 + 1.18 +% Directory name. 1.19 +\newcommand{\dirname}[1]{\texttt{#1}} 1.20 + 1.21 +% File name, with index entry. 1.22 +% The ``s'' prefix comes from ``special''. 1.23 +\newcommand{\sfilename}[1]{\index{\texttt{#1} file}\texttt{#1}} 1.24 + 1.25 +% Directory name, with index entry. 1.26 +\newcommand{\sdirname}[1]{\index{\texttt{#1} directory}\texttt{#1}} 1.27 + 1.28 +% Mercurial extension. 1.29 +\newcommand{\hgext}[1]{\index{\texttt{#1} extension}\texttt{#1}} 1.30 + 1.31 +% Command provided by a Mercurial extension. 1.32 +\newcommand{\hgxcmd}[2]{\index{\texttt{#2} command (\texttt{#1} 1.33 + extension)}\index{\texttt{#1} extension!\texttt{#2} command}``\texttt{hg #2}''} 1.34 + 1.35 +% Mercurial command. 1.36 +\newcommand{\hgcmd}[1]{\index{\texttt{#1} command}``\texttt{hg #1}''} 1.37 + 1.38 +% Mercurial command, with arguments. 1.39 +\newcommand{\hgcmdargs}[2]{\index{\texttt{#1} command}``\texttt{hg #1 #2}''} 1.40 + 1.41 +\newcommand{\tplkword}[1]{\index{\texttt{#1} template keyword}\index{template keywords!\texttt{#1}}\texttt{#1}} 1.42 + 1.43 +\newcommand{\tplkwfilt}[2]{\index{\texttt{#1} template keyword!\texttt{#2} 1.44 + filter}\index{template filters!\texttt{#2}}\index{\texttt{#2} 1.45 + template filter}\texttt{#2}} 1.46 + 1.47 +\newcommand{\tplfilter}[1]{\index{template 1.48 + filters!\texttt{#1}}\index{\texttt{#1} template 1.49 + filter}\texttt{#1}} 1.50 + 1.51 +% Shell/system command. 1.52 +\newcommand{\command}[1]{\index{\texttt{#1} system command}\texttt{#1}} 1.53 + 1.54 +% Shell/system command, with arguments. 1.55 +\newcommand{\cmdargs}[2]{\index{\texttt{#1} system command}``\texttt{#1 #2}''} 1.56 + 1.57 +% Mercurial command option. 1.58 +\newcommand{\hgopt}[2]{\index{\texttt{#1} command!\texttt{#2} option}\texttt{#2}} 1.59 + 1.60 +% Mercurial command option, provided by an extension command. 1.61 +\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.62 + 1.63 +% Mercurial global option. 1.64 +\newcommand{\hggopt}[1]{\index{global options!\texttt{#1} option}\texttt{#1}} 1.65 + 1.66 +% Shell/system command option. 1.67 +\newcommand{\cmdopt}[2]{\index{\texttt{#1} command!\texttt{#2} option}\texttt{#2}} 1.68 + 1.69 +% Command option. 1.70 +\newcommand{\option}[1]{\texttt{#1}} 1.71 + 1.72 +% Software package. 1.73 +\newcommand{\package}[1]{\index{\texttt{#1} package}\texttt{#1}} 1.74 + 1.75 +% Section name from a hgrc file. 1.76 +\newcommand{\rcsection}[1]{\index{\texttt{hgrc} file!\texttt{#1} section}\texttt{[#1]}} 1.77 + 1.78 +% Named item in a hgrc file section. 1.79 +\newcommand{\rcitem}[2]{\index{\texttt{hgrc} file!\texttt{#1} 1.80 + section!\texttt{#2} entry}\texttt{#2}} 1.81 + 1.82 +% hgrc file. 1.83 +\newcommand{\hgrc}{\index{configuration file!\texttt{hgrc} 1.84 + (Linux/Unix)}\index{\texttt{hgrc} configuration file}\texttt{hgrc}} 1.85 + 1.86 +% Mercurial.ini file. 1.87 +\newcommand{\hgini}{\index{configuration file!\texttt{Mercurial.ini} 1.88 + (Windows)}\index{\texttt{Mercurial.ini} configuration file}\texttt{Mercurial.ini}} 1.89 + 1.90 +% Hook name. 1.91 +\newcommand{\hook}[1]{\index{\texttt{#1} hook}\index{hooks!\texttt{#1}}\texttt{#1}} 1.92 + 1.93 +% Environment variable. 1.94 +\newcommand{\envar}[1]{\index{\texttt{#1} environment 1.95 + variable}\index{environment variables!\texttt{#1}}\texttt{#1}} 1.96 + 1.97 +% Python module. 1.98 +\newcommand{\pymod}[1]{\index{\texttt{#1} module}\texttt{#1}} 1.99 + 1.100 +% Python class in a module. 1.101 +\newcommand{\pymodclass}[2]{\index{\texttt{#1} module!\texttt{#2} 1.102 + class}\texttt{#1.#2}} 1.103 + 1.104 +% Python function in a module. 1.105 +\newcommand{\pymodfunc}[2]{\index{\texttt{#1} module!\texttt{#2} 1.106 + function}\texttt{#1.#2}} 1.107 + 1.108 +% Note: blah blah. 1.109 +\newsavebox{\notebox} 1.110 +\newenvironment{note}% 1.111 + {\begin{lrbox}{\notebox}\begin{minipage}{0.7\textwidth}\textbf{Nota:}\space}% 1.112 + {\end{minipage}\end{lrbox}\fbox{\usebox{\notebox}}} 1.113 +\newenvironment{caution}% 1.114 + {\begin{lrbox}{\notebox}\begin{minipage}{0.7\textwidth}\textbf{Precaución:}\space}% 1.115 + {\end{minipage}\end{lrbox}\fbox{\usebox{\notebox}}} 1.116 + 1.117 +% Code sample, eating 4 characters of leading space. 1.118 +\DefineVerbatimEnvironment{codesample4}{Verbatim}{frame=single,gobble=4,numbers=left,commandchars=\\\{\}} 1.119 + 1.120 +% Code sample, eating 2 characters of leading space. 1.121 +\DefineVerbatimEnvironment{codesample2}{Verbatim}{frame=single,gobble=2,numbers=left,commandchars=\\\{\}} 1.122 + 1.123 +% Interaction from the examples directory. 1.124 +\newcommand{\interaction}[1]{\VerbatimInput[frame=single,numbers=left,commandchars=\\\{\}]{examples/#1.lxo}} 1.125 +% Example code from the examples directory. 1.126 +\newcommand{\excode}[1]{\VerbatimInput[frame=single,numbers=left,commandchars=\\\{\}]{../examples/#1}} 1.127 + 1.128 +% Graphics inclusion. 1.129 +\ifpdf 1.130 + \newcommand{\grafix}[1]{\includegraphics{#1}} 1.131 +\else 1.132 + \newcommand{\grafix}[1]{\includegraphics{#1.png}} 1.133 +\fi 1.134 + 1.135 +% Reference entry for a command. 1.136 +\newcommand{\cmdref}[2]{\section{\hgcmd{#1}---#2}\label{cmdref:#1}\index{\texttt{#1} command}} 1.137 + 1.138 +% Reference entry for a command option with long and short forms. 1.139 +\newcommand{\optref}[3]{\subsubsection{\hgopt{#1}{--#3}, also \hgopt{#1}{-#2}}} 1.140 + 1.141 +% Reference entry for a command option with only long form. 1.142 +\newcommand{\loptref}[2]{\subsubsection{\hgopt{#1}{--#2} option}} 1.143 + 1.144 +% command to generate a footnote to be used as a translator's note 1.145 +\newcommand{\ndt}[1]{\footnote{\textbf{N. del T.} #1}} 1.146 + 1.147 + 1.148 +%%% Local Variables: 1.149 +%%% mode: latex 1.150 +%%% TeX-master: "00book" 1.151 +%%% End: