1

I'm a LaTeX newbie and my someone on my university has made a custom LaTeX class, and I'm using it to make a dissertation.

However, the space between the chapter title and the content is way too much. I tried go looking on the .cls file to change it, but no luck since I don't know much.

What should I look on the class files to change it, or a way to override that setting on my document?

  • 1
    Welcome to TeX.SX! Looking into my magic chrystal ball: Unclear -- I see nothing -- your class is hidden behind fog and filthy air ;-) Please provide more information. Side note: Custom template/classes are most times bad – user31729 Oct 14 '15 at 14:11
  • @ChristianHupfer I asked about possible ways that I can change the spacing... Don't know how to be more specific without posting the whole class here – SomethingBrandNewAwful Oct 14 '15 at 14:12
  • Well, is there a \LoadClass{book} command in your 'class' ? That would simplify the whole issue – user31729 Oct 14 '15 at 14:13
  • \LoadClass{report} – SomethingBrandNewAwful Oct 14 '15 at 14:14
  • 2
    You can provide a link to your class file. – user11232 Oct 14 '15 at 14:15
2

With help from the comments I found it, the class redefined @makechapterhead and I had to change \vspace

\def\@makechapterhead#1{%
 {%
 %  \noindent\rule{\textwidth}{1.7pt}\\\par
 \normalfont\ABNTchaptersize\ABNTchapterfont%
 \espaco{simples}%
 \vspace*{5pt}%
 \noindent%
 \parbox[b]{\textwidth}{%
   \parbox[t]{2ex}{\thechapter}%
   \parbox[t]{\textwidth-4ex-1ex}%
    {\interlinepenalty\@M\raggedright%
    \ifthenelse{\boolean{ABNTcapchap}}%
      {\MakeUppercase{#1}}%
      {#1}
  }%
\vspace*{0cm}
}\\[2pt]%
\vspace{10pt}%
}%
}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.