Advertisement
Guest User

Untitled

a guest
Oct 5th, 2024
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.57 KB | None | 0 0
  1. \usepackage{fontspec}
  2. \setmainfont{Nimbus Sans}
  3. \usepackage{titling}
  4. \usepackage[margin=0.5in, bottom=0.8in]{geometry}
  5. \usepackage{sectsty}
  6. \usepackage{xcolor}
  7. \usepackage{titlesec}
  8. \usepackage{fancyhdr}
  9. \usepackage{soul}
  10. \usepackage{hyperref}
  11. \usepackage{graphicx}
  12. \setkeys{Gin}{width=0.8\textwidth} % Set default image width
  13. \usepackage{enumitem} % For controlling list spacing
  14. \usepackage{setspace} % For controlling line spacing
  15.  
  16. % Ensure images are left-aligned using \raggedright
  17. \let\origfigure\figure
  18. \let\endorigfigure\endfigure
  19. \renewenvironment{figure}
  20. {\origfigure\raggedright} % Force images to be left-aligned
  21. {\endorigfigure}
  22.  
  23. \hypersetup{
  24. colorlinks=true,
  25. linkcolor=blue,
  26. filecolor=magenta,
  27. urlcolor=cyan,
  28. citecolor=blue
  29. }
  30. \renewcommand\UrlFont{\color{cyan}\hl}
  31.  
  32. \pagestyle{fancy}
  33. \fancyhf{}
  34. \fancyfoot[R]{\thepage}
  35. \fancyfoot[C]{}
  36. \fancyfoot[L]{}
  37. \renewcommand{\headrulewidth}{0pt}
  38. \renewcommand{\footrulewidth}{0pt}
  39.  
  40. \fancypagestyle{plain}{
  41. \fancyhf{}
  42. \fancyfoot[R]{\thepage}
  43. \fancyfoot[C]{}
  44. \fancyfoot[L]{}
  45. \renewcommand{\headrulewidth}{0pt}
  46. \renewcommand{\footrulewidth}{0pt}
  47. }
  48.  
  49. % Set regular text margins
  50. \setlength{\parindent}{0pt} % No indentation for paragraphs
  51. \setlength{\leftskip}{1em} % No extra left margin for paragraphs
  52. \setlength{\parskip}{0.2em} % Reduce spacing between paragraphs
  53.  
  54. % Adjust heading margins separately to reduce vertical spacing
  55. \titlespacing*{\section}{0pt}{0.8em}{0.5em} % Reduce space before and after section heading
  56. \titlespacing*{\subsection}{0pt}{0.7em}{0.4em} % For subsection
  57. \titlespacing*{\subsubsection}{0pt}{0.6em}{0.3em} % For subsubsection
  58.  
  59. % Reduce vertical spacing around bullet points
  60. \setlist[itemize,1]{left=0em, nosep, before=\vspace{-0.25em}, after=\vspace{-0.25em}} % Tighten before and after
  61.  
  62. % Ensure consistent spacing after the list and the next text block
  63. \setlist[itemize,2]{left=0em, nosep, after=\vspace{-0.5em}} % Same spacing after last bullet point and text
  64.  
  65. % Reduce vertical spacing between numbered lists and text
  66. \setlist[enumerate,1]{left=0em, nosep, before=\vspace{-0.25em}, after=\vspace{-0.25em}}
  67.  
  68. % Control line spacing
  69. \setstretch{0.9} % Slightly reduce global line spacing (adjust as needed)
  70.  
  71. % Numbered headings with a dot and reduced gap
  72. \titleformat{\section}
  73. {\normalfont\Large\bfseries}{\thesection.}{0.25em}{}
  74.  
  75. \titleformat{\subsection}
  76. {\normalfont\large\bfseries}{\thesubsection.}{0.25em}{}
  77.  
  78. \titleformat{\subsubsection}
  79. {\normalfont\normalsize\bfseries}{\thesubsubsection.}{0.25em}{}
  80.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement