Re: [PATCH 2/2] ox-texinfo: Define definition commands using description lists

2022-01-05 Thread Jonas Bernoulli
Nicolas Goaziou writes: > Hello, > > Jonas Bernoulli writes: > >> Would it be okay to represent e.g. "C-c SPC" as: >> >>(export-snippet >> (:back-end "texinfo" :value "@kbd{C-c @key{SPC}}" :post-blank 0 :parent >> #2)) > > Just use (org-export-raw-string "@kbd{C-c @key{SPC}}") instead.

Re: [PATCH 2/2] ox-texinfo: Define definition commands using description lists

2021-12-29 Thread Nicolas Goaziou
Hello, Jonas Bernoulli writes: > Would it be okay to represent e.g. "C-c SPC" as: > >(export-snippet > (:back-end "texinfo" :value "@kbd{C-c @key{SPC}}" :post-blank 0 :parent > #2)) Just use (org-export-raw-string "@kbd{C-c @key{SPC}}") instead. > I think that is one of the things I t

Re: [PATCH 2/2] ox-texinfo: Define definition commands using description lists

2021-12-27 Thread Jonas Bernoulli
Nicolas Goaziou writes: > There's a mismatch between the keys. Fixed. > Simply put: > > Command in parenthesis, as done above, is optional. Done. >> +Regardless of which approach you use, you must define the =kbd= macro >> +(see [[*Macro Replacement]]), which you can then use anywhere in the

Re: [PATCH 2/2] ox-texinfo: Define definition commands using description lists

2021-12-26 Thread Nicolas Goaziou
Hello, Thanks. Jonas Bernoulli writes: > +#+begin_example > +- Key: C-n (do-something) :: > + This command does something. > + > +- User Option: do-something-somehow :: > + This option controls how exactly ~do-something~ does its thing. > +#+end_example > + > +#+texinfo: @noindent > +becomes

[PATCH 2/2] ox-texinfo: Define definition commands using description lists

2021-12-18 Thread Jonas Bernoulli
* doc/org-manual.org (Plain lists in Texinfo export): Document use of definition command prefixes in description lists. * lisp/ox-texinfo.el (org-texinfo--definition-command-alist) (org-texinfo--definition-command-regexp): New variables. * lisp/ox-texinfo.el (org-texinfo--filter-parse-tree): Call