Hi Denis, Peter,

On 12/27/2012 07:55 PM, Peter Schaffter wrote:
On Thu, Dec 27, 2012, Denis M. Wilson wrote:
Yes, you can use a double quote in a macro argument (it is documented
and has been there forever).

But it gives you the ASCII quote mark, not the typographical open and
close quotes which are use in typesetting English (\[lq] and \[rq]).

If SMARTQUOTES is enabled (it is by default), doubling the quotes
in the string arg to say, HEADING, does, in fact, result in correct
typographical open and close quotes in the HEADING.

However, doubling quotes is generally not recommended for mom
because it can confuse or break other macros and routines.  For
example

   .HEADING 1 """Text of Heading"""

prints correctly in the body of the doc, but results in a blank
entry in the TOC.  That's why the mom documentation recommends
consistent use of \[lq]...\[rq] or \(lq...\(rq in string args.

Thanks for your explanations.

I needed the ascii quote mark (I was writting a technical document and the quotes were surrounding a function parameter, no need to use open and close quotes), so I used \(dq, which works fine too in a HEADING.

Regards,

Bertrand Garrigues

Reply via email to