1
0

a combined quick reference, aka "rosetta stone"

Covers the essentials of Ledger/hledger/Beancount journal format.
The master copy is in google docs for easier table editing,
but this will likely change in future.
This commit is contained in:
Simon Michael
2016-03-14 08:49:45 -07:00
parent ca1bf22fc8
commit b6bf2ee405
8 changed files with 1199 additions and 2 deletions

11
quickref/a.beancount Normal file
View File

@@ -0,0 +1,11 @@
2016-01-01 open Assets:Checking
2016-01-01 open Equity:Opening-Balances
2016-01-01 open Expenses:Groceries
2016-01-01 txn "set opening balance"
Assets:Checking 1.000,0001USD
Equity:Opening-Balances
2016/1/5 txn "farmer's market"
Expenses:Groceries 50 USD
Assets:Checking

7
quickref/a.hledger Normal file
View File

@@ -0,0 +1,7 @@
2016/1/1 set opening balance
assets:checking $500.00
equity:opening balances
2016/1/5 farmer's market
expenses:groceries $50.00
assets:checking

7
quickref/a.ledger Normal file
View File

@@ -0,0 +1,7 @@
2016/1/1 set opening balance
assets:checking $500.00
equity:opening balances
2016/1/5 farmer's market
expenses:groceries $50.00
assets:checking

0
quickref/images/.gitkeep Normal file
View File

1105
quickref/index.html Executable file

File diff suppressed because it is too large Load Diff

41
quickref/quickref.css Normal file
View File

@@ -0,0 +1,41 @@
tr {
vertical-align:top;
}
/* TOC */
/* update these class ids on each save */
p { margin:0; }
p.c37 { visibility:hidden; }
p.c26 { margin-left:1em; }
p.c24 { margin-left:3em; }
p.c19 { margin-left:2em; }
/* heading cells */
tr:first-child {
font-weight:bold;
}
td:first-child {
/* font-weight:bold; */
}
tr:first-child a {
font-size:small;
/* white-space:nowrap; */
}
td:first-child {
width:10%;
}
/* body cells */
tr:not(:first-child) td:not(:first-child) span:first-child {
white-space:nowrap;
font-weight:bold;
color:navy;
font-family:monospace;
/* font-family:monaco; */
/* font-size:small; */
}
tr:not(:first-child) td:not(:first-child) span:not(:first-child) {
/* white-space:nowrap; */
/* font-family:monospace; */
font-size:small;
}
td:not(:first-child) {
width:30%;
}

11
quickref/tests.shelltest Executable file
View File

@@ -0,0 +1,11 @@
#!/usr/bin/env shelltest
# -*- sh -*-
ledger -f a.ledger print
>>>=0
hledger -f a.hledger print
>>>=0
beancount -f a.beancount print
>>>=0