-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtemplate.tex
76 lines (63 loc) · 2.08 KB
/
template.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
% -*- TeX-engine: xetex -*-
\documentclass[10pt, a4paper, parskip=half,
enlargefirstpage, pagenumber=no]{scrlttr2}
\usepackage[english]{babel}
\usepackage[absolute]{textpos}
\usepackage{typesetr}
%hack to accomodate headings (but no one should ever put some in a letter)
\providecommand{\section}[1]{%
\par%
#1%
}
\providecommand{\subsection}[1]{%
\par%
#1%
}
\providecommand{\subsubsection}[1]{%
\par%
#1%
}
\providecommand{\paragraph}[1]{%
\par%
#1%
}
\providecommand{\subparagraph}[1]{%
\par%
#1%
}
%use floating figures for everyting - otherwise signature will break
\let\tystrmarginfigure\tystrblockfigurenocap
%no footer on first page
\makeatletter
\@setplength{firstfootvpos}{\paperheight}
\renewcommand*{\raggedsignature}{\raggedright}
\makeatother
\begin{document}
INTERPOLATEHEAD
% Small logo - position is hardcoded, should figure out nicer way
\begin{textblock*}{3cm}(16\TPHorizModule-3cm-2cm, \useplength{firstheadvpos})
\noindent \includegraphics[width=3cm,height=3cm]{lshift-logo-blue-rgb}
\end{textblock*}
\whendefined{\tystrsubject}{\setkomavar{subject}{\tystrsubject}}
\whendefined{\tystrfromname}{\setkomavar{fromname}{\tystrfromname}}
\whendefined{\tystrfromaddress}{\setkomavar{fromaddress}{\tystrfromaddress}}
\whendefined{\tystrfromphone}{\setkomavar{fromphone}{\tystrfromphone}}
\whendefined{\tystrfromemail}{\setkomavar{fromemail}{\tystrfromemail}}
\whendefined{\tystrfromfax}{\setkomavar{fromfax}{\tystrfromfax}}
\whendefined{\tystrfromurl}{\setkomavar{fromurl}{\tystrfromurl}}
\whendefined{\tystrfrombank}{\setkomavar{frombank}{\tystrfrombank}}
\whendefined{\tystrplace}{\setkomavar{place}{\tystrplace}}
\whendefined{\tystrsignature}{\setkomavar{signature}{\tystrsignature}}
\whendefined{\tystryourref}{\setkomavar{yourref}{\tystryourref}}
\whendefined{\tystryourmail}{\setkomavar{yourmail}{\tystryourmail}}
\whendefined{\tystrmyref}{\setkomavar{myref}{\tystrmyref}}
\whendefined{\tystrdate}{\setkomavar{date}{\tystrdate}}
\begin{letter}{%
\tystrrecipient \\
\tystrrecipientaddress
}
\opening{\tystropening}
INTERPOLATEBODY
\closing{\tystrclosing}
\end{letter}
\end{document}