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