LyX ⇒ Installing fancyhdr.sty in Lyx 2.3
-
- Posts: 4
- Joined: Wed May 29, 2019 11:27 am
Installing fancyhdr.sty in Lyx 2.3
I'm trying to install the fancyhdr.sty package to Lyx so that I can add and amend headers but I'm struggling to get the program to recognise the packages (there are three; extramarks, fancyhdr and fancyheadings). I've currently tried putting the 3 files into the 'Resources' --> 'tex' subfolder of Lyx but that doesn't seem to have worked?
Any help please?
Thanks,
Christo.
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Ijon Tichy
- Posts: 640
- Joined: Mon Dec 24, 2018 10:12 am
Installing fancyhdr.sty in Lyx 2.3
BTW: fancyheadings is a deprecated LaTeX 2.09 package. You should not use it. Use either it's official successor fancyhdr or another up-to-date pagestyle package. IMHO LyX itself uses fancyhdr, if you use the LyX settings to setup the page head and foot. Package extramarks is part of the fancyhdr bundle and will be installed with that package, if you use the package manager of the TeX distribution to install fancyhdr.

-
- Posts: 4
- Joined: Wed May 29, 2019 11:27 am
Installing fancyhdr.sty in Lyx 2.3
Thanks for this. I've checked in MikTex and it says the package is installed, but when I go into Lyx ('Document settings' --> 'Modules') and select 'Custom Headers and Footers' it says "Packages required: fancyhdr.sty" and "Filename: customHeadersFooters.module" ... I'm guessing this means that Lyx hasn't got the package installed within itself? Do you know what I'm doing wrong?Ijon Tichy wrote:LyX is a frontend to LaTeX. You should install packages with the package manager of the TeX distributions, e.g., the tlmgr of TeX-Live or the MiKTeX console of MiKTeX.
BTW: fancyheadings is a deprecated LaTeX 2.09 package. You should not use it. Use either it's official successor fancyhdr or another up-to-date pagestyle package. IMHO LyX itself uses fancyhdr, if you use the LyX settings to setup the page head and foot. Package extramarks is part of the fancyhdr bundle and will be installed with that package, if you use the package manager of the TeX distribution to install fancyhdr.
Thanks,
Installing fancyhdr.sty in Lyx 2.3
If memory serves, you need to tell LyX to scan for installed LaTeX packages, after you installed one (or more).christo_91 wrote:I've checked in MikTex and it says the package is installed, but when I go into Lyx ('Document settings' --> 'Modules') and select 'Custom Headers and Footers' it says "Packages required: fancyhdr.sty" and "Filename: customHeadersFooters.module" ...
KR
Rainer