bug-texinfo
[Top][All Lists]
Advanced

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

Re: @deftypefn PDF font issue with brackets and parentheses


From: Vincent Lefevre
Subject: Re: @deftypefn PDF font issue with brackets and parentheses
Date: Thu, 17 Nov 2022 18:59:25 +0100
User-agent: Mutt/2.2.9+46 (f65467b0) vl-149028 (2022-11-12)

On 2022-11-17 17:47:07 +0000, Gavin Smith wrote:
> On Thu, Nov 17, 2022 at 11:17:10AM +0100, Vincent Lefevre wrote:
> > On 2022-11-16 23:22:27 +0000, Gavin Smith wrote:
> > > The square brackets can also be used to mark optional arguments in
> > > other programming languages, so it may not be better to change the
> > > font for these.
> > 
> > Since C (including C++) is very common (and its prototype formats
> > is used for library interfaces), I think that it would be worth to
> > define new commands for it.
> > 
> > > You can get the regular monospace font with @t:
> > > 
> > > @deftypefun  int f (char *t@t{[]})
> > 
> > Unfortunately this hack is broken, because in HTML, it is rendered
> > as <tt>[]</tt>, while with @deftypefn, *all* the argument part is
> > written without tt and with em (thus in italics). So this makes the
> > HTML output inconsistent. However, the issue is rather that tt is
> > not used at all with @deftypefn in HTML. IMHO, the style for HTML
> > output should be aligned with TeX output, where tt is used.
> 
> Have you tested this with Texinfo 7.0 or with the latest development
> version?  The font for HTML output for @deftypefn should be in the tt
> style and this was a recent change following lengthy discussion on
> this list.

Not yet (it is not even in Debian/unstable yet). Unfortunately, it is
too new to assume that all users will have it... Or is there a way to
provide the HTML styles in our package (like what can be done with
texinfo.tex)?

-- 
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)



reply via email to

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