2

I'm trying to format my thesis summary title, but the result is not very appealing. Here's the code:

\chapter*{\parbox{\linewidth}{\centering A very long thesis title about some very important stuff and a bit longer and a little more longer}}
\addcontentsline{toc}{chapter}{Summary}
\begin{center}
    John Smith

    \large Summary
\end{center}
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

I'm using the report documentclass. And the result is:

a busy cat

Doesn't look too bad, but the spacing between name and title is a bit too much. Can I somehow reduce that spacing for only this chapter?

Or alternatively, is there a better way to make a summary chapter?

1
  • This distance doesn't look to big :-). It can be reduced with ``\vspace<desired amount>} before your name.
    – Zarko
    May 24 '15 at 11:18
1

You can add the name and the subtitle to the \chapter* command; adjust the dimensions in the definition of \summary until you're satisfied.

\documentclass{report}
\usepackage{geometry}
\geometry{letterpaper,margin=1in}
\usepackage{newtxtext}

\newcommand{\summary}[2]{%
  \chapter*{%
    \parbox{\textwidth}{%
      \centering
      #1\\[1.5ex]% the title and the separation
      \normalfont\normalsize
      #2\\[2ex]% the author and the separation
      \large Summary
    }%
  }%
  \addcontentsline{toc}{chapter}{Summary}%
}

\begin{document}

\summary{A very long thesis title about some very important stuff
         and a bit longer and a little more longer}
        {John Smith}

Some text follows

\end{document}

enter image description here

3
  • Does'nt this obscure the intended markup? (i.e. formatting the thesis title as a \chapter, meshing the author name together with the summary heading.) Or am I missing something?
    – Ruben
    Jul 12 '15 at 12:45
  • @Ruben This is for a special application.
    – egreg
    Jul 12 '15 at 13:15
  • For a collection of several theses in one document? (Or why would one code the thesis title into a \chapter*?)
    – Ruben
    Jul 12 '15 at 23:35
0

Yes, there is a better way to include a summary. You can use the abstract environment and \renewcommand the \abstractname:

\documentclass[11pt]{article}
\usepackage{lipsum}
\usepackage{newtxtext}
\usepackage[letterpaper,margin=3.1415cm]{geometry}
\usepackage{etoolbox}

\makeatletter
\AtBeginDocument{\preto\@title{\bfseries}}% bold thesis title
\makeatother

\renewcommand{\abstractname}{Summary}

\title{A very long thesis title about some very important stuff and a bit longer and a little more longer}
\author{John Smith}
\date{}

\begin{document}
\maketitle

\addcontentsline{toc}{section}{Summary}
\begin{abstract}
  \lipsum
\end{abstract}
\end{document}

The spacing here should be like what you were looking for by default.

output

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.