Error with titleformat command after inserting TOC
up vote
0
down vote
favorite
MWE:
documentclass{custom}
usepackage[utf8]{inputenc}
usepackage{amsfonts,amssymb,amsbsy,amsmath}
usepackage{tocloft}
usepackage{times}
usepackage{titlesec, titletoc}
%%titleformat{command}[shape]{format}{label}{sep}{before-code}[after-code]
titleformat{paragraph}[runin]{normalsize rmfamily}{theparagraph.}{1em}{}
titleformat{section}{centeringnormalsize}{ARTICLE thesection}{1em}{uppercase} %
titleformat{subsection}[runin]{normalsize rmfamily}{Section thesubsection.}{1em}{underline}[. ;]
titleformat{subsubsection}[runin]{normalsize rmfamily}{thesubsubsection}{1em}{}
renewcommandcftsecfont{ARTICLE uppercase}
renewcommandcftsubsecfont{Section }
begin{document}
%% tableofcontents % Works until I uncomment this line
section{Defined terms; rules of construction}
section{Organization of partnership}
subsection{Formation}
subsection{Name}
subsection{Certificates and licenses}
subsubsection{Optional}
end{document}
MWE output (using overleaf):
Notes:
Based on compile errors, the problem lies here I believe. Something to do with missing {}s.
titleformat{section}{centeringnormalsize}{ARTICLE thesection}{1em}{uppercase} %
titleformat{subsection}[runin]{normalsize rmfamily}{Section thesubsection.}{1em}{underline}[. ;]
Desired output (using overleaf):
Which I achieve unless I try inserting a TOC. Overleaf allows you to view this output with compile errors. But attempting to export to PDF via LyX you get: There was an error opening this document. The file is damaged and could not be repaired
.
table-of-contents formatting titlesec tocloft titletoc
New contributor
add a comment |
up vote
0
down vote
favorite
MWE:
documentclass{custom}
usepackage[utf8]{inputenc}
usepackage{amsfonts,amssymb,amsbsy,amsmath}
usepackage{tocloft}
usepackage{times}
usepackage{titlesec, titletoc}
%%titleformat{command}[shape]{format}{label}{sep}{before-code}[after-code]
titleformat{paragraph}[runin]{normalsize rmfamily}{theparagraph.}{1em}{}
titleformat{section}{centeringnormalsize}{ARTICLE thesection}{1em}{uppercase} %
titleformat{subsection}[runin]{normalsize rmfamily}{Section thesubsection.}{1em}{underline}[. ;]
titleformat{subsubsection}[runin]{normalsize rmfamily}{thesubsubsection}{1em}{}
renewcommandcftsecfont{ARTICLE uppercase}
renewcommandcftsubsecfont{Section }
begin{document}
%% tableofcontents % Works until I uncomment this line
section{Defined terms; rules of construction}
section{Organization of partnership}
subsection{Formation}
subsection{Name}
subsection{Certificates and licenses}
subsubsection{Optional}
end{document}
MWE output (using overleaf):
Notes:
Based on compile errors, the problem lies here I believe. Something to do with missing {}s.
titleformat{section}{centeringnormalsize}{ARTICLE thesection}{1em}{uppercase} %
titleformat{subsection}[runin]{normalsize rmfamily}{Section thesubsection.}{1em}{underline}[. ;]
Desired output (using overleaf):
Which I achieve unless I try inserting a TOC. Overleaf allows you to view this output with compile errors. But attempting to export to PDF via LyX you get: There was an error opening this document. The file is damaged and could not be repaired
.
table-of-contents formatting titlesec tocloft titletoc
New contributor
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
MWE:
documentclass{custom}
usepackage[utf8]{inputenc}
usepackage{amsfonts,amssymb,amsbsy,amsmath}
usepackage{tocloft}
usepackage{times}
usepackage{titlesec, titletoc}
%%titleformat{command}[shape]{format}{label}{sep}{before-code}[after-code]
titleformat{paragraph}[runin]{normalsize rmfamily}{theparagraph.}{1em}{}
titleformat{section}{centeringnormalsize}{ARTICLE thesection}{1em}{uppercase} %
titleformat{subsection}[runin]{normalsize rmfamily}{Section thesubsection.}{1em}{underline}[. ;]
titleformat{subsubsection}[runin]{normalsize rmfamily}{thesubsubsection}{1em}{}
renewcommandcftsecfont{ARTICLE uppercase}
renewcommandcftsubsecfont{Section }
begin{document}
%% tableofcontents % Works until I uncomment this line
section{Defined terms; rules of construction}
section{Organization of partnership}
subsection{Formation}
subsection{Name}
subsection{Certificates and licenses}
subsubsection{Optional}
end{document}
MWE output (using overleaf):
Notes:
Based on compile errors, the problem lies here I believe. Something to do with missing {}s.
titleformat{section}{centeringnormalsize}{ARTICLE thesection}{1em}{uppercase} %
titleformat{subsection}[runin]{normalsize rmfamily}{Section thesubsection.}{1em}{underline}[. ;]
Desired output (using overleaf):
Which I achieve unless I try inserting a TOC. Overleaf allows you to view this output with compile errors. But attempting to export to PDF via LyX you get: There was an error opening this document. The file is damaged and could not be repaired
.
table-of-contents formatting titlesec tocloft titletoc
New contributor
MWE:
documentclass{custom}
usepackage[utf8]{inputenc}
usepackage{amsfonts,amssymb,amsbsy,amsmath}
usepackage{tocloft}
usepackage{times}
usepackage{titlesec, titletoc}
%%titleformat{command}[shape]{format}{label}{sep}{before-code}[after-code]
titleformat{paragraph}[runin]{normalsize rmfamily}{theparagraph.}{1em}{}
titleformat{section}{centeringnormalsize}{ARTICLE thesection}{1em}{uppercase} %
titleformat{subsection}[runin]{normalsize rmfamily}{Section thesubsection.}{1em}{underline}[. ;]
titleformat{subsubsection}[runin]{normalsize rmfamily}{thesubsubsection}{1em}{}
renewcommandcftsecfont{ARTICLE uppercase}
renewcommandcftsubsecfont{Section }
begin{document}
%% tableofcontents % Works until I uncomment this line
section{Defined terms; rules of construction}
section{Organization of partnership}
subsection{Formation}
subsection{Name}
subsection{Certificates and licenses}
subsubsection{Optional}
end{document}
MWE output (using overleaf):
Notes:
Based on compile errors, the problem lies here I believe. Something to do with missing {}s.
titleformat{section}{centeringnormalsize}{ARTICLE thesection}{1em}{uppercase} %
titleformat{subsection}[runin]{normalsize rmfamily}{Section thesubsection.}{1em}{underline}[. ;]
Desired output (using overleaf):
Which I achieve unless I try inserting a TOC. Overleaf allows you to view this output with compile errors. But attempting to export to PDF via LyX you get: There was an error opening this document. The file is damaged and could not be repaired
.
table-of-contents formatting titlesec tocloft titletoc
table-of-contents formatting titlesec tocloft titletoc
New contributor
New contributor
New contributor
asked 25 mins ago
Jalep
63
63
New contributor
New contributor
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Jalep is a new contributor. Be nice, and check out our Code of Conduct.
Jalep is a new contributor. Be nice, and check out our Code of Conduct.
Jalep is a new contributor. Be nice, and check out our Code of Conduct.
Jalep 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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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%2f464248%2ferror-with-titleformat-command-after-inserting-toc%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown