How to remove blank page before my new report chapter?Why doesn't pagestyle{empty} work on the first page of...
Is it a fallacy if someone claims they need an explanation for every word of your argument to the point where they don't understand common terms?
How do you funnel food off a cutting board?
Eww, those bytes are gross
How to remove blank page before my new report chapter?
Can I string the D&D Starter Set campaign into another module, keeping the same characters?
Why would space fleets be aligned?
Cookies - Should the toggles be on?
How can animals be objects of ethics without being subjects as well?
What are "industrial chops"?
How to say "Brexit" in Latin?
What is this metal M-shaped device for?
Traveling through the asteriod belt?
Can I write a book of my D&D game?
Dilemma of explaining to interviewer that he is the reason for declining second interview
Why Normality assumption in linear regression
How to remove lines through the legend markers in ListPlot?
How much mayhem could I cause as a sentient fish?
How can my powered armor quickly replace its ceramic plates?
How to prevent users from executing commands through browser URL
Highly technological aliens land nuclear fusion powered ships in medieval city and slaughter everyone, using swords?
How long is the D&D Starter Set campaign?
Unable to list services in AWS EKS
Why "Points exist" is not an axiom in Geometry
what does しにみえてる mean?
How to remove blank page before my new report chapter?
Why doesn't pagestyle{empty} work on the first page of a chapter?Redefining commands in Latex (section in particular)Removing blank page before chapterInitial page numbers wrongRemove page number from chapter title pageProblem with Fancyhdr, doesn't shows headers at any pageRemove empty page before chapterVery specifically customized sections and table of contentsHow to make a header with a binary matrix code as background?Blank page before new subsectionRandom Blank Page Appearing Before Appendix ChapterRemove blank page before chapter when forcing a figure on the same page as chapter title
This problem started after I added the following code in the preamble to set the default chapter title font ("INTRODUCTION" in the following code), which was big, bold and brash that I did not like, into default regular text font.
usepackage[rm,tiny]{titlesec} %added this to change the chapter title's font as default regular text font.
titleformat{chapter}{normalfontcentering}{}{0pt}{}
titlelabel{}
titlespacing*{chapter}{0pt}{-20pt}{4pt}
What happened is, I could change the font of my chapter, but a blank page (with page no. 1 on the header) appeared before the "Introduction" page. The introduction page now has page no. 2 on the footer rather than the header that I formatted it to appear. All other page numbers are in the header.
This trend continues whenever I format the other chapters (literature review, methodology, etc.) with the chapter{}
command. A blank page is created and the new section gets pushed one page down, with the page number on the footer rather than on the header.
Here is the more complete code:
documentclass[12pt]{report}
usepackage[left=1.5in, right=1in, top=1in, bottom=1.5in]{geometry}
usepackage{setspace}
usepackage{amsbsy}
usepackage{fancyhdr}
usepackage{lipsum}
usepackage{graphicx}
usepackage{enumitem}
usepackage{textcomp}
usepackage{lscape}
usepackage{amsmath}
usepackage{calc}
newlength{depthofsumsign}
setlength{depthofsumsign}{depthof{$sum$}}
newlength{totalheightofsumsign}
newlength{heightanddepthofargument}
usepackage[rm,tiny]{titlesec} %added this to change the chapter title's font as default regular text font.
usepackage{pdflscape,booktabs}
usepackage[flushleft]{threeparttable}
renewcommandTPTtagStyle{textit}
usepackage[font=it,skip=0.5baselineskip]{caption}
%to put page numbers in the header
fancyhf{}
fancyhead[C]{thepage}
pagestyle{fancy}
titleformat{chapter}{normalfontcentering}{}{0pt}{}
titlelabel{}
titlespacing*{chapter}{0pt}{-20pt}{4pt}
begin{document}
setlength{headheight}{50pt} %to note where the header lies.
setlength{headsep}{15pt} %to set the distance between header and the first line after it.
renewcommand{headrulewidth}{0pt}
doublespacing
thispagestyle{empty}
begin{center}
vspace*{0.2in}
MY TITLE\
vspace*{0.4in}
by\
My name\
vspace*{1.4in}
singlespacing
A thesis submitted in partial fulfillment\
of the requirements for the degree\
doublespacing
of\
My degree\
in\
My discipline\
vspace*{1in}
MY UNIVERSITY\
University, Location\
vspace*{0.2in}
April 2019
end{center}
pagebreak
pagenumbering{gobble}
begin{center}
vspace*{1in}
textcopyright COPYRIGHT\
by\
My name\
2019\
All Rights Reserved
end{center}
pagebreak
pagenumbering{arabic}
setcounter{page}{1}
begin{center}
chapter{INTRODUCTION}
end{center}
My introduction section's first paragraph...
end{document}
The first two pages are fine (first page being the cover page with thesis name etc., and the second page being the copyright section). These pages are without page number (and thus the pagenumbering{gobble}
code on the second page).
Edit: I have dealt with the problem of the blank page by removing the begin{center} ... end{center}
code, but the page number for the page with the chapter is still appearing in the footer rather than the header. All other pages have numbers in the header. Any way to fix this?
sectioning header-footer chapters page-numbering blank-page
add a comment |
This problem started after I added the following code in the preamble to set the default chapter title font ("INTRODUCTION" in the following code), which was big, bold and brash that I did not like, into default regular text font.
usepackage[rm,tiny]{titlesec} %added this to change the chapter title's font as default regular text font.
titleformat{chapter}{normalfontcentering}{}{0pt}{}
titlelabel{}
titlespacing*{chapter}{0pt}{-20pt}{4pt}
What happened is, I could change the font of my chapter, but a blank page (with page no. 1 on the header) appeared before the "Introduction" page. The introduction page now has page no. 2 on the footer rather than the header that I formatted it to appear. All other page numbers are in the header.
This trend continues whenever I format the other chapters (literature review, methodology, etc.) with the chapter{}
command. A blank page is created and the new section gets pushed one page down, with the page number on the footer rather than on the header.
Here is the more complete code:
documentclass[12pt]{report}
usepackage[left=1.5in, right=1in, top=1in, bottom=1.5in]{geometry}
usepackage{setspace}
usepackage{amsbsy}
usepackage{fancyhdr}
usepackage{lipsum}
usepackage{graphicx}
usepackage{enumitem}
usepackage{textcomp}
usepackage{lscape}
usepackage{amsmath}
usepackage{calc}
newlength{depthofsumsign}
setlength{depthofsumsign}{depthof{$sum$}}
newlength{totalheightofsumsign}
newlength{heightanddepthofargument}
usepackage[rm,tiny]{titlesec} %added this to change the chapter title's font as default regular text font.
usepackage{pdflscape,booktabs}
usepackage[flushleft]{threeparttable}
renewcommandTPTtagStyle{textit}
usepackage[font=it,skip=0.5baselineskip]{caption}
%to put page numbers in the header
fancyhf{}
fancyhead[C]{thepage}
pagestyle{fancy}
titleformat{chapter}{normalfontcentering}{}{0pt}{}
titlelabel{}
titlespacing*{chapter}{0pt}{-20pt}{4pt}
begin{document}
setlength{headheight}{50pt} %to note where the header lies.
setlength{headsep}{15pt} %to set the distance between header and the first line after it.
renewcommand{headrulewidth}{0pt}
doublespacing
thispagestyle{empty}
begin{center}
vspace*{0.2in}
MY TITLE\
vspace*{0.4in}
by\
My name\
vspace*{1.4in}
singlespacing
A thesis submitted in partial fulfillment\
of the requirements for the degree\
doublespacing
of\
My degree\
in\
My discipline\
vspace*{1in}
MY UNIVERSITY\
University, Location\
vspace*{0.2in}
April 2019
end{center}
pagebreak
pagenumbering{gobble}
begin{center}
vspace*{1in}
textcopyright COPYRIGHT\
by\
My name\
2019\
All Rights Reserved
end{center}
pagebreak
pagenumbering{arabic}
setcounter{page}{1}
begin{center}
chapter{INTRODUCTION}
end{center}
My introduction section's first paragraph...
end{document}
The first two pages are fine (first page being the cover page with thesis name etc., and the second page being the copyright section). These pages are without page number (and thus the pagenumbering{gobble}
code on the second page).
Edit: I have dealt with the problem of the blank page by removing the begin{center} ... end{center}
code, but the page number for the page with the chapter is still appearing in the footer rather than the header. All other pages have numbers in the header. Any way to fix this?
sectioning header-footer chapters page-numbering blank-page
1
Just removebegin{center}
andend{center}
commands that include thechapter
command. Your chapter title will be centered anyway and this is what causes the problem... The general appearance of a sectioning command is defined by yourtitleformat
andtitlespacing
commands and will not be affected from environments likecenter
or similar that will just cause problems.
– koleygr
2 hours ago
@koleygr, Thanks a lot! This worked to remove the blank page. But, the page number for the page with the chapter is still appearing in the footer rather than the header. All other pages have numbers in the header. Any way to fix this?
– Samyam Shrestha
2 hours ago
I added a solution as an answer because it was difficult to fit it in a comment... Feel free to ask corrections if something is not already as should be.
– koleygr
1 hour ago
add a comment |
This problem started after I added the following code in the preamble to set the default chapter title font ("INTRODUCTION" in the following code), which was big, bold and brash that I did not like, into default regular text font.
usepackage[rm,tiny]{titlesec} %added this to change the chapter title's font as default regular text font.
titleformat{chapter}{normalfontcentering}{}{0pt}{}
titlelabel{}
titlespacing*{chapter}{0pt}{-20pt}{4pt}
What happened is, I could change the font of my chapter, but a blank page (with page no. 1 on the header) appeared before the "Introduction" page. The introduction page now has page no. 2 on the footer rather than the header that I formatted it to appear. All other page numbers are in the header.
This trend continues whenever I format the other chapters (literature review, methodology, etc.) with the chapter{}
command. A blank page is created and the new section gets pushed one page down, with the page number on the footer rather than on the header.
Here is the more complete code:
documentclass[12pt]{report}
usepackage[left=1.5in, right=1in, top=1in, bottom=1.5in]{geometry}
usepackage{setspace}
usepackage{amsbsy}
usepackage{fancyhdr}
usepackage{lipsum}
usepackage{graphicx}
usepackage{enumitem}
usepackage{textcomp}
usepackage{lscape}
usepackage{amsmath}
usepackage{calc}
newlength{depthofsumsign}
setlength{depthofsumsign}{depthof{$sum$}}
newlength{totalheightofsumsign}
newlength{heightanddepthofargument}
usepackage[rm,tiny]{titlesec} %added this to change the chapter title's font as default regular text font.
usepackage{pdflscape,booktabs}
usepackage[flushleft]{threeparttable}
renewcommandTPTtagStyle{textit}
usepackage[font=it,skip=0.5baselineskip]{caption}
%to put page numbers in the header
fancyhf{}
fancyhead[C]{thepage}
pagestyle{fancy}
titleformat{chapter}{normalfontcentering}{}{0pt}{}
titlelabel{}
titlespacing*{chapter}{0pt}{-20pt}{4pt}
begin{document}
setlength{headheight}{50pt} %to note where the header lies.
setlength{headsep}{15pt} %to set the distance between header and the first line after it.
renewcommand{headrulewidth}{0pt}
doublespacing
thispagestyle{empty}
begin{center}
vspace*{0.2in}
MY TITLE\
vspace*{0.4in}
by\
My name\
vspace*{1.4in}
singlespacing
A thesis submitted in partial fulfillment\
of the requirements for the degree\
doublespacing
of\
My degree\
in\
My discipline\
vspace*{1in}
MY UNIVERSITY\
University, Location\
vspace*{0.2in}
April 2019
end{center}
pagebreak
pagenumbering{gobble}
begin{center}
vspace*{1in}
textcopyright COPYRIGHT\
by\
My name\
2019\
All Rights Reserved
end{center}
pagebreak
pagenumbering{arabic}
setcounter{page}{1}
begin{center}
chapter{INTRODUCTION}
end{center}
My introduction section's first paragraph...
end{document}
The first two pages are fine (first page being the cover page with thesis name etc., and the second page being the copyright section). These pages are without page number (and thus the pagenumbering{gobble}
code on the second page).
Edit: I have dealt with the problem of the blank page by removing the begin{center} ... end{center}
code, but the page number for the page with the chapter is still appearing in the footer rather than the header. All other pages have numbers in the header. Any way to fix this?
sectioning header-footer chapters page-numbering blank-page
This problem started after I added the following code in the preamble to set the default chapter title font ("INTRODUCTION" in the following code), which was big, bold and brash that I did not like, into default regular text font.
usepackage[rm,tiny]{titlesec} %added this to change the chapter title's font as default regular text font.
titleformat{chapter}{normalfontcentering}{}{0pt}{}
titlelabel{}
titlespacing*{chapter}{0pt}{-20pt}{4pt}
What happened is, I could change the font of my chapter, but a blank page (with page no. 1 on the header) appeared before the "Introduction" page. The introduction page now has page no. 2 on the footer rather than the header that I formatted it to appear. All other page numbers are in the header.
This trend continues whenever I format the other chapters (literature review, methodology, etc.) with the chapter{}
command. A blank page is created and the new section gets pushed one page down, with the page number on the footer rather than on the header.
Here is the more complete code:
documentclass[12pt]{report}
usepackage[left=1.5in, right=1in, top=1in, bottom=1.5in]{geometry}
usepackage{setspace}
usepackage{amsbsy}
usepackage{fancyhdr}
usepackage{lipsum}
usepackage{graphicx}
usepackage{enumitem}
usepackage{textcomp}
usepackage{lscape}
usepackage{amsmath}
usepackage{calc}
newlength{depthofsumsign}
setlength{depthofsumsign}{depthof{$sum$}}
newlength{totalheightofsumsign}
newlength{heightanddepthofargument}
usepackage[rm,tiny]{titlesec} %added this to change the chapter title's font as default regular text font.
usepackage{pdflscape,booktabs}
usepackage[flushleft]{threeparttable}
renewcommandTPTtagStyle{textit}
usepackage[font=it,skip=0.5baselineskip]{caption}
%to put page numbers in the header
fancyhf{}
fancyhead[C]{thepage}
pagestyle{fancy}
titleformat{chapter}{normalfontcentering}{}{0pt}{}
titlelabel{}
titlespacing*{chapter}{0pt}{-20pt}{4pt}
begin{document}
setlength{headheight}{50pt} %to note where the header lies.
setlength{headsep}{15pt} %to set the distance between header and the first line after it.
renewcommand{headrulewidth}{0pt}
doublespacing
thispagestyle{empty}
begin{center}
vspace*{0.2in}
MY TITLE\
vspace*{0.4in}
by\
My name\
vspace*{1.4in}
singlespacing
A thesis submitted in partial fulfillment\
of the requirements for the degree\
doublespacing
of\
My degree\
in\
My discipline\
vspace*{1in}
MY UNIVERSITY\
University, Location\
vspace*{0.2in}
April 2019
end{center}
pagebreak
pagenumbering{gobble}
begin{center}
vspace*{1in}
textcopyright COPYRIGHT\
by\
My name\
2019\
All Rights Reserved
end{center}
pagebreak
pagenumbering{arabic}
setcounter{page}{1}
begin{center}
chapter{INTRODUCTION}
end{center}
My introduction section's first paragraph...
end{document}
The first two pages are fine (first page being the cover page with thesis name etc., and the second page being the copyright section). These pages are without page number (and thus the pagenumbering{gobble}
code on the second page).
Edit: I have dealt with the problem of the blank page by removing the begin{center} ... end{center}
code, but the page number for the page with the chapter is still appearing in the footer rather than the header. All other pages have numbers in the header. Any way to fix this?
sectioning header-footer chapters page-numbering blank-page
sectioning header-footer chapters page-numbering blank-page
edited 1 hour ago
Samyam Shrestha
asked 3 hours ago
Samyam ShresthaSamyam Shrestha
324
324
1
Just removebegin{center}
andend{center}
commands that include thechapter
command. Your chapter title will be centered anyway and this is what causes the problem... The general appearance of a sectioning command is defined by yourtitleformat
andtitlespacing
commands and will not be affected from environments likecenter
or similar that will just cause problems.
– koleygr
2 hours ago
@koleygr, Thanks a lot! This worked to remove the blank page. But, the page number for the page with the chapter is still appearing in the footer rather than the header. All other pages have numbers in the header. Any way to fix this?
– Samyam Shrestha
2 hours ago
I added a solution as an answer because it was difficult to fit it in a comment... Feel free to ask corrections if something is not already as should be.
– koleygr
1 hour ago
add a comment |
1
Just removebegin{center}
andend{center}
commands that include thechapter
command. Your chapter title will be centered anyway and this is what causes the problem... The general appearance of a sectioning command is defined by yourtitleformat
andtitlespacing
commands and will not be affected from environments likecenter
or similar that will just cause problems.
– koleygr
2 hours ago
@koleygr, Thanks a lot! This worked to remove the blank page. But, the page number for the page with the chapter is still appearing in the footer rather than the header. All other pages have numbers in the header. Any way to fix this?
– Samyam Shrestha
2 hours ago
I added a solution as an answer because it was difficult to fit it in a comment... Feel free to ask corrections if something is not already as should be.
– koleygr
1 hour ago
1
1
Just remove
begin{center}
and end{center}
commands that include the chapter
command. Your chapter title will be centered anyway and this is what causes the problem... The general appearance of a sectioning command is defined by your titleformat
and titlespacing
commands and will not be affected from environments like center
or similar that will just cause problems.– koleygr
2 hours ago
Just remove
begin{center}
and end{center}
commands that include the chapter
command. Your chapter title will be centered anyway and this is what causes the problem... The general appearance of a sectioning command is defined by your titleformat
and titlespacing
commands and will not be affected from environments like center
or similar that will just cause problems.– koleygr
2 hours ago
@koleygr, Thanks a lot! This worked to remove the blank page. But, the page number for the page with the chapter is still appearing in the footer rather than the header. All other pages have numbers in the header. Any way to fix this?
– Samyam Shrestha
2 hours ago
@koleygr, Thanks a lot! This worked to remove the blank page. But, the page number for the page with the chapter is still appearing in the footer rather than the header. All other pages have numbers in the header. Any way to fix this?
– Samyam Shrestha
2 hours ago
I added a solution as an answer because it was difficult to fit it in a comment... Feel free to ask corrections if something is not already as should be.
– koleygr
1 hour ago
I added a solution as an answer because it was difficult to fit it in a comment... Feel free to ask corrections if something is not already as should be.
– koleygr
1 hour ago
add a comment |
2 Answers
2
active
oldest
votes
Here is a fix by using a code that redefines chapter
command and adds thispagestyle{fancy}
to each call of (every version of) chapter command:
documentclass[12pt]{report}
usepackage[left=1.5in, right=1in, top=1in, bottom=1.5in]{geometry}
usepackage{setspace}
usepackage{amsbsy}
usepackage{fancyhdr}
usepackage{lipsum}
usepackage{graphicx}
usepackage{enumitem}
usepackage{textcomp}
usepackage{lscape}
usepackage{amsmath}
usepackage{calc}
newlength{depthofsumsign}
setlength{depthofsumsign}{depthof{$sum$}}
newlength{totalheightofsumsign}
newlength{heightanddepthofargument}
usepackage[rm,tiny]{titlesec} %added this to change the chapter title's font as default regular text font.
usepackage{lipsum}
usepackage{pdflscape,booktabs}
usepackage[flushleft]{threeparttable}
renewcommandTPTtagStyle{textit}
usepackage[font=it,skip=0.5baselineskip]{caption}
%to put page numbers in the header
fancyhf{}
fancyhead[C]{thepage}
fancyfoot{}
pagestyle{fancy}
titleformat{chapter}{normalfontcentering}{}{0pt}{}
titlelabel{}
titlespacing*{chapter}{0pt}{-20pt}{4pt}
%koleygr: Redefining chapter to include thispagestyle{fancy}
letoldchapterchapter
makeatletter
defchapter{%
@ifstar{@Starred}{@nonStarred}%
}
def@Starred{%
@ifnextchar[%
{GenericWarning{}{Warning: A starred section can not have parameters. I am going to ignore them!}@StarredWith}%
{@StarredWithout}%
}
def@StarredWith[#1]#2{%
oldchapter*{#2}%
thispagestyle{fancy}
}
def@StarredWithout#1{
oldchapter*{#1}%
thispagestyle{fancy}
}
def@nonStarred{%
@ifnextchar[%
{@nonStarredWith}%
{@nonStarredWithout}%
}
def@nonStarredWith[#1]#2{%
oldchapter[#1]{#2}%
thispagestyle{fancy}
}
def@nonStarredWithout#1{%
oldchapter{#1}%
thispagestyle{fancy}
}
makeatother
begin{document}
setlength{headheight}{50pt} %to note where the header lies.
setlength{headsep}{15pt} %to set the distance between header and the first line after it.
renewcommand{headrulewidth}{0pt}
doublespacing
thispagestyle{empty}
begin{center}
vspace*{0.2in}
MY TITLE\
vspace*{0.4in}
by\
My name\
vspace*{1.4in}
singlespacing
A thesis submitted in partial fulfillment\
of the requirements for the degree\
doublespacing
of\
My degree\
in\
My discipline\
vspace*{1in}
MY UNIVERSITY\
University, Location\
vspace*{0.2in}
April 2019
end{center}
pagebreak
pagenumbering{gobble}
begin{center}
vspace*{1in}
textcopyright COPYRIGHT\
by\
My name\
2019\
All Rights Reserved
end{center}
pagebreak
pagenumbering{arabic}
setcounter{page}{1}
%begin{center}
chapter{INTRODUCTION}
%end{center}
My introduction section's first paragraph...
lipsum[1-5]
chapter{Another Chapter}
lipsum[1-5]
end{document}
PS: I used my old answer from here to redefine chapter command, but you could use the answer of @GonzaloMedina from here instead if you don't like my code...
Thanks a lot! This works. No reason why I won't like your code (:
– Samyam Shrestha
44 mins ago
People doesn't really like commands that redefiningsection
etc even in the case (like mine) that the code just adds a feature to the command and has no other effects. I can understand this and it is accepted in general. Also, a healthy reaction in code that someone finds difficult or can't really understand, is to not want to use it (my code seems simple to me but someone else could find it complicated or unneeded complicated)...Anyway, @esdd's code solves your problem with less lines of code needed, and I would chose his answer. Feel free to accept his answer.
– koleygr
27 mins ago
add a comment |
The chapter pages use page style plain
by default. If you want to adjust both styles plain
and fancy
use pagestyle fancyplain
instead fancy
. If the content should differ in some of the header and/or footer fields use fancyplain{<content for plain style>}{<content for fancy style>}
.
documentclass[12pt]{report}
usepackage[left=1.5in, right=1in, top=1in, bottom=1.5in]{geometry}
usepackage{setspace}
usepackage{amsbsy}
usepackage{fancyhdr}
usepackage{lipsum}
usepackage{graphicx}
usepackage{enumitem}
usepackage{textcomp}
usepackage{lscape}
usepackage{amsmath}
usepackage{calc}
newlength{depthofsumsign}
setlength{depthofsumsign}{depthof{$sum$}}
newlength{totalheightofsumsign}
newlength{heightanddepthofargument}
usepackage[rm,tiny]{titlesec} %added this to change the chapter title's font as default regular text font.
usepackage{pdflscape,booktabs}
usepackage[flushleft]{threeparttable}
renewcommandTPTtagStyle{textit}
usepackage[font=it,skip=0.5baselineskip]{caption}
%to put page numbers in the header
fancyhf{}
fancyhead[C]{thepage}
%fancyfoot[C]{fancyplain{plain style}{fancy style}}% <- to show the usage of fancyplain
pagestyle{fancyplain}% <- changed
titleformat{chapter}{normalfontcentering}{}{0pt}{}
titlelabel{}
titlespacing*{chapter}{0pt}{-20pt}{4pt}
setlength{headheight}{50pt} %to note where the header lies.
setlength{headsep}{15pt} %to set the distance between header and the first line after it.
renewcommand{headrulewidth}{0pt}
begin{document}
doublespacing
thispagestyle{empty}
begin{center}
vspace*{0.2in}
MY TITLE\
vspace*{0.4in}
by\
My name\
vspace*{1.4in}
singlespacing
A thesis submitted in partial fulfillment\
of the requirements for the degree\
doublespacing
of\
My degree\
in\
My discipline\
vspace*{1in}
MY UNIVERSITY\
University, Location\
vspace*{0.2in}
April 2019
end{center}
clearpage
thispagestyle{empty}
begin{center}
vspace*{1in}
textcopyright COPYRIGHT\
by\
My name\
2019\
All Rights Reserved
end{center}
cleardoublepage
pagenumbering{arabic}
setcounter{page}{1}
chapter{INTRODUCTION}
lipsum
end{document}
Result
(+1) I learned something new, and I commenting just to say, that after that I suppose the document will not have separateplain
page-style... but possibly the OP doesn't really care about this.
– koleygr
25 mins ago
add a comment |
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%2f477253%2fhow-to-remove-blank-page-before-my-new-report-chapter%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
Here is a fix by using a code that redefines chapter
command and adds thispagestyle{fancy}
to each call of (every version of) chapter command:
documentclass[12pt]{report}
usepackage[left=1.5in, right=1in, top=1in, bottom=1.5in]{geometry}
usepackage{setspace}
usepackage{amsbsy}
usepackage{fancyhdr}
usepackage{lipsum}
usepackage{graphicx}
usepackage{enumitem}
usepackage{textcomp}
usepackage{lscape}
usepackage{amsmath}
usepackage{calc}
newlength{depthofsumsign}
setlength{depthofsumsign}{depthof{$sum$}}
newlength{totalheightofsumsign}
newlength{heightanddepthofargument}
usepackage[rm,tiny]{titlesec} %added this to change the chapter title's font as default regular text font.
usepackage{lipsum}
usepackage{pdflscape,booktabs}
usepackage[flushleft]{threeparttable}
renewcommandTPTtagStyle{textit}
usepackage[font=it,skip=0.5baselineskip]{caption}
%to put page numbers in the header
fancyhf{}
fancyhead[C]{thepage}
fancyfoot{}
pagestyle{fancy}
titleformat{chapter}{normalfontcentering}{}{0pt}{}
titlelabel{}
titlespacing*{chapter}{0pt}{-20pt}{4pt}
%koleygr: Redefining chapter to include thispagestyle{fancy}
letoldchapterchapter
makeatletter
defchapter{%
@ifstar{@Starred}{@nonStarred}%
}
def@Starred{%
@ifnextchar[%
{GenericWarning{}{Warning: A starred section can not have parameters. I am going to ignore them!}@StarredWith}%
{@StarredWithout}%
}
def@StarredWith[#1]#2{%
oldchapter*{#2}%
thispagestyle{fancy}
}
def@StarredWithout#1{
oldchapter*{#1}%
thispagestyle{fancy}
}
def@nonStarred{%
@ifnextchar[%
{@nonStarredWith}%
{@nonStarredWithout}%
}
def@nonStarredWith[#1]#2{%
oldchapter[#1]{#2}%
thispagestyle{fancy}
}
def@nonStarredWithout#1{%
oldchapter{#1}%
thispagestyle{fancy}
}
makeatother
begin{document}
setlength{headheight}{50pt} %to note where the header lies.
setlength{headsep}{15pt} %to set the distance between header and the first line after it.
renewcommand{headrulewidth}{0pt}
doublespacing
thispagestyle{empty}
begin{center}
vspace*{0.2in}
MY TITLE\
vspace*{0.4in}
by\
My name\
vspace*{1.4in}
singlespacing
A thesis submitted in partial fulfillment\
of the requirements for the degree\
doublespacing
of\
My degree\
in\
My discipline\
vspace*{1in}
MY UNIVERSITY\
University, Location\
vspace*{0.2in}
April 2019
end{center}
pagebreak
pagenumbering{gobble}
begin{center}
vspace*{1in}
textcopyright COPYRIGHT\
by\
My name\
2019\
All Rights Reserved
end{center}
pagebreak
pagenumbering{arabic}
setcounter{page}{1}
%begin{center}
chapter{INTRODUCTION}
%end{center}
My introduction section's first paragraph...
lipsum[1-5]
chapter{Another Chapter}
lipsum[1-5]
end{document}
PS: I used my old answer from here to redefine chapter command, but you could use the answer of @GonzaloMedina from here instead if you don't like my code...
Thanks a lot! This works. No reason why I won't like your code (:
– Samyam Shrestha
44 mins ago
People doesn't really like commands that redefiningsection
etc even in the case (like mine) that the code just adds a feature to the command and has no other effects. I can understand this and it is accepted in general. Also, a healthy reaction in code that someone finds difficult or can't really understand, is to not want to use it (my code seems simple to me but someone else could find it complicated or unneeded complicated)...Anyway, @esdd's code solves your problem with less lines of code needed, and I would chose his answer. Feel free to accept his answer.
– koleygr
27 mins ago
add a comment |
Here is a fix by using a code that redefines chapter
command and adds thispagestyle{fancy}
to each call of (every version of) chapter command:
documentclass[12pt]{report}
usepackage[left=1.5in, right=1in, top=1in, bottom=1.5in]{geometry}
usepackage{setspace}
usepackage{amsbsy}
usepackage{fancyhdr}
usepackage{lipsum}
usepackage{graphicx}
usepackage{enumitem}
usepackage{textcomp}
usepackage{lscape}
usepackage{amsmath}
usepackage{calc}
newlength{depthofsumsign}
setlength{depthofsumsign}{depthof{$sum$}}
newlength{totalheightofsumsign}
newlength{heightanddepthofargument}
usepackage[rm,tiny]{titlesec} %added this to change the chapter title's font as default regular text font.
usepackage{lipsum}
usepackage{pdflscape,booktabs}
usepackage[flushleft]{threeparttable}
renewcommandTPTtagStyle{textit}
usepackage[font=it,skip=0.5baselineskip]{caption}
%to put page numbers in the header
fancyhf{}
fancyhead[C]{thepage}
fancyfoot{}
pagestyle{fancy}
titleformat{chapter}{normalfontcentering}{}{0pt}{}
titlelabel{}
titlespacing*{chapter}{0pt}{-20pt}{4pt}
%koleygr: Redefining chapter to include thispagestyle{fancy}
letoldchapterchapter
makeatletter
defchapter{%
@ifstar{@Starred}{@nonStarred}%
}
def@Starred{%
@ifnextchar[%
{GenericWarning{}{Warning: A starred section can not have parameters. I am going to ignore them!}@StarredWith}%
{@StarredWithout}%
}
def@StarredWith[#1]#2{%
oldchapter*{#2}%
thispagestyle{fancy}
}
def@StarredWithout#1{
oldchapter*{#1}%
thispagestyle{fancy}
}
def@nonStarred{%
@ifnextchar[%
{@nonStarredWith}%
{@nonStarredWithout}%
}
def@nonStarredWith[#1]#2{%
oldchapter[#1]{#2}%
thispagestyle{fancy}
}
def@nonStarredWithout#1{%
oldchapter{#1}%
thispagestyle{fancy}
}
makeatother
begin{document}
setlength{headheight}{50pt} %to note where the header lies.
setlength{headsep}{15pt} %to set the distance between header and the first line after it.
renewcommand{headrulewidth}{0pt}
doublespacing
thispagestyle{empty}
begin{center}
vspace*{0.2in}
MY TITLE\
vspace*{0.4in}
by\
My name\
vspace*{1.4in}
singlespacing
A thesis submitted in partial fulfillment\
of the requirements for the degree\
doublespacing
of\
My degree\
in\
My discipline\
vspace*{1in}
MY UNIVERSITY\
University, Location\
vspace*{0.2in}
April 2019
end{center}
pagebreak
pagenumbering{gobble}
begin{center}
vspace*{1in}
textcopyright COPYRIGHT\
by\
My name\
2019\
All Rights Reserved
end{center}
pagebreak
pagenumbering{arabic}
setcounter{page}{1}
%begin{center}
chapter{INTRODUCTION}
%end{center}
My introduction section's first paragraph...
lipsum[1-5]
chapter{Another Chapter}
lipsum[1-5]
end{document}
PS: I used my old answer from here to redefine chapter command, but you could use the answer of @GonzaloMedina from here instead if you don't like my code...
Thanks a lot! This works. No reason why I won't like your code (:
– Samyam Shrestha
44 mins ago
People doesn't really like commands that redefiningsection
etc even in the case (like mine) that the code just adds a feature to the command and has no other effects. I can understand this and it is accepted in general. Also, a healthy reaction in code that someone finds difficult or can't really understand, is to not want to use it (my code seems simple to me but someone else could find it complicated or unneeded complicated)...Anyway, @esdd's code solves your problem with less lines of code needed, and I would chose his answer. Feel free to accept his answer.
– koleygr
27 mins ago
add a comment |
Here is a fix by using a code that redefines chapter
command and adds thispagestyle{fancy}
to each call of (every version of) chapter command:
documentclass[12pt]{report}
usepackage[left=1.5in, right=1in, top=1in, bottom=1.5in]{geometry}
usepackage{setspace}
usepackage{amsbsy}
usepackage{fancyhdr}
usepackage{lipsum}
usepackage{graphicx}
usepackage{enumitem}
usepackage{textcomp}
usepackage{lscape}
usepackage{amsmath}
usepackage{calc}
newlength{depthofsumsign}
setlength{depthofsumsign}{depthof{$sum$}}
newlength{totalheightofsumsign}
newlength{heightanddepthofargument}
usepackage[rm,tiny]{titlesec} %added this to change the chapter title's font as default regular text font.
usepackage{lipsum}
usepackage{pdflscape,booktabs}
usepackage[flushleft]{threeparttable}
renewcommandTPTtagStyle{textit}
usepackage[font=it,skip=0.5baselineskip]{caption}
%to put page numbers in the header
fancyhf{}
fancyhead[C]{thepage}
fancyfoot{}
pagestyle{fancy}
titleformat{chapter}{normalfontcentering}{}{0pt}{}
titlelabel{}
titlespacing*{chapter}{0pt}{-20pt}{4pt}
%koleygr: Redefining chapter to include thispagestyle{fancy}
letoldchapterchapter
makeatletter
defchapter{%
@ifstar{@Starred}{@nonStarred}%
}
def@Starred{%
@ifnextchar[%
{GenericWarning{}{Warning: A starred section can not have parameters. I am going to ignore them!}@StarredWith}%
{@StarredWithout}%
}
def@StarredWith[#1]#2{%
oldchapter*{#2}%
thispagestyle{fancy}
}
def@StarredWithout#1{
oldchapter*{#1}%
thispagestyle{fancy}
}
def@nonStarred{%
@ifnextchar[%
{@nonStarredWith}%
{@nonStarredWithout}%
}
def@nonStarredWith[#1]#2{%
oldchapter[#1]{#2}%
thispagestyle{fancy}
}
def@nonStarredWithout#1{%
oldchapter{#1}%
thispagestyle{fancy}
}
makeatother
begin{document}
setlength{headheight}{50pt} %to note where the header lies.
setlength{headsep}{15pt} %to set the distance between header and the first line after it.
renewcommand{headrulewidth}{0pt}
doublespacing
thispagestyle{empty}
begin{center}
vspace*{0.2in}
MY TITLE\
vspace*{0.4in}
by\
My name\
vspace*{1.4in}
singlespacing
A thesis submitted in partial fulfillment\
of the requirements for the degree\
doublespacing
of\
My degree\
in\
My discipline\
vspace*{1in}
MY UNIVERSITY\
University, Location\
vspace*{0.2in}
April 2019
end{center}
pagebreak
pagenumbering{gobble}
begin{center}
vspace*{1in}
textcopyright COPYRIGHT\
by\
My name\
2019\
All Rights Reserved
end{center}
pagebreak
pagenumbering{arabic}
setcounter{page}{1}
%begin{center}
chapter{INTRODUCTION}
%end{center}
My introduction section's first paragraph...
lipsum[1-5]
chapter{Another Chapter}
lipsum[1-5]
end{document}
PS: I used my old answer from here to redefine chapter command, but you could use the answer of @GonzaloMedina from here instead if you don't like my code...
Here is a fix by using a code that redefines chapter
command and adds thispagestyle{fancy}
to each call of (every version of) chapter command:
documentclass[12pt]{report}
usepackage[left=1.5in, right=1in, top=1in, bottom=1.5in]{geometry}
usepackage{setspace}
usepackage{amsbsy}
usepackage{fancyhdr}
usepackage{lipsum}
usepackage{graphicx}
usepackage{enumitem}
usepackage{textcomp}
usepackage{lscape}
usepackage{amsmath}
usepackage{calc}
newlength{depthofsumsign}
setlength{depthofsumsign}{depthof{$sum$}}
newlength{totalheightofsumsign}
newlength{heightanddepthofargument}
usepackage[rm,tiny]{titlesec} %added this to change the chapter title's font as default regular text font.
usepackage{lipsum}
usepackage{pdflscape,booktabs}
usepackage[flushleft]{threeparttable}
renewcommandTPTtagStyle{textit}
usepackage[font=it,skip=0.5baselineskip]{caption}
%to put page numbers in the header
fancyhf{}
fancyhead[C]{thepage}
fancyfoot{}
pagestyle{fancy}
titleformat{chapter}{normalfontcentering}{}{0pt}{}
titlelabel{}
titlespacing*{chapter}{0pt}{-20pt}{4pt}
%koleygr: Redefining chapter to include thispagestyle{fancy}
letoldchapterchapter
makeatletter
defchapter{%
@ifstar{@Starred}{@nonStarred}%
}
def@Starred{%
@ifnextchar[%
{GenericWarning{}{Warning: A starred section can not have parameters. I am going to ignore them!}@StarredWith}%
{@StarredWithout}%
}
def@StarredWith[#1]#2{%
oldchapter*{#2}%
thispagestyle{fancy}
}
def@StarredWithout#1{
oldchapter*{#1}%
thispagestyle{fancy}
}
def@nonStarred{%
@ifnextchar[%
{@nonStarredWith}%
{@nonStarredWithout}%
}
def@nonStarredWith[#1]#2{%
oldchapter[#1]{#2}%
thispagestyle{fancy}
}
def@nonStarredWithout#1{%
oldchapter{#1}%
thispagestyle{fancy}
}
makeatother
begin{document}
setlength{headheight}{50pt} %to note where the header lies.
setlength{headsep}{15pt} %to set the distance between header and the first line after it.
renewcommand{headrulewidth}{0pt}
doublespacing
thispagestyle{empty}
begin{center}
vspace*{0.2in}
MY TITLE\
vspace*{0.4in}
by\
My name\
vspace*{1.4in}
singlespacing
A thesis submitted in partial fulfillment\
of the requirements for the degree\
doublespacing
of\
My degree\
in\
My discipline\
vspace*{1in}
MY UNIVERSITY\
University, Location\
vspace*{0.2in}
April 2019
end{center}
pagebreak
pagenumbering{gobble}
begin{center}
vspace*{1in}
textcopyright COPYRIGHT\
by\
My name\
2019\
All Rights Reserved
end{center}
pagebreak
pagenumbering{arabic}
setcounter{page}{1}
%begin{center}
chapter{INTRODUCTION}
%end{center}
My introduction section's first paragraph...
lipsum[1-5]
chapter{Another Chapter}
lipsum[1-5]
end{document}
PS: I used my old answer from here to redefine chapter command, but you could use the answer of @GonzaloMedina from here instead if you don't like my code...
answered 1 hour ago
koleygrkoleygr
11.4k11038
11.4k11038
Thanks a lot! This works. No reason why I won't like your code (:
– Samyam Shrestha
44 mins ago
People doesn't really like commands that redefiningsection
etc even in the case (like mine) that the code just adds a feature to the command and has no other effects. I can understand this and it is accepted in general. Also, a healthy reaction in code that someone finds difficult or can't really understand, is to not want to use it (my code seems simple to me but someone else could find it complicated or unneeded complicated)...Anyway, @esdd's code solves your problem with less lines of code needed, and I would chose his answer. Feel free to accept his answer.
– koleygr
27 mins ago
add a comment |
Thanks a lot! This works. No reason why I won't like your code (:
– Samyam Shrestha
44 mins ago
People doesn't really like commands that redefiningsection
etc even in the case (like mine) that the code just adds a feature to the command and has no other effects. I can understand this and it is accepted in general. Also, a healthy reaction in code that someone finds difficult or can't really understand, is to not want to use it (my code seems simple to me but someone else could find it complicated or unneeded complicated)...Anyway, @esdd's code solves your problem with less lines of code needed, and I would chose his answer. Feel free to accept his answer.
– koleygr
27 mins ago
Thanks a lot! This works. No reason why I won't like your code (:
– Samyam Shrestha
44 mins ago
Thanks a lot! This works. No reason why I won't like your code (:
– Samyam Shrestha
44 mins ago
People doesn't really like commands that redefining
section
etc even in the case (like mine) that the code just adds a feature to the command and has no other effects. I can understand this and it is accepted in general. Also, a healthy reaction in code that someone finds difficult or can't really understand, is to not want to use it (my code seems simple to me but someone else could find it complicated or unneeded complicated)...Anyway, @esdd's code solves your problem with less lines of code needed, and I would chose his answer. Feel free to accept his answer.– koleygr
27 mins ago
People doesn't really like commands that redefining
section
etc even in the case (like mine) that the code just adds a feature to the command and has no other effects. I can understand this and it is accepted in general. Also, a healthy reaction in code that someone finds difficult or can't really understand, is to not want to use it (my code seems simple to me but someone else could find it complicated or unneeded complicated)...Anyway, @esdd's code solves your problem with less lines of code needed, and I would chose his answer. Feel free to accept his answer.– koleygr
27 mins ago
add a comment |
The chapter pages use page style plain
by default. If you want to adjust both styles plain
and fancy
use pagestyle fancyplain
instead fancy
. If the content should differ in some of the header and/or footer fields use fancyplain{<content for plain style>}{<content for fancy style>}
.
documentclass[12pt]{report}
usepackage[left=1.5in, right=1in, top=1in, bottom=1.5in]{geometry}
usepackage{setspace}
usepackage{amsbsy}
usepackage{fancyhdr}
usepackage{lipsum}
usepackage{graphicx}
usepackage{enumitem}
usepackage{textcomp}
usepackage{lscape}
usepackage{amsmath}
usepackage{calc}
newlength{depthofsumsign}
setlength{depthofsumsign}{depthof{$sum$}}
newlength{totalheightofsumsign}
newlength{heightanddepthofargument}
usepackage[rm,tiny]{titlesec} %added this to change the chapter title's font as default regular text font.
usepackage{pdflscape,booktabs}
usepackage[flushleft]{threeparttable}
renewcommandTPTtagStyle{textit}
usepackage[font=it,skip=0.5baselineskip]{caption}
%to put page numbers in the header
fancyhf{}
fancyhead[C]{thepage}
%fancyfoot[C]{fancyplain{plain style}{fancy style}}% <- to show the usage of fancyplain
pagestyle{fancyplain}% <- changed
titleformat{chapter}{normalfontcentering}{}{0pt}{}
titlelabel{}
titlespacing*{chapter}{0pt}{-20pt}{4pt}
setlength{headheight}{50pt} %to note where the header lies.
setlength{headsep}{15pt} %to set the distance between header and the first line after it.
renewcommand{headrulewidth}{0pt}
begin{document}
doublespacing
thispagestyle{empty}
begin{center}
vspace*{0.2in}
MY TITLE\
vspace*{0.4in}
by\
My name\
vspace*{1.4in}
singlespacing
A thesis submitted in partial fulfillment\
of the requirements for the degree\
doublespacing
of\
My degree\
in\
My discipline\
vspace*{1in}
MY UNIVERSITY\
University, Location\
vspace*{0.2in}
April 2019
end{center}
clearpage
thispagestyle{empty}
begin{center}
vspace*{1in}
textcopyright COPYRIGHT\
by\
My name\
2019\
All Rights Reserved
end{center}
cleardoublepage
pagenumbering{arabic}
setcounter{page}{1}
chapter{INTRODUCTION}
lipsum
end{document}
Result
(+1) I learned something new, and I commenting just to say, that after that I suppose the document will not have separateplain
page-style... but possibly the OP doesn't really care about this.
– koleygr
25 mins ago
add a comment |
The chapter pages use page style plain
by default. If you want to adjust both styles plain
and fancy
use pagestyle fancyplain
instead fancy
. If the content should differ in some of the header and/or footer fields use fancyplain{<content for plain style>}{<content for fancy style>}
.
documentclass[12pt]{report}
usepackage[left=1.5in, right=1in, top=1in, bottom=1.5in]{geometry}
usepackage{setspace}
usepackage{amsbsy}
usepackage{fancyhdr}
usepackage{lipsum}
usepackage{graphicx}
usepackage{enumitem}
usepackage{textcomp}
usepackage{lscape}
usepackage{amsmath}
usepackage{calc}
newlength{depthofsumsign}
setlength{depthofsumsign}{depthof{$sum$}}
newlength{totalheightofsumsign}
newlength{heightanddepthofargument}
usepackage[rm,tiny]{titlesec} %added this to change the chapter title's font as default regular text font.
usepackage{pdflscape,booktabs}
usepackage[flushleft]{threeparttable}
renewcommandTPTtagStyle{textit}
usepackage[font=it,skip=0.5baselineskip]{caption}
%to put page numbers in the header
fancyhf{}
fancyhead[C]{thepage}
%fancyfoot[C]{fancyplain{plain style}{fancy style}}% <- to show the usage of fancyplain
pagestyle{fancyplain}% <- changed
titleformat{chapter}{normalfontcentering}{}{0pt}{}
titlelabel{}
titlespacing*{chapter}{0pt}{-20pt}{4pt}
setlength{headheight}{50pt} %to note where the header lies.
setlength{headsep}{15pt} %to set the distance between header and the first line after it.
renewcommand{headrulewidth}{0pt}
begin{document}
doublespacing
thispagestyle{empty}
begin{center}
vspace*{0.2in}
MY TITLE\
vspace*{0.4in}
by\
My name\
vspace*{1.4in}
singlespacing
A thesis submitted in partial fulfillment\
of the requirements for the degree\
doublespacing
of\
My degree\
in\
My discipline\
vspace*{1in}
MY UNIVERSITY\
University, Location\
vspace*{0.2in}
April 2019
end{center}
clearpage
thispagestyle{empty}
begin{center}
vspace*{1in}
textcopyright COPYRIGHT\
by\
My name\
2019\
All Rights Reserved
end{center}
cleardoublepage
pagenumbering{arabic}
setcounter{page}{1}
chapter{INTRODUCTION}
lipsum
end{document}
Result
(+1) I learned something new, and I commenting just to say, that after that I suppose the document will not have separateplain
page-style... but possibly the OP doesn't really care about this.
– koleygr
25 mins ago
add a comment |
The chapter pages use page style plain
by default. If you want to adjust both styles plain
and fancy
use pagestyle fancyplain
instead fancy
. If the content should differ in some of the header and/or footer fields use fancyplain{<content for plain style>}{<content for fancy style>}
.
documentclass[12pt]{report}
usepackage[left=1.5in, right=1in, top=1in, bottom=1.5in]{geometry}
usepackage{setspace}
usepackage{amsbsy}
usepackage{fancyhdr}
usepackage{lipsum}
usepackage{graphicx}
usepackage{enumitem}
usepackage{textcomp}
usepackage{lscape}
usepackage{amsmath}
usepackage{calc}
newlength{depthofsumsign}
setlength{depthofsumsign}{depthof{$sum$}}
newlength{totalheightofsumsign}
newlength{heightanddepthofargument}
usepackage[rm,tiny]{titlesec} %added this to change the chapter title's font as default regular text font.
usepackage{pdflscape,booktabs}
usepackage[flushleft]{threeparttable}
renewcommandTPTtagStyle{textit}
usepackage[font=it,skip=0.5baselineskip]{caption}
%to put page numbers in the header
fancyhf{}
fancyhead[C]{thepage}
%fancyfoot[C]{fancyplain{plain style}{fancy style}}% <- to show the usage of fancyplain
pagestyle{fancyplain}% <- changed
titleformat{chapter}{normalfontcentering}{}{0pt}{}
titlelabel{}
titlespacing*{chapter}{0pt}{-20pt}{4pt}
setlength{headheight}{50pt} %to note where the header lies.
setlength{headsep}{15pt} %to set the distance between header and the first line after it.
renewcommand{headrulewidth}{0pt}
begin{document}
doublespacing
thispagestyle{empty}
begin{center}
vspace*{0.2in}
MY TITLE\
vspace*{0.4in}
by\
My name\
vspace*{1.4in}
singlespacing
A thesis submitted in partial fulfillment\
of the requirements for the degree\
doublespacing
of\
My degree\
in\
My discipline\
vspace*{1in}
MY UNIVERSITY\
University, Location\
vspace*{0.2in}
April 2019
end{center}
clearpage
thispagestyle{empty}
begin{center}
vspace*{1in}
textcopyright COPYRIGHT\
by\
My name\
2019\
All Rights Reserved
end{center}
cleardoublepage
pagenumbering{arabic}
setcounter{page}{1}
chapter{INTRODUCTION}
lipsum
end{document}
Result
The chapter pages use page style plain
by default. If you want to adjust both styles plain
and fancy
use pagestyle fancyplain
instead fancy
. If the content should differ in some of the header and/or footer fields use fancyplain{<content for plain style>}{<content for fancy style>}
.
documentclass[12pt]{report}
usepackage[left=1.5in, right=1in, top=1in, bottom=1.5in]{geometry}
usepackage{setspace}
usepackage{amsbsy}
usepackage{fancyhdr}
usepackage{lipsum}
usepackage{graphicx}
usepackage{enumitem}
usepackage{textcomp}
usepackage{lscape}
usepackage{amsmath}
usepackage{calc}
newlength{depthofsumsign}
setlength{depthofsumsign}{depthof{$sum$}}
newlength{totalheightofsumsign}
newlength{heightanddepthofargument}
usepackage[rm,tiny]{titlesec} %added this to change the chapter title's font as default regular text font.
usepackage{pdflscape,booktabs}
usepackage[flushleft]{threeparttable}
renewcommandTPTtagStyle{textit}
usepackage[font=it,skip=0.5baselineskip]{caption}
%to put page numbers in the header
fancyhf{}
fancyhead[C]{thepage}
%fancyfoot[C]{fancyplain{plain style}{fancy style}}% <- to show the usage of fancyplain
pagestyle{fancyplain}% <- changed
titleformat{chapter}{normalfontcentering}{}{0pt}{}
titlelabel{}
titlespacing*{chapter}{0pt}{-20pt}{4pt}
setlength{headheight}{50pt} %to note where the header lies.
setlength{headsep}{15pt} %to set the distance between header and the first line after it.
renewcommand{headrulewidth}{0pt}
begin{document}
doublespacing
thispagestyle{empty}
begin{center}
vspace*{0.2in}
MY TITLE\
vspace*{0.4in}
by\
My name\
vspace*{1.4in}
singlespacing
A thesis submitted in partial fulfillment\
of the requirements for the degree\
doublespacing
of\
My degree\
in\
My discipline\
vspace*{1in}
MY UNIVERSITY\
University, Location\
vspace*{0.2in}
April 2019
end{center}
clearpage
thispagestyle{empty}
begin{center}
vspace*{1in}
textcopyright COPYRIGHT\
by\
My name\
2019\
All Rights Reserved
end{center}
cleardoublepage
pagenumbering{arabic}
setcounter{page}{1}
chapter{INTRODUCTION}
lipsum
end{document}
Result
answered 48 mins ago
esddesdd
59.4k34691
59.4k34691
(+1) I learned something new, and I commenting just to say, that after that I suppose the document will not have separateplain
page-style... but possibly the OP doesn't really care about this.
– koleygr
25 mins ago
add a comment |
(+1) I learned something new, and I commenting just to say, that after that I suppose the document will not have separateplain
page-style... but possibly the OP doesn't really care about this.
– koleygr
25 mins ago
(+1) I learned something new, and I commenting just to say, that after that I suppose the document will not have separate
plain
page-style... but possibly the OP doesn't really care about this.– koleygr
25 mins ago
(+1) I learned something new, and I commenting just to say, that after that I suppose the document will not have separate
plain
page-style... but possibly the OP doesn't really care about this.– koleygr
25 mins ago
add a comment |
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%2f477253%2fhow-to-remove-blank-page-before-my-new-report-chapter%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
1
Just remove
begin{center}
andend{center}
commands that include thechapter
command. Your chapter title will be centered anyway and this is what causes the problem... The general appearance of a sectioning command is defined by yourtitleformat
andtitlespacing
commands and will not be affected from environments likecenter
or similar that will just cause problems.– koleygr
2 hours ago
@koleygr, Thanks a lot! This worked to remove the blank page. But, the page number for the page with the chapter is still appearing in the footer rather than the header. All other pages have numbers in the header. Any way to fix this?
– Samyam Shrestha
2 hours ago
I added a solution as an answer because it was difficult to fit it in a comment... Feel free to ask corrections if something is not already as should be.
– koleygr
1 hour ago