diff --git a/quickref/index.html b/quickref/index.html deleted file mode 100755 index 053eb38..0000000 --- a/quickref/index.html +++ /dev/null @@ -1,1219 +0,0 @@ - -
-- -
-- -Some information about the major - -Plain Text Accounting - - implementations, drawn from existing docs and informal testing, that I needed to see in one place. Currently, it compares the main journal syntax for Ledger, hledger and Beancount. For more, see the manuals and cheatsheets linked below, or - - -plaintextaccounting.org - - -. - -I hope you find it useful. -
-- -First draft, created 2016/03, corrections to: sm on - - -#hledger - - - or - - -#ledger - - - or - - -#beancount - - -, or the - - -google doc - -
-- - -
-- - -Quick Reference for the Ledger-Likes - -
-- - -Journal Format - -
-- - -Basic example - -
-- - -Comments - -
-- - -Basic transactions - -
-- - -Dates - -
-- - -Account names - -
-- - -Amounts - -
-- - -More transaction features - -
-- - -Prices - -
-- - -Balance assertions - -
-- - -Balance assignments - -
-- - -Directives - -
-- - -account, open - -
-- - -close - -
-- - -commodity - -
-- - -market price - -
-
-
-Legend
-
-:
-Things in
-
-[ ]
-
-are
-
- optional.
-Syntax should be the latest preferred syntax for each implementation, may be incomplete.
-Some notes in the Ledger column are common to all.
-
-
-
|
- - - - - |
-
-
-
-Ledger |
-
-
-
-hledger |
-
-
-
-Beancount - - - - |
-
-- -Basic example -- |
-
-
-
-; a comment |
-
-
-
-; a comment |
-
-
-
-; a comment |
-
-- -Comments -- |
-
-
-
-; comment |
-
-
-
-; comment |
-
-
-
-; comment |
-
-- -Basic transactions -- |
-
-
-
-DATE [[PAYEE | ] DESCRIPTION] |
-
-
-
-DATE [DESCRIPTION] - - - - |
-
-
-
-DATE txn [["PAYEE"] "DESCRIPTION"] |
-
-- -Dates -- |
-
-
-
-YYYY-MM-DD |
-
-
-
-YYYY-MM-DD |
-
-
-
-YYYY-MM-DD |
-
-- -Account names -- |
-
-
-
-TOPACCT[:SUBACCT[:...]] |
-
-
-
-TOPACCT[:SUBACCT[:...]] |
-
-
-
-TOPACCT[:SUBACCT[:...]] |
-
-- -Amounts -- |
-
-
-
-One of - - - - |
-
-
-
-One of - - - - |
-
-
-
-QUANTITY COMMODITY |
-
-- -More transaction - - - -features -- |
-
-
-
-DATE [FLAG] [(CODE)] DESCRIPTION |
-
-
-
-DATE [FLAG] [(CODE)] DESCRIPTION |
-
-
-
-DATE [txn|FLAG] [["PAYEE"] "DESCRIPTION"] |
-
-- -Prices -- |
-
-
-
-One of |
-
-
-
-One of |
-
-
-
-{LOTUNITPRICE[ / LOTDATE]} |
-
-- -Balance assertions -- |
-
-
-
-= AMOUNT (after posting amount & price) |
-
-
-
-= AMOUNT (after posting amount & price) |
-
-
-
-DATE balance ACCOUNT AMOUNT |
-
-- -Balance assignments -- |
-
-
-
-= AMOUNT (no preceding/inferred posting amount)
-
- |
-
- - - - - |
-
- - - - - |
-
-- -Directives -- |
-
-
-
-KEYWORD ARGS...
-
-alias
-
-payee |
-
-
-
-KEYWORD ARGS... |
-
-
-
-[DATE] KEYWORD ARGS... |
-
-- -account, open -- |
-
- - -account ACCOUNT - -
-
- [SUBDIRECTIVES] |
-
- - - - - |
-
-
-
-DATE open ACCOUNT [COMMODITY[,...]] [METHOD] |
-
-- -close -- |
-
- - - - - |
-
- - - - - |
-
- - -DATE close ACCOUNT - - |
-
-- -commodity -- |
-
-
-
-commodity COMMODITY |
-
- - - - - |
-
-
-
-DATE commodity COMMODITY |
-
-- -market price -- |
-
-
-
-P DATE TIME COMMODITY UNITPRICE
-
- |
-
-
-
-P DATE [TIME] COMMODITY UNITPRICE |
-
-
-
-DATE price COMMODITY AMOUNT |
-
- - -
-- - -
-- - -
-- - -
-- - -
-- - -
-- - -
-- - -
-- - -
-- - -
-
-## Syntax Quick Reference for the Ledger-Likes
+# Syntax Quick Reference for the Ledger-Likes
The journal file formats of Ledger, hledger and Beancount, side by side. Last tested: 2016.\
See also:
@@ -39,12 +30,12 @@ Contents:
- [commodity](#h.n9q16dsjsoye)
- [market price](#h.wya8r85tgqsx)
-### Journal format
+## Journal format
Things in square brackets are optional. Some notes in the Ledger column are common to all.
-| diff --git a/quickref/quickref-beancount.md b/quickref/quickref-beancount.md index 5a6a97b..49b4389 100644 --- a/quickref/quickref-beancount.md +++ b/quickref/quickref-beancount.md @@ -1,4 +1,4 @@ -% Syntax quick reference: Beancount + # Syntax quick reference: Beancount diff --git a/quickref/quickref-hledger.md b/quickref/quickref-hledger.md index 05ee60c..2708654 100644 --- a/quickref/quickref-hledger.md +++ b/quickref/quickref-hledger.md @@ -1,4 +1,4 @@ -% Syntax quick reference: hledger + # Syntax quick reference: hledger diff --git a/quickref/quickref-ledger.md b/quickref/quickref-ledger.md index 0b6aa47..fc27c5c 100644 --- a/quickref/quickref-ledger.md +++ b/quickref/quickref-ledger.md @@ -1,4 +1,4 @@ -% Syntax quick reference: Ledger + # Syntax quick reference: Ledger diff --git a/quickref/quickref.css b/quickref/quickref.css index 030ce0a..dd8b7cd 100644 --- a/quickref/quickref.css +++ b/quickref/quickref.css @@ -1,41 +1,22 @@ -tr { - vertical-align:top; -} -/* TOC */ -/* update these class ids on each save */ -p { margin:0; } -p.c36 { visibility:hidden; } -p.c35 { margin-left:1em; } -p.c14 { margin-left:3em; } -p.c28 { 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 { +/* revert some skeleton styles, reduce whitespace */ +body { line-height:revert; } +div.container { width:100%; max-width:revert; margin:1em; } +ul ul {margin-top:revert; margin-bottom:revert;} +ul li {margin-top:revert; margin-bottom:revert;} +p { margin:revert;} +h1,h2,h3 { white-space:revert; } + +/* styles used by index.md's table */ +table#quickref3 p { margin:0; } +table#quickref3 tr { vertical-align:top; } +table#quickref3 tr:first-child { font-weight:bold; } +table#quickref3 tr:first-child a { font-size:small; } +table#quickref3 td:first-child { width:10%; } +table#quickref3 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%; } +table#quickref3 tr:not(:first-child) td:not(:first-child) span:not(:first-child) { font-size:small; } +table#quickref3 td:not(:first-child) { width:30%; } |