-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
204 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
tmp/ | ||
letters/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"name": "Max Mustermann", | ||
"street": "Musterstrasse 1", | ||
"city": "12345 Musterstadt", | ||
"phone": "+49 123/4567", | ||
"mail": "[email protected]" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"subject": "", | ||
"signature": "", | ||
"opening": "Sehr geehrte Damen und Herren,", | ||
"closing": "Mit freundlichen Grüßen", | ||
"has_attachments": false, | ||
"has_ps": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[ | ||
{ | ||
"name": "", | ||
"c_o": "", | ||
"street": "", | ||
"city": "", | ||
"additional_info": [""] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
\documentclass[% | ||
%fromphone=true, | ||
fromalign=left, | ||
foldmarks=BmTP, | ||
draft=true, | ||
]{scrlttr2} | ||
%%%%%%%%%%% Packages %%%%%%%%%%%%%% | ||
\usepackage[utf8]{inputenc} | ||
\usepackage[T1]{fontenc} | ||
\usepackage[english,german]{babel} | ||
\usepackage[% | ||
pdfborder=0 0 0, | ||
plainpages=false, | ||
pdftitle={titel}, | ||
pdfauthor={ {{- .Sender.Name -}} }, | ||
]{hyperref} | ||
\usepackage{graphicx} | ||
\usepackage{xcolor} | ||
\usepackage{blindtext} | ||
\usepackage{paralist} | ||
|
||
\begin{document} | ||
\pagestyle{headings} | ||
|
||
%%%%%%%%%%% Letter %%%%%%%%%%%%%%%% | ||
%%%%%%%%%%% Recipient %%%%%%%%%%%%%%%%% | ||
\begin{letter}{% | ||
{{ .Recipient.Name }}\\ | ||
{{- $length := len .Recipient.C_O }}{{ if gt $length 0 }} | ||
{{ .Recipient.C_O }}\\ | ||
{{ end -}} | ||
{{ .Recipient.Street }}\\ | ||
{{ .Recipient.City }}\\ | ||
} | ||
|
||
%%%%%%%%%%%%% Sender %%%%%%%%%%%%%%%%% | ||
\setkomavar{fromname}{ {{- .Sender.Name -}} } | ||
{{- $length := len .Sender.Phone }}{{ if gt $length 0 }} | ||
\setkomavar{fromphone}{ {{- .Sender.Phone -}} } | ||
{{ end -}} | ||
\setkomavar{fromaddress}{ {{- .Sender.Street }}\\{{ .Sender.City -}} } | ||
|
||
%%%%%%%%%%%%% Subject %%%%%%%%%%%%%%%% | ||
{{- $length := len .Subject }}{{ if gt $length 0 }} | ||
\setkomavar{subject}{ {{- .Subject -}} } | ||
{{- end }} | ||
|
||
%%%%%%%%%%%%% Signature %%%%%%%%%%%%%%%% | ||
{{- $length := len .Sender.Name}}{{ if gt $length 0 }} | ||
\setkomavar{signature}{ {{- .Sender.Name -}} } | ||
{{- end }} | ||
|
||
%\LoadLetterOption{DIN} | ||
|
||
{{- $length := len .Opening }}{{ if gt $length 0 }} | ||
\opening{ {{- .Opening -}} } | ||
{{- end }} | ||
|
||
TEXT | ||
|
||
\closing{ {{- .Closing -}} } | ||
%%%%%%%%%%%%% Postscriptum %%%%%%%%%%%%%%% | ||
{{- if eq .HasPs true }} | ||
\ps PS: | ||
{{ end }} | ||
|
||
%%%%%%%%%%%%% Anhänge %%%%%%%%%%%%%%% | ||
{{- if eq .HasAttachments true }} | ||
\encl{} | ||
{{ end }} | ||
|
||
\end{letter} | ||
\end{document} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
build: | ||
bin/build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/usr/bin/env sh | ||
lg -V build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
tmp/ | ||
letters/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"name": "Adam Smith", | ||
"street": "3a High Street", | ||
"city": "SOUTHAMPTON, SO31 4NG", | ||
"phone": "+44 123/4567", | ||
"mail": "[email protected]" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"subject": "", | ||
"signature": "", | ||
"opening": "Dear Madam or Sir", | ||
"closing": "Kind regards", | ||
"has_attachments": false, | ||
"has_ps": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[ | ||
{ | ||
"name": "", | ||
"c_o": "", | ||
"street": "", | ||
"city": "", | ||
"additional_info": [""] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
\documentclass[% | ||
%fromphone=true, | ||
fromalign=left, | ||
foldmarks=BmTP, | ||
draft=true, | ||
]{scrlttr2} | ||
%%%%%%%%%%% packages %%%%%%%%%%%%%% | ||
\usepackage[utf8]{inputenc} | ||
\usepackage[T1]{fontenc} | ||
\usepackage[english]{babel} | ||
\usepackage[% | ||
pdfborder=0 0 0, | ||
plainpages=false, | ||
pdftitle={titel}, | ||
pdfauthor={ {{- .Sender.Name -}} }, | ||
]{hyperref} | ||
\usepackage{graphicx} | ||
\usepackage{xcolor} | ||
\usepackage{blindtext} | ||
\usepackage{paralist} | ||
|
||
\begin{document} | ||
\pagestyle{headings} | ||
|
||
%%%%%%%%%%% Letter %%%%%%%%%%%%%%%% | ||
%%%%%%%%%%% Recipient %%%%%%%%%%%%%%%%% | ||
\begin{letter}{% | ||
{{ .Recipient.Name }}\\ | ||
{{- $length := len .Recipient.C_O }}{{ if gt $length 0 }} | ||
{{ .Recipient.C_O }}\\ | ||
{{ end -}} | ||
{{ .Recipient.Street }}\\ | ||
{{ .Recipient.City }}\\ | ||
} | ||
|
||
%%%%%%%%%%%%% Sender %%%%%%%%%%%%%%%%% | ||
\setkomavar{fromname}{ {{- .Sender.Name -}} } | ||
{{- $length := len .Sender.Phone }}{{ if gt $length 0 }} | ||
\setkomavar{fromphone}{ {{- .Sender.Phone -}} } | ||
{{ end -}} | ||
\setkomavar{fromaddress}{ {{- .Sender.Street }}\\{{ .Sender.City -}} } | ||
|
||
%%%%%%%%%%%%% Subject %%%%%%%%%%%%%%%% | ||
{{- $length := len .Subject }}{{ if gt $length 0 }} | ||
\setkomavar{subject}{ {{- .Subject -}} } | ||
{{- end }} | ||
|
||
%%%%%%%%%%%%% Signature %%%%%%%%%%%%%%%% | ||
{{- $length := len .Sender.Name}}{{ if gt $length 0 }} | ||
\setkomavar{signature}{ {{- .Sender.Name -}} } | ||
{{- end }} | ||
|
||
{{- $length := len .Opening }}{{ if gt $length 0 }} | ||
\opening{ {{- .Opening -}} } | ||
{{- end }} | ||
|
||
TEXT | ||
|
||
\closing{ {{- .Closing -}} } | ||
%%%%%%%%%%%%% Postscriptum %%%%%%%%%%%%%%% | ||
{{- if eq .HasPs true }} | ||
\ps PS: | ||
{{ end }} | ||
|
||
%%%%%%%%%%%%% Attachments %%%%%%%%%%%%%%% | ||
{{- if eq .HasAttachments true }} | ||
\encl{} | ||
{{ end }} | ||
|
||
\end{letter} | ||
\end{document} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
build: | ||
bin/build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/usr/bin/env sh | ||
lg -V build |