0
votes
0answers
44 views

Section spacing suddenly dynamic

I'm using LaTex in combination with MikTex and just recently introduced the fancyhdr package to my thesis. For some reason, when using the \subsection or \subsubsection commands I sometimes get the ...
3
votes
1answer
233 views

LyX + fancyhdr issue on chapter

I have a LyX document in which I have set a standard header, as is \fancyhf{} \fancyhead[EC]{\leftmark} \fancyhead[ER]{\thepage} \fancyhead[OC]{\leftmark} \fancyhead[OL]{\thepage} And I have ...
3
votes
1answer
183 views

Nomenclature header problems

I'm writing a document in book class, using the fancyhdr package. I have both an index, and a symbol list, for which I use the imakeidx and nomencl packages. I had problems with getting the right ...
1
vote
1answer
146 views

\usepackage{fancyhdr} remove bookmarks

Hi everybody sorry for the inconvenience, i try to make a thesis in pdf and i like to put two things in: 1) change the style of chapters (Lenny); 2) put the chapter in a header top on the page; ...
4
votes
1answer
933 views

Customize \chaptermark for \mainmatter

Hey guys it's me again, I tried to add \leftmark to my header, but I want to change it from Chapter 1. Introduction to 1 Introduction. My MWE: \documentclass[12pt, oneside, a4paper]{book} ...
5
votes
2answers
2k views

Fancyhdr does not apply same header/footer on chapter and non-chapter pages

I have a problem with the fancy package: I use the report documentclass and I have a chapter, a lot of text and then a new page starting with a section (or the next page has no chapter starting on ...
2
votes
1answer
309 views

Getting chapter and section in \fancyhead

I am having a bit of a heard time getting \fancyhead to give me the out put I want. I'd like to have a header that includes Chapter X: THIS IS THE SECTION (italicized like the default). I can get it ...
2
votes
1answer
546 views

\markboth is not working when using \chapter and \section

I am having a problem when adding \chapter and \section in the document. \markboth is not working when I compile it. I have got a link Why is \markboth not working?. But there is no solution about my ...
2
votes
1answer
3k views

Remove section name from header in LaTeX

I am trying to remove section names in headers. I am using fancyhdr package. When I try to specify new text in \lhead{}, text is just overlayed on section name. P.S. 3 hours of googling did not help. ...
3
votes
2answers
257 views

Alternating header titles

I'm trying to figure out how to get the odd and pages to display the current section name and the odd pages to display the title of the paper. How do I accomplish this? I'm using article and I have ...
8
votes
2answers
212 views

Page number in the margin and separator

I want to produce this kind of header. My first attempt includes the use of fancyhdr package but still I can't figure out how it is possible to move the page number in the margin and put the | bold ...
5
votes
3answers
514 views

Use of shaded box for section numbering only?

I have been wondering "how to get shaded box for section numbers only"? Also, How to get grey square in between left mark and page number in the header? In code below I can get solid black square. I ...
4
votes
1answer
389 views

Section and subsection name in headings

I'd like to make the headings of my article look like this: <Section name> <Subsection number> <Subsection name> | <Page number> and I wrote this ...
2
votes
1answer
666 views

Reducing/removing gap between header and custom chapter title

I'm writing a portfolio/report with pdflatex and while trying to get a header and footer I have got a situation where there's now a significant gap between the header and the chapter title, whereas ...
9
votes
2answers
596 views

Header not displaying correctly on chapter page due to subsection

(Complete source code below.) (Note: Not sure if I am using LaTeX or just TeX. I am editing with TeXworks, as TeXStudio was not rendering what I typed without +20 seconds of lag.) I apologize if ...
4
votes
1answer
207 views

Wrong \rightmark in twocolumn mode

I would like to use the "dictionary" style of page header, using \rightmark--\leftmark as suggested in fancyhdr package. However, in twocolumn mode, \rightmark containts the first mark in the latter ...
5
votes
1answer
634 views

Using \thesubsection in header references last instance - not first

I would like to include \thesubsection in my header, referring to the first instance of subsection, and not the last as seems to be the default. The following MWE says it all: ...
8
votes
2answers
2k views

Want \section* to change the page header

In a book, I have several numbered sections followed by an unnumbered section. I have placed an \addcontentsline following the \section* that introduces the unnumbered section, so that it will appear ...
6
votes
2answers
1k views

fancyhdr - how to disable auto section number and still show section name in header

\documentclass[fleqn,12pt,a4paper]{article} %\RequirePackage{Kaumudi_Package} \usepackage{fancyhdr} \pagestyle{fancy} \begin{document} \section{section-1} \newpage \section{section-2} \end{document} ...
4
votes
1answer
428 views

\ifnum conflict with appendix

Was helped briliantly before, here's another small problem I do not get fixed: Using the fancyhdr package I get, as promised, fancy headers. However, a chapter in the frontmatter gets a 0. ...
6
votes
1answer
479 views

fancyhdr plus fontsize 12pt causes varying vertical alignment of sections

Looking at the example provided in Different headers for different chapters, I noticed something strange: The vertical alignment of sections is varying. I was able to strip the effect down to the ...
1
vote
1answer
525 views

Showing unnumbered sections in header using two different layouts in fancyhdr

I use two header layouts - first of introductions and second for dictionary. I want ot set the unnumbered sections headings into header in the first header together with page number. Minimal example ...