titlesec makes fancyhdr mistreating the document classHow to use short subsection title in header but not in...
Examples of a statistic that is not independent of sample's distribution?
Error during using callback start_page_number in lualatex
What was the Kree's motivation in Captain Marvel?
What are actual Tesla M60 models used by AWS?
How to secure an aircraft at a transient parking space?
Reverse string, can I make it faster?
Are all players supposed to be able to see each others' character sheets?
An alternative proof of an application of Hahn-Banach
Word for a person who has no opinion about whether god exists
How did Alan Turing break the enigma code using the hint given by the lady in the bar?
Does this video of collapsing warehouse shelves show a real incident?
Why was Goose renamed from Chewie for the Captain Marvel film?
How many characters using PHB rules does it take to be able to have access to any PHB spell at the start of an adventuring day?
Does "Until when" sound natural for native speakers?
List elements digit difference sort
How to draw cubes in a 3 dimensional plane
Should I tell my boss the work he did was worthless
Can you reject a postdoc offer after the PI has paid a large sum for flights/accommodation for your visit?
What wound would be of little consequence to a biped but terrible for a quadruped?
Is it possible to avoid unpacking when merging Association?
Shifting between bemols (flats) and diesis (sharps)in the key signature
Virginia employer terminated employee and wants signing bonus returned
When traveling to Europe from North America, do I need to purchase a different power strip?
Reversed Sudoku
titlesec makes fancyhdr mistreating the document class
How to use short subsection title in header but not in table of contents?Book fancyhdr confusionCreate a document cover using style classUsing titlesec to have chaptertitle and sectiontitle in twosided reportFancyhdr - No “Chapter” Word, but part numberInsert the number and name of the section in the header, (including on a chapter's opening page)How to automatically generate names of sections in head part of fancyhdr?Put the section and subsection in headers using fancyhdrProblem with fancyhdr aligned text and showDefining a New pagestyle Using Fancyhdr
MWE is pretty simple:
documentclass[twoside]{article}
%usepackage{titlesec}
usepackage{fancyhdr}
begin{document}
pagestyle{fancy}
section{tist1}
subsection{a}
newpage
subsection{b}
end{document}
On the second page, there is the subsection name on the left and the section name on the right.
Now, uncomment the titlesec
import, and the behaviour changes: the section name on the left and nothing (actually, a fantom of non-existent chapter name) on the right.
It happens because titlesec
redefines chapter
as relax
, though normally it's undefined
in article
class. The fancyhdr
packages has a following check:
ifxchapter@undefined
It fails, and marks are defined as in classes that have chapters. I can work it around with
letchapterundefined
after usepackage{titlesec}
, or by explicitly redefining sectionmark
/subsectionmark
after pagestyle{fancy}
. But why should I? Is this a bug in titlesec
, or setting chapter
to relax
has some purpose?
fancyhdr titlesec article
add a comment |
MWE is pretty simple:
documentclass[twoside]{article}
%usepackage{titlesec}
usepackage{fancyhdr}
begin{document}
pagestyle{fancy}
section{tist1}
subsection{a}
newpage
subsection{b}
end{document}
On the second page, there is the subsection name on the left and the section name on the right.
Now, uncomment the titlesec
import, and the behaviour changes: the section name on the left and nothing (actually, a fantom of non-existent chapter name) on the right.
It happens because titlesec
redefines chapter
as relax
, though normally it's undefined
in article
class. The fancyhdr
packages has a following check:
ifxchapter@undefined
It fails, and marks are defined as in classes that have chapters. I can work it around with
letchapterundefined
after usepackage{titlesec}
, or by explicitly redefining sectionmark
/subsectionmark
after pagestyle{fancy}
. But why should I? Is this a bug in titlesec
, or setting chapter
to relax
has some purpose?
fancyhdr titlesec article
What versions of the packages are you using? (Putlistfiles
beforedocumentclass
and report the output here.) I get identical output with or withouttitlesec
.
– Alan Munn
4 mins ago
add a comment |
MWE is pretty simple:
documentclass[twoside]{article}
%usepackage{titlesec}
usepackage{fancyhdr}
begin{document}
pagestyle{fancy}
section{tist1}
subsection{a}
newpage
subsection{b}
end{document}
On the second page, there is the subsection name on the left and the section name on the right.
Now, uncomment the titlesec
import, and the behaviour changes: the section name on the left and nothing (actually, a fantom of non-existent chapter name) on the right.
It happens because titlesec
redefines chapter
as relax
, though normally it's undefined
in article
class. The fancyhdr
packages has a following check:
ifxchapter@undefined
It fails, and marks are defined as in classes that have chapters. I can work it around with
letchapterundefined
after usepackage{titlesec}
, or by explicitly redefining sectionmark
/subsectionmark
after pagestyle{fancy}
. But why should I? Is this a bug in titlesec
, or setting chapter
to relax
has some purpose?
fancyhdr titlesec article
MWE is pretty simple:
documentclass[twoside]{article}
%usepackage{titlesec}
usepackage{fancyhdr}
begin{document}
pagestyle{fancy}
section{tist1}
subsection{a}
newpage
subsection{b}
end{document}
On the second page, there is the subsection name on the left and the section name on the right.
Now, uncomment the titlesec
import, and the behaviour changes: the section name on the left and nothing (actually, a fantom of non-existent chapter name) on the right.
It happens because titlesec
redefines chapter
as relax
, though normally it's undefined
in article
class. The fancyhdr
packages has a following check:
ifxchapter@undefined
It fails, and marks are defined as in classes that have chapters. I can work it around with
letchapterundefined
after usepackage{titlesec}
, or by explicitly redefining sectionmark
/subsectionmark
after pagestyle{fancy}
. But why should I? Is this a bug in titlesec
, or setting chapter
to relax
has some purpose?
fancyhdr titlesec article
fancyhdr titlesec article
asked 1 hour ago
bodqhrohrobodqhrohro
1083
1083
What versions of the packages are you using? (Putlistfiles
beforedocumentclass
and report the output here.) I get identical output with or withouttitlesec
.
– Alan Munn
4 mins ago
add a comment |
What versions of the packages are you using? (Putlistfiles
beforedocumentclass
and report the output here.) I get identical output with or withouttitlesec
.
– Alan Munn
4 mins ago
What versions of the packages are you using? (Put
listfiles
before documentclass
and report the output here.) I get identical output with or without titlesec
.– Alan Munn
4 mins ago
What versions of the packages are you using? (Put
listfiles
before documentclass
and report the output here.) I get identical output with or without titlesec
.– Alan Munn
4 mins ago
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f479007%2ftitlesec-makes-fancyhdr-mistreating-the-document-class%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f479007%2ftitlesec-makes-fancyhdr-mistreating-the-document-class%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
What versions of the packages are you using? (Put
listfiles
beforedocumentclass
and report the output here.) I get identical output with or withouttitlesec
.– Alan Munn
4 mins ago