Skip to content

Instantly share code, notes, and snippets.

@almostSouji
Created May 2, 2023 12:59
Show Gist options
  • Save almostSouji/5720f0b84f59c0aabda89532f293be7c to your computer and use it in GitHub Desktop.
Save almostSouji/5720f0b84f59c0aabda89532f293be7c to your computer and use it in GitHub Desktop.
LaTex assignment template
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{geometry}
\geometry{
a4paper,
total={170mm,257mm},
left=20mm,
top=20mm,
footskip = \dimexpr\headsep+\ht\strutbox\relax,
}
\setlength{\headheight}{12.8064pt}
\usepackage{graphicx}
\usepackage{titling}
\usepackage{fancyhdr}
\usepackage[colorlinks=false]{hyperref}
\usepackage{awesomebox} % https://git.umaneti.net/latex-awesomebox/plain/awesomebox.pdf
\fancypagestyle{plain}{
\fancyhf{}
\fancyfoot[R]{\thepage}
\fancyfoot[L]{\thedate}
\fancyhead[L]{\thetitle}
\fancyhead[R]{\theauthor}
}
\makeatletter
\def\@maketitle{%
\newpage
\null
\vskip 1em%
\begin{center}%
\let \footnote \thanks
{\LARGE \@title \par}%
\vskip 1em%
%{\large \@date}%
\end{center}%
\par
\vskip 1em}
\makeatother
\begin{document}
\setlength{\aweboxleftmargin}{0.075\linewidth}
\setlength{\aweboxvskip}{0mm}
\title{Title}
\author{Name}
\date{Date}
\maketitle
\section{E1}
Content
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment