Fix of "Overfull \hbox" when generating the PDF file with texi2pdf
This commit is contained in:
parent
50b968d73a
commit
423acc73ee
1 changed files with 113 additions and 113 deletions
226
doc/ledger3.texi
226
doc/ledger3.texi
|
|
@ -5197,7 +5197,7 @@ their values and the source of those values, for example:
|
||||||
|
|
||||||
@smallexample
|
@smallexample
|
||||||
14:15:02 > ledger --options bal --cleared -f ~/ledger/test/input/drewr3.dat
|
14:15:02 > ledger --options bal --cleared -f ~/ledger/test/input/drewr3.dat
|
||||||
===============================================================================
|
===========================================================================
|
||||||
[Global scope options]
|
[Global scope options]
|
||||||
|
|
||||||
[Session scope options]
|
[Session scope options]
|
||||||
|
|
@ -5216,7 +5216,7 @@ their values and the source of those values, for example:
|
||||||
--account-width = 21 ?normalize
|
--account-width = 21 ?normalize
|
||||||
--amount-width = 12 ?normalize
|
--amount-width = 12 ?normalize
|
||||||
--total-width = 12 ?normalize
|
--total-width = 12 ?normalize
|
||||||
===============================================================================
|
===========================================================================
|
||||||
$ 775.00 Assets:Checking
|
$ 775.00 Assets:Checking
|
||||||
$ -1,000.00 Equity:Opening Balances
|
$ -1,000.00 Equity:Opening Balances
|
||||||
$ 225.00 Expenses:Food:Groceries
|
$ 225.00 Expenses:Food:Groceries
|
||||||
|
|
@ -5278,7 +5278,7 @@ Format Codes}).
|
||||||
Prepend all account names with the argument.
|
Prepend all account names with the argument.
|
||||||
|
|
||||||
@smallexample
|
@smallexample
|
||||||
21:51:39 ~/ledger (next)> ledger -f test/input/drewr3.dat bal --master-account HUMBUG
|
$ ledger -f test/input/drewr3.dat bal --master-account HUMBUG
|
||||||
0 HUMBUG
|
0 HUMBUG
|
||||||
$ -3,804.00 Assets
|
$ -3,804.00 Assets
|
||||||
$ 1,396.00 Checking
|
$ 1,396.00 Checking
|
||||||
|
|
@ -5387,11 +5387,11 @@ Specify the format to use for the
|
||||||
@code{balance} report (@pxref{Format Strings}). The default is:
|
@code{balance} report (@pxref{Format Strings}). The default is:
|
||||||
|
|
||||||
@smallexample
|
@smallexample
|
||||||
"%(justify(scrub(display_total), 20, -1, true, color))"
|
"%(justify(scrub(display_total), 20, -1, true, color))"
|
||||||
" %(!options.flat ? depth_spacer : \"\")"
|
" %(!options.flat ? depth_spacer : \"\")"
|
||||||
"%-(ansify_if(partial_account(options.flat), blue if color))\n%/"
|
"%-(ansify_if(partial_account(options.flat), blue if color))\n%/"
|
||||||
"%$1\n%/"
|
"%$1\n%/"
|
||||||
"--------------------\n"
|
"--------------------\n"
|
||||||
@end smallexample
|
@end smallexample
|
||||||
|
|
||||||
@item --base
|
@item --base
|
||||||
|
|
@ -5421,11 +5421,11 @@ Specify the format to use for the @code{budget} report (@pxref{Format
|
||||||
Strings}). The default is:
|
Strings}). The default is:
|
||||||
|
|
||||||
@smallexample
|
@smallexample
|
||||||
"%(justify(scrub(display_total), 20, -1, true, color))"
|
"%(justify(scrub(display_total), 20, -1, true, color))"
|
||||||
" %(!options.flat ? depth_spacer : \"\")"
|
" %(!options.flat ? depth_spacer : \"\")"
|
||||||
"%-(ansify_if(partial_account(options.flat), blue if color))\n%/"
|
"%-(ansify_if(partial_account(options.flat), blue if color))\n%/"
|
||||||
"%$1\n%/"
|
"%$1\n%/"
|
||||||
"--------------------\n"
|
"--------------------\n"
|
||||||
@end smallexample
|
@end smallexample
|
||||||
|
|
||||||
@item --budget
|
@item --budget
|
||||||
|
|
@ -5441,15 +5441,15 @@ Specify the format to use
|
||||||
for the @code{cleared} report (@pxref{Format Strings}). The default is:
|
for the @code{cleared} report (@pxref{Format Strings}). The default is:
|
||||||
|
|
||||||
@smallexample
|
@smallexample
|
||||||
"%(justify(scrub(get_at(total_expr, 0)), 16, 16 + prepend_width, "
|
"%(justify(scrub(get_at(total_expr, 0)), 16, 16 + prepend_width, "
|
||||||
" true, color)) %(justify(scrub(get_at(total_expr, 1)), 18, "
|
" true, color)) %(justify(scrub(get_at(total_expr, 1)), 18, "
|
||||||
" 36 + prepend_width, true, color))"
|
" 36 + prepend_width, true, color))"
|
||||||
" %(latest_cleared ? format_date(latest_cleared) : \" \")"
|
" %(latest_cleared ? format_date(latest_cleared) : \" \")"
|
||||||
" %(!options.flat ? depth_spacer : \"\")"
|
" %(!options.flat ? depth_spacer : \"\")"
|
||||||
"%-(ansify_if(partial_account(options.flat), blue if color))\n%/"
|
"%-(ansify_if(partial_account(options.flat), blue if color))\n%/"
|
||||||
"%$1 %$2 %$3\n%/"
|
"%$1 %$2 %$3\n%/"
|
||||||
"%(prepend_width ? \" \" * prepend_width : \"\")"
|
"%(prepend_width ? \" \" * prepend_width : \"\")"
|
||||||
"---------------- ---------------- ---------\n"
|
"---------------- ---------------- ---------\n"
|
||||||
@end smallexample
|
@end smallexample
|
||||||
|
|
||||||
@item --cleared
|
@item --cleared
|
||||||
|
|
@ -5481,14 +5481,14 @@ Specify the format to use for the @code{csv}
|
||||||
report (@pxref{Format Strings}). The default is:
|
report (@pxref{Format Strings}). The default is:
|
||||||
|
|
||||||
@smallexample
|
@smallexample
|
||||||
"%(quoted(date)),"
|
"%(quoted(date)),"
|
||||||
"%(quoted(code)),"
|
"%(quoted(code)),"
|
||||||
"%(quoted(payee)),"
|
"%(quoted(payee)),"
|
||||||
"%(quoted(display_account)),"
|
"%(quoted(display_account)),"
|
||||||
"%(quoted(commodity)),"
|
"%(quoted(commodity)),"
|
||||||
"%(quoted(quantity(scrub(display_amount)))),"
|
"%(quoted(quantity(scrub(display_amount)))),"
|
||||||
"%(quoted(cleared ? \"*\" : (pending ? \"!\" : \"\"))),"
|
"%(quoted(cleared ? \"*\" : (pending ? \"!\" : \"\"))),"
|
||||||
"%(quoted(join(note | xact.note)))\n"
|
"%(quoted(join(note | xact.note)))\n"
|
||||||
@end smallexample
|
@end smallexample
|
||||||
|
|
||||||
@item --current
|
@item --current
|
||||||
|
|
@ -5518,30 +5518,30 @@ Display register or balance in debit/credit format If you use
|
||||||
you will now get extra columns. The register goes from this:
|
you will now get extra columns. The register goes from this:
|
||||||
|
|
||||||
@smallexample
|
@smallexample
|
||||||
12-Mar-10 Employer Assets:Cash $100 $100
|
12-Mar-10 Employer Assets:Cash $100 $100
|
||||||
Income:Employer $-100 0
|
Income:Employer $-100 0
|
||||||
12-Mar-10 KFC Expenses:Food $20 $20
|
12-Mar-10 KFC Expenses:Food $20 $20
|
||||||
Assets:Cash $-20 0
|
Assets:Cash $-20 0
|
||||||
12-Mar-10 KFC - Rebate Assets:Cash $5 $5
|
12-Mar-10 KFC - Rebate Assets:Cash $5 $5
|
||||||
Expenses:Food $-5 0
|
Expenses:Food $-5 0
|
||||||
12-Mar-10 KFC - Food & Reb.. Expenses:Food $20 $20
|
12-Mar-10 KFC - Food & Reb.. Expenses:Food $20 $20
|
||||||
Expenses:Food $-5 $15
|
Expenses:Food $-5 $15
|
||||||
Assets:Cash $-15 0
|
Assets:Cash $-15 0
|
||||||
@end smallexample
|
@end smallexample
|
||||||
|
|
||||||
@noindent
|
@noindent
|
||||||
To this:
|
To this:
|
||||||
|
|
||||||
@smallexample
|
@smallexample
|
||||||
12-Mar-10 Employer Assets:Cash $100 0 $100
|
12-Mar-10 Employer Assets:Cash $100 0 $100
|
||||||
In:Employer 0 $100 0
|
In:Employer 0 $100 0
|
||||||
12-Mar-10 KFC Expens:Food $20 0 $20
|
12-Mar-10 KFC Expens:Food $20 0 $20
|
||||||
Assets:Cash 0 $20 0
|
Assets:Cash 0 $20 0
|
||||||
12-Mar-10 KFC - Rebate Assets:Cash $5 0 $5
|
12-Mar-10 KFC - Rebate Assets:Cash $5 0 $5
|
||||||
Expens:Food 0 $5 0
|
Expens:Food 0 $5 0
|
||||||
12-Mar-10 KFC - Food &.. Expens:Food $20 0 $20
|
12-Mar-10 KFC - Food &.. Expens:Food $20 0 $20
|
||||||
Expens:Food 0 $5 $15
|
Expens:Food 0 $5 $15
|
||||||
Assets:Cash 0 $15 0
|
Assets:Cash 0 $15 0
|
||||||
@end smallexample
|
@end smallexample
|
||||||
|
|
||||||
@noindent
|
@noindent
|
||||||
|
|
@ -5552,22 +5552,22 @@ values.
|
||||||
For the balance report without @code{--dc}:
|
For the balance report without @code{--dc}:
|
||||||
|
|
||||||
@smallexample
|
@smallexample
|
||||||
$70 Assets:Cash
|
$70 Assets:Cash
|
||||||
$30 Expenses:Food
|
$30 Expenses:Food
|
||||||
$-100 Income:Employer
|
$-100 Income:Employer
|
||||||
--------------------
|
--------------------
|
||||||
0
|
0
|
||||||
@end smallexample
|
@end smallexample
|
||||||
|
|
||||||
@noindent
|
@noindent
|
||||||
And with @code{--dc} it becomes this:
|
And with @code{--dc} it becomes this:
|
||||||
|
|
||||||
@smallexample
|
@smallexample
|
||||||
$105 $35 $70 Assets:Cash
|
$105 $35 $70 Assets:Cash
|
||||||
$40 $10 $30 Expenses:Food
|
$40 $10 $30 Expenses:Food
|
||||||
0 $100 $-100 Income:Employer
|
0 $100 $-100 Income:Employer
|
||||||
--------------------------------------------
|
--------------------------------------------
|
||||||
$145 $145 0
|
$145 $145 0
|
||||||
@end smallexample
|
@end smallexample
|
||||||
|
|
||||||
@item --depth <INT>
|
@item --depth <INT>
|
||||||
|
|
@ -5686,8 +5686,8 @@ wrong value you can use metadata to put in the expected amount:
|
||||||
|
|
||||||
@smallexample
|
@smallexample
|
||||||
2012-03-12 Paycheck
|
2012-03-12 Paycheck
|
||||||
Income $-990; Expected:: $-1000.00
|
Income $-990; Expected:: $-1000.00
|
||||||
Checking
|
Checking
|
||||||
@end smallexample
|
@end smallexample
|
||||||
|
|
||||||
Then using the command @code{ledger reg --inject=Expected Income} would
|
Then using the command @code{ledger reg --inject=Expected Income} would
|
||||||
|
|
@ -5791,7 +5791,7 @@ identifying which car the purchase was for @code{; Car: Prius}, then
|
||||||
the command:
|
the command:
|
||||||
|
|
||||||
@smallexample
|
@smallexample
|
||||||
ledger bal Fuel --pivot "Car" --period "this year"
|
$ ledger bal Fuel --pivot "Car" --period "this year"
|
||||||
$ 3491.26 Car
|
$ 3491.26 Car
|
||||||
$ 1084.22 M3:Expenses:Auto:Fuel
|
$ 1084.22 M3:Expenses:Auto:Fuel
|
||||||
$ 149.65 MG V11:Expenses:Auto:Fuel
|
$ 149.65 MG V11:Expenses:Auto:Fuel
|
||||||
|
|
@ -6070,8 +6070,8 @@ The following would be output, showing the postings related to the
|
||||||
posting that matched:
|
posting that matched:
|
||||||
|
|
||||||
@smallexample
|
@smallexample
|
||||||
2004/03/20 Safeway Expenses:Cash $-20.00 $-20.00
|
2004/03/20 Safeway Expenses:Cash $-20.00 $-20.00
|
||||||
Assets:Checking $85.00 $65.00
|
Assets:Checking $85.00 $65.00
|
||||||
@end smallexample
|
@end smallexample
|
||||||
|
|
||||||
@item --budget
|
@item --budget
|
||||||
|
|
@ -6293,32 +6293,32 @@ Define the output format for the @code{balance} report. The default
|
||||||
(defined in @code{report.h} is:
|
(defined in @code{report.h} is:
|
||||||
|
|
||||||
@smallexample
|
@smallexample
|
||||||
"%(ansify_if(
|
"%(ansify_if(
|
||||||
justify(scrub(display_total), 20,
|
justify(scrub(display_total), 20,
|
||||||
20 + int(prepend_width), true, color),
|
20 + int(prepend_width), true, color),
|
||||||
bold if should_bold))
|
bold if should_bold))
|
||||||
%(!options.flat ? depth_spacer : \"\")
|
%(!options.flat ? depth_spacer : \"\")
|
||||||
%-(ansify_if(
|
%-(ansify_if(
|
||||||
ansify_if(partial_account(options.flat), blue if color),
|
ansify_if(partial_account(options.flat), blue if color),
|
||||||
bold if should_bold))\n%/
|
bold if should_bold))\n%/
|
||||||
%$1\n%/
|
%$1\n%/
|
||||||
%(prepend_width ? \" \" * int(prepend_width) : \"\")
|
%(prepend_width ? \" \" * int(prepend_width) : \"\")
|
||||||
--------------------\n"
|
--------------------\n"
|
||||||
@end smallexample
|
@end smallexample
|
||||||
|
|
||||||
@item --cleared-format
|
@item --cleared-format
|
||||||
Define the format for the cleared report. The default is:
|
Define the format for the cleared report. The default is:
|
||||||
|
|
||||||
@smallexample
|
@smallexample
|
||||||
"%(justify(scrub(get_at(display_total, 0)), 16, 16 + int(prepend_width),
|
"%(justify(scrub(get_at(display_total, 0)), 16, 16 + int(prepend_width),
|
||||||
true, color)) %(justify(scrub(get_at(display_total, 1)), 18,
|
true, color)) %(justify(scrub(get_at(display_total, 1)), 18,
|
||||||
36 + int(prepend_width), true, color))
|
36 + int(prepend_width), true, color))
|
||||||
%(latest_cleared ? format_date(latest_cleared) : \" \")
|
%(latest_cleared ? format_date(latest_cleared) : \" \")
|
||||||
%(!options.flat ? depth_spacer : \"\")
|
%(!options.flat ? depth_spacer : \"\")
|
||||||
%-(ansify_if(partial_account(options.flat), blue if color))\n%/
|
%-(ansify_if(partial_account(options.flat), blue if color))\n%/
|
||||||
%$1 %$2 %$3\n%/
|
%$1 %$2 %$3\n%/
|
||||||
%(prepend_width ? \" \" * int(prepend_width) : \"\")
|
%(prepend_width ? \" \" * int(prepend_width) : \"\")
|
||||||
---------------- ---------------- ---------\n"
|
---------------- ---------------- ---------\n"
|
||||||
@end smallexample
|
@end smallexample
|
||||||
|
|
||||||
@item --register-format STR
|
@item --register-format STR
|
||||||
|
|
@ -6326,37 +6326,37 @@ Define the output format for the @code{register} report. The default
|
||||||
(defined in @code{report.h} is:
|
(defined in @code{report.h} is:
|
||||||
|
|
||||||
@smallexample
|
@smallexample
|
||||||
"%(ansify_if(
|
"%(ansify_if(
|
||||||
ansify_if(justify(format_date(date), int(date_width)),
|
ansify_if(justify(format_date(date), int(date_width)),
|
||||||
green if color and date > today),
|
green if color and date > today),
|
||||||
bold if should_bold))
|
|
||||||
%(ansify_if(
|
|
||||||
ansify_if(justify(truncated(payee, int(payee_width)), int(payee_width)),
|
|
||||||
bold if color and !cleared and actual),
|
|
||||||
bold if should_bold))
|
|
||||||
%(ansify_if(
|
|
||||||
ansify_if(justify(truncated(display_account, int(account_width),
|
|
||||||
int(abbrev_len)), int(account_width)),
|
|
||||||
blue if color),
|
|
||||||
bold if should_bold))
|
|
||||||
%(ansify_if(
|
|
||||||
justify(scrub(display_amount), int(amount_width),
|
|
||||||
3 + int(meta_width) + int(date_width) + int(payee_width)
|
|
||||||
+ int(account_width) + int(amount_width) + int(prepend_width),
|
|
||||||
true, color),
|
|
||||||
bold if should_bold))
|
bold if should_bold))
|
||||||
%(ansify_if(
|
%(ansify_if(
|
||||||
justify(scrub(display_total), int(total_width),
|
ansify_if(justify(truncated(payee, int(payee_width)), int(payee_width)),
|
||||||
4 + int(meta_width) + int(date_width) + int(payee_width)
|
bold if color and !cleared and actual),
|
||||||
+ int(account_width) + int(amount_width) + int(total_width)
|
bold if should_bold))
|
||||||
+ int(prepend_width), true, color),
|
%(ansify_if(
|
||||||
bold if should_bold))\n%/
|
ansify_if(justify(truncated(display_account, int(account_width),
|
||||||
%(justify(\" \", int(date_width)))
|
int(abbrev_len)), int(account_width)),
|
||||||
%(ansify_if(
|
blue if color),
|
||||||
justify(truncated(has_tag(\"Payee\") ? payee : \" \",
|
bold if should_bold))
|
||||||
int(payee_width)), int(payee_width)),
|
%(ansify_if(
|
||||||
bold if should_bold))
|
justify(scrub(display_amount), int(amount_width),
|
||||||
%$3 %$4 %$5\n"
|
3 + int(meta_width) + int(date_width) + int(payee_width)
|
||||||
|
+ int(account_width) + int(amount_width) + int(prepend_width),
|
||||||
|
true, color),
|
||||||
|
bold if should_bold))
|
||||||
|
%(ansify_if(
|
||||||
|
justify(scrub(display_total), int(total_width),
|
||||||
|
4 + int(meta_width) + int(date_width) + int(payee_width)
|
||||||
|
+ int(account_width) + int(amount_width) + int(total_width)
|
||||||
|
+ int(prepend_width), true, color),
|
||||||
|
bold if should_bold))\n%/
|
||||||
|
%(justify(\" \", int(date_width)))
|
||||||
|
%(ansify_if(
|
||||||
|
justify(truncated(has_tag(\"Payee\") ? payee : \" \",
|
||||||
|
int(payee_width)), int(payee_width)),
|
||||||
|
bold if should_bold))
|
||||||
|
%$3 %$4 %$5\n"
|
||||||
@end smallexample
|
@end smallexample
|
||||||
|
|
||||||
@item --csv-format
|
@item --csv-format
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue