Use @kbd instead of @code for keyboard shortcuts

This commit is contained in:
thdox 2013-04-28 14:11:54 +02:00
parent b5de3925c7
commit 1af84dcaa4

View file

@ -4285,13 +4285,13 @@ line options.
: £-1300.00 starting balances : £-1300.00 starting balances
@end smallexample @end smallexample
Typing @command{C-c C-c} anywhere in the ``ledger source code block'' Typing @kbd{C-c C-c} anywhere in the ``ledger source code block'' will
will invoke ledger on the contents of that block and generate a invoke ledger on the contents of that block and generate a ``results''
``results'' block. The results block can appear anywhere in the file block. The results block can appear anywhere in the file but, by
but, by default, will appear immediately below the source code block. default, will appear immediately below the source code block.
You can combine multiple source code blocks before executing ledger and You can combine multiple source code blocks before executing ledger
do all kinds of other wonderful things with Babel (and org). and do all kinds of other wonderful things with Babel (and org).
@node Org mode with Babel, The pricemap Command, Emacs Org mode, Reports in other Formats @node Org mode with Babel, The pricemap Command, Emacs Org mode, Reports in other Formats
@subsection Org mode with Babel @subsection Org mode with Babel
@ -4379,14 +4379,14 @@ entries. The following is an example source block:
#+end_src #+end_src
@end smallexample @end smallexample
In this example, we have combined both expenses and income into one set In this example, we have combined both expenses and income into one
of Ledger entries. We can now generate register and balance reports (as set of Ledger entries. We can now generate register and balance
well as many other types of reports) using babel to invoke Ledger with reports (as well as many other types of reports) using babel to invoke
specific arguments. The arguments are passed to Ledger using the Ledger with specific arguments. The arguments are passed to Ledger
:cmdline header argument. In the code block above, there is no such using the :cmdline header argument. In the code block above, there is
argument so the system takes the default. For Ledger code blocks, the no such argument so the system takes the default. For Ledger code
default :cmdline argument is bal and the result of evaluating this code blocks, the default :cmdline argument is bal and the result of
block (@command{C-c C-c}) would be: evaluating this code block (@kbd{C-c C-c}) would be:
@smallexample @smallexample
#+results: allinone() #+results: allinone()
@ -4487,7 +4487,7 @@ a register report of all transactions.
The overall balance of your account and expenditure with a breakdown The overall balance of your account and expenditure with a breakdown
according to category is specified by passing the :cmdline bal according to category is specified by passing the :cmdline bal
argument to Ledger. This code block can now be evaluated (@code{C-c argument to Ledger. This code block can now be evaluated (@kbd{C-c
C-c}) and the results generated by incorporating the transactions C-c}) and the results generated by incorporating the transactions
referred to by the @code{<<income>>} and @code{<<expenses>>} lines. referred to by the @code{<<income>>} and @code{<<expenses>>} lines.