Tagged Questions
2
votes
0answers
55 views
Follow-up question to: titlesec: \sectionmark breaking \ifthesection?
In answer to this question egreg showed how to trick titlesec into ignoring the fact that sectionmark command makes \ifthesection false when defining customization commands in headers. The solution ...
4
votes
1answer
45 views
Using \toptitlemarks and \bottitlemarks with any counters
\toptitlemarks and \bottitlemarks don't seem to work with random counters:
\documentclass[paper=a4,pagesize=pdftex]{scrbook}
\usepackage[pagestyles]{titlesec}
\usepackage{lipsum}
...
7
votes
2answers
139 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 ...
2
votes
1answer
104 views
how to color the header's bottom line or footer's upper line?
The title is self-explanatory.
In my document's current state, I get this rendering result after compiling with XeLaTeX :
Here's a MWE of which packages and commands I use to obtain my current
...
4
votes
0answers
131 views
Trouble with titlesec
I've been using titlesec for quite some time now and want to "pimp up my style" ;)
I've read How to change header to list first section on page and not last section and tried to adapt the code for ...
4
votes
2answers
165 views
Custom titlemarks
My title marks are not working as I want them to. I had to move away from using the native section and subsectionand therefore my title marks does not work. I had a look at the extramarks feature of ...
2
votes
1answer
187 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 ...
5
votes
2answers
286 views
How to apply a custom pagestyle (with titlesec package) to a part of a document
I have defined a personal page style using the package titlesec.
The style defined is:
\newpagestyle{myStylePage}[\large\sffamily]{\headrule
\sethead{\thechapter . \chaptertitle}{}{\thesection . ...
6
votes
2answers
222 views
titlesec: \sectionmark breaking \ifthesection?
In the titlesec package, one may use the \ifthesection (or \ifthechapter,...) command to apply some customization commands only when a \section has been defined. However, it seems that using ...
6
votes
2answers
248 views
Suppress headers when page contains a section title using titlesec
I'm writing a book with titlesec and try to suppress headers containing the section name, when the section starts at the top of the respective page. Given that all my sections start on a new page I ...
8
votes
1answer
192 views
Strange behaviour of \renewpagestyle from the titlesec package
The following code uses the pagestyles option and \renewpagestyle from the titlesec package to redefine the plain style:
\documentclass{book}
\usepackage[paperheight=12cm]{geometry}
...
2
votes
1answer
158 views
Firsttitlemarks does not appear consistently in header
I am using this code for my header marks, but as you can see it misses the very first mark for the subsection which should be the first verse.
% definition of the page style with required headers
...
2
votes
1answer
141 views
titlesec: toptitlemarks and bottitlemarks broken when \section not called explicitly
This question is linked to my previous chapter-and-verse-in-header question
I am trying to produce a Bible text where the Chapter and Verse references appear in the header of each page. As can be ...
4
votes
2answers
283 views
Chapters and verses of current page in header
This question is linked to my other titlesec question
Does any one know how to add the current segment location at the top of any particular page.
What I need is the reference at the top of a ...
3
votes
1answer
726 views
Suppress page number from Chapter side titlesec
I'm struggling with removing/suppressing the page number from pages with chapter headings.
When using \usepackage[pagestyles]{titlesec} and
\newpagestyle{mystylep}{
\setfoot{}{}{}}
the page ...
10
votes
3answers
756 views
Customize headers without fancyhdr
I have strange, old book chapter to rewrite in LaTeX. The most iritating thing is the header. On odd pages the header should consist of the section name etc. But the problem is that if the page starts ...
3
votes
2answers
1k views
titlesec versus titling; mangling \thetitle
I want to have the chapter name and title of the document appear in the header; I know how to do that with fancyhdr and titling, one of the miscellaneous functions of the latter is to preserve the ...