Skip to content
Snippets Groups Projects

[ rebase ] on top of Koma scrlttr2

Merged Jan de Muijnck-Hughes requested to merge (removed):koma-script into main
2 files
+ 235
33
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 45
33
\documentclass[11pt]{letter}
\usepackage{graphicx}
\usepackage[top=1.5cm]{geometry}
\usepackage{tikz}
\usepackage{tikzpagenodes}
\usepackage{hyperref}
\usepackage{xcolor}
\usepackage{roboto}% Font for departmental banner
% For draft watermarks
\usepackage[nostamp]{draftwatermark}%
\SetWatermarkText{Draft}
\SetWatermarkScale{8}
\signature{\vspace{-1.5cm}NAME HERE}
\address{\vspace{2cm} \\ Computer \& Information Sciences \\ University of Strathclyde \\ Livingstone Tower \\ 26 Richmond Street \\ Glasgow \\ G1 1XH}
%\date{DATE}
\documentclass{strath-letter}
\begin{document}
\usepackage{lipsum}
\begin{letter}{}
% Correct faculty
\setkomavar{fromlogo}{\includegraphics[width=4cm]{strath_tab_sci.pdf}}
\begin{tikzpicture}[remember picture,overlay,shift={(current page.north east)}]
\node[anchor=north east,xshift=-3cm,yshift=0.2cm]{\includegraphics[width=4cm]{strath_tab_sci.pdf}};
\end{tikzpicture}
\definecolor{scigreen}{RGB}{93,151,50}% Colours for departmental banner
\definecolor{strathgrey}{HTML}{6c757d}
\begin{tikzpicture}[remember picture,overlay,shift={(current page.north east)}]
\node[anchor=north east,xshift=-8.5cm,yshift=-3.85cm]{\small\textsf{\color{white}\colorbox{strathgrey}{DEPARTMENT OF }\colorbox{scigreen}{ COMPUTER \& INFORMATION SCIENCES}}};
\end{tikzpicture}
\begin{tikzpicture}[remember picture,overlay,shift={(current page.south west)}]
\node[anchor=south west,xshift=3cm,yshift=1cm,align=left,text width=\textwidth]{\footnotesize{\color{darkgray}\textbf{The place of useful learning}\\ The University of Strathclyde is a charitable body, registered in Scotland, number SC015263.}};
\end{tikzpicture}
% Change faculty colour here
% \colorlet{fromdepartmentheader}{strath-faculty-hass}
% See the cls file for more.
\setkomavar{fromdepartment}{Computer \& Information Sciences}
\setkomavar{fromdepartmentheader}{COMPUTER \& INFORMATION SCIENCES}
% This duplication is because komavar cannot be used with \uppercase{}
\opening{Dear X,}
% \setkomavar{fromaddress}{...} f
% change for a different address
\setkomavar{fromname}{Dr. Joeseph Baggins}
\closing{Yours sincerely, }% \\\vspace{1cm} \includegraphics[width=2cm]{signature.jpg}}
\setkomavar{fromjobtitle}{Lecturer}
\setkomavar{fromemail}{\email{Joeseph.Baggins@strath.ac.uk}}
% \setkomavar{fromphone}{...}
% if you want that available
%\setkomavar{photosig}{%
% \includegraphics[width=0.3\textwidth]{signature.pdf}%
%}
\end{letter}
\setkomavar{date}{\printdate{2022-02-15}}
\begin{document}
\begin{letter}
{%
\textbf{first line}\\
second \\
third
}
\setkomavar{subject}{Subject}
\opening{To whom it may concern;}
\lipsum[1-5]
\closing{Sincerely}
%\encl{}
\end{letter}
\end{document}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% End:
Loading