hgbook
diff en/mq.tex @ 4:33a2e7b9978d
Make it possible to include example input and output from real programs.
Instead of having to cut and paste example text, the task is automated.
Instead of having to cut and paste example text, the task is automated.
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Sun Jun 25 22:04:50 2006 -0700 (2006-06-25) |
parents | 906d9021f9e5 |
children | 339e75288632 |
line diff
1.1 --- a/en/mq.tex Sat Jun 24 17:42:40 2006 -0700 1.2 +++ b/en/mq.tex Sun Jun 25 22:04:50 2006 -0700 1.3 @@ -131,16 +131,26 @@ 1.4 Because MQ is implemented as an extension, you must explicitly enable 1.5 before you can use it. (You don't need to download anything; MQ ships 1.6 with the standard Mercurial distribution.) To enable MQ, edit your 1.7 -\tildefile{.hgrc} file, and add the following lines: 1.8 +\tildefile{.hgrc} file, and add the lines in figure~\ref{ex:mq:config}. 1.9 1.10 -\begin{codesample} 1.11 - [extensions] 1.12 - hgext.mq = 1.13 -\end{codesample} 1.14 +\begin{figure} 1.15 + \begin{codesample4} 1.16 + [extensions] 1.17 + hgext.mq = 1.18 + \end{codesample4} 1.19 + \label{ex:mq:config} 1.20 + \caption{Contents to add to \tildefile{.hgrc} to enable the MQ extension} 1.21 +\end{figure} 1.22 1.23 Once the extension is enabled, it will make a number of new commands 1.24 -available. 1.25 +available. To verify that the extension is working, follow the 1.26 +example in figure~\ref{ex:mq:enabled}. 1.27 1.28 +\begin{figure} 1.29 + \interaction{mq.qinit-help.help} 1.30 + \caption{How to verify that MQ is enabled} 1.31 + \label{ex:mq:enabled} 1.32 +\end{figure} 1.33 1.34 %%% Local Variables: 1.35 %%% mode: latex