bug-texinfo
[Top][All Lists]
Advanced

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

Re: @code{} inside of @math{}


From: Gavin Smith
Subject: Re: @code{} inside of @math{}
Date: Sat, 10 Mar 2018 13:17:52 +0000

On 6 March 2018 at 11:50, Hefferon, James S. <address@hidden> wrote:
> 1) If I use @math{... @code{} ...} then the HTML output does not show the 
> @code{} output in monospace; it is instead in italics.  This can be fixed 
> with a line of CSS.

> I run: makeinfo --html mathtest.  The HTML output is

> <p><em><code>aaa</code>+<code>bbb</code></em>

I get the same output.

> In both a recent Chrome and a recent Firefox the `aaa' and `bbb' are in 
> monospace in the Test line but in italics in the em line.

I don't get that. I get slanted monospace. Check the letter form of
the "a", if it has a hook on top it is not italics. It must depend on
the browser.

If I change the text inside @code to something else like "teest
monospace" it is easier to see that the font is monospace - see
attached image.

>
> I find that a fix is adding this CSS.
>
> code {font-style: normal; font-family: monospace}
>
>

I don't like this idea because the browser should do the right thing
with the <code> tag anyway.

Attachment: fonts.png
Description: PNG image


reply via email to

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