From b4c6e285e236f73f459892d0e7e21bec2ed1b4e7 Mon Sep 17 00:00:00 2001 From: fkarg Date: Wed, 30 Sep 2020 22:40:49 +0200 Subject: [PATCH] unify template and add all params to readme * renamed 'plz' and 'ort' from recipients side to 'zip' and 'city' * added phone, email and url params to documentation --- README.md | 10 +++++----- template.tex | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 071ed50..f013157 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,9 @@ Have a file called `from.yaml` with your own information structured like this: | `IBAN` | string | The IBAN of your bank account. | | `BIC` | string | The BIC of your bank account. | | `bank` | string | The name of your bank. | +| `phone` | string | Optional. Your phone number. | +| `email` | string | Optional. Your mail address. | +| `url` | string | Optional. Your homepage. | ### Example ```from.yaml @@ -36,6 +39,8 @@ BIC: bank: ``` +It's no big deal to leave some of the fields empty. + ## Clients: recipients/\.yaml For every clients `rname`, have a `recipients/.yaml` file structured like this: @@ -48,11 +53,6 @@ like this: | `zip` | int | ZIP code of your clients address. | | `city` | string | City correlating to the zip code. | | `country` | string | Country of your clients business address. | - ### Example ```recipients/.yaml diff --git a/template.tex b/template.tex index 41a104f..b5b02ff 100644 --- a/template.tex +++ b/template.tex @@ -82,8 +82,8 @@ % Begin document \begin{document} -\begin{letter}{\VAR{to.name} \\ \VAR{to.address} \\ \VAR{to.plz}~\VAR{to.ort} - \BLOCK{if to.country!="Österreich"}\\\VAR{to.country}\BLOCK{endif}} +\begin{letter}{\VAR{to.name} \\ \VAR{to.address} \\ \VAR{to.zip}~\VAR{to.city} + \\\VAR{to.country}} \setkomavar{title}{\VAR{invoice.title}} \opening{}