Cannot compile after putting table of contents The 2019 Stack Overflow Developer Survey Results Are InPutting table of contents in a page without other elementsResets page numbering after table of contentsPage number on the left with book classlist of figures and tables when there are no figures or tables?Cannot change fonts on Algorithms Table of Contents pageHow to show Mini table only sections in a chapter not other chapter?I cannot rename table of contentsTable of contents ignores chapters declared after a certain lineTable of contents after partsFncychap with Conny option cannot produce table of contents
Could JWST stay at L2 "forever"?
What is this 4-propeller plane?
Is this food a bread or a loaf?
Inline version of a function returns different value than non-inline version
Can the Protection from Evil and Good spell be used on the caster?
Landlord wants to switch my lease to a "Land contract" to "get back at the city"
What is the motivation for a law requiring 2 parties to consent for recording a conversation
Is there a name of the flying bionic bird?
Access elements in std::string where positon of string is greater than its size
How was Skylab's orbit inclination chosen?
How come people say “Would of”?
Patience, young "Padovan"
Can't find the latex code for the ⍎ (down tack jot) symbol
Idiomatic way to prevent slicing?
Carnot-Caratheodory metric
Why is my p-value correlated to difference between means in two sample tests?
How can I fix this gap between bookcases I made?
How long do I have to send payment?
CiviEvent: Public link for events of a specific type
Where to refill my bottle in India?
Is "plugging out" electronic devices an American expression?
Could a US political party gain complete control over the government by removing checks & balances?
Is domain driven design an anti-SQL pattern?
What can other administrators access on my machine?
Cannot compile after putting table of contents
The 2019 Stack Overflow Developer Survey Results Are InPutting table of contents in a page without other elementsResets page numbering after table of contentsPage number on the left with book classlist of figures and tables when there are no figures or tables?Cannot change fonts on Algorithms Table of Contents pageHow to show Mini table only sections in a chapter not other chapter?I cannot rename table of contentsTable of contents ignores chapters declared after a certain lineTable of contents after partsFncychap with Conny option cannot produce table of contents
This is my preamble:
documentclass[12pt]report
usepackage[left=1.5in, right=1in, top=1in,bottom=1.5in]geometry
usepackagesetspace
usepackageamsbsy
usepackagefancyhdr
usepackagelipsum
usepackagegraphicx
usepackageenumitem
usepackagetextcomp
usepackagelscape
usepackageamsmath
usepackagecalc
usepackage[rm,tiny]titlesec %added this to change the chapter title's font as default regular text font.
usepackagetitlesec
usepackagesectsty
sectionfontunderlinenormalfontnormalsizecentering
newlengthdepthofsumsign
setlengthdepthofsumsigndepthof$sum$
newlengthtotalheightofsumsign
newlengthheightanddepthofargument
usepackagepdflscape,booktabs
usepackage[flushleft]threeparttable
renewcommandTPTtagStyletextit
usepackage[font=it,skip=0.5baselineskip]caption % italic text for captions
usepackagetitletoc
usepackagehyperref
titlecontentschapter
[3pt] % left margin
%
contentsmargin0pt % numbered entry format
thecontentslabelenspace%
contentsmargin0ptlarge % unnumbered entry format
titlerule*[.99pc].contentspage % filler-page format (e.g dots)
[] % below code (e.g vertical space)
%to put page numbers as the header
fancyhf
fancyhead[C]thepage
pagestylefancy
titleformatchapternormalfontcentering0pt
titlelabel
titlespacing*chapter0pt-25pt4pt
titleformatsectionnormalfontcentering0pt
%koleygr: Redefining chapter to include thispagestylefancy
letoldchapterchapter
makeatletter
defchapter%
@ifstar@Starred@nonStarred%
def@Starred%
@ifnextchar[%
GenericWarningWarning: A starred section can not have parameters. I am going to ignore them!@StarredWith%
@StarredWithout%
def@StarredWith[#1]#2%
oldchapter*#2%
thispagestylefancy
def@StarredWithout#1
oldchapter*#1%
thispagestylefancy
def@nonStarred%
@ifnextchar[%
@nonStarredWith%
@nonStarredWithout%
def@nonStarredWith[#1]#2%
oldchapter[#1]#2%
thispagestylefancy
def@nonStarredWithout#1%
oldchapter#1%
thispagestylefancy
makeatother
interfootnotelinepenalty=10000
renewcommandcontentsnameTABLE OF CONTENTS
begindocument
I was using this same set of codes earlier, and it was working fine. Then I wanted to change the format of the titles, 'List of figures,' and 'List of tables' into all caps, i.e. "LIST OF FIGURES," and "LIST OF TABLES." So I used a bunch of codes. After they showed error, I undid everything and came back to the original state, but it stopped compiling.
Finally, I got rid of tableofcontents
code, and it compiled. But, now I cannot add the table of contents.
It is showing a ton of errors. Here is the screenshot:
Is there some defect in my codes, somewhere?
Thanks a lot!!
table-of-contents
add a comment |
This is my preamble:
documentclass[12pt]report
usepackage[left=1.5in, right=1in, top=1in,bottom=1.5in]geometry
usepackagesetspace
usepackageamsbsy
usepackagefancyhdr
usepackagelipsum
usepackagegraphicx
usepackageenumitem
usepackagetextcomp
usepackagelscape
usepackageamsmath
usepackagecalc
usepackage[rm,tiny]titlesec %added this to change the chapter title's font as default regular text font.
usepackagetitlesec
usepackagesectsty
sectionfontunderlinenormalfontnormalsizecentering
newlengthdepthofsumsign
setlengthdepthofsumsigndepthof$sum$
newlengthtotalheightofsumsign
newlengthheightanddepthofargument
usepackagepdflscape,booktabs
usepackage[flushleft]threeparttable
renewcommandTPTtagStyletextit
usepackage[font=it,skip=0.5baselineskip]caption % italic text for captions
usepackagetitletoc
usepackagehyperref
titlecontentschapter
[3pt] % left margin
%
contentsmargin0pt % numbered entry format
thecontentslabelenspace%
contentsmargin0ptlarge % unnumbered entry format
titlerule*[.99pc].contentspage % filler-page format (e.g dots)
[] % below code (e.g vertical space)
%to put page numbers as the header
fancyhf
fancyhead[C]thepage
pagestylefancy
titleformatchapternormalfontcentering0pt
titlelabel
titlespacing*chapter0pt-25pt4pt
titleformatsectionnormalfontcentering0pt
%koleygr: Redefining chapter to include thispagestylefancy
letoldchapterchapter
makeatletter
defchapter%
@ifstar@Starred@nonStarred%
def@Starred%
@ifnextchar[%
GenericWarningWarning: A starred section can not have parameters. I am going to ignore them!@StarredWith%
@StarredWithout%
def@StarredWith[#1]#2%
oldchapter*#2%
thispagestylefancy
def@StarredWithout#1
oldchapter*#1%
thispagestylefancy
def@nonStarred%
@ifnextchar[%
@nonStarredWith%
@nonStarredWithout%
def@nonStarredWith[#1]#2%
oldchapter[#1]#2%
thispagestylefancy
def@nonStarredWithout#1%
oldchapter#1%
thispagestylefancy
makeatother
interfootnotelinepenalty=10000
renewcommandcontentsnameTABLE OF CONTENTS
begindocument
I was using this same set of codes earlier, and it was working fine. Then I wanted to change the format of the titles, 'List of figures,' and 'List of tables' into all caps, i.e. "LIST OF FIGURES," and "LIST OF TABLES." So I used a bunch of codes. After they showed error, I undid everything and came back to the original state, but it stopped compiling.
Finally, I got rid of tableofcontents
code, and it compiled. But, now I cannot add the table of contents.
It is showing a ton of errors. Here is the screenshot:
Is there some defect in my codes, somewhere?
Thanks a lot!!
table-of-contents
1
Don't make people confused with so many codes. Please post a minimal but compilable code (not only the preamble) that reproduces your problem. Btw, please add the error message.
– JouleV
10 mins ago
Thanks. I edited my question.
– Samyam Shrestha
22 secs ago
add a comment |
This is my preamble:
documentclass[12pt]report
usepackage[left=1.5in, right=1in, top=1in,bottom=1.5in]geometry
usepackagesetspace
usepackageamsbsy
usepackagefancyhdr
usepackagelipsum
usepackagegraphicx
usepackageenumitem
usepackagetextcomp
usepackagelscape
usepackageamsmath
usepackagecalc
usepackage[rm,tiny]titlesec %added this to change the chapter title's font as default regular text font.
usepackagetitlesec
usepackagesectsty
sectionfontunderlinenormalfontnormalsizecentering
newlengthdepthofsumsign
setlengthdepthofsumsigndepthof$sum$
newlengthtotalheightofsumsign
newlengthheightanddepthofargument
usepackagepdflscape,booktabs
usepackage[flushleft]threeparttable
renewcommandTPTtagStyletextit
usepackage[font=it,skip=0.5baselineskip]caption % italic text for captions
usepackagetitletoc
usepackagehyperref
titlecontentschapter
[3pt] % left margin
%
contentsmargin0pt % numbered entry format
thecontentslabelenspace%
contentsmargin0ptlarge % unnumbered entry format
titlerule*[.99pc].contentspage % filler-page format (e.g dots)
[] % below code (e.g vertical space)
%to put page numbers as the header
fancyhf
fancyhead[C]thepage
pagestylefancy
titleformatchapternormalfontcentering0pt
titlelabel
titlespacing*chapter0pt-25pt4pt
titleformatsectionnormalfontcentering0pt
%koleygr: Redefining chapter to include thispagestylefancy
letoldchapterchapter
makeatletter
defchapter%
@ifstar@Starred@nonStarred%
def@Starred%
@ifnextchar[%
GenericWarningWarning: A starred section can not have parameters. I am going to ignore them!@StarredWith%
@StarredWithout%
def@StarredWith[#1]#2%
oldchapter*#2%
thispagestylefancy
def@StarredWithout#1
oldchapter*#1%
thispagestylefancy
def@nonStarred%
@ifnextchar[%
@nonStarredWith%
@nonStarredWithout%
def@nonStarredWith[#1]#2%
oldchapter[#1]#2%
thispagestylefancy
def@nonStarredWithout#1%
oldchapter#1%
thispagestylefancy
makeatother
interfootnotelinepenalty=10000
renewcommandcontentsnameTABLE OF CONTENTS
begindocument
I was using this same set of codes earlier, and it was working fine. Then I wanted to change the format of the titles, 'List of figures,' and 'List of tables' into all caps, i.e. "LIST OF FIGURES," and "LIST OF TABLES." So I used a bunch of codes. After they showed error, I undid everything and came back to the original state, but it stopped compiling.
Finally, I got rid of tableofcontents
code, and it compiled. But, now I cannot add the table of contents.
It is showing a ton of errors. Here is the screenshot:
Is there some defect in my codes, somewhere?
Thanks a lot!!
table-of-contents
This is my preamble:
documentclass[12pt]report
usepackage[left=1.5in, right=1in, top=1in,bottom=1.5in]geometry
usepackagesetspace
usepackageamsbsy
usepackagefancyhdr
usepackagelipsum
usepackagegraphicx
usepackageenumitem
usepackagetextcomp
usepackagelscape
usepackageamsmath
usepackagecalc
usepackage[rm,tiny]titlesec %added this to change the chapter title's font as default regular text font.
usepackagetitlesec
usepackagesectsty
sectionfontunderlinenormalfontnormalsizecentering
newlengthdepthofsumsign
setlengthdepthofsumsigndepthof$sum$
newlengthtotalheightofsumsign
newlengthheightanddepthofargument
usepackagepdflscape,booktabs
usepackage[flushleft]threeparttable
renewcommandTPTtagStyletextit
usepackage[font=it,skip=0.5baselineskip]caption % italic text for captions
usepackagetitletoc
usepackagehyperref
titlecontentschapter
[3pt] % left margin
%
contentsmargin0pt % numbered entry format
thecontentslabelenspace%
contentsmargin0ptlarge % unnumbered entry format
titlerule*[.99pc].contentspage % filler-page format (e.g dots)
[] % below code (e.g vertical space)
%to put page numbers as the header
fancyhf
fancyhead[C]thepage
pagestylefancy
titleformatchapternormalfontcentering0pt
titlelabel
titlespacing*chapter0pt-25pt4pt
titleformatsectionnormalfontcentering0pt
%koleygr: Redefining chapter to include thispagestylefancy
letoldchapterchapter
makeatletter
defchapter%
@ifstar@Starred@nonStarred%
def@Starred%
@ifnextchar[%
GenericWarningWarning: A starred section can not have parameters. I am going to ignore them!@StarredWith%
@StarredWithout%
def@StarredWith[#1]#2%
oldchapter*#2%
thispagestylefancy
def@StarredWithout#1
oldchapter*#1%
thispagestylefancy
def@nonStarred%
@ifnextchar[%
@nonStarredWith%
@nonStarredWithout%
def@nonStarredWith[#1]#2%
oldchapter[#1]#2%
thispagestylefancy
def@nonStarredWithout#1%
oldchapter#1%
thispagestylefancy
makeatother
interfootnotelinepenalty=10000
renewcommandcontentsnameTABLE OF CONTENTS
begindocument
I was using this same set of codes earlier, and it was working fine. Then I wanted to change the format of the titles, 'List of figures,' and 'List of tables' into all caps, i.e. "LIST OF FIGURES," and "LIST OF TABLES." So I used a bunch of codes. After they showed error, I undid everything and came back to the original state, but it stopped compiling.
Finally, I got rid of tableofcontents
code, and it compiled. But, now I cannot add the table of contents.
It is showing a ton of errors. Here is the screenshot:
Is there some defect in my codes, somewhere?
Thanks a lot!!
table-of-contents
table-of-contents
edited 36 secs ago
Samyam Shrestha
asked 13 mins ago
Samyam ShresthaSamyam Shrestha
495
495
1
Don't make people confused with so many codes. Please post a minimal but compilable code (not only the preamble) that reproduces your problem. Btw, please add the error message.
– JouleV
10 mins ago
Thanks. I edited my question.
– Samyam Shrestha
22 secs ago
add a comment |
1
Don't make people confused with so many codes. Please post a minimal but compilable code (not only the preamble) that reproduces your problem. Btw, please add the error message.
– JouleV
10 mins ago
Thanks. I edited my question.
– Samyam Shrestha
22 secs ago
1
1
Don't make people confused with so many codes. Please post a minimal but compilable code (not only the preamble) that reproduces your problem. Btw, please add the error message.
– JouleV
10 mins ago
Don't make people confused with so many codes. Please post a minimal but compilable code (not only the preamble) that reproduces your problem. Btw, please add the error message.
– JouleV
10 mins ago
Thanks. I edited my question.
– Samyam Shrestha
22 secs ago
Thanks. I edited my question.
– Samyam Shrestha
22 secs ago
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "85"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f484046%2fcannot-compile-after-putting-table-of-contents%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f484046%2fcannot-compile-after-putting-table-of-contents%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
Don't make people confused with so many codes. Please post a minimal but compilable code (not only the preamble) that reproduces your problem. Btw, please add the error message.
– JouleV
10 mins ago
Thanks. I edited my question.
– Samyam Shrestha
22 secs ago