| 1 | # `scrlayer-fancyhdr` — combining [`fancyhdr`](https://www.ctan.org/pkg/fancyhdr) with [KOMA-Script](https://www.ctan.org/pkg/koma-script)'s [`scrlayer`](https://www.ctan.org/pkg/scrlayer) |
| 2 | |
| 3 | ------------------------------------------------------------------------------ |
| 4 | |
| 5 | LaTeX package `scrlayer-fancyhdr` |
| 6 | |
| 7 | Copyright (c) 2008—2025 Markus Kohm |
| 8 | |
| 9 | Release: 2025-02-10 v0.4 |
| 10 | |
| 11 | License: LPPL 1.3c (see LICENSE.md) |
| 12 | |
| 13 | CTAN Location: https://ctan.org/pkg/scrlayer-fancyhdr |
| 14 | |
| 15 | ------------------------------------------------------------------------------ |
| 16 | |
| 17 | ## Summary |
| 18 | |
| 19 | `scrlayer-fancyhdr` is a LaTeX package, that uses |
| 20 | [KOMA-Script](https://www.ctan.org/pkg/koma-script)'s |
| 21 | [`scrlayer`](https://www.ctan.org/pkg/scrlayer) to redefine the page styles of |
| 22 | package [`fancyhdr`](https://www.ctan.org/pkg/fancyhdr). This allows the |
| 23 | combination of features of `fancyhdr` with features of `scrlayer`. |
| 24 | |
| 25 | Before KOMA-Script v3.33 `scrlayer-fancyhdr` was part of KOMA-Script itself. |
| 26 | It still depends on KOMA-Script package |
| 27 | [`scrlayer`](https://www.ctan.org/pkg/scrlayer) at least version 3.33. It |
| 28 | also depends on [`fancyhdr`](https://www.ctan.org/pkg/fancyhdr). Currently |
| 29 | version 3 and 4 up to 4.0.1 are supported and tested. Basic functionality also |
| 30 | works with version 5 and has been tested up to 5.1. But several new features |
| 31 | of [`fancyhdr`](https://www.ctan.org/pkg/fancyhdr) version 5 are currently not |
| 32 | tested with `scrlayer-fancyhdr`. |
| 33 | |
| 34 | ## Status |
| 35 | |
| 36 | This is an early release of an experimental package. |
| 37 | |
| 38 | ## Installation |
| 39 | |
| 40 | We recommend to use the package manager of your TeX distribution to install |
| 41 | packages. However, if you need to install `scrlayer-fancyhdr` manually, you |
| 42 | can either use a semi-manual installation or a completely manual installation. |
| 43 | |
| 44 | ### Semi-manual Installation |
| 45 | |
| 46 | For a semi-manual installation you can first create a local clone |
| 47 | of the repository: |
| 48 | |
| 49 | ```bash |
| 50 | git clone https://github.com/komascript/scrlayer-fancyhdr.git |
| 51 | ``` |
| 52 | |
| 53 | Then enter the directory created while cloning the repository: |
| 54 | |
| 55 | ```bash |
| 56 | cd scrlayer-fancyhdr |
| 57 | ``` |
| 58 | |
| 59 | Last, but not least use `l3build` to install it locally with manual and |
| 60 | sources: |
| 61 | |
| 62 | ```bash |
| 63 | l3build install --full |
| 64 | ``` |
| 65 | |
| 66 | or without manual and sources: |
| 67 | |
| 68 | ```bash |
| 69 | l3build install |
| 70 | ``` |
| 71 | |
| 72 | ### Completely Manual Installation |
| 73 | |
| 74 | To do a completely manual installation, download `scrlayer-fancyhdr.dtx`. |
| 75 | Then extract it using: |
| 76 | |
| 77 | ```bash |
| 78 | tex scrlayer-fancyhdr.dtx |
| 79 | ``` |
| 80 | |
| 81 | To create the manual use: |
| 82 | |
| 83 | ```bash |
| 84 | pdflatex scrlayer-fancyhdr.dtx |
| 85 | mkindex scrlayer-fancyhdr |
| 86 | biber scrlayer-fancyhdr |
| 87 | pdflatex scrlayer-fancyhdr.dtx |
| 88 | pdflatex scrlayer-fancyhdr.dtx |
| 89 | ``` |
| 90 | |
| 91 | Now, you can either install it in the proper directory (see the |
| 92 | documentation of your TeX distribution) or copy `scrlayer-fancyhdr.sty` |
| 93 | to your document directory. |
| 94 | |
| 95 | ------------------------------------------------------------------------------ |