[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
@deftypefn PDF font issue with brackets and parentheses
From: |
Vincent Lefevre |
Subject: |
@deftypefn PDF font issue with brackets and parentheses |
Date: |
Tue, 15 Nov 2022 14:54:45 +0100 |
User-agent: |
Mutt/2.2.9+46 (f65467b0) vl-149028 (2022-11-12) |
Consider
------------------------------------------------------------
\input texinfo @c -*-texinfo-*-
@code{char *t[]}
@code{char *t()}
@code{char *t__}
@deftypefn Macro int f (char *t[])
@deftypefnx Macro int f (char *t())
@deftypefnx Macro int f (char *t__)
@end deftypefn
@deftypefun int f (char *t[])
@deftypefunx int f (char *t())
@deftypefunx int f (char *t__)
@end deftypefun
@bye
------------------------------------------------------------
For @code, this is OK, but for @deftypefn and variants, the
square brackets and parentheses are rendered in a variable
width font instead of the monospace font. Note that in addition
to unusual style, the "[]" looks like a rectangle.
In practice, the issue can be seen in the GNU MPFR manual, which has
@deftypefun int mpfr_sum (mpfr_t @var{rop}, const mpfr_ptr @var{tab}[],
unsigned long int @var{n}, mpfr_rnd_t @var{rnd})
--
Vincent Lefèvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
- @deftypefn PDF font issue with brackets and parentheses,
Vincent Lefevre <=