TeX - LaTeX Asked on March 15, 2021
I created my own .cls file for my thesis and I’m getting an error message when I specify line breaks in my chapter titles
Here is the section in the file that defines the chapter heading:
%----------------------------------------------------------------------%
% Chapter heading font size
%----------------------------------------------------------------------%
RequirePackage{sectsty}
chapternumberfont{normalsize}
chaptertitlefont{normalsize}
%----------------------------------------------------------------------%
% Title spacing
%----------------------------------------------------------------------%
RequirePackage{titlesec} % Adjust title headers
% Reduce spacing after section/subsection/subsubsections
titlespacingsection{0pt}{12pt plus 4pt minus 2pt}{0pt plus 2pt minus 2pt}
titlespacingsubsection{0pt}{12pt plus 4pt minus 2pt}{0pt plus 2pt minus 2pt}
titlespacingsubsubsection{0pt}{12pt plus 4pt minus 2pt}{0pt plus 2pt minus 2pt}
% Single spaced headers
titleformat{chapter} % command
[display] % shape
{color{UOFURED}centeringnormalfontLargebfseriesdoublespacing}
{MakeUppercase{chaptertitlename} Largethechapter}
{0pt} % separations
{MakeUppercase} % before
[] % After (leave blank)
%titleformat{chapter}[display]{centeringnormalfonthugebfseriessinglespacing}{chaptertitlename thechapter}{40pt}{huge}
titleformat{section}{centeringsinglespacingnormalfontLargebfseries}{thesection}{1em}{}
titleformat{subsection}{centeringsinglespacingnormalfontlargebfseries}{thesubsection}{1em}{}
titleformat{subsubsection}{centeringsinglespacingnormalfontnormalsizebfseries}{thesubsubsection}{1em}{}
Here is how I define a chapter so that the text is all caps
chapter{uppercase{Chapter title goes here}}
However, my University requires that long chapter titles need to be inverted pyramids. I’ve read you can do this by specifying line breaks like this:
chapter[This is a really long title that needs to be wrapped as an inverted pyramid]{This is a really long title that needs to be wrapped as an inverted pyramid}
I am getting an error message after compiling in ubuntu that says:
! TeX capacity exceeded, sorry [main memory size=5000000].
reserved@a #1#2->let #1#2reserved@a
l.8 ...ds to be wrapped as an inverted pyramid}
! ==> Fatal error occurred, no output PDF file produced!
would anyone know how to fix this?
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP