How to add sections titles to the headers?Capitalization of Titles and HeadersDon't want sections to have...

What is the wife of a henpecked husband called?

What makes papers publishable in top-tier journals?

Converting very wide logos to square formats

What can I do to encourage my players to use their consumables?

Are the positive and negative planes inner or outer planes in the Great Wheel cosmology model?

What is the industry term for house wiring diagrams?

Crack the bank account's password!

How do you funnel food off a cutting board?

How to write cases in LaTeX?

Single-row INSERT...SELECT much slower than separate SELECT

Need help with a circuit diagram where the motor does not seem to have any connection to ground. Error with diagram? Or am i missing something?

The No-Straight Maze

Why didn't Tom Riddle take the presence of Fawkes and the Sorting Hat as more of a threat?

Taking headphones when quitting job

Which RAF squadrons and aircraft types took part in the bombing of Berlin on the 25th of August 1940?

Coworker asking me to not bring cakes due to self control issue. What should I do?

Why didn't the 2019 Oscars have a host?

Book where a space ship journeys to the center of the galaxy to find all the stars had gone supernova

How is this property called for mod?

Not a Long-Winded Riddle

Why is that max-Q doesn't occur in transonic regime?

Is there a file that always exists and a 'normal' user can't lstat it?

Why does 0.-5 evaluate to -5?

Will rerolling initiative each round stop meta-gaming about initiative?



How to add sections titles to the headers?


Capitalization of Titles and HeadersDon't want sections to have titles/headersNumerous titles and headersIncluding section titles in fancyhf headersVery specifically customized sections and table of contentsSection name missing in titles of sectionsHow to add part title to headers in memoirAlign two sections titlesOrphan section headers (using customized sections)Too long headers which contain the (too long) titles of the chapter













0















I am trying to customize a template initially designed for novels. I have added to it sections and I would like to see the title of my sections as headers, but only the numbering (1.1...) appears.



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}









share|improve this question

























  • 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
    yesterday


















0















I am trying to customize a template initially designed for novels. I have added to it sections and I would like to see the title of my sections as headers, but only the numbering (1.1...) appears.



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}









share|improve this question

























  • 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
    yesterday
















0












0








0








I am trying to customize a template initially designed for novels. I have added to it sections and I would like to see the title of my sections as headers, but only the numbering (1.1...) appears.



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}









share|improve this question
















I am trying to customize a template initially designed for novels. I have added to it sections and I would like to see the title of my sections as headers, but only the numbering (1.1...) appears.



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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited yesterday









Sebastiano

10.2k41960




10.2k41960










asked yesterday









domidomi

6271818




6271818













  • 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
    yesterday





















  • 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
    yesterday



















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
yesterday







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
yesterday












1 Answer
1






active

oldest

votes


















0














In makeevenhead{mystyle}{}{textsf{scriptsizescshapethetitle}}{} replace thetitle with rightmark



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{scriptsizescshaperightmark}}{}
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}


enter image description here






share|improve this answer























    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
    });


    }
    });














    draft saved

    draft discarded


















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









    0














    In makeevenhead{mystyle}{}{textsf{scriptsizescshapethetitle}}{} replace thetitle with rightmark



    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{scriptsizescshaperightmark}}{}
    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}


    enter image description here






    share|improve this answer




























      0














      In makeevenhead{mystyle}{}{textsf{scriptsizescshapethetitle}}{} replace thetitle with rightmark



      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{scriptsizescshaperightmark}}{}
      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}


      enter image description here






      share|improve this answer


























        0












        0








        0







        In makeevenhead{mystyle}{}{textsf{scriptsizescshapethetitle}}{} replace thetitle with rightmark



        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{scriptsizescshaperightmark}}{}
        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}


        enter image description here






        share|improve this answer













        In makeevenhead{mystyle}{}{textsf{scriptsizescshapethetitle}}{} replace thetitle with rightmark



        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{scriptsizescshaperightmark}}{}
        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}


        enter image description here







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 58 mins ago









        Hafid BoukhouldaHafid Boukhoulda

        4,0971624




        4,0971624






























            draft saved

            draft discarded




















































            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.




            draft saved


            draft discarded














            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%23new-answer', 'question_page');
            }
            );

            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







            Popular posts from this blog

            Paper upload error, “Upload failed: The top margin is 0.715 in on page 3, which is below the required...

            Emraan Hashmi Filmografia | Linki zewnętrzne | Menu nawigacyjneGulshan GroverGulshan...

            How can I write this formula?newline and italics added with leqWhy does widehat behave differently if I...