Skip to content

Commit

Permalink
Merge pull request #28 from albertolazari/page-numbers
Browse files Browse the repository at this point in the history
Page numbers on the bottom + improved header
  • Loading branch information
sydernee authored Jul 9, 2023
2 parents c49d2a5 + 0f2c8f6 commit 4f14a58
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
1 change: 1 addition & 0 deletions config/packages.tex
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,4 @@
\usepackage[backend=biber,style=verbose-ibid,hyperref,backref]{biblatex}

\usepackage{layaureo} % margini ottimizzati per l'A4
\usepackage{fancyhdr}
18 changes: 18 additions & 0 deletions config/thesis-config.tex
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,23 @@
% \renewcommand{\labelitemiii}{$\diamond$}
% \renewcommand{\labelitemiv}{$\ast$}


\let\Chaptermark\chaptermark
% \Chaptername gives current chapter name
\def\chaptermark#1{\def\Chaptername{#1}\Chaptermark{#1}}
\makeatletter
% \currentname gives the current section name
\newcommand*{\currentname}{\@currentlabelname}
\makeatother

% Uncomment the following line for a different header/footer style
% \pagestyle{fancy} \setlength{\headheight}{14.5pt}
\fancyhead[L]{\fontsize{12}{14.5} \selectfont \thechapter. \Chaptername}
\fancyhead[R]{\fontsize{12}{14.5} \selectfont \currentname}
% Page number always in footer
\cfoot{\thepage}


% Custom hyphenation rules
\hyphenation {
e-sem-pio
Expand All @@ -22,6 +39,7 @@
\setlength{\parindent}{14pt} % first row indentation
\setlength{\parskip}{0pt} % paragraphs spacing


% Load variables
\input{config/variables}

Expand Down
3 changes: 2 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,15 @@ Here's the complete list of packages that you'll need, in order to be able to su
- cm-super
- greek-fontenc
- latexmk
- fancyhdr

You can install them manually using the TeX Live Manager (good luck!), or using the CLI utility counterpart `tlmgr`

Just copy and paste the following command in your terminal.
```bash
sudo tlmgr update --self
sudo tlmgr update --all
sudo tlmgr install pdfx xcolor xmpincl caption changepage csquotes emptypage epigraph nextpage eurosym layaureo listings microtype mparhack relsize quoting subfig booktabs glossaries glossaries-italian glossaries-english biber biblatex babel babel-italian cm-super greek-fontenc latexmk
sudo tlmgr install pdfx xcolor xmpincl caption changepage csquotes emptypage epigraph nextpage eurosym layaureo listings microtype mparhack relsize quoting subfig booktabs glossaries glossaries-italian glossaries-english biber biblatex babel babel-italian cm-super greek-fontenc latexmk fancyhdr
```

As you can see `tlmgr` asks for admin rights, so you'll need to use `sudo` on Linux/macOS, while on Windows you have to [open a command prompt instance as admin](https://www.howtogeek.com/194041/how-to-open-the-command-prompt-as-administrator-in-windows-8.1/) and omit the `sudo` at the beginning of the lines.
Expand Down

0 comments on commit 4f14a58

Please sign in to comment.