groff
[Top][All Lists]
Advanced

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

Re: PDF macros case sensitivity


From: Dave Kemper
Subject: Re: PDF macros case sensitivity
Date: Tue, 14 Nov 2023 12:23:04 -0600

On 11/14/23, Michał Kruszewski via <groff@gnu.org> wrote:
> What is more, when the user types .PDFHREF, there is no warning or error.

It's longstanding roff practice to silently ignore undefined macro calls.

$ echo .TOTAL-GARBAGE-KJSFHUWER | groff
$

But you can enable warnings for this.  As Deri suggests, you can
supply the -ww flag, which enables all warnings.  Or you can take a
more targeted approach and enable only warnings for undefined
macros/strings/diversions with -wmac:

$ echo .TOTAL-GARBAGE-KJSFHUWER | groff -wmac
troff:<standard input>:1: warning: macro 'TOTAL-GARBAGE-KJSFHUWER' not defined
$

Groff also lets you enable warnings (all, or specific ones) within the
document, so you don't have to type command-line flags every time you
run it.  See the .warn request.



reply via email to

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