bug-texinfo
[Top][All Lists]
Advanced

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

Re: how to use C++ references


From: Karl Berry
Subject: Re: how to use C++ references
Date: Sun, 21 Feb 2010 22:28:52 GMT

Hi Marc,

    What is the official way to get a proper '&' in texinfo?

Is the proper one bold or roman, in your eyes?

I guess it never got written down, but the idea behind the special
interpretation of & in texinfo.tex was for use in Lispish languages,
where it introduces a keyword (&rest, etc.).  So it is printed in bold
in the arg lists for @defun and the other untyped definitions.

Since C++ is a typed language, unlike Lisp, it seems like @deftypefun
and @deftypemethod are the proper things to use.  And in that case, the
& is printed in roman.

If that's what you wanted, it seems the remaining question is the extra
space.  I don't see it.  If you're not using the latest texinfo.tex,
please try that (you can get it from tug.org:tex/texinfo.tex, among many
other places).  Unless you meant makeinfo output; I didn't try running
makeinfo on it.

(No question that the whole typed vs. untyped support is suboptimal.)

Best,
Karl




reply via email to

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