Mercurial > hgbook
comparison es/99defs.tex @ 776:019040fbf5f5
merged to upstream: phase 1
| author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
|---|---|
| date | Tue, 21 Apr 2009 00:36:40 +0900 |
| parents | en/99defs.tex@73aa295a40da en/99defs.tex@c054534808e6 |
| children |
comparison
equal
deleted
inserted
replaced
| 389:5981a0f7540a | 776:019040fbf5f5 |
|---|---|
| 1 % Bug ID. | |
| 2 \newcommand{\bug}[1]{\index{Base de datos de fallos de Mercurial | |
| 3 !\href{http://www.selenic.com/mercurial/bts/issue#1}{fallo | |
| 4 ~#1}}\href{http://www.selenic.com/mercurial/bts/issue#1}{Fallo de | |
| 5 Mercurial No.~#1}} | |
| 6 | |
| 7 % File name in the user's home directory. | |
| 8 \newcommand{\tildefile}[1]{\texttt{\~{}/#1}} | |
| 9 | |
| 10 % File name. | |
| 11 \newcommand{\filename}[1]{\texttt{#1}} | |
| 12 | |
| 13 % Directory name. | |
| 14 \newcommand{\dirname}[1]{\texttt{#1}} | |
| 15 | |
| 16 % File name, with index entry. | |
| 17 % The ``s'' prefix comes from ``special''. | |
| 18 \newcommand{\sfilename}[1]{\index{\texttt{#1}, fichero}\texttt{#1}} | |
| 19 | |
| 20 % Directory name, with index entry. | |
| 21 \newcommand{\sdirname}[1]{\index{\texttt{#1}, directorio}\texttt{#1}} | |
| 22 | |
| 23 % Mercurial extension. | |
| 24 \newcommand{\hgext}[1]{\index{\texttt{#1}, extensi\'on}\texttt{#1}} | |
| 25 | |
| 26 % Command provided by a Mercurial extension. | |
| 27 \newcommand{\hgxcmd}[2]{\index{\texttt{#2}, comando (extensi\'on | |
| 28 \texttt{#1})}\index{\texttt{#1}, extensi\'on!comando \texttt{#2}}``\texttt{hg #2}''} | |
| 29 | |
| 30 % Mercurial command. | |
| 31 \newcommand{\hgcmd}[1]{\index{\texttt{#1}, comando}``\texttt{hg #1}''} | |
| 32 | |
| 33 % Mercurial command, with arguments. | |
| 34 \newcommand{\hgcmdargs}[2]{\index{\texttt{#1}, comando}``\texttt{hg #1 #2}''} | |
| 35 | |
| 36 \newcommand{\tplkword}[1]{\index{\texttt{#1}, palabra clave de | |
| 37 plantilla}\index{palabras clave de plantilla!\texttt{#1}}\texttt{#1}} | |
| 38 | |
| 39 \newcommand{\tplkwfilt}[2]{\index{\texttt{#1}, palabra clave de plantilla!filtro | |
| 40 \texttt{#2}}\index{filtros de plantilla!\texttt{#2}}\index{\texttt{#2}, filtro | |
| 41 de plantilla}\texttt{#2}} | |
| 42 | |
| 43 \newcommand{\tplfilter}[1]{\index{filtros de | |
| 44 plantilla!\texttt{#1}}\index{\texttt{#1}, filtro de plantilla}\texttt{#1}} | |
| 45 | |
| 46 % Shell/system command. | |
| 47 \newcommand{\command}[1]{\index{\texttt{#1}, comando de sistema}\texttt{#1}} | |
| 48 | |
| 49 % Shell/system command, with arguments. | |
| 50 \newcommand{\cmdargs}[2]{\index{\texttt{#1} comando de sistema}``\texttt{#1 #2}''} | |
| 51 | |
| 52 % Mercurial command option. | |
| 53 \newcommand{\hgopt}[2]{\index{\texttt{#1}, comando!opci坦n \texttt{#2}}\texttt{#2}} | |
| 54 | |
| 55 % Mercurial command option, provided by an extension command. | |
| 56 \newcommand{\hgxopt}[3]{\index{\texttt{#2}, comando (extensi坦n | |
| 57 \texttt{#1})!opci坦n \texttt{#3}}\index{\texttt{#1}, extensi坦n!comando | |
| 58 \texttt{#2}!opci坦n\texttt{#3}}\texttt{#3}} | |
| 59 | |
| 60 % Mercurial global option. | |
| 61 \newcommand{\hggopt}[1]{\index{opciones globales!opci坦n \texttt{#1}}\texttt{#1}} | |
| 62 | |
| 63 % Shell/system command option. | |
| 64 \newcommand{\cmdopt}[2]{\index{\texttt{#1}, comando!opci坦n \texttt{#2}}\texttt{#2}} | |
| 65 | |
| 66 % Command option. | |
| 67 \newcommand{\option}[1]{\texttt{#1}} | |
| 68 | |
| 69 % Software package. | |
| 70 \newcommand{\package}[1]{\index{\texttt{#1}, paquete}\texttt{#1}} | |
| 71 | |
| 72 % Section name from a hgrc file. | |
| 73 \newcommand{\rcsection}[1]{\index{\texttt{hgrc}, fichero!secci坦n \texttt{#1}}\texttt{[#1]}} | |
| 74 | |
| 75 % Named item in a hgrc file section. | |
| 76 \newcommand{\rcitem}[2]{\index{\texttt{hgrc}, fichero!secci坦n | |
| 77 \texttt{#1}!entrada \texttt{#2}}\texttt{#2}} | |
| 78 | |
| 79 % hgrc file. | |
| 80 \newcommand{\hgrc}{\index{fichero de configuraci坦n!\texttt{hgrc} | |
| 81 (Linux/Unix)}\index{\texttt{hgrc}, fichero de configuraci坦n}\texttt{hgrc}} | |
| 82 | |
| 83 % Mercurial.ini file. | |
| 84 \newcommand{\hgini}{\index{fichero de configuraci坦n!\texttt{Mercurial.ini} | |
| 85 (Windows)}\index{\texttt{Mercurial.ini}, fichero de configuraci坦n}\texttt{Mercurial.ini}} | |
| 86 | |
| 87 % Hook name. | |
| 88 \newcommand{\hook}[1]{\index{\texttt{#1}, gancho}\index{ganchos!\texttt{#1}}\texttt{#1}} | |
| 89 | |
| 90 % Environment variable. | |
| 91 \newcommand{\envar}[1]{\index{\texttt{#1}, variable de entorno}\index{variables | |
| 92 de entorno!\texttt{#1}}\texttt{#1}} | |
| 93 | |
| 94 % Python module. | |
| 95 \newcommand{\pymod}[1]{\index{\texttt{#1}, m坦dulo}\texttt{#1}} | |
| 96 | |
| 97 % Python class in a module. | |
| 98 \newcommand{\pymodclass}[2]{\index{\texttt{#1}, m坦dulo!clase \texttt{#2}}\texttt{#1.#2}} | |
| 99 | |
| 100 % Python function in a module. | |
| 101 \newcommand{\pymodfunc}[2]{\index{\texttt{#1}, m坦dulo!funci坦n \texttt{#2}}\texttt{#1.#2}} | |
| 102 | |
| 103 % Note: blah blah. | |
| 104 \newsavebox{\notebox} | |
| 105 \newenvironment{note}% | |
| 106 {\begin{lrbox}{\notebox}\begin{minipage}{0.7\textwidth}\textbf{Nota:}\space}% | |
| 107 {\end{minipage}\end{lrbox}\fbox{\usebox{\notebox}}} | |
| 108 \newenvironment{caution}% | |
| 109 {\begin{lrbox}{\notebox}\begin{minipage}{0.7\textwidth}\textbf{Precauci坦n:}\space}% | |
| 110 {\end{minipage}\end{lrbox}\fbox{\usebox{\notebox}}} | |
| 111 | |
| 112 % Code sample, eating 4 characters of leading space. | |
| 113 \DefineVerbatimEnvironment{codesample4}{Verbatim}{frame=single,gobble=4,numbers=left,commandchars=\\\{\}} | |
| 114 | |
| 115 % Code sample, eating 2 characters of leading space. | |
| 116 \DefineVerbatimEnvironment{codesample2}{Verbatim}{frame=single,gobble=2,numbers=left,commandchars=\\\{\}} | |
| 117 | |
| 118 % Interaction from the examples directory. | |
| 119 \newcommand{\interaction}[1]{\VerbatimInput[frame=single,numbers=left,commandchars=\\\{\}]{examples/#1.lxo}} | |
| 120 % Example code from the examples directory. | |
| 121 \newcommand{\excode}[1]{\VerbatimInput[frame=single,numbers=left,commandchars=\\\{\}]{../examples/#1}} | |
| 122 | |
| 123 % Graphics inclusion. | |
| 124 \ifpdf | |
| 125 \newcommand{\grafix}[2][]{\includegraphics[#1]{#2}} | |
| 126 \else | |
| 127 \newcommand{\grafix}[1]{\includegraphics{#1.png}} | |
| 128 \fi | |
| 129 | |
| 130 % Reference entry for a command. | |
| 131 \newcommand{\cmdref}[2]{\section{\hgcmd{#1}---#2}\label{cmdref:#1}\index{\texttt{#1}, comando}} | |
| 132 | |
| 133 % Reference entry for a command option with long and short forms. | |
| 134 \newcommand{\optref}[3]{\subsubsection{\hgopt{#1}{--#3}, tambi辿n \hgopt{#1}{-#2}}} | |
| 135 | |
| 136 % Reference entry for a command option with only long form. | |
| 137 \newcommand{\loptref}[2]{\subsubsection{opci坦n \hgopt{#1}{--#2}}} | |
| 138 | |
| 139 % command to generate a footnote to be used as a translator's note | |
| 140 \newcommand{\ndt}[1]{\footnote{\textbf{N. del T.} #1}} | |
| 141 | |
| 142 | |
| 143 %%% Local Variables: | |
| 144 %%% mode: yatex | |
| 145 %%% TeX-master: "00book" | |
| 146 %%% End: |
