bos@37: % Bug ID. jerojasro@508: \newcommand{\bug}[1]{\index{Base de datos de fallos de Mercurial jerojasro@508: !\href{http://www.selenic.com/mercurial/bts/issue#1}{fallo jerojasro@508: ~#1}}\href{http://www.selenic.com/mercurial/bts/issue#1}{Fallo de jerojasro@508: Mercurial No.~#1}} bos@37: bos@37: % File name in the user's home directory. bos@4: \newcommand{\tildefile}[1]{\texttt{\~{}/#1}} bos@37: bos@37: % File name. bos@2: \newcommand{\filename}[1]{\texttt{#1}} bos@37: bos@37: % Directory name. bos@16: \newcommand{\dirname}[1]{\texttt{#1}} bos@37: bos@37: % File name, with index entry. bos@37: % The ``s'' prefix comes from ``special''. jerojasro@508: \newcommand{\sfilename}[1]{\index{\texttt{#1}, fichero}\texttt{#1}} bos@37: bos@37: % Directory name, with index entry. jerojasro@508: \newcommand{\sdirname}[1]{\index{\texttt{#1}, directorio}\texttt{#1}} bos@37: bos@37: % Mercurial extension. jerojasro@508: \newcommand{\hgext}[1]{\index{\texttt{#1}, extensi\'on}\texttt{#1}} bos@37: bos@230: % Command provided by a Mercurial extension. jerojasro@508: \newcommand{\hgxcmd}[2]{\index{\texttt{#2}, comando (extensi\'on jerojasro@508: \texttt{#1})}\index{\texttt{#1}, extensi\'on!comando \texttt{#2}}``\texttt{hg #2}''} bos@230: bos@37: % Mercurial command. jerojasro@508: \newcommand{\hgcmd}[1]{\index{\texttt{#1}, comando}``\texttt{hg #1}''} bos@37: bos@37: % Mercurial command, with arguments. jerojasro@508: \newcommand{\hgcmdargs}[2]{\index{\texttt{#1}, comando}``\texttt{hg #1 #2}''} bos@37: jerojasro@508: \newcommand{\tplkword}[1]{\index{\texttt{#1}, palabra clave de jerojasro@508: plantilla}\index{palabras clave de plantilla!\texttt{#1}}\texttt{#1}} bos@80: jerojasro@508: \newcommand{\tplkwfilt}[2]{\index{\texttt{#1}, palabra clave de plantilla!filtro jerojasro@508: \texttt{#2}}\index{filtros de plantilla!\texttt{#2}}\index{\texttt{#2}, filtro jerojasro@508: de plantilla}\texttt{#2}} bos@80: jerojasro@508: \newcommand{\tplfilter}[1]{\index{filtros de jerojasro@508: plantilla!\texttt{#1}}\index{\texttt{#1}, filtro de plantilla}\texttt{#1}} bos@80: bos@37: % Shell/system command. jerojasro@508: \newcommand{\command}[1]{\index{\texttt{#1}, comando de sistema}\texttt{#1}} bos@37: bos@37: % Shell/system command, with arguments. jerojasro@508: \newcommand{\cmdargs}[2]{\index{\texttt{#1} comando de sistema}``\texttt{#1 #2}''} bos@37: bos@37: % Mercurial command option. jerojasro@508: \newcommand{\hgopt}[2]{\index{\texttt{#1}, comando!opción \texttt{#2}}\texttt{#2}} bos@37: bos@230: % Mercurial command option, provided by an extension command. jerojasro@508: \newcommand{\hgxopt}[3]{\index{\texttt{#2}, comando (extensión jerojasro@508: \texttt{#1})!opción \texttt{#3}}\index{\texttt{#1}, extensión!comando jerojasro@508: \texttt{#2}!opción\texttt{#3}}\texttt{#3}} bos@230: bos@37: % Mercurial global option. jerojasro@508: \newcommand{\hggopt}[1]{\index{opciones globales!opción \texttt{#1}}\texttt{#1}} bos@37: bos@37: % Shell/system command option. jerojasro@508: \newcommand{\cmdopt}[2]{\index{\texttt{#1}, comando!opción \texttt{#2}}\texttt{#2}} bos@37: bos@37: % Command option. bos@27: \newcommand{\option}[1]{\texttt{#1}} bos@37: bos@37: % Software package. jerojasro@508: \newcommand{\package}[1]{\index{\texttt{#1}, paquete}\texttt{#1}} bos@37: bos@37: % Section name from a hgrc file. jerojasro@508: \newcommand{\rcsection}[1]{\index{\texttt{hgrc}, fichero!sección \texttt{#1}}\texttt{[#1]}} bos@37: bos@37: % Named item in a hgrc file section. jerojasro@508: \newcommand{\rcitem}[2]{\index{\texttt{hgrc}, fichero!sección jerojasro@508: \texttt{#1}!entrada \texttt{#2}}\texttt{#2}} bos@37: bos@37: % hgrc file. jerojasro@508: \newcommand{\hgrc}{\index{fichero de configuración!\texttt{hgrc} jerojasro@508: (Linux/Unix)}\index{\texttt{hgrc}, fichero de configuración}\texttt{hgrc}} bos@184: bos@184: % Mercurial.ini file. jerojasro@508: \newcommand{\hgini}{\index{fichero de configuración!\texttt{Mercurial.ini} jerojasro@508: (Windows)}\index{\texttt{Mercurial.ini}, fichero de configuración}\texttt{Mercurial.ini}} bos@37: bos@37: % Hook name. jerojasro@508: \newcommand{\hook}[1]{\index{\texttt{#1}, gancho}\index{ganchos!\texttt{#1}}\texttt{#1}} bos@37: bos@37: % Environment variable. jerojasro@508: \newcommand{\envar}[1]{\index{\texttt{#1}, variable de entorno}\index{variables jerojasro@508: de entorno!\texttt{#1}}\texttt{#1}} bos@0: bos@37: % Python module. jerojasro@508: \newcommand{\pymod}[1]{\index{\texttt{#1}, módulo}\texttt{#1}} bos@37: bos@37: % Python class in a module. jerojasro@508: \newcommand{\pymodclass}[2]{\index{\texttt{#1}, módulo!clase \texttt{#2}}\texttt{#1.#2}} bos@37: bos@62: % Python function in a module. jerojasro@508: \newcommand{\pymodfunc}[2]{\index{\texttt{#1}, módulo!función \texttt{#2}}\texttt{#1.#2}} bos@62: bos@37: % Note: blah blah. bos@7: \newsavebox{\notebox} bos@11: \newenvironment{note}% jerojasro@350: {\begin{lrbox}{\notebox}\begin{minipage}{0.7\textwidth}\textbf{Nota:}\space}% bos@11: {\end{minipage}\end{lrbox}\fbox{\usebox{\notebox}}} jeffpc@56: \newenvironment{caution}% jerojasro@350: {\begin{lrbox}{\notebox}\begin{minipage}{0.7\textwidth}\textbf{Precaución:}\space}% jeffpc@56: {\end{minipage}\end{lrbox}\fbox{\usebox{\notebox}}} bos@7: bos@37: % Code sample, eating 4 characters of leading space. bos@4: \DefineVerbatimEnvironment{codesample4}{Verbatim}{frame=single,gobble=4,numbers=left,commandchars=\\\{\}} bos@37: bos@37: % Code sample, eating 2 characters of leading space. bos@37: \DefineVerbatimEnvironment{codesample2}{Verbatim}{frame=single,gobble=2,numbers=left,commandchars=\\\{\}} bos@37: bos@37: % Interaction from the examples directory. bos@146: \newcommand{\interaction}[1]{\VerbatimInput[frame=single,numbers=left,commandchars=\\\{\}]{examples/#1.lxo}} bos@106: % Example code from the examples directory. bos@106: \newcommand{\excode}[1]{\VerbatimInput[frame=single,numbers=left,commandchars=\\\{\}]{../examples/#1}} bos@106: bos@37: % Graphics inclusion. bos@11: \ifpdf jerojasro@390: \newcommand{\grafix}[2][]{\includegraphics[#1]{#2}} bos@11: \else bos@11: \newcommand{\grafix}[1]{\includegraphics{#1.png}} bos@11: \fi bos@11: bos@132: % Reference entry for a command. jerojasro@508: \newcommand{\cmdref}[2]{\section{\hgcmd{#1}---#2}\label{cmdref:#1}\index{\texttt{#1}, comando}} bos@132: bos@133: % Reference entry for a command option with long and short forms. jerojasro@508: \newcommand{\optref}[3]{\subsubsection{\hgopt{#1}{--#3}, también \hgopt{#1}{-#2}}} bos@133: bos@133: % Reference entry for a command option with only long form. jerojasro@508: \newcommand{\loptref}[2]{\subsubsection{opción \hgopt{#1}{--#2}}} bos@132: jerojasro@348: % command to generate a footnote to be used as a translator's note jerojasro@348: \newcommand{\ndt}[1]{\footnote{\textbf{N. del T.} #1}} jerojasro@348: jerojasro@348: bos@0: %%% Local Variables: bos@0: %%% mode: latex bos@0: %%% TeX-master: "00book" bos@0: %%% End: