Skip to content

Commit

Permalink
Merge pull request #100 from jikaczmarski/main
Browse files Browse the repository at this point in the history
Font and alignment fixes
  • Loading branch information
eldobbins authored Aug 29, 2024
2 parents 53939b7 + 8c9ec3b commit bf0148a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
1 change: 1 addition & 0 deletions _quarto-pdf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ format:
fig-height: 3.25

fontsize: 11pt
mainfont: Barlow

toc: true
toc-depth: 3
Expand Down
12 changes: 2 additions & 10 deletions scripts/latex/preamble.tex
Original file line number Diff line number Diff line change
@@ -1,17 +1,9 @@
\usepackage{graphicx}
\usepackage{fancyhdr}
\usepackage{xcolor}
\usepackage[T1]{fontenc}
\usepackage{fontspec}

\usepackage[margin=2cm, bottom=2cm, top=3cm, headheight=50pt, footskip=20pt]{geometry}

% Set font to Barlow
\setmainfont{Barlow}

% Styling
\renewcommand\familydefault{\sfdefault}

% Define colors
\definecolor{uafblue}{HTML}{104179}
\definecolor{uafyellow}{HTML}{F8DA08}
Expand All @@ -22,9 +14,9 @@
\fancyhf{}
\fancyhead[C]{
\makebox[0pt][c]{\hspace*{0cm}\color{uafblue}\rule{\dimexpr\textwidth+2cm\relax}{40pt}}
\makebox[0pt][c]{\hspace*{-0.25cm}\color{uafyellow}\rule{\dimexpr\textwidth+2cm\relax}{5pt}}
\makebox[0pt][c]{\hspace*{-0.145cm}\color{uafyellow}\rule{\dimexpr\textwidth+2cm\relax}{5pt}}
}
\fancyhead[R]{\raisebox{17pt}{\color{white} \textbf{\fontsize{14}{16}\selectfont Alaska Electricity Trends Report, 2024}}}
\fancyhead[R]{\raisebox{17pt}{\color{white} \textbf{\fontsize{14}{16} Alaska Electricity Trends Report, 2024}}}
\fancyfoot[R]{\raisebox{0pt}{\color{uafblue} \textbf{\thepage}}}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
Expand Down

0 comments on commit bf0148a

Please sign in to comment.