0

I'm using the latex class report.

As I do not want to have heavy style for the chapters like Lenny Sonny. I use the following:

\usepackage{titlesec}
\newcommand{\hsp}{\hspace{20pt}}
\titleformat{\chapter}[hang]{\Huge\bfseries}{\thechapter. }{0pt}{\Huge\bfseries}

So I am quite happy when I create a chapter. However, for the chapter of the appendix I do not want to have such a huge space between the title and the top of the page [see image]. Hence, my question is: for each title of chapters in the appendix, how to put the title [title of appendix only) more up?

enter image description here

0

1 Answer 1

1

I borrowed my response from a discussion in another Stack Exchange thread and modified it based on how I understand your question. Maybe looking at this can also be helpful: How to move the chapter title upwards on page?

But here is an MWE based on the information you provided. I hope it is what you are looking for.

\documentclass[12pt]{report}

\usepackage{fullpage}
\usepackage{blindtext}

\usepackage{titlesec}
\newcommand{\hsp}{\hspace{20pt}}
\titleformat{\chapter}[hang]{\Huge\bfseries}{\thechapter. }{0pt}{\Huge\bfseries}

\begin{document}

\chapter{Chapter 1}
\Blindtext

\appendix

\makeatletter
\renewcommand{\@makechapterhead}[1]{%
    {\noindent\raggedright\normalfont% Alignment and font reset
        \huge\bfseries \@chapapp\space\thechapter~~#1\par\nobreak}% Formatting
    \vspace{\baselineskip}% ...just a little space
}
\makeatother

\chapter{Move Up}
\Blindtext

\end{document}
2
  • Hi Jennifer, thanks so much it is what I look for.
    – S12000
    Jul 27, 2019 at 13:15
  • 1
    No problem! Happy to help!
    – Jennifer
    Jul 27, 2019 at 13:35

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.