How to add sections titles to the headers and to the toc?
I am trying to customize a template initially designed for novels. I have added to it sections and I would like to see, as headers, on the left page, the title of the book, at the center of the page, and, on the right page and at the center of the page, the title of the chapter. I'd like especially to see all the subsections numbered in my toc. How could I do that?
This is my mwe:
documentclass[smalldemyvopaper,10pt,twoside,onecolumn,openright,extrafontsizes]{memoir}
usepackage[utf8]{inputenc}
usepackage [frenchb]{babel}
usepackage[T1]{fontenc}
usepackage[osf]{Alegreya,AlegreyaSans}
usepackage{lipsum}
% PACKAGE DEFINITION
% typographical packages
usepackage{microtype} % for micro-typographical adjustments
usepackage{setspace} % for line spacing
usepackage{lettrine} % for drop caps and awesome chapter beginnings
usepackage{titlesec} % for manipulation of chapter titles
% for placeholder text
usepackage{lipsum} % to generate Lorem Ipsum
% other
usepackage{calc}
usepackage{hologo}
usepackage[hidelinks]{hyperref}
%usepackage{showframe}
% PHYSICAL DOCUMENT SETUP
% media settings
setstocksize{8.5in}{5.675in}
settrimmedsize{8.5in}{5.5in}{*}
setbinding{0.175in}
setlrmarginsandblock{0.611in}{1.222in}{*}
setulmarginsandblock{0.722in}{1.545in}{*}
% defining the title and the author
%title{LaTeX{} ePub Template}
%title{textsc{How I Started to Love {fontfamily{cmr}selectfontLaTeX{}}}}
title{A title}
author{My name}
newcommand{ISBN}{0-000-00000-2}
newcommand{press}{Nom de l'éditeur}
% custom second title page
makeatletter
newcommand*halftitlepage{begingroup % Misericords, T&H p 153
setlengthdrop{0.1textheight}
begin{center}
vspace*{drop}
rule{textwidth}{0in}par
{Largetextscthetitlepar}
rule{textwidth}{0in}par
vfill
end{center}
endgroup}
makeatother
% custom title page
thispagestyle{empty}
makeatletter
newlengthdrop
newcommand*titleM{begingroup % Misericords, T&H p 153
setlengthdrop{0.15textheight}
begin{center}
vspace*{drop}
rule{textwidth}{0in}par
{HUGEtextscthetitlepar}
rule{textwidth}{0in}par
{Largetextittheauthorpar}
vfill
{Largescshapepress}
end{center}
endgroup}
makeatother
% chapter title manipulation
% padding with zero
%renewcommand*thechapter{ifnumvalue{chapter}<10 0fiarabic{chapter}}
% chapter title display
titleformat
{chapter}
[display]
{normalfontscshapeLARGE}
{hugethechaptercentering}
{0pt}
{vspace{18pt}centering}[vspace{22pt}]
% typographical settings for the body text
setlength{parskip}{0em}
linespread{1.09}
% HEADER AND FOOTER MANIPULATION
% for normal pages
nouppercaseheads
headsep = 0.16in
makepagestyle{mystyle}
setlength{headwidth}{dimexprtextwidth+marginparsep+marginparwidthrelax}
makerunningwidth{mystyle}{headwidth}
makeevenhead{mystyle}{}{textsf{scriptsizescshapethetitle}}{}
makeoddhead{mystyle}{}{textsf{scriptsizescshapeleftmark}}{}
makeevenfoot{mystyle}{}{textsf{scriptsizethepage}}{}
makeoddfoot{mystyle}{}{textsf{scriptsizethepage}}{}
makeatletter
makepsmarks{mystyle}{%
createmark{chapter}{left}{nonumber}{@chapapp }{. }}
makeatother
% for pages where chapters begin
makepagestyle{plain}
makerunningwidth{plain}{headwidth}
makeevenfoot{plain}{}{}{}
makeoddfoot{plain}{}{}{}
pagestyle{mystyle}
% END HEADER AND FOOTER MANIPULATION
% table of contents customisation
renewcommandcontentsname{normalfontscshape Contents}
renewcommandcftchapterfont{normalfont}
renewcommand{cftchapterpagefont}{normalfont}
renewcommand{printtoctitle}{centeringHuge}
% layout check and fix
checkandfixthelayout
fixpdflayout
% BEGIN THE DOCUMENT
begin{document}
pagestyle{empty}
% the half title page
%halftitlepage
cleardoublepage
% the title page
titleM
% begin front matter
frontmatter
pagestyle{mystyle}
chapter{Introduction}
mainmatter
part{A part}
chapter{A chapter}
section{A section}
lipsum
end{document}
sectioning header-footer
add a comment |
I am trying to customize a template initially designed for novels. I have added to it sections and I would like to see, as headers, on the left page, the title of the book, at the center of the page, and, on the right page and at the center of the page, the title of the chapter. I'd like especially to see all the subsections numbered in my toc. How could I do that?
This is my mwe:
documentclass[smalldemyvopaper,10pt,twoside,onecolumn,openright,extrafontsizes]{memoir}
usepackage[utf8]{inputenc}
usepackage [frenchb]{babel}
usepackage[T1]{fontenc}
usepackage[osf]{Alegreya,AlegreyaSans}
usepackage{lipsum}
% PACKAGE DEFINITION
% typographical packages
usepackage{microtype} % for micro-typographical adjustments
usepackage{setspace} % for line spacing
usepackage{lettrine} % for drop caps and awesome chapter beginnings
usepackage{titlesec} % for manipulation of chapter titles
% for placeholder text
usepackage{lipsum} % to generate Lorem Ipsum
% other
usepackage{calc}
usepackage{hologo}
usepackage[hidelinks]{hyperref}
%usepackage{showframe}
% PHYSICAL DOCUMENT SETUP
% media settings
setstocksize{8.5in}{5.675in}
settrimmedsize{8.5in}{5.5in}{*}
setbinding{0.175in}
setlrmarginsandblock{0.611in}{1.222in}{*}
setulmarginsandblock{0.722in}{1.545in}{*}
% defining the title and the author
%title{LaTeX{} ePub Template}
%title{textsc{How I Started to Love {fontfamily{cmr}selectfontLaTeX{}}}}
title{A title}
author{My name}
newcommand{ISBN}{0-000-00000-2}
newcommand{press}{Nom de l'éditeur}
% custom second title page
makeatletter
newcommand*halftitlepage{begingroup % Misericords, T&H p 153
setlengthdrop{0.1textheight}
begin{center}
vspace*{drop}
rule{textwidth}{0in}par
{Largetextscthetitlepar}
rule{textwidth}{0in}par
vfill
end{center}
endgroup}
makeatother
% custom title page
thispagestyle{empty}
makeatletter
newlengthdrop
newcommand*titleM{begingroup % Misericords, T&H p 153
setlengthdrop{0.15textheight}
begin{center}
vspace*{drop}
rule{textwidth}{0in}par
{HUGEtextscthetitlepar}
rule{textwidth}{0in}par
{Largetextittheauthorpar}
vfill
{Largescshapepress}
end{center}
endgroup}
makeatother
% chapter title manipulation
% padding with zero
%renewcommand*thechapter{ifnumvalue{chapter}<10 0fiarabic{chapter}}
% chapter title display
titleformat
{chapter}
[display]
{normalfontscshapeLARGE}
{hugethechaptercentering}
{0pt}
{vspace{18pt}centering}[vspace{22pt}]
% typographical settings for the body text
setlength{parskip}{0em}
linespread{1.09}
% HEADER AND FOOTER MANIPULATION
% for normal pages
nouppercaseheads
headsep = 0.16in
makepagestyle{mystyle}
setlength{headwidth}{dimexprtextwidth+marginparsep+marginparwidthrelax}
makerunningwidth{mystyle}{headwidth}
makeevenhead{mystyle}{}{textsf{scriptsizescshapethetitle}}{}
makeoddhead{mystyle}{}{textsf{scriptsizescshapeleftmark}}{}
makeevenfoot{mystyle}{}{textsf{scriptsizethepage}}{}
makeoddfoot{mystyle}{}{textsf{scriptsizethepage}}{}
makeatletter
makepsmarks{mystyle}{%
createmark{chapter}{left}{nonumber}{@chapapp }{. }}
makeatother
% for pages where chapters begin
makepagestyle{plain}
makerunningwidth{plain}{headwidth}
makeevenfoot{plain}{}{}{}
makeoddfoot{plain}{}{}{}
pagestyle{mystyle}
% END HEADER AND FOOTER MANIPULATION
% table of contents customisation
renewcommandcontentsname{normalfontscshape Contents}
renewcommandcftchapterfont{normalfont}
renewcommand{cftchapterpagefont}{normalfont}
renewcommand{printtoctitle}{centeringHuge}
% layout check and fix
checkandfixthelayout
fixpdflayout
% BEGIN THE DOCUMENT
begin{document}
pagestyle{empty}
% the half title page
%halftitlepage
cleardoublepage
% the title page
titleM
% begin front matter
frontmatter
pagestyle{mystyle}
chapter{Introduction}
mainmatter
part{A part}
chapter{A chapter}
section{A section}
lipsum
end{document}
sectioning header-footer
off-topic: (i) it is sufficient to load each package once (ii)lettrine
is integrated to memoir, so it is no need to load again, (iii)memoir
provide similar facilities astitlesec
, so i would rather exploitmemoir
... (iv) for your problem see 7.3.1 Example pagestyles on page 111 inmemoir
manual.
– Zarko
Feb 24 at 16:57
add a comment |
I am trying to customize a template initially designed for novels. I have added to it sections and I would like to see, as headers, on the left page, the title of the book, at the center of the page, and, on the right page and at the center of the page, the title of the chapter. I'd like especially to see all the subsections numbered in my toc. How could I do that?
This is my mwe:
documentclass[smalldemyvopaper,10pt,twoside,onecolumn,openright,extrafontsizes]{memoir}
usepackage[utf8]{inputenc}
usepackage [frenchb]{babel}
usepackage[T1]{fontenc}
usepackage[osf]{Alegreya,AlegreyaSans}
usepackage{lipsum}
% PACKAGE DEFINITION
% typographical packages
usepackage{microtype} % for micro-typographical adjustments
usepackage{setspace} % for line spacing
usepackage{lettrine} % for drop caps and awesome chapter beginnings
usepackage{titlesec} % for manipulation of chapter titles
% for placeholder text
usepackage{lipsum} % to generate Lorem Ipsum
% other
usepackage{calc}
usepackage{hologo}
usepackage[hidelinks]{hyperref}
%usepackage{showframe}
% PHYSICAL DOCUMENT SETUP
% media settings
setstocksize{8.5in}{5.675in}
settrimmedsize{8.5in}{5.5in}{*}
setbinding{0.175in}
setlrmarginsandblock{0.611in}{1.222in}{*}
setulmarginsandblock{0.722in}{1.545in}{*}
% defining the title and the author
%title{LaTeX{} ePub Template}
%title{textsc{How I Started to Love {fontfamily{cmr}selectfontLaTeX{}}}}
title{A title}
author{My name}
newcommand{ISBN}{0-000-00000-2}
newcommand{press}{Nom de l'éditeur}
% custom second title page
makeatletter
newcommand*halftitlepage{begingroup % Misericords, T&H p 153
setlengthdrop{0.1textheight}
begin{center}
vspace*{drop}
rule{textwidth}{0in}par
{Largetextscthetitlepar}
rule{textwidth}{0in}par
vfill
end{center}
endgroup}
makeatother
% custom title page
thispagestyle{empty}
makeatletter
newlengthdrop
newcommand*titleM{begingroup % Misericords, T&H p 153
setlengthdrop{0.15textheight}
begin{center}
vspace*{drop}
rule{textwidth}{0in}par
{HUGEtextscthetitlepar}
rule{textwidth}{0in}par
{Largetextittheauthorpar}
vfill
{Largescshapepress}
end{center}
endgroup}
makeatother
% chapter title manipulation
% padding with zero
%renewcommand*thechapter{ifnumvalue{chapter}<10 0fiarabic{chapter}}
% chapter title display
titleformat
{chapter}
[display]
{normalfontscshapeLARGE}
{hugethechaptercentering}
{0pt}
{vspace{18pt}centering}[vspace{22pt}]
% typographical settings for the body text
setlength{parskip}{0em}
linespread{1.09}
% HEADER AND FOOTER MANIPULATION
% for normal pages
nouppercaseheads
headsep = 0.16in
makepagestyle{mystyle}
setlength{headwidth}{dimexprtextwidth+marginparsep+marginparwidthrelax}
makerunningwidth{mystyle}{headwidth}
makeevenhead{mystyle}{}{textsf{scriptsizescshapethetitle}}{}
makeoddhead{mystyle}{}{textsf{scriptsizescshapeleftmark}}{}
makeevenfoot{mystyle}{}{textsf{scriptsizethepage}}{}
makeoddfoot{mystyle}{}{textsf{scriptsizethepage}}{}
makeatletter
makepsmarks{mystyle}{%
createmark{chapter}{left}{nonumber}{@chapapp }{. }}
makeatother
% for pages where chapters begin
makepagestyle{plain}
makerunningwidth{plain}{headwidth}
makeevenfoot{plain}{}{}{}
makeoddfoot{plain}{}{}{}
pagestyle{mystyle}
% END HEADER AND FOOTER MANIPULATION
% table of contents customisation
renewcommandcontentsname{normalfontscshape Contents}
renewcommandcftchapterfont{normalfont}
renewcommand{cftchapterpagefont}{normalfont}
renewcommand{printtoctitle}{centeringHuge}
% layout check and fix
checkandfixthelayout
fixpdflayout
% BEGIN THE DOCUMENT
begin{document}
pagestyle{empty}
% the half title page
%halftitlepage
cleardoublepage
% the title page
titleM
% begin front matter
frontmatter
pagestyle{mystyle}
chapter{Introduction}
mainmatter
part{A part}
chapter{A chapter}
section{A section}
lipsum
end{document}
sectioning header-footer
I am trying to customize a template initially designed for novels. I have added to it sections and I would like to see, as headers, on the left page, the title of the book, at the center of the page, and, on the right page and at the center of the page, the title of the chapter. I'd like especially to see all the subsections numbered in my toc. How could I do that?
This is my mwe:
documentclass[smalldemyvopaper,10pt,twoside,onecolumn,openright,extrafontsizes]{memoir}
usepackage[utf8]{inputenc}
usepackage [frenchb]{babel}
usepackage[T1]{fontenc}
usepackage[osf]{Alegreya,AlegreyaSans}
usepackage{lipsum}
% PACKAGE DEFINITION
% typographical packages
usepackage{microtype} % for micro-typographical adjustments
usepackage{setspace} % for line spacing
usepackage{lettrine} % for drop caps and awesome chapter beginnings
usepackage{titlesec} % for manipulation of chapter titles
% for placeholder text
usepackage{lipsum} % to generate Lorem Ipsum
% other
usepackage{calc}
usepackage{hologo}
usepackage[hidelinks]{hyperref}
%usepackage{showframe}
% PHYSICAL DOCUMENT SETUP
% media settings
setstocksize{8.5in}{5.675in}
settrimmedsize{8.5in}{5.5in}{*}
setbinding{0.175in}
setlrmarginsandblock{0.611in}{1.222in}{*}
setulmarginsandblock{0.722in}{1.545in}{*}
% defining the title and the author
%title{LaTeX{} ePub Template}
%title{textsc{How I Started to Love {fontfamily{cmr}selectfontLaTeX{}}}}
title{A title}
author{My name}
newcommand{ISBN}{0-000-00000-2}
newcommand{press}{Nom de l'éditeur}
% custom second title page
makeatletter
newcommand*halftitlepage{begingroup % Misericords, T&H p 153
setlengthdrop{0.1textheight}
begin{center}
vspace*{drop}
rule{textwidth}{0in}par
{Largetextscthetitlepar}
rule{textwidth}{0in}par
vfill
end{center}
endgroup}
makeatother
% custom title page
thispagestyle{empty}
makeatletter
newlengthdrop
newcommand*titleM{begingroup % Misericords, T&H p 153
setlengthdrop{0.15textheight}
begin{center}
vspace*{drop}
rule{textwidth}{0in}par
{HUGEtextscthetitlepar}
rule{textwidth}{0in}par
{Largetextittheauthorpar}
vfill
{Largescshapepress}
end{center}
endgroup}
makeatother
% chapter title manipulation
% padding with zero
%renewcommand*thechapter{ifnumvalue{chapter}<10 0fiarabic{chapter}}
% chapter title display
titleformat
{chapter}
[display]
{normalfontscshapeLARGE}
{hugethechaptercentering}
{0pt}
{vspace{18pt}centering}[vspace{22pt}]
% typographical settings for the body text
setlength{parskip}{0em}
linespread{1.09}
% HEADER AND FOOTER MANIPULATION
% for normal pages
nouppercaseheads
headsep = 0.16in
makepagestyle{mystyle}
setlength{headwidth}{dimexprtextwidth+marginparsep+marginparwidthrelax}
makerunningwidth{mystyle}{headwidth}
makeevenhead{mystyle}{}{textsf{scriptsizescshapethetitle}}{}
makeoddhead{mystyle}{}{textsf{scriptsizescshapeleftmark}}{}
makeevenfoot{mystyle}{}{textsf{scriptsizethepage}}{}
makeoddfoot{mystyle}{}{textsf{scriptsizethepage}}{}
makeatletter
makepsmarks{mystyle}{%
createmark{chapter}{left}{nonumber}{@chapapp }{. }}
makeatother
% for pages where chapters begin
makepagestyle{plain}
makerunningwidth{plain}{headwidth}
makeevenfoot{plain}{}{}{}
makeoddfoot{plain}{}{}{}
pagestyle{mystyle}
% END HEADER AND FOOTER MANIPULATION
% table of contents customisation
renewcommandcontentsname{normalfontscshape Contents}
renewcommandcftchapterfont{normalfont}
renewcommand{cftchapterpagefont}{normalfont}
renewcommand{printtoctitle}{centeringHuge}
% layout check and fix
checkandfixthelayout
fixpdflayout
% BEGIN THE DOCUMENT
begin{document}
pagestyle{empty}
% the half title page
%halftitlepage
cleardoublepage
% the title page
titleM
% begin front matter
frontmatter
pagestyle{mystyle}
chapter{Introduction}
mainmatter
part{A part}
chapter{A chapter}
section{A section}
lipsum
end{document}
sectioning header-footer
sectioning header-footer
edited Feb 26 at 21:11
domi
asked Feb 24 at 14:16
domidomi
6341818
6341818
off-topic: (i) it is sufficient to load each package once (ii)lettrine
is integrated to memoir, so it is no need to load again, (iii)memoir
provide similar facilities astitlesec
, so i would rather exploitmemoir
... (iv) for your problem see 7.3.1 Example pagestyles on page 111 inmemoir
manual.
– Zarko
Feb 24 at 16:57
add a comment |
off-topic: (i) it is sufficient to load each package once (ii)lettrine
is integrated to memoir, so it is no need to load again, (iii)memoir
provide similar facilities astitlesec
, so i would rather exploitmemoir
... (iv) for your problem see 7.3.1 Example pagestyles on page 111 inmemoir
manual.
– Zarko
Feb 24 at 16:57
off-topic: (i) it is sufficient to load each package once (ii)
lettrine
is integrated to memoir, so it is no need to load again, (iii) memoir
provide similar facilities as titlesec
, so i would rather exploit memoir
... (iv) for your problem see 7.3.1 Example pagestyles on page 111 in memoir
manual.– Zarko
Feb 24 at 16:57
off-topic: (i) it is sufficient to load each package once (ii)
lettrine
is integrated to memoir, so it is no need to load again, (iii) memoir
provide similar facilities as titlesec
, so i would rather exploit memoir
... (iv) for your problem see 7.3.1 Example pagestyles on page 111 in memoir
manual.– Zarko
Feb 24 at 16:57
add a comment |
1 Answer
1
active
oldest
votes
First of all I highly recommend to take into account @Zarko remarks as the problem you are facing is largely due to some incompatibilities between the
memoir
class and thetitlesec
package.
The
thetitle
command defined by thememoir
class is redifined by thetitlesec
package so we need to store its value before. So we define a new macro withedefTheTitle{thetitle}
and use it to set the headers
makeevenhead{mystyle}{}{textsf{scriptsizescshapeTheTitle}}{}
makeoddhead{mystyle}{}{textsf{scriptsizescshapeleftmark}}{}
To number the
subsection
s and see them in the toc:
%
maxsecnumdepth{subsection}
maxtocdepth{subsection}
The complete code
documentclass[smalldemyvopaper, 10pt, twoside, onecolumn, openright, extrafontsizes]{memoir}
usepackage[utf8]{inputenc}
usepackage [frenchb]{babel}
usepackage[T1]{fontenc}
usepackage[osf]{Alegreya,AlegreyaSans}
usepackage{lipsum}
% PACKAGE DEFINITION
% typographical packages
usepackage{microtype} % for micro-typographical adjustments
usepackage{setspace} % for line spacing
usepackage{lettrine} % for drop caps and awesome chapter beginnings
usepackage{titlesec} % for manipulation of chapter titles
% for placeholder text
usepackage{lipsum} % to generate Lorem Ipsum
% other
usepackage{calc}
usepackage{hologo}
usepackage[hidelinks]{hyperref}
%usepackage{showframe}
% PHYSICAL DOCUMENT SETUP
% media settings
setstocksize{8.5in}{5.675in}
settrimmedsize{8.5in}{5.5in}{*}
setbinding{0.175in}
setlrmarginsandblock{0.611in}{1.222in}{*}
setulmarginsandblock{0.722in}{1.545in}{*}
% defining the title and the author
%title{LaTeX{} ePub Template}
%title{textsc{How I Started to Love {fontfamily{cmr}selectfontLaTeX{}}}}
title{The book title}
author{My name}
newcommand{ISBN}{0-000-00000-2}
newcommand{press}{Nom de l'éditeur}
edefTheTitle{thetitle}
% custom second title page
makeatletter
newcommand*halftitlepage{begingroup % Misericords, T&H p 153
setlengthdrop{0.1textheight}
begin{center}
vspace*{drop}
rule{textwidth}{0in}par
{Largetextscthetitlepar}
rule{textwidth}{0in}par
vfill
end{center}
endgroup}
makeatother
% custom title page
thispagestyle{empty}
makeatletter
newlengthdrop
newcommand*titleM{begingroup % Misericords, T&H p 153
setlengthdrop{0.15textheight}
begin{center}
vspace*{drop}
rule{textwidth}{0in}par
{HUGEtextscthetitlepar}
rule{textwidth}{0in}par
{Largetextittheauthorpar}
vfill
{Largescshapepress}
end{center}
endgroup}
makeatother
% chapter title manipulation
% padding with zero
%renewcommand*thechapter{ifnumvalue{chapter}<10 0fiarabic{chapter}}
% chapter title display
titleformat
{chapter}
[display]
{normalfontscshapeLARGE}
{hugethechaptercentering}
{0pt}
{vspace{18pt}centering}[vspace{22pt}]
% typographical settings for the body text
setlength{parskip}{0em}
linespread{1.09}
% HEADER AND FOOTER MANIPULATION
% for normal pages
nouppercaseheads
headsep = 0.16in
makepagestyle{mystyle}
setlength{headwidth}{dimexprtextwidth+marginparsep+marginparwidthrelax}
makerunningwidth{mystyle}{headwidth}
makeevenhead{mystyle}{}{textsf{scriptsizescshapeTheTitle}}{}
makeoddhead{mystyle}{}{textsf{scriptsizescshapeleftmark}}{}
makeevenfoot{mystyle}{}{textsf{scriptsizethepage}}{}
makeoddfoot{mystyle}{}{textsf{scriptsizethepage}}{}
makeatletter
makepsmarks{mystyle}{%
createmark{chapter}{left}{nonumber}{@chapapp }{. }}
makeatother
% for pages where chapters begin
makepagestyle{plain}
makerunningwidth{plain}{headwidth}
makeevenfoot{plain}{}{}{}
makeoddfoot{plain}{}{}{}
pagestyle{mystyle}
% END HEADER AND FOOTER MANIPULATION
% table of contents customisation
renewcommandcontentsname{normalfontscshape Contents}
renewcommandcftchapterfont{normalfont}
renewcommand{cftchapterpagefont}{normalfont}
renewcommand{printtoctitle}{centeringHuge}
% layout check and fix
checkandfixthelayout
fixpdflayout
% BEGIN THE DOCUMENT
begin{document}
pagestyle{empty}
% the half title page
%halftitlepage
cleardoublepage
% the title page
titleM
% begin front matter
frontmatter
pagestyle{mystyle}
maxtocdepth{subsection}
maxsecnumdepth{subsection}
tableofcontents
chapter{Introduction}
mainmatter
part{A part}
chapter{A chapter}
section{A section}
subsection{A subsection}
lipsum
end{document}
It works, but for section only, not for subsections nor subsubsections. How could I dot that?
– domi
Feb 26 at 13:17
@domi What do you want in the headers chapters, sections, subsections, subsubsections ,... ???
– Hafid Boukhoulda
Feb 26 at 16:19
On the left, the title of the book, on the right, the title of the chapter. But, I'd like especially to see all the subsections in my toc.
– domi
Feb 26 at 16:26
1
@domi It seams to me that your question has changed so maybe you should update your post.
– Hafid Boukhoulda
Feb 26 at 16:46
1
@domi see updates
– Hafid Boukhoulda
Feb 27 at 16:14
|
show 2 more comments
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%2f476459%2fhow-to-add-sections-titles-to-the-headers-and-to-the-toc%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
First of all I highly recommend to take into account @Zarko remarks as the problem you are facing is largely due to some incompatibilities between the
memoir
class and thetitlesec
package.
The
thetitle
command defined by thememoir
class is redifined by thetitlesec
package so we need to store its value before. So we define a new macro withedefTheTitle{thetitle}
and use it to set the headers
makeevenhead{mystyle}{}{textsf{scriptsizescshapeTheTitle}}{}
makeoddhead{mystyle}{}{textsf{scriptsizescshapeleftmark}}{}
To number the
subsection
s and see them in the toc:
%
maxsecnumdepth{subsection}
maxtocdepth{subsection}
The complete code
documentclass[smalldemyvopaper, 10pt, twoside, onecolumn, openright, extrafontsizes]{memoir}
usepackage[utf8]{inputenc}
usepackage [frenchb]{babel}
usepackage[T1]{fontenc}
usepackage[osf]{Alegreya,AlegreyaSans}
usepackage{lipsum}
% PACKAGE DEFINITION
% typographical packages
usepackage{microtype} % for micro-typographical adjustments
usepackage{setspace} % for line spacing
usepackage{lettrine} % for drop caps and awesome chapter beginnings
usepackage{titlesec} % for manipulation of chapter titles
% for placeholder text
usepackage{lipsum} % to generate Lorem Ipsum
% other
usepackage{calc}
usepackage{hologo}
usepackage[hidelinks]{hyperref}
%usepackage{showframe}
% PHYSICAL DOCUMENT SETUP
% media settings
setstocksize{8.5in}{5.675in}
settrimmedsize{8.5in}{5.5in}{*}
setbinding{0.175in}
setlrmarginsandblock{0.611in}{1.222in}{*}
setulmarginsandblock{0.722in}{1.545in}{*}
% defining the title and the author
%title{LaTeX{} ePub Template}
%title{textsc{How I Started to Love {fontfamily{cmr}selectfontLaTeX{}}}}
title{The book title}
author{My name}
newcommand{ISBN}{0-000-00000-2}
newcommand{press}{Nom de l'éditeur}
edefTheTitle{thetitle}
% custom second title page
makeatletter
newcommand*halftitlepage{begingroup % Misericords, T&H p 153
setlengthdrop{0.1textheight}
begin{center}
vspace*{drop}
rule{textwidth}{0in}par
{Largetextscthetitlepar}
rule{textwidth}{0in}par
vfill
end{center}
endgroup}
makeatother
% custom title page
thispagestyle{empty}
makeatletter
newlengthdrop
newcommand*titleM{begingroup % Misericords, T&H p 153
setlengthdrop{0.15textheight}
begin{center}
vspace*{drop}
rule{textwidth}{0in}par
{HUGEtextscthetitlepar}
rule{textwidth}{0in}par
{Largetextittheauthorpar}
vfill
{Largescshapepress}
end{center}
endgroup}
makeatother
% chapter title manipulation
% padding with zero
%renewcommand*thechapter{ifnumvalue{chapter}<10 0fiarabic{chapter}}
% chapter title display
titleformat
{chapter}
[display]
{normalfontscshapeLARGE}
{hugethechaptercentering}
{0pt}
{vspace{18pt}centering}[vspace{22pt}]
% typographical settings for the body text
setlength{parskip}{0em}
linespread{1.09}
% HEADER AND FOOTER MANIPULATION
% for normal pages
nouppercaseheads
headsep = 0.16in
makepagestyle{mystyle}
setlength{headwidth}{dimexprtextwidth+marginparsep+marginparwidthrelax}
makerunningwidth{mystyle}{headwidth}
makeevenhead{mystyle}{}{textsf{scriptsizescshapeTheTitle}}{}
makeoddhead{mystyle}{}{textsf{scriptsizescshapeleftmark}}{}
makeevenfoot{mystyle}{}{textsf{scriptsizethepage}}{}
makeoddfoot{mystyle}{}{textsf{scriptsizethepage}}{}
makeatletter
makepsmarks{mystyle}{%
createmark{chapter}{left}{nonumber}{@chapapp }{. }}
makeatother
% for pages where chapters begin
makepagestyle{plain}
makerunningwidth{plain}{headwidth}
makeevenfoot{plain}{}{}{}
makeoddfoot{plain}{}{}{}
pagestyle{mystyle}
% END HEADER AND FOOTER MANIPULATION
% table of contents customisation
renewcommandcontentsname{normalfontscshape Contents}
renewcommandcftchapterfont{normalfont}
renewcommand{cftchapterpagefont}{normalfont}
renewcommand{printtoctitle}{centeringHuge}
% layout check and fix
checkandfixthelayout
fixpdflayout
% BEGIN THE DOCUMENT
begin{document}
pagestyle{empty}
% the half title page
%halftitlepage
cleardoublepage
% the title page
titleM
% begin front matter
frontmatter
pagestyle{mystyle}
maxtocdepth{subsection}
maxsecnumdepth{subsection}
tableofcontents
chapter{Introduction}
mainmatter
part{A part}
chapter{A chapter}
section{A section}
subsection{A subsection}
lipsum
end{document}
It works, but for section only, not for subsections nor subsubsections. How could I dot that?
– domi
Feb 26 at 13:17
@domi What do you want in the headers chapters, sections, subsections, subsubsections ,... ???
– Hafid Boukhoulda
Feb 26 at 16:19
On the left, the title of the book, on the right, the title of the chapter. But, I'd like especially to see all the subsections in my toc.
– domi
Feb 26 at 16:26
1
@domi It seams to me that your question has changed so maybe you should update your post.
– Hafid Boukhoulda
Feb 26 at 16:46
1
@domi see updates
– Hafid Boukhoulda
Feb 27 at 16:14
|
show 2 more comments
First of all I highly recommend to take into account @Zarko remarks as the problem you are facing is largely due to some incompatibilities between the
memoir
class and thetitlesec
package.
The
thetitle
command defined by thememoir
class is redifined by thetitlesec
package so we need to store its value before. So we define a new macro withedefTheTitle{thetitle}
and use it to set the headers
makeevenhead{mystyle}{}{textsf{scriptsizescshapeTheTitle}}{}
makeoddhead{mystyle}{}{textsf{scriptsizescshapeleftmark}}{}
To number the
subsection
s and see them in the toc:
%
maxsecnumdepth{subsection}
maxtocdepth{subsection}
The complete code
documentclass[smalldemyvopaper, 10pt, twoside, onecolumn, openright, extrafontsizes]{memoir}
usepackage[utf8]{inputenc}
usepackage [frenchb]{babel}
usepackage[T1]{fontenc}
usepackage[osf]{Alegreya,AlegreyaSans}
usepackage{lipsum}
% PACKAGE DEFINITION
% typographical packages
usepackage{microtype} % for micro-typographical adjustments
usepackage{setspace} % for line spacing
usepackage{lettrine} % for drop caps and awesome chapter beginnings
usepackage{titlesec} % for manipulation of chapter titles
% for placeholder text
usepackage{lipsum} % to generate Lorem Ipsum
% other
usepackage{calc}
usepackage{hologo}
usepackage[hidelinks]{hyperref}
%usepackage{showframe}
% PHYSICAL DOCUMENT SETUP
% media settings
setstocksize{8.5in}{5.675in}
settrimmedsize{8.5in}{5.5in}{*}
setbinding{0.175in}
setlrmarginsandblock{0.611in}{1.222in}{*}
setulmarginsandblock{0.722in}{1.545in}{*}
% defining the title and the author
%title{LaTeX{} ePub Template}
%title{textsc{How I Started to Love {fontfamily{cmr}selectfontLaTeX{}}}}
title{The book title}
author{My name}
newcommand{ISBN}{0-000-00000-2}
newcommand{press}{Nom de l'éditeur}
edefTheTitle{thetitle}
% custom second title page
makeatletter
newcommand*halftitlepage{begingroup % Misericords, T&H p 153
setlengthdrop{0.1textheight}
begin{center}
vspace*{drop}
rule{textwidth}{0in}par
{Largetextscthetitlepar}
rule{textwidth}{0in}par
vfill
end{center}
endgroup}
makeatother
% custom title page
thispagestyle{empty}
makeatletter
newlengthdrop
newcommand*titleM{begingroup % Misericords, T&H p 153
setlengthdrop{0.15textheight}
begin{center}
vspace*{drop}
rule{textwidth}{0in}par
{HUGEtextscthetitlepar}
rule{textwidth}{0in}par
{Largetextittheauthorpar}
vfill
{Largescshapepress}
end{center}
endgroup}
makeatother
% chapter title manipulation
% padding with zero
%renewcommand*thechapter{ifnumvalue{chapter}<10 0fiarabic{chapter}}
% chapter title display
titleformat
{chapter}
[display]
{normalfontscshapeLARGE}
{hugethechaptercentering}
{0pt}
{vspace{18pt}centering}[vspace{22pt}]
% typographical settings for the body text
setlength{parskip}{0em}
linespread{1.09}
% HEADER AND FOOTER MANIPULATION
% for normal pages
nouppercaseheads
headsep = 0.16in
makepagestyle{mystyle}
setlength{headwidth}{dimexprtextwidth+marginparsep+marginparwidthrelax}
makerunningwidth{mystyle}{headwidth}
makeevenhead{mystyle}{}{textsf{scriptsizescshapeTheTitle}}{}
makeoddhead{mystyle}{}{textsf{scriptsizescshapeleftmark}}{}
makeevenfoot{mystyle}{}{textsf{scriptsizethepage}}{}
makeoddfoot{mystyle}{}{textsf{scriptsizethepage}}{}
makeatletter
makepsmarks{mystyle}{%
createmark{chapter}{left}{nonumber}{@chapapp }{. }}
makeatother
% for pages where chapters begin
makepagestyle{plain}
makerunningwidth{plain}{headwidth}
makeevenfoot{plain}{}{}{}
makeoddfoot{plain}{}{}{}
pagestyle{mystyle}
% END HEADER AND FOOTER MANIPULATION
% table of contents customisation
renewcommandcontentsname{normalfontscshape Contents}
renewcommandcftchapterfont{normalfont}
renewcommand{cftchapterpagefont}{normalfont}
renewcommand{printtoctitle}{centeringHuge}
% layout check and fix
checkandfixthelayout
fixpdflayout
% BEGIN THE DOCUMENT
begin{document}
pagestyle{empty}
% the half title page
%halftitlepage
cleardoublepage
% the title page
titleM
% begin front matter
frontmatter
pagestyle{mystyle}
maxtocdepth{subsection}
maxsecnumdepth{subsection}
tableofcontents
chapter{Introduction}
mainmatter
part{A part}
chapter{A chapter}
section{A section}
subsection{A subsection}
lipsum
end{document}
It works, but for section only, not for subsections nor subsubsections. How could I dot that?
– domi
Feb 26 at 13:17
@domi What do you want in the headers chapters, sections, subsections, subsubsections ,... ???
– Hafid Boukhoulda
Feb 26 at 16:19
On the left, the title of the book, on the right, the title of the chapter. But, I'd like especially to see all the subsections in my toc.
– domi
Feb 26 at 16:26
1
@domi It seams to me that your question has changed so maybe you should update your post.
– Hafid Boukhoulda
Feb 26 at 16:46
1
@domi see updates
– Hafid Boukhoulda
Feb 27 at 16:14
|
show 2 more comments
First of all I highly recommend to take into account @Zarko remarks as the problem you are facing is largely due to some incompatibilities between the
memoir
class and thetitlesec
package.
The
thetitle
command defined by thememoir
class is redifined by thetitlesec
package so we need to store its value before. So we define a new macro withedefTheTitle{thetitle}
and use it to set the headers
makeevenhead{mystyle}{}{textsf{scriptsizescshapeTheTitle}}{}
makeoddhead{mystyle}{}{textsf{scriptsizescshapeleftmark}}{}
To number the
subsection
s and see them in the toc:
%
maxsecnumdepth{subsection}
maxtocdepth{subsection}
The complete code
documentclass[smalldemyvopaper, 10pt, twoside, onecolumn, openright, extrafontsizes]{memoir}
usepackage[utf8]{inputenc}
usepackage [frenchb]{babel}
usepackage[T1]{fontenc}
usepackage[osf]{Alegreya,AlegreyaSans}
usepackage{lipsum}
% PACKAGE DEFINITION
% typographical packages
usepackage{microtype} % for micro-typographical adjustments
usepackage{setspace} % for line spacing
usepackage{lettrine} % for drop caps and awesome chapter beginnings
usepackage{titlesec} % for manipulation of chapter titles
% for placeholder text
usepackage{lipsum} % to generate Lorem Ipsum
% other
usepackage{calc}
usepackage{hologo}
usepackage[hidelinks]{hyperref}
%usepackage{showframe}
% PHYSICAL DOCUMENT SETUP
% media settings
setstocksize{8.5in}{5.675in}
settrimmedsize{8.5in}{5.5in}{*}
setbinding{0.175in}
setlrmarginsandblock{0.611in}{1.222in}{*}
setulmarginsandblock{0.722in}{1.545in}{*}
% defining the title and the author
%title{LaTeX{} ePub Template}
%title{textsc{How I Started to Love {fontfamily{cmr}selectfontLaTeX{}}}}
title{The book title}
author{My name}
newcommand{ISBN}{0-000-00000-2}
newcommand{press}{Nom de l'éditeur}
edefTheTitle{thetitle}
% custom second title page
makeatletter
newcommand*halftitlepage{begingroup % Misericords, T&H p 153
setlengthdrop{0.1textheight}
begin{center}
vspace*{drop}
rule{textwidth}{0in}par
{Largetextscthetitlepar}
rule{textwidth}{0in}par
vfill
end{center}
endgroup}
makeatother
% custom title page
thispagestyle{empty}
makeatletter
newlengthdrop
newcommand*titleM{begingroup % Misericords, T&H p 153
setlengthdrop{0.15textheight}
begin{center}
vspace*{drop}
rule{textwidth}{0in}par
{HUGEtextscthetitlepar}
rule{textwidth}{0in}par
{Largetextittheauthorpar}
vfill
{Largescshapepress}
end{center}
endgroup}
makeatother
% chapter title manipulation
% padding with zero
%renewcommand*thechapter{ifnumvalue{chapter}<10 0fiarabic{chapter}}
% chapter title display
titleformat
{chapter}
[display]
{normalfontscshapeLARGE}
{hugethechaptercentering}
{0pt}
{vspace{18pt}centering}[vspace{22pt}]
% typographical settings for the body text
setlength{parskip}{0em}
linespread{1.09}
% HEADER AND FOOTER MANIPULATION
% for normal pages
nouppercaseheads
headsep = 0.16in
makepagestyle{mystyle}
setlength{headwidth}{dimexprtextwidth+marginparsep+marginparwidthrelax}
makerunningwidth{mystyle}{headwidth}
makeevenhead{mystyle}{}{textsf{scriptsizescshapeTheTitle}}{}
makeoddhead{mystyle}{}{textsf{scriptsizescshapeleftmark}}{}
makeevenfoot{mystyle}{}{textsf{scriptsizethepage}}{}
makeoddfoot{mystyle}{}{textsf{scriptsizethepage}}{}
makeatletter
makepsmarks{mystyle}{%
createmark{chapter}{left}{nonumber}{@chapapp }{. }}
makeatother
% for pages where chapters begin
makepagestyle{plain}
makerunningwidth{plain}{headwidth}
makeevenfoot{plain}{}{}{}
makeoddfoot{plain}{}{}{}
pagestyle{mystyle}
% END HEADER AND FOOTER MANIPULATION
% table of contents customisation
renewcommandcontentsname{normalfontscshape Contents}
renewcommandcftchapterfont{normalfont}
renewcommand{cftchapterpagefont}{normalfont}
renewcommand{printtoctitle}{centeringHuge}
% layout check and fix
checkandfixthelayout
fixpdflayout
% BEGIN THE DOCUMENT
begin{document}
pagestyle{empty}
% the half title page
%halftitlepage
cleardoublepage
% the title page
titleM
% begin front matter
frontmatter
pagestyle{mystyle}
maxtocdepth{subsection}
maxsecnumdepth{subsection}
tableofcontents
chapter{Introduction}
mainmatter
part{A part}
chapter{A chapter}
section{A section}
subsection{A subsection}
lipsum
end{document}
First of all I highly recommend to take into account @Zarko remarks as the problem you are facing is largely due to some incompatibilities between the
memoir
class and thetitlesec
package.
The
thetitle
command defined by thememoir
class is redifined by thetitlesec
package so we need to store its value before. So we define a new macro withedefTheTitle{thetitle}
and use it to set the headers
makeevenhead{mystyle}{}{textsf{scriptsizescshapeTheTitle}}{}
makeoddhead{mystyle}{}{textsf{scriptsizescshapeleftmark}}{}
To number the
subsection
s and see them in the toc:
%
maxsecnumdepth{subsection}
maxtocdepth{subsection}
The complete code
documentclass[smalldemyvopaper, 10pt, twoside, onecolumn, openright, extrafontsizes]{memoir}
usepackage[utf8]{inputenc}
usepackage [frenchb]{babel}
usepackage[T1]{fontenc}
usepackage[osf]{Alegreya,AlegreyaSans}
usepackage{lipsum}
% PACKAGE DEFINITION
% typographical packages
usepackage{microtype} % for micro-typographical adjustments
usepackage{setspace} % for line spacing
usepackage{lettrine} % for drop caps and awesome chapter beginnings
usepackage{titlesec} % for manipulation of chapter titles
% for placeholder text
usepackage{lipsum} % to generate Lorem Ipsum
% other
usepackage{calc}
usepackage{hologo}
usepackage[hidelinks]{hyperref}
%usepackage{showframe}
% PHYSICAL DOCUMENT SETUP
% media settings
setstocksize{8.5in}{5.675in}
settrimmedsize{8.5in}{5.5in}{*}
setbinding{0.175in}
setlrmarginsandblock{0.611in}{1.222in}{*}
setulmarginsandblock{0.722in}{1.545in}{*}
% defining the title and the author
%title{LaTeX{} ePub Template}
%title{textsc{How I Started to Love {fontfamily{cmr}selectfontLaTeX{}}}}
title{The book title}
author{My name}
newcommand{ISBN}{0-000-00000-2}
newcommand{press}{Nom de l'éditeur}
edefTheTitle{thetitle}
% custom second title page
makeatletter
newcommand*halftitlepage{begingroup % Misericords, T&H p 153
setlengthdrop{0.1textheight}
begin{center}
vspace*{drop}
rule{textwidth}{0in}par
{Largetextscthetitlepar}
rule{textwidth}{0in}par
vfill
end{center}
endgroup}
makeatother
% custom title page
thispagestyle{empty}
makeatletter
newlengthdrop
newcommand*titleM{begingroup % Misericords, T&H p 153
setlengthdrop{0.15textheight}
begin{center}
vspace*{drop}
rule{textwidth}{0in}par
{HUGEtextscthetitlepar}
rule{textwidth}{0in}par
{Largetextittheauthorpar}
vfill
{Largescshapepress}
end{center}
endgroup}
makeatother
% chapter title manipulation
% padding with zero
%renewcommand*thechapter{ifnumvalue{chapter}<10 0fiarabic{chapter}}
% chapter title display
titleformat
{chapter}
[display]
{normalfontscshapeLARGE}
{hugethechaptercentering}
{0pt}
{vspace{18pt}centering}[vspace{22pt}]
% typographical settings for the body text
setlength{parskip}{0em}
linespread{1.09}
% HEADER AND FOOTER MANIPULATION
% for normal pages
nouppercaseheads
headsep = 0.16in
makepagestyle{mystyle}
setlength{headwidth}{dimexprtextwidth+marginparsep+marginparwidthrelax}
makerunningwidth{mystyle}{headwidth}
makeevenhead{mystyle}{}{textsf{scriptsizescshapeTheTitle}}{}
makeoddhead{mystyle}{}{textsf{scriptsizescshapeleftmark}}{}
makeevenfoot{mystyle}{}{textsf{scriptsizethepage}}{}
makeoddfoot{mystyle}{}{textsf{scriptsizethepage}}{}
makeatletter
makepsmarks{mystyle}{%
createmark{chapter}{left}{nonumber}{@chapapp }{. }}
makeatother
% for pages where chapters begin
makepagestyle{plain}
makerunningwidth{plain}{headwidth}
makeevenfoot{plain}{}{}{}
makeoddfoot{plain}{}{}{}
pagestyle{mystyle}
% END HEADER AND FOOTER MANIPULATION
% table of contents customisation
renewcommandcontentsname{normalfontscshape Contents}
renewcommandcftchapterfont{normalfont}
renewcommand{cftchapterpagefont}{normalfont}
renewcommand{printtoctitle}{centeringHuge}
% layout check and fix
checkandfixthelayout
fixpdflayout
% BEGIN THE DOCUMENT
begin{document}
pagestyle{empty}
% the half title page
%halftitlepage
cleardoublepage
% the title page
titleM
% begin front matter
frontmatter
pagestyle{mystyle}
maxtocdepth{subsection}
maxsecnumdepth{subsection}
tableofcontents
chapter{Introduction}
mainmatter
part{A part}
chapter{A chapter}
section{A section}
subsection{A subsection}
lipsum
end{document}
edited Feb 27 at 16:13
answered Feb 25 at 22:05
Hafid BoukhouldaHafid Boukhoulda
4,4421625
4,4421625
It works, but for section only, not for subsections nor subsubsections. How could I dot that?
– domi
Feb 26 at 13:17
@domi What do you want in the headers chapters, sections, subsections, subsubsections ,... ???
– Hafid Boukhoulda
Feb 26 at 16:19
On the left, the title of the book, on the right, the title of the chapter. But, I'd like especially to see all the subsections in my toc.
– domi
Feb 26 at 16:26
1
@domi It seams to me that your question has changed so maybe you should update your post.
– Hafid Boukhoulda
Feb 26 at 16:46
1
@domi see updates
– Hafid Boukhoulda
Feb 27 at 16:14
|
show 2 more comments
It works, but for section only, not for subsections nor subsubsections. How could I dot that?
– domi
Feb 26 at 13:17
@domi What do you want in the headers chapters, sections, subsections, subsubsections ,... ???
– Hafid Boukhoulda
Feb 26 at 16:19
On the left, the title of the book, on the right, the title of the chapter. But, I'd like especially to see all the subsections in my toc.
– domi
Feb 26 at 16:26
1
@domi It seams to me that your question has changed so maybe you should update your post.
– Hafid Boukhoulda
Feb 26 at 16:46
1
@domi see updates
– Hafid Boukhoulda
Feb 27 at 16:14
It works, but for section only, not for subsections nor subsubsections. How could I dot that?
– domi
Feb 26 at 13:17
It works, but for section only, not for subsections nor subsubsections. How could I dot that?
– domi
Feb 26 at 13:17
@domi What do you want in the headers chapters, sections, subsections, subsubsections ,... ???
– Hafid Boukhoulda
Feb 26 at 16:19
@domi What do you want in the headers chapters, sections, subsections, subsubsections ,... ???
– Hafid Boukhoulda
Feb 26 at 16:19
On the left, the title of the book, on the right, the title of the chapter. But, I'd like especially to see all the subsections in my toc.
– domi
Feb 26 at 16:26
On the left, the title of the book, on the right, the title of the chapter. But, I'd like especially to see all the subsections in my toc.
– domi
Feb 26 at 16:26
1
1
@domi It seams to me that your question has changed so maybe you should update your post.
– Hafid Boukhoulda
Feb 26 at 16:46
@domi It seams to me that your question has changed so maybe you should update your post.
– Hafid Boukhoulda
Feb 26 at 16:46
1
1
@domi see updates
– Hafid Boukhoulda
Feb 27 at 16:14
@domi see updates
– Hafid Boukhoulda
Feb 27 at 16:14
|
show 2 more comments
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%2f476459%2fhow-to-add-sections-titles-to-the-headers-and-to-the-toc%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
off-topic: (i) it is sufficient to load each package once (ii)
lettrine
is integrated to memoir, so it is no need to load again, (iii)memoir
provide similar facilities astitlesec
, so i would rather exploitmemoir
... (iv) for your problem see 7.3.1 Example pagestyles on page 111 inmemoir
manual.– Zarko
Feb 24 at 16:57