12.07.2015 Views

The memoir class - The UK TeX Archive

The memoir class - The UK TeX Archive

The memoir class - The UK TeX Archive

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

15.3. Verbatims\end{comment}...\begin{review}\textit{REVIEWERS: Please pay particular attention to this section.}\end{review}...Comment environments cannot be nested, nor can they overlap. <strong>The</strong> environments inthe code below will not work in the manner that might be expected:\newcomment{acomment} \newcomment{mycomment}\begin{comment}\begin{acomment} %% comments cannot be nested...\end{acomment}...\begin{mycomment}...\end{comment}...\end{mycomment} %% comments cannot overlapMore encompassing comment environments are available if you use Victor Eijkhout’scomment package [Eij99].15.3 VERBATIMSStandard La<strong>TeX</strong> defines the \verb and \verb* commands for typesetting short pieces oftext verbatim, short because they cannot include a linebreak. For longer verbatim textsthe verbatim or verbatim* environments can be used. <strong>The</strong> star forms indicate spaces inthe verbatim text by outputing a mark for each space. <strong>The</strong> <strong>class</strong> extends the standardverbatims in various ways.If you have to write a lot of \verb text, as I have had to do for this book, it gets tediousto keep on typing this sort of thing: \verb!verbatim text!. Remember that thecharacter immediately after the \verb, or \verb*, ends the verbatim processing.\MakeShortVerb{〈backslash-char〉}\DeleteShortVerb{〈backslash-char〉}<strong>The</strong> \MakeShortVerb macro takes a character preceded by a backslash as its argument,say \!, and makes that character equivalent to \verb!. Using the character a second timewill stop the verbatim processing. Doing, for example \MakeShortVerb{\!}, lets youthen use !verbatim text! instead of the longer winded \verb!verbatim text!.You have to pick as the short verb character one that you are unlikely to use; a goodchoice is often the | bar character as this rarely used in normal text. This choice, thoughmay be unfortunate if you want to have any tabulars with vertical lines, as the bar characteris used to specify those. <strong>The</strong> \DeleteShortVerb macro is provided for this contingency;give it the same argument as an earlier \MakeShortVerb and it will restore the short verbcharacter to its normal state.279

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!