Commit a867a8ef authored by Cosmin  SAVEANU's avatar Cosmin SAVEANU
Browse files

Upload New File

parent c4c4ee10
%% LyX 2.3.6.1 created this file. For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[foldmarks=false,backaddress=false,fromemail,fromphone,parskip=half,fontsize=11pt]{scrlttr2}
\usepackage[latin9]{inputenc}
\usepackage{graphicx}
\usepackage[unicode=true]
{hyperref}
\makeatletter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands.
\newif\ifletterclosed
\AtEndDocument{\ifletterclosed\else\end{letter}\fi}
\letterclosedtrue
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
%geometry of the page
\makeatletter
\@setplength{toaddrvpos}{35mm}
\@addtoplength{toaddrheight}{\@tempskipa}
\@setplength{toaddrwidth}{80mm}
\@setplength{firstheadvpos}{12mm}
\@setplength{sigbeforevskip}{1\baselineskip}
\@setplength{refvpos}{7.5cm}
\@setplength{sigindent}{7cm}%horizontal positioning of the signature
\setlength{\@tempskipa}{-5cm}
\makeatother
\usepackage[english]{babel}
\usepackage[babel]{microtype}
\usepackage[sfdefault]{roboto} %the base font for the document
\usepackage{hyperref} %for hyperlinks (including page number)
%----------------------------------------------------------------------------------------
% Hyperlinks style
%----------------------------------------------------------------------------------------
\hypersetup{
colorlinks=true,
linkcolor=black,
filecolor=magenta,
urlcolor=blue,
pdftitle={Lettery example, LyX}, %the title of the generated pdf
pdfpagemode=,
}
\usepackage{graphicx}
\usepackage{lastpage} %to be able to count the total number of pages (for footer)
\newcommand{\mycompanyurl}{\href{https://mycompanyURL}{BDG Institute}}
\newcommand{\companylogo}{\includegraphics[height=2cm]{lyxlogo.png}}
% scrlttr2: full sender information on top of first page
\setkomavar{firsthead}{%
\parbox[t]{\textwidth}{\sffamily\small
\begin{tabular}[t]{@{}l@{}}%
\usekomavar{fromname}\\\usekomavar{fromphone}\\\usekomavar{fromemail}
\end{tabular}%
\hfill\begin{tabular}[t]{@{}c@{}}%
\mycompanyurl\\\usekomavar{fromaddress}
\end{tabular}
\hfill\begin{tabular}[t]{@{}r@{}}%
\usekomavar{frombank}\end{tabular}
}%
\vskip 2pt\hrule%
\hfill \companylogo}
% scrlttr2: better footer for first page using last page nb
%------------------------------------------------------------
% Header and footer definition
%------------------------------------------------------------
\usepackage{scrlayer-scrpage}
\pagestyle{scrheadings}
\clearscrheadfoot
\usepackage[
headheight = 25mm,
footskip = 1cm,
bmargin = 20mm
]{geometry}
\setkomafont{pagenumber}{\normalfont\scshape\footnotesize}
\newcommand*{\footbox}{
\usekomafont{pagenumber}
\hrule \hfill {Page \thepage} of \pageref{LastPage}
}
\setkomavar{firstfoot}{\footbox}
\newcommand*{\footboxnext}{
\usekomafont{pagenumber}
{Page \thepage}}
\cfoot{\footnotesize{\footboxnext}}
\makeatother
\begin{document}
\begin{letter}{To: John Smith\\
Best Editor Publications, Ltd\\
Seaside, Groovy Road\\
TheCity XX5 4GG, UK}
\setkomavar{fromname}{\textbf{\textsc{Peter Petersson}}}
\setkomavar{place}{Monbourg}
\setkomavar{fromaddress}{Laboratory of unusual experiments\\
Twice the same Department}
\setkomavar{fromemail}{\href{mailto:mailto://peter.petersson@myname.org}{peter.petersson@myname.org}}
\setkomavar{fromphone}{+99~(0)5~44~22~11~00}
\setkomavar{frombank}{\hspace*{\fill}\\
24 Downfall route\\
99102, Monbourg, France}
\setkomavar{date}{\today}
\setkomavar{signature}{\includegraphics[height=1cm]{signature}\\
Peter Petersson}
\opening{Dear Mr. Smith,}
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim
veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip
ex ea commodo consequat. Duis aute irure dolor in reprehenderit in
voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur
sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt
mollit anim id est laborum.:
1. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim
ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut
aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit
in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur
sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt
mollit anim id est laborum..
2. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim
ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut
aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit
in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur
sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt
mollit anim id est laborum.Lorem ipsum dolor sit amet, consectetur
adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore
magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco
laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor
in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
culpa qui officia deserunt mollit anim id est laborum..
3. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim
ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut
aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit
in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur
sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt
mollit anim id est laborum.Lorem ipsum dolor sit amet, consectetur
adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore
magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco
laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor
in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
culpa qui officia deserunt mollit anim id est laborum.Lorem ipsum
dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit
esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat
cupidatat non proident, sunt in culpa qui officia deserunt mollit
anim id est laborum..
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim
veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip
ex ea commodo consequat. Duis aute irure dolor in reprehenderit in
voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur
sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt
mollit anim id est laborum.
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim
veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip
ex ea commodo consequat. Thank~you.
\closing{Sincerely yours,}
\end{letter}{}
\end{document}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment