Change occurences of #+srcname to #+name

This commit is contained in:
John Wiegley 2012-08-01 16:08:43 -05:00
parent 8538878d8d
commit f34a4e315e

View file

@ -4183,7 +4183,7 @@ The easiest, albeit possibly less useful, way in which to use Ledger
within an org file is to use a single source block to record all Ledger within an org file is to use a single source block to record all Ledger
entries. The following is an example source block: entries. The following is an example source block:
@smallexample @smallexample
#+srcname: allinone #+name: allinone
#+begin_src ledger #+begin_src ledger
2010/01/01 * Starting balance 2010/01/01 * Starting balance
assets:bank:savings £1300.00 assets:bank:savings £1300.00
@ -4254,7 +4254,7 @@ placed several entries, but we could have had each entry in a separate
src block. Note that all code blocks you wish to refer to later must src block. Note that all code blocks you wish to refer to later must
have the :noweb yes babel header argument specified. have the :noweb yes babel header argument specified.
@smallexample @smallexample
#+srcname: income #+name: income
#+begin_src ledger :noweb yes #+begin_src ledger :noweb yes
2010/01/01 * Starting balance 2010/01/01 * Starting balance
assets:bank:savings £1300.00 assets:bank:savings £1300.00
@ -4279,7 +4279,7 @@ The following entries relate to personal expenses, such as rent and
food. Again, these have all been placed in a single src block but could food. Again, these have all been placed in a single src block but could
have been done individually. have been done individually.
@smallexample @smallexample
#+srcname: expenses #+name: expenses
#+begin_src ledger :noweb yes #+begin_src ledger :noweb yes
2010/07/23 Rent 2010/07/23 Rent
expenses:rent £500.00 expenses:rent £500.00
@ -4306,7 +4306,7 @@ to Ledger. This code block can now be evaluated (C-c C-c) and the
results generated by incorporating the transactions referred to by the results generated by incorporating the transactions referred to by the
<<income>> and <<expenses>>= lines. <<income>> and <<expenses>>= lines.
@smallexample @smallexample
#+srcname: balance #+name: balance
#+begin_src ledger :cmdline bal :noweb yes #+begin_src ledger :cmdline bal :noweb yes
<<income>> <<income>>
<<expenses>> <<expenses>>
@ -4348,7 +4348,7 @@ each monthly period (the -M argument) with a running total in the final
column (which should be 0 at the end if all the entries are correct). column (which should be 0 at the end if all the entries are correct).
@smallexample @smallexample
#+srcname: monthlyregister #+name: monthlyregister
#+begin_src ledger :cmdline -M reg :noweb yes #+begin_src ledger :cmdline -M reg :noweb yes
<<income>> <<income>>
<<expenses>> <<expenses>>
@ -4372,7 +4372,7 @@ are increasing (or decreasing!). In this case, the final column will be
the running total of the assets in our ledger. the running total of the assets in our ledger.
@smallexample @smallexample
#+srcname: monthlyassetsregister #+name: monthlyassetsregister
#+begin_src ledger :cmdline -M reg assets :noweb yes #+begin_src ledger :cmdline -M reg assets :noweb yes
<<income>> <<income>>
<<expenses>> <<expenses>>