LyXInstalling fancyhdr.sty in Lyx 2.3

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
christo_91
Posts: 4
Joined: Wed May 29, 2019 11:27 am

Installing fancyhdr.sty in Lyx 2.3

Post by christo_91 »

Hi,

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.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

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

User avatar
Ijon Tichy
Posts: 640
Joined: Mon Dec 24, 2018 10:12 am

Installing fancyhdr.sty in Lyx 2.3

Post by Ijon Tichy »

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.
Sorry, but I can no longer participate here as the administrator is trampling on my wishes on one of his other platforms. :cry:
christo_91
Posts: 4
Joined: Wed May 29, 2019 11:27 am

Installing fancyhdr.sty in Lyx 2.3

Post by christo_91 »

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 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?

Thanks,
rais
Posts: 419
Joined: Sun Nov 16, 2014 8:51 pm

Installing fancyhdr.sty in Lyx 2.3

Post by rais »

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" ...
If memory serves, you need to tell LyX to scan for installed LaTeX packages, after you installed one (or more).

KR
Rainer
Post Reply