[latexrefman] Change legend for list picture

Hefferon, James S. jhefferon at smcvt.edu
Sat Feb 24 00:03:10 CET 2018


In the HTML version, for example on line  4199, if I have

 @math{@code{\topsep}+ at code{\\parskip}}

then the output is

"\topsep+\\parskip"

where the \topsep and the \\parskip are in italics.

My Texinfo is the Ubuntu standard, 6.1.0.

Jim

-----------
... and if I did fall,
  I would fly.  -- Philippe Petit

________________________________________
From: Karl Berry <karl at freefriends.org>
Sent: Friday, February 23, 2018 5:43:28 PM
To: Hefferon, James S.
Cc: latexrefman at tug.org
Subject: Re: [latexrefman] Change legend for list picture

    > @math{@code{\somepenalty} < 10000}

    This is exactly what I mean.  I found that the text inside @code is
    in italics.

Please send failing code. It works for me. texinfo.tex 2018-02-12.17
(available from ftp.gnu.org), but I would hope it has worked all along.

However, I forgot that it is necessary to double the backslash inside
@math (because \ is itself an escape character, like @, inside @math --
though nowhere else in Texinfo).  Thus, this four-line file:

\input texinfo
@setfilename mathcode.info
@math{@code{\\somepenalty} < 10000}
@bye

ends up with the expected output for me -- "\somepenalty < 10000",
with "\somepenalty" in typewriter, with a real $<$ sign, spaced for math. -k


-------------- next part --------------
A non-text attachment was scrubbed...
Name: latex2e.texi
Type: text/x-texinfo
Size: 373285 bytes
Desc: latex2e.texi
URL: <http://tug.org/pipermail/latexrefman/attachments/20180223/26276f64/attachment-0001.bin>


More information about the latexrefman mailing list