groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Groff] [mom] string arguments and double quotes


From: Bertrand Garrigues
Subject: Re: [Groff] [mom] string arguments and double quotes
Date: Sat, 29 Dec 2012 11:37:43 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0

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

[Prev in Thread] Current Thread [Next in Thread]