Skip to content

Instantly share code, notes, and snippets.

@fmitha
Created March 3, 2022 19:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fmitha/56409f4fc53f9b6b119e7b1cbcca62a6 to your computer and use it in GitHub Desktop.
Save fmitha/56409f4fc53f9b6b119e7b1cbcca62a6 to your computer and use it in GitHub Desktop.
\documentclass[12pt,sections,headheight=30pt,headinclude,firsthead=false,firstfoot=false,foldmarks=false,foldmarks=blmtP,fromalign=center,fromphone,fromemail,version=last, backaddress=false, subject=titled, twoside, cleardoublepage=current, pagenumber=headright, topright]{scrlttr2}
\renewcommand\pagemark{{\usekomafont{pagenumber}This is page number \thepage\ }}
\usepackage{lipsum}
\usepackage{lastpage}
\RequirePackage[T1]{fontenc}
\usepackage{scrlayer-scrpage}
%\ohead*{\jobname.tex\hspace{0.5cm}\today}
\renewcommand*{\pagestyle}{scrheadings}
%\renewcommand*{\letterpagestyle}{empty}
\begin{document}
\def\today{19th February, 2022}
\begin{letter}{Name}
\opening{Dear Name,}
\lipsum
\end{letter}
%\title{Foo}
%\maketitle
\lipsum
\lipsum
\lipsum
\end{document}
%%% Local Variables:
%%% mode: latex
%%% TeX-engine: luatex
%%% TeX-master: t
%%% End:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment