How to set page number in right side in chapter title page?












2















I need to setup page number right side of the footer. It's ok in the second page of a chapter.



But in chapter title page, page number showing in the center of that page.



This is my MWE:



documentclass[a4paper,12pt]{report}
usepackage[left=1.5in,right=1in,top=1in,bottom=1in,includefoot,heightrounded]{geometry}
usepackage{lipsum}
usepackage{fancyhdr}
renewcommand{baselinestretch}{1.3}
usepackage{titlesec}

titleformat{chapter}[display]{normalfonthugebfseriescentering}{chaptertitlename thechapter}{20pt}{Huge}
titlespacing{chapter}{0pt}{0pt}{1cm}

begin{document}
begin{center}
{huge textbf{ Abstract}}
end{center}
addcontentsline{toc}{section}{Abstract}
lipsum[2-4]
pagenumbering{roman}
pagestyle{fancy}
fancyfoot{}
fancyfoot[R]{thepage}

fancyhead[L]{textit{chapternamethechapter}}

chapter{Introduction}

pagenumbering{arabic}
setcounter{page}{1}
lipsum[2-4]
lipsum[2-4]
end{document}


Please tell me the solution.










share|improve this question









New contributor




Alamin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















  • Unrelated: do you really want to have Chapter 1 on both sides of the header?

    – Bernard
    1 hour ago











  • No. I don't need that . Acutally i need chapter 1 in left and chapter name such as Introduction on right. But this is not the problem for me.

    – Alamin
    1 hour ago











  • Add thispagestyle{fancy} after of chapter{...}

    – skpblack
    1 hour ago











  • With your code, you obtain Chapter1 on the left and CHAPTER 1 INTRODUCTiON on th right

    – Bernard
    1 hour ago
















2















I need to setup page number right side of the footer. It's ok in the second page of a chapter.



But in chapter title page, page number showing in the center of that page.



This is my MWE:



documentclass[a4paper,12pt]{report}
usepackage[left=1.5in,right=1in,top=1in,bottom=1in,includefoot,heightrounded]{geometry}
usepackage{lipsum}
usepackage{fancyhdr}
renewcommand{baselinestretch}{1.3}
usepackage{titlesec}

titleformat{chapter}[display]{normalfonthugebfseriescentering}{chaptertitlename thechapter}{20pt}{Huge}
titlespacing{chapter}{0pt}{0pt}{1cm}

begin{document}
begin{center}
{huge textbf{ Abstract}}
end{center}
addcontentsline{toc}{section}{Abstract}
lipsum[2-4]
pagenumbering{roman}
pagestyle{fancy}
fancyfoot{}
fancyfoot[R]{thepage}

fancyhead[L]{textit{chapternamethechapter}}

chapter{Introduction}

pagenumbering{arabic}
setcounter{page}{1}
lipsum[2-4]
lipsum[2-4]
end{document}


Please tell me the solution.










share|improve this question









New contributor




Alamin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















  • Unrelated: do you really want to have Chapter 1 on both sides of the header?

    – Bernard
    1 hour ago











  • No. I don't need that . Acutally i need chapter 1 in left and chapter name such as Introduction on right. But this is not the problem for me.

    – Alamin
    1 hour ago











  • Add thispagestyle{fancy} after of chapter{...}

    – skpblack
    1 hour ago











  • With your code, you obtain Chapter1 on the left and CHAPTER 1 INTRODUCTiON on th right

    – Bernard
    1 hour ago














2












2








2








I need to setup page number right side of the footer. It's ok in the second page of a chapter.



But in chapter title page, page number showing in the center of that page.



This is my MWE:



documentclass[a4paper,12pt]{report}
usepackage[left=1.5in,right=1in,top=1in,bottom=1in,includefoot,heightrounded]{geometry}
usepackage{lipsum}
usepackage{fancyhdr}
renewcommand{baselinestretch}{1.3}
usepackage{titlesec}

titleformat{chapter}[display]{normalfonthugebfseriescentering}{chaptertitlename thechapter}{20pt}{Huge}
titlespacing{chapter}{0pt}{0pt}{1cm}

begin{document}
begin{center}
{huge textbf{ Abstract}}
end{center}
addcontentsline{toc}{section}{Abstract}
lipsum[2-4]
pagenumbering{roman}
pagestyle{fancy}
fancyfoot{}
fancyfoot[R]{thepage}

fancyhead[L]{textit{chapternamethechapter}}

chapter{Introduction}

pagenumbering{arabic}
setcounter{page}{1}
lipsum[2-4]
lipsum[2-4]
end{document}


Please tell me the solution.










share|improve this question









New contributor




Alamin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












I need to setup page number right side of the footer. It's ok in the second page of a chapter.



But in chapter title page, page number showing in the center of that page.



This is my MWE:



documentclass[a4paper,12pt]{report}
usepackage[left=1.5in,right=1in,top=1in,bottom=1in,includefoot,heightrounded]{geometry}
usepackage{lipsum}
usepackage{fancyhdr}
renewcommand{baselinestretch}{1.3}
usepackage{titlesec}

titleformat{chapter}[display]{normalfonthugebfseriescentering}{chaptertitlename thechapter}{20pt}{Huge}
titlespacing{chapter}{0pt}{0pt}{1cm}

begin{document}
begin{center}
{huge textbf{ Abstract}}
end{center}
addcontentsline{toc}{section}{Abstract}
lipsum[2-4]
pagenumbering{roman}
pagestyle{fancy}
fancyfoot{}
fancyfoot[R]{thepage}

fancyhead[L]{textit{chapternamethechapter}}

chapter{Introduction}

pagenumbering{arabic}
setcounter{page}{1}
lipsum[2-4]
lipsum[2-4]
end{document}


Please tell me the solution.







page-numbering fancyhdr footer






share|improve this question









New contributor




Alamin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




Alamin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 39 mins ago







Alamin













New contributor




Alamin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 1 hour ago









AlaminAlamin

1134




1134




New contributor




Alamin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Alamin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Alamin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.













  • Unrelated: do you really want to have Chapter 1 on both sides of the header?

    – Bernard
    1 hour ago











  • No. I don't need that . Acutally i need chapter 1 in left and chapter name such as Introduction on right. But this is not the problem for me.

    – Alamin
    1 hour ago











  • Add thispagestyle{fancy} after of chapter{...}

    – skpblack
    1 hour ago











  • With your code, you obtain Chapter1 on the left and CHAPTER 1 INTRODUCTiON on th right

    – Bernard
    1 hour ago



















  • Unrelated: do you really want to have Chapter 1 on both sides of the header?

    – Bernard
    1 hour ago











  • No. I don't need that . Acutally i need chapter 1 in left and chapter name such as Introduction on right. But this is not the problem for me.

    – Alamin
    1 hour ago











  • Add thispagestyle{fancy} after of chapter{...}

    – skpblack
    1 hour ago











  • With your code, you obtain Chapter1 on the left and CHAPTER 1 INTRODUCTiON on th right

    – Bernard
    1 hour ago

















Unrelated: do you really want to have Chapter 1 on both sides of the header?

– Bernard
1 hour ago





Unrelated: do you really want to have Chapter 1 on both sides of the header?

– Bernard
1 hour ago













No. I don't need that . Acutally i need chapter 1 in left and chapter name such as Introduction on right. But this is not the problem for me.

– Alamin
1 hour ago





No. I don't need that . Acutally i need chapter 1 in left and chapter name such as Introduction on right. But this is not the problem for me.

– Alamin
1 hour ago













Add thispagestyle{fancy} after of chapter{...}

– skpblack
1 hour ago





Add thispagestyle{fancy} after of chapter{...}

– skpblack
1 hour ago













With your code, you obtain Chapter1 on the left and CHAPTER 1 INTRODUCTiON on th right

– Bernard
1 hour ago





With your code, you obtain Chapter1 on the left and CHAPTER 1 INTRODUCTiON on th right

– Bernard
1 hour ago










2 Answers
2






active

oldest

votes


















3














You need to redefine the page style plain used on the chapter title page like:



fancypagestyle{plain}{% <==============================================
fancyhf{}
fancyfoot[R]{thepage}
renewcommand{headrulewidth}{0pt}
renewcommand{footrulewidth}{0pt}%
}


With the complete code



documentclass[a4paper,12pt]{report}

usepackage[%
left=1.5in,right=1in,top=1in,bottom=1in,
includefoot,heightrounded
]{geometry}
usepackage{lipsum}
usepackage{fancyhdr}
renewcommand{baselinestretch}{1.3}
usepackage{titlesec}

titleformat{chapter}[display]{normalfonthugebfseriescentering}{chaptertitlename thechapter}{20pt}{Huge}
titlespacing{chapter}{0pt}{0pt}{1cm}

fancypagestyle{plain}{% <==============================================
fancyhf{}
fancyfoot[R]{thepage}
renewcommand{headrulewidth}{0pt}
renewcommand{footrulewidth}{0pt}%
}

begin{document}
pagenumbering{roman}
pagestyle{fancy}
fancyfoot{}
fancyfoot[R]{thepage}

fancyhead[L]{textit{chapternamethechapter}}

chapter{Introduction}

pagenumbering{arabic}
setcounter{page}{1}
lipsum[2-4]
lipsum[2-4]
end{document}


you get:



enter image description here



Update:



To add an chapter/abstract before chapter 1 please change your used code to:



%begin{center} % <======================================================
chapter*{Abstract}
%end{center}
%addcontentsline{toc}{section}{Abstract}
lipsum[2-4] % <========================================================


With the complete code



documentclass[a4paper,12pt]{report}

usepackage[%
left=1.5in,right=1in,top=1in,bottom=1in,
includefoot,heightrounded
]{geometry}
usepackage{lipsum}
usepackage{fancyhdr}
renewcommand{baselinestretch}{1.3}
usepackage{titlesec}

titleformat{chapter}[display]{normalfonthugebfseriescentering}{chaptertitlename thechapter}{20pt}{Huge}
titlespacing{chapter}{0pt}{0pt}{1cm}

fancypagestyle{plain}{% <==============================================
fancyhf{}
fancyfoot[R]{thepage}
renewcommand{headrulewidth}{0pt}
renewcommand{footrulewidth}{0pt}%
}


begin{document}
pagenumbering{roman}
pagestyle{fancy}
fancyfoot{}
fancyfoot[R]{thepage}

fancyhead[L]{textit{chapternamethechapter}}

%begin{center} % <======================================================
chapter*{Abstract}
%end{center}
%addcontentsline{toc}{section}{Abstract}
lipsum[2-4] % <========================================================

chapter{Introduction}

pagenumbering{arabic}
setcounter{page}{1}
lipsum[2-4]
lipsum[2-4]
end{document}


you get then:



abstract






share|improve this answer


























  • It works fine. But facing another problem when i add another page before chapter such as Abstract page, it is showing chapter 0 in the heading. I don't need that. I have update MWE please check

    – Alamin
    21 mins ago






  • 1





    @Alamin Please see my updated answer ...

    – Kurt
    12 mins ago



















2














Since you load titlesec, it's much simpler to load it with option pagestyles and use titleps. You have to redefine the plain page style, which is used in the first page of a chapter. Redefining a page style is particularly easy with titleps:



documentclass[a4paper,12pt]{report}
usepackage[left=1.5in,right=1in,top=1in,bottom=1in,includefoot,heightrounded]{geometry}
usepackage{lipsum}

renewcommand{baselinestretch}{1.3}
usepackage[pagestyles]{titlesec}
newpagestyle{mine}{%
headrule
sethead{itshapechapternamethechapter}{}{itshapechaptertitle}
setfoot{}{}{thepage}}%

renewpagestyle{plain}{%
setfoot{}{}{thepage}}%

titleformat{chapter}[display]{normalfonthugebfseriescentering}{chaptertitlename thechapter}{20pt}{Huge}
titlespacing{chapter}{0pt}{0pt}{1cm}
pagenumbering{roman}
pagestyle{mine}
begin{document}

chapter{Introduction}

pagenumbering{arabic}
setcounter{page}{1}
lipsum[2-10]

end{document}


enter image description here






share|improve this answer


























  • It works fine. But facing another problem when i add another page before chapter such as Abstract page, it is showing chapter 0 in the heading. I don't need that. I have update MWE please check.

    – Alamin
    40 mins ago











  • Will your real abstract fit on a single page?

    – Bernard
    27 mins ago













  • Yes. only in single page

    – Alamin
    22 mins ago






  • 1





    Why don't you use chapter{Abstract} in this case? It would use the redefined plain page style.

    – Bernard
    6 mins ago












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


}
});






Alamin is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f482464%2fhow-to-set-page-number-in-right-side-in-chapter-title-page%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes









3














You need to redefine the page style plain used on the chapter title page like:



fancypagestyle{plain}{% <==============================================
fancyhf{}
fancyfoot[R]{thepage}
renewcommand{headrulewidth}{0pt}
renewcommand{footrulewidth}{0pt}%
}


With the complete code



documentclass[a4paper,12pt]{report}

usepackage[%
left=1.5in,right=1in,top=1in,bottom=1in,
includefoot,heightrounded
]{geometry}
usepackage{lipsum}
usepackage{fancyhdr}
renewcommand{baselinestretch}{1.3}
usepackage{titlesec}

titleformat{chapter}[display]{normalfonthugebfseriescentering}{chaptertitlename thechapter}{20pt}{Huge}
titlespacing{chapter}{0pt}{0pt}{1cm}

fancypagestyle{plain}{% <==============================================
fancyhf{}
fancyfoot[R]{thepage}
renewcommand{headrulewidth}{0pt}
renewcommand{footrulewidth}{0pt}%
}

begin{document}
pagenumbering{roman}
pagestyle{fancy}
fancyfoot{}
fancyfoot[R]{thepage}

fancyhead[L]{textit{chapternamethechapter}}

chapter{Introduction}

pagenumbering{arabic}
setcounter{page}{1}
lipsum[2-4]
lipsum[2-4]
end{document}


you get:



enter image description here



Update:



To add an chapter/abstract before chapter 1 please change your used code to:



%begin{center} % <======================================================
chapter*{Abstract}
%end{center}
%addcontentsline{toc}{section}{Abstract}
lipsum[2-4] % <========================================================


With the complete code



documentclass[a4paper,12pt]{report}

usepackage[%
left=1.5in,right=1in,top=1in,bottom=1in,
includefoot,heightrounded
]{geometry}
usepackage{lipsum}
usepackage{fancyhdr}
renewcommand{baselinestretch}{1.3}
usepackage{titlesec}

titleformat{chapter}[display]{normalfonthugebfseriescentering}{chaptertitlename thechapter}{20pt}{Huge}
titlespacing{chapter}{0pt}{0pt}{1cm}

fancypagestyle{plain}{% <==============================================
fancyhf{}
fancyfoot[R]{thepage}
renewcommand{headrulewidth}{0pt}
renewcommand{footrulewidth}{0pt}%
}


begin{document}
pagenumbering{roman}
pagestyle{fancy}
fancyfoot{}
fancyfoot[R]{thepage}

fancyhead[L]{textit{chapternamethechapter}}

%begin{center} % <======================================================
chapter*{Abstract}
%end{center}
%addcontentsline{toc}{section}{Abstract}
lipsum[2-4] % <========================================================

chapter{Introduction}

pagenumbering{arabic}
setcounter{page}{1}
lipsum[2-4]
lipsum[2-4]
end{document}


you get then:



abstract






share|improve this answer


























  • It works fine. But facing another problem when i add another page before chapter such as Abstract page, it is showing chapter 0 in the heading. I don't need that. I have update MWE please check

    – Alamin
    21 mins ago






  • 1





    @Alamin Please see my updated answer ...

    – Kurt
    12 mins ago
















3














You need to redefine the page style plain used on the chapter title page like:



fancypagestyle{plain}{% <==============================================
fancyhf{}
fancyfoot[R]{thepage}
renewcommand{headrulewidth}{0pt}
renewcommand{footrulewidth}{0pt}%
}


With the complete code



documentclass[a4paper,12pt]{report}

usepackage[%
left=1.5in,right=1in,top=1in,bottom=1in,
includefoot,heightrounded
]{geometry}
usepackage{lipsum}
usepackage{fancyhdr}
renewcommand{baselinestretch}{1.3}
usepackage{titlesec}

titleformat{chapter}[display]{normalfonthugebfseriescentering}{chaptertitlename thechapter}{20pt}{Huge}
titlespacing{chapter}{0pt}{0pt}{1cm}

fancypagestyle{plain}{% <==============================================
fancyhf{}
fancyfoot[R]{thepage}
renewcommand{headrulewidth}{0pt}
renewcommand{footrulewidth}{0pt}%
}

begin{document}
pagenumbering{roman}
pagestyle{fancy}
fancyfoot{}
fancyfoot[R]{thepage}

fancyhead[L]{textit{chapternamethechapter}}

chapter{Introduction}

pagenumbering{arabic}
setcounter{page}{1}
lipsum[2-4]
lipsum[2-4]
end{document}


you get:



enter image description here



Update:



To add an chapter/abstract before chapter 1 please change your used code to:



%begin{center} % <======================================================
chapter*{Abstract}
%end{center}
%addcontentsline{toc}{section}{Abstract}
lipsum[2-4] % <========================================================


With the complete code



documentclass[a4paper,12pt]{report}

usepackage[%
left=1.5in,right=1in,top=1in,bottom=1in,
includefoot,heightrounded
]{geometry}
usepackage{lipsum}
usepackage{fancyhdr}
renewcommand{baselinestretch}{1.3}
usepackage{titlesec}

titleformat{chapter}[display]{normalfonthugebfseriescentering}{chaptertitlename thechapter}{20pt}{Huge}
titlespacing{chapter}{0pt}{0pt}{1cm}

fancypagestyle{plain}{% <==============================================
fancyhf{}
fancyfoot[R]{thepage}
renewcommand{headrulewidth}{0pt}
renewcommand{footrulewidth}{0pt}%
}


begin{document}
pagenumbering{roman}
pagestyle{fancy}
fancyfoot{}
fancyfoot[R]{thepage}

fancyhead[L]{textit{chapternamethechapter}}

%begin{center} % <======================================================
chapter*{Abstract}
%end{center}
%addcontentsline{toc}{section}{Abstract}
lipsum[2-4] % <========================================================

chapter{Introduction}

pagenumbering{arabic}
setcounter{page}{1}
lipsum[2-4]
lipsum[2-4]
end{document}


you get then:



abstract






share|improve this answer


























  • It works fine. But facing another problem when i add another page before chapter such as Abstract page, it is showing chapter 0 in the heading. I don't need that. I have update MWE please check

    – Alamin
    21 mins ago






  • 1





    @Alamin Please see my updated answer ...

    – Kurt
    12 mins ago














3












3








3







You need to redefine the page style plain used on the chapter title page like:



fancypagestyle{plain}{% <==============================================
fancyhf{}
fancyfoot[R]{thepage}
renewcommand{headrulewidth}{0pt}
renewcommand{footrulewidth}{0pt}%
}


With the complete code



documentclass[a4paper,12pt]{report}

usepackage[%
left=1.5in,right=1in,top=1in,bottom=1in,
includefoot,heightrounded
]{geometry}
usepackage{lipsum}
usepackage{fancyhdr}
renewcommand{baselinestretch}{1.3}
usepackage{titlesec}

titleformat{chapter}[display]{normalfonthugebfseriescentering}{chaptertitlename thechapter}{20pt}{Huge}
titlespacing{chapter}{0pt}{0pt}{1cm}

fancypagestyle{plain}{% <==============================================
fancyhf{}
fancyfoot[R]{thepage}
renewcommand{headrulewidth}{0pt}
renewcommand{footrulewidth}{0pt}%
}

begin{document}
pagenumbering{roman}
pagestyle{fancy}
fancyfoot{}
fancyfoot[R]{thepage}

fancyhead[L]{textit{chapternamethechapter}}

chapter{Introduction}

pagenumbering{arabic}
setcounter{page}{1}
lipsum[2-4]
lipsum[2-4]
end{document}


you get:



enter image description here



Update:



To add an chapter/abstract before chapter 1 please change your used code to:



%begin{center} % <======================================================
chapter*{Abstract}
%end{center}
%addcontentsline{toc}{section}{Abstract}
lipsum[2-4] % <========================================================


With the complete code



documentclass[a4paper,12pt]{report}

usepackage[%
left=1.5in,right=1in,top=1in,bottom=1in,
includefoot,heightrounded
]{geometry}
usepackage{lipsum}
usepackage{fancyhdr}
renewcommand{baselinestretch}{1.3}
usepackage{titlesec}

titleformat{chapter}[display]{normalfonthugebfseriescentering}{chaptertitlename thechapter}{20pt}{Huge}
titlespacing{chapter}{0pt}{0pt}{1cm}

fancypagestyle{plain}{% <==============================================
fancyhf{}
fancyfoot[R]{thepage}
renewcommand{headrulewidth}{0pt}
renewcommand{footrulewidth}{0pt}%
}


begin{document}
pagenumbering{roman}
pagestyle{fancy}
fancyfoot{}
fancyfoot[R]{thepage}

fancyhead[L]{textit{chapternamethechapter}}

%begin{center} % <======================================================
chapter*{Abstract}
%end{center}
%addcontentsline{toc}{section}{Abstract}
lipsum[2-4] % <========================================================

chapter{Introduction}

pagenumbering{arabic}
setcounter{page}{1}
lipsum[2-4]
lipsum[2-4]
end{document}


you get then:



abstract






share|improve this answer















You need to redefine the page style plain used on the chapter title page like:



fancypagestyle{plain}{% <==============================================
fancyhf{}
fancyfoot[R]{thepage}
renewcommand{headrulewidth}{0pt}
renewcommand{footrulewidth}{0pt}%
}


With the complete code



documentclass[a4paper,12pt]{report}

usepackage[%
left=1.5in,right=1in,top=1in,bottom=1in,
includefoot,heightrounded
]{geometry}
usepackage{lipsum}
usepackage{fancyhdr}
renewcommand{baselinestretch}{1.3}
usepackage{titlesec}

titleformat{chapter}[display]{normalfonthugebfseriescentering}{chaptertitlename thechapter}{20pt}{Huge}
titlespacing{chapter}{0pt}{0pt}{1cm}

fancypagestyle{plain}{% <==============================================
fancyhf{}
fancyfoot[R]{thepage}
renewcommand{headrulewidth}{0pt}
renewcommand{footrulewidth}{0pt}%
}

begin{document}
pagenumbering{roman}
pagestyle{fancy}
fancyfoot{}
fancyfoot[R]{thepage}

fancyhead[L]{textit{chapternamethechapter}}

chapter{Introduction}

pagenumbering{arabic}
setcounter{page}{1}
lipsum[2-4]
lipsum[2-4]
end{document}


you get:



enter image description here



Update:



To add an chapter/abstract before chapter 1 please change your used code to:



%begin{center} % <======================================================
chapter*{Abstract}
%end{center}
%addcontentsline{toc}{section}{Abstract}
lipsum[2-4] % <========================================================


With the complete code



documentclass[a4paper,12pt]{report}

usepackage[%
left=1.5in,right=1in,top=1in,bottom=1in,
includefoot,heightrounded
]{geometry}
usepackage{lipsum}
usepackage{fancyhdr}
renewcommand{baselinestretch}{1.3}
usepackage{titlesec}

titleformat{chapter}[display]{normalfonthugebfseriescentering}{chaptertitlename thechapter}{20pt}{Huge}
titlespacing{chapter}{0pt}{0pt}{1cm}

fancypagestyle{plain}{% <==============================================
fancyhf{}
fancyfoot[R]{thepage}
renewcommand{headrulewidth}{0pt}
renewcommand{footrulewidth}{0pt}%
}


begin{document}
pagenumbering{roman}
pagestyle{fancy}
fancyfoot{}
fancyfoot[R]{thepage}

fancyhead[L]{textit{chapternamethechapter}}

%begin{center} % <======================================================
chapter*{Abstract}
%end{center}
%addcontentsline{toc}{section}{Abstract}
lipsum[2-4] % <========================================================

chapter{Introduction}

pagenumbering{arabic}
setcounter{page}{1}
lipsum[2-4]
lipsum[2-4]
end{document}


you get then:



abstract







share|improve this answer














share|improve this answer



share|improve this answer








edited 13 mins ago

























answered 1 hour ago









KurtKurt

40.2k850164




40.2k850164













  • It works fine. But facing another problem when i add another page before chapter such as Abstract page, it is showing chapter 0 in the heading. I don't need that. I have update MWE please check

    – Alamin
    21 mins ago






  • 1





    @Alamin Please see my updated answer ...

    – Kurt
    12 mins ago



















  • It works fine. But facing another problem when i add another page before chapter such as Abstract page, it is showing chapter 0 in the heading. I don't need that. I have update MWE please check

    – Alamin
    21 mins ago






  • 1





    @Alamin Please see my updated answer ...

    – Kurt
    12 mins ago

















It works fine. But facing another problem when i add another page before chapter such as Abstract page, it is showing chapter 0 in the heading. I don't need that. I have update MWE please check

– Alamin
21 mins ago





It works fine. But facing another problem when i add another page before chapter such as Abstract page, it is showing chapter 0 in the heading. I don't need that. I have update MWE please check

– Alamin
21 mins ago




1




1





@Alamin Please see my updated answer ...

– Kurt
12 mins ago





@Alamin Please see my updated answer ...

– Kurt
12 mins ago











2














Since you load titlesec, it's much simpler to load it with option pagestyles and use titleps. You have to redefine the plain page style, which is used in the first page of a chapter. Redefining a page style is particularly easy with titleps:



documentclass[a4paper,12pt]{report}
usepackage[left=1.5in,right=1in,top=1in,bottom=1in,includefoot,heightrounded]{geometry}
usepackage{lipsum}

renewcommand{baselinestretch}{1.3}
usepackage[pagestyles]{titlesec}
newpagestyle{mine}{%
headrule
sethead{itshapechapternamethechapter}{}{itshapechaptertitle}
setfoot{}{}{thepage}}%

renewpagestyle{plain}{%
setfoot{}{}{thepage}}%

titleformat{chapter}[display]{normalfonthugebfseriescentering}{chaptertitlename thechapter}{20pt}{Huge}
titlespacing{chapter}{0pt}{0pt}{1cm}
pagenumbering{roman}
pagestyle{mine}
begin{document}

chapter{Introduction}

pagenumbering{arabic}
setcounter{page}{1}
lipsum[2-10]

end{document}


enter image description here






share|improve this answer


























  • It works fine. But facing another problem when i add another page before chapter such as Abstract page, it is showing chapter 0 in the heading. I don't need that. I have update MWE please check.

    – Alamin
    40 mins ago











  • Will your real abstract fit on a single page?

    – Bernard
    27 mins ago













  • Yes. only in single page

    – Alamin
    22 mins ago






  • 1





    Why don't you use chapter{Abstract} in this case? It would use the redefined plain page style.

    – Bernard
    6 mins ago
















2














Since you load titlesec, it's much simpler to load it with option pagestyles and use titleps. You have to redefine the plain page style, which is used in the first page of a chapter. Redefining a page style is particularly easy with titleps:



documentclass[a4paper,12pt]{report}
usepackage[left=1.5in,right=1in,top=1in,bottom=1in,includefoot,heightrounded]{geometry}
usepackage{lipsum}

renewcommand{baselinestretch}{1.3}
usepackage[pagestyles]{titlesec}
newpagestyle{mine}{%
headrule
sethead{itshapechapternamethechapter}{}{itshapechaptertitle}
setfoot{}{}{thepage}}%

renewpagestyle{plain}{%
setfoot{}{}{thepage}}%

titleformat{chapter}[display]{normalfonthugebfseriescentering}{chaptertitlename thechapter}{20pt}{Huge}
titlespacing{chapter}{0pt}{0pt}{1cm}
pagenumbering{roman}
pagestyle{mine}
begin{document}

chapter{Introduction}

pagenumbering{arabic}
setcounter{page}{1}
lipsum[2-10]

end{document}


enter image description here






share|improve this answer


























  • It works fine. But facing another problem when i add another page before chapter such as Abstract page, it is showing chapter 0 in the heading. I don't need that. I have update MWE please check.

    – Alamin
    40 mins ago











  • Will your real abstract fit on a single page?

    – Bernard
    27 mins ago













  • Yes. only in single page

    – Alamin
    22 mins ago






  • 1





    Why don't you use chapter{Abstract} in this case? It would use the redefined plain page style.

    – Bernard
    6 mins ago














2












2








2







Since you load titlesec, it's much simpler to load it with option pagestyles and use titleps. You have to redefine the plain page style, which is used in the first page of a chapter. Redefining a page style is particularly easy with titleps:



documentclass[a4paper,12pt]{report}
usepackage[left=1.5in,right=1in,top=1in,bottom=1in,includefoot,heightrounded]{geometry}
usepackage{lipsum}

renewcommand{baselinestretch}{1.3}
usepackage[pagestyles]{titlesec}
newpagestyle{mine}{%
headrule
sethead{itshapechapternamethechapter}{}{itshapechaptertitle}
setfoot{}{}{thepage}}%

renewpagestyle{plain}{%
setfoot{}{}{thepage}}%

titleformat{chapter}[display]{normalfonthugebfseriescentering}{chaptertitlename thechapter}{20pt}{Huge}
titlespacing{chapter}{0pt}{0pt}{1cm}
pagenumbering{roman}
pagestyle{mine}
begin{document}

chapter{Introduction}

pagenumbering{arabic}
setcounter{page}{1}
lipsum[2-10]

end{document}


enter image description here






share|improve this answer















Since you load titlesec, it's much simpler to load it with option pagestyles and use titleps. You have to redefine the plain page style, which is used in the first page of a chapter. Redefining a page style is particularly easy with titleps:



documentclass[a4paper,12pt]{report}
usepackage[left=1.5in,right=1in,top=1in,bottom=1in,includefoot,heightrounded]{geometry}
usepackage{lipsum}

renewcommand{baselinestretch}{1.3}
usepackage[pagestyles]{titlesec}
newpagestyle{mine}{%
headrule
sethead{itshapechapternamethechapter}{}{itshapechaptertitle}
setfoot{}{}{thepage}}%

renewpagestyle{plain}{%
setfoot{}{}{thepage}}%

titleformat{chapter}[display]{normalfonthugebfseriescentering}{chaptertitlename thechapter}{20pt}{Huge}
titlespacing{chapter}{0pt}{0pt}{1cm}
pagenumbering{roman}
pagestyle{mine}
begin{document}

chapter{Introduction}

pagenumbering{arabic}
setcounter{page}{1}
lipsum[2-10]

end{document}


enter image description here







share|improve this answer














share|improve this answer



share|improve this answer








edited 53 mins ago

























answered 1 hour ago









BernardBernard

175k776207




175k776207













  • It works fine. But facing another problem when i add another page before chapter such as Abstract page, it is showing chapter 0 in the heading. I don't need that. I have update MWE please check.

    – Alamin
    40 mins ago











  • Will your real abstract fit on a single page?

    – Bernard
    27 mins ago













  • Yes. only in single page

    – Alamin
    22 mins ago






  • 1





    Why don't you use chapter{Abstract} in this case? It would use the redefined plain page style.

    – Bernard
    6 mins ago



















  • It works fine. But facing another problem when i add another page before chapter such as Abstract page, it is showing chapter 0 in the heading. I don't need that. I have update MWE please check.

    – Alamin
    40 mins ago











  • Will your real abstract fit on a single page?

    – Bernard
    27 mins ago













  • Yes. only in single page

    – Alamin
    22 mins ago






  • 1





    Why don't you use chapter{Abstract} in this case? It would use the redefined plain page style.

    – Bernard
    6 mins ago

















It works fine. But facing another problem when i add another page before chapter such as Abstract page, it is showing chapter 0 in the heading. I don't need that. I have update MWE please check.

– Alamin
40 mins ago





It works fine. But facing another problem when i add another page before chapter such as Abstract page, it is showing chapter 0 in the heading. I don't need that. I have update MWE please check.

– Alamin
40 mins ago













Will your real abstract fit on a single page?

– Bernard
27 mins ago







Will your real abstract fit on a single page?

– Bernard
27 mins ago















Yes. only in single page

– Alamin
22 mins ago





Yes. only in single page

– Alamin
22 mins ago




1




1





Why don't you use chapter{Abstract} in this case? It would use the redefined plain page style.

– Bernard
6 mins ago





Why don't you use chapter{Abstract} in this case? It would use the redefined plain page style.

– Bernard
6 mins ago










Alamin is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















Alamin is a new contributor. Be nice, and check out our Code of Conduct.













Alamin is a new contributor. Be nice, and check out our Code of Conduct.












Alamin is a new contributor. Be nice, and check out our Code of Conduct.
















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%2f482464%2fhow-to-set-page-number-in-right-side-in-chapter-title-page%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

Costa Masnaga

Create new schema in PostgreSQL using DBeaver

Fotorealismo