From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [RFC] New "kbd" macro? Date: Fri, 15 Sep 2017 13:52:49 +0200 Message-ID: <87poasch66.fsf@nicolasgoaziou.fr> References: <87377qpwc7.fsf@nicolasgoaziou.fr> <87a81xn1oh.fsf@gmx.us> <87lglhj5vj.fsf@nicolasgoaziou.fr> <87mv5w8lbr.fsf@gmx.us> <877ex0e07e.fsf@nicolasgoaziou.fr> <878thg8az3.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36898) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dspAz-000173-Uq for emacs-orgmode@gnu.org; Fri, 15 Sep 2017 07:52:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dspAy-0001H7-RP for emacs-orgmode@gnu.org; Fri, 15 Sep 2017 07:52:54 -0400 Received: from relay2-d.mail.gandi.net ([2001:4b98:c:538::194]:39755) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dspAy-0001GA-M3 for emacs-orgmode@gnu.org; Fri, 15 Sep 2017 07:52:52 -0400 In-Reply-To: <878thg8az3.fsf@gmx.us> (rasmus@gmx.us's message of "Fri, 15 Sep 2017 13:20:16 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Rasmus Cc: emacs-orgmode@gnu.org Rasmus writes: > You are right, for LaTeX, you would probably want two. So > > {{{kbd(CTRL-x-f)}}} > > would be initiated for org-latex-kdb-format string, which would default to > > \texttt{%s} > > Whether a key is needed depends on what it exactly entrails. If each of > "CTRL", "x" and "f" is a key, then perhaps it makes sense to have a > separate formating-string to e.g. denote "\fbox{%s}", allowing output > like, if desired. > > \texttt{\fbox{Ctrl}-\fbox{x}-\fbox{f}} Note that, per (info "(texinfo) @key"), this should still be \texttt{Ctrl-x-f} @key is only applied to the modifier key in isolation. Another idea could be to allow second argument to implement styles, e.g. {{{kbd(C-x-f, menukeys)}}} We need to implement a couple of them, tho. Marcin offered some help here. >> I'm not much into ODT styles, but if you have an example, I will merrily >> add it. > > I guess the most straight forward way would be just add a new style to > OrgOdtStyles.xml, > > > > And output it as, > > Ctrl-x-f > > According to this thread, > > https://lists.freedesktop.org/archives/libreoffice/2011-November/0212= 81.html > > LO even supports nested text:span, so it could probably even have a > seperate style for KBD. > > > > Ctrl- > x- > f > > > Maybe it=E2=80=99s unnecessary complexity, with little benefit... I think I like it because it is closer to Texinfo syntax. Regards,