1
\documentclass{article}
\title{Title}
\author{Name}
\date{}
\begin{document}
    \begin{titlepage}
      \maketitle
    \end{titlepage}
\end{document}

enter image description here

Hi, how can I write a title in a centre?

closed as unclear what you're asking by user36296, Stefan Pinnow, Troy, Bobyandbob, Milo Aug 6 '18 at 16:06

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • Maybe the second answer for this question could work? – chrisma Aug 4 '18 at 12:12
  • 3
    Horizontally one typically uses the center environment or \centering for multiple lines, or \makebox for a single line. Vertically, it depends on exactly what you mean by the center. \vspace*{\fill} before and after locates the center of the remaining space relative to everything else on the page. Tikz and tikzpagenodes can locate the center of the page or the center of the text area in an absolute sense. – John Kormylo Aug 4 '18 at 12:52
  • I mean to say that the chapter name may fix at center point where i draw a yellow line. – Junaid Khan Aug 5 '18 at 13:19
  • 1
    Could you please clarify your question? In your non-answer you talk about the chapter name. In your code example you use article class (which does not have chapters) and a title page? I'm confused what you are trying to do. – user36296 Aug 5 '18 at 13:31
  • You might be interested in the following: Vertically Center title page : Article – leandriis Aug 5 '18 at 13:31
0

If you want to use chapter you should change the type of class from \documentclass{article} to \documentclass{report} you could use the \usepackage{sectsty} to put the chapter title in the center.

\documentclass{report}

\usepackage{sectsty}
\chapterfont{\huge\centering}
\chaptertitlefont{\centering}

\begin{document}
\chapter{Related Work}
\end{document}

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