bug-texinfo
[Top][All Lists]
Advanced

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

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


From: Hefferon, James S.
Subject: Re: @code{} inside of @math{}
Date: Fri, 9 Mar 2018 22:14:10 +0000

OK, I find that in looking at the archive for this list is says

@address@hidden@code{bbb}}

where my mailing system says I mailed

@address@hidden@code{bbb}}

Jim

-----------
Corrupt kleptocrats and international criminals make themselves rich in 
criminality and corruption. Then at some point they need the legitimate world 
in order to protect and account for their stolen proceeds.
    --Sheldon Whitehouse

________________________________________
From: Hefferon, James S.
Sent: Tuesday, March 6, 2018 6:50:34 AM
To: address@hidden
Subject: @code{} inside of @math{}

Hello.

Thank you for your work on the software.

I have two bug reports.

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.

Here is a minimal working example demo file.

+++++++++++++
\input texinfo
@settitle name-of-manual

Test test test @code{aaa} test @code{bbb}.

@address@hidden@code{bbb}}

Test test test

@bye
---------------------

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

<body lang="en">
<h1 class="settitle" align="center">name-of-manual</h1>

<p>Test test test <code>aaa</code> test <code>bbb</code>.
</p>
<p><em><code>aaa</code>+<code>bbb</code></em>
</p>
<p>Test test test
</p>



</body>

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 find that a fix is adding this CSS.

code {font-style: normal; font-family: monospace}


2) I have a related report: I find that writing \\aaa inside of @math{} gives 
output in HTML that is just \\aaa.  I expected \aaa, as in PDF.

(I find that @\aaa gives \aaa in both HTML and PDF but I understand that this 
is not the right approach.)


Regards,
Jim

-----------
Corrupt kleptocrats and international criminals make themselves rich in 
criminality and corruption. Then at some point they need the legitimate world 
in order to protect and account for their stolen proceeds.
    --Sheldon Whitehouse



reply via email to

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