texinfo-devel
[Top][All Lists]
Advanced

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

Re: kbd and similar command within code


From: Patrice Dumas
Subject: Re: kbd and similar command within code
Date: Mon, 6 Aug 2012 08:07:45 +0200
User-agent: Mutt/1.5.20 (2009-12-10)

On Thu, Aug 02, 2012 at 10:27:26PM +0000, Karl Berry wrote:
> 
>     but it is very strange as in @kbd (which should be the common case),
>     there is nothing that distinguish the @key.
> 
> 1) By default, in TeX, @kbd uses slanted typewriter, thus
> distinguishable from regular (upright) typewriter.

Indeed, but @key is not distinguished in @kbd.


What I propose to do is to use <kbd> or <code> for @kbd based on
kbdinputstyle, as is currently.  Then, for @key, if already in a
monospace environment do nothing (or maybe <span class="key">, if 
in normal text use <tt class="key">.

Browser render <kbd> the same as <code> for me, but it would be easy to
have a css style that says that kbd should be slanted
(font-style:oblique).  Should be do that?

-- 
Pat



reply via email to

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