Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- \usepackage{fontspec}
- \setmainfont{Nimbus Sans}
- \usepackage{titling}
- \usepackage[margin=0.5in, bottom=0.8in]{geometry}
- \usepackage{sectsty}
- \usepackage{xcolor}
- \usepackage{titlesec}
- \usepackage{fancyhdr}
- \usepackage{soul}
- \usepackage{hyperref}
- \usepackage{graphicx}
- \setkeys{Gin}{width=0.8\textwidth} % Set default image width
- \usepackage{enumitem} % For controlling list spacing
- \usepackage{setspace} % For controlling line spacing
- % Ensure images are left-aligned using \raggedright
- \let\origfigure\figure
- \let\endorigfigure\endfigure
- \renewenvironment{figure}
- {\origfigure\raggedright} % Force images to be left-aligned
- {\endorigfigure}
- \hypersetup{
- colorlinks=true,
- linkcolor=blue,
- filecolor=magenta,
- urlcolor=cyan,
- citecolor=blue
- }
- \renewcommand\UrlFont{\color{cyan}\hl}
- \pagestyle{fancy}
- \fancyhf{}
- \fancyfoot[R]{\thepage}
- \fancyfoot[C]{}
- \fancyfoot[L]{}
- \renewcommand{\headrulewidth}{0pt}
- \renewcommand{\footrulewidth}{0pt}
- \fancypagestyle{plain}{
- \fancyhf{}
- \fancyfoot[R]{\thepage}
- \fancyfoot[C]{}
- \fancyfoot[L]{}
- \renewcommand{\headrulewidth}{0pt}
- \renewcommand{\footrulewidth}{0pt}
- }
- % Set regular text margins
- \setlength{\parindent}{0pt} % No indentation for paragraphs
- \setlength{\leftskip}{1em} % No extra left margin for paragraphs
- \setlength{\parskip}{0.2em} % Reduce spacing between paragraphs
- % Adjust heading margins separately to reduce vertical spacing
- \titlespacing*{\section}{0pt}{0.8em}{0.5em} % Reduce space before and after section heading
- \titlespacing*{\subsection}{0pt}{0.7em}{0.4em} % For subsection
- \titlespacing*{\subsubsection}{0pt}{0.6em}{0.3em} % For subsubsection
- % Reduce vertical spacing around bullet points
- \setlist[itemize,1]{left=0em, nosep, before=\vspace{-0.25em}, after=\vspace{-0.25em}} % Tighten before and after
- % Ensure consistent spacing after the list and the next text block
- \setlist[itemize,2]{left=0em, nosep, after=\vspace{-0.5em}} % Same spacing after last bullet point and text
- % Reduce vertical spacing between numbered lists and text
- \setlist[enumerate,1]{left=0em, nosep, before=\vspace{-0.25em}, after=\vspace{-0.25em}}
- % Control line spacing
- \setstretch{0.9} % Slightly reduce global line spacing (adjust as needed)
- % Numbered headings with a dot and reduced gap
- \titleformat{\section}
- {\normalfont\Large\bfseries}{\thesection.}{0.25em}{}
- \titleformat{\subsection}
- {\normalfont\large\bfseries}{\thesubsection.}{0.25em}{}
- \titleformat{\subsubsection}
- {\normalfont\normalsize\bfseries}{\thesubsubsection.}{0.25em}{}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement