Text FormattingCenter Title Page?

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
dubhousing
Posts: 2
Joined: Tue Sep 21, 2010 6:18 am

Center Title Page?

Post by dubhousing »

Hello,

I'm trying to keep the section numberings of the document class article, but also have the title page centered as in report, but with extra text centered at the bottom (I don't know how to align text vertically). Can I do this, or should I type my paper as an article and then add in a title page later? I mostly don't want my section numbers to start with 0.1, that's all.

Here is my code:

Code: Select all

\documentclass[12pt]{article}
\usepackage[english]{babel}
\TeXXeTstate=1
\usepackage{bidi} 
\usepackage{fontspec,xltxtra,xunicode}
\usepackage[margin=1in]{geometry}
\geometry{letterpaper}
\usepackage{fancyhdr}
\usepackage[style=verbose-trad2,natbib=true]{biblatex}
\usepackage{setspace}
\usepackage{times}


\begin{document}
\newfontfamily{\H}[Scale=1.3,Script=Hebrew]{SBL Hebrew}
%\setRL {\H ... }
%\setLR


\title{Title}
\author{Author}
\date{\today}
\maketitle


\fancyhead{}
\fancyfoot{}
\thispagestyle{fancy}

\renewcommand{\headrulewidth}{0pt}

\newpage
\setcounter{page}{1}
\section{The first section}
\subsection{The first subsection}
Last edited by dubhousing on Thu Sep 23, 2010 2:45 am, edited 3 times in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

achim
Posts: 49
Joined: Wed Aug 05, 2009 2:29 pm

Center Title Page?

Post by achim »

I personally only work with the article class.
You can build / design a title page on your own. (Try the code below and change it to your liking)
I recently came across this document. That should give you some ideas as to what else you could do with the title page.

In order to center (or generally place) text vertically on a page you can work with \\[lengthwithunit], \vspace{lengthwithunit} or \vfill (there certainly are even more options...). So for example:

Code: Select all

\documentclass[10pt,a4paper]{article}
\begin{document}

% This is the title page...
\thispagestyle{empty}
\vfill

\begin{center}
	\Huge{\bf A nice and pretty title}\\[1.5cm]
	
	\large{\bf Maybe a subtitle?}\\
	\vspace{1in}
	\textbf{Author One*, Author Two}\\[1ex]
	\scriptsize{\today}
\end{center}

\vfill

\hrule
\begin{abstract}
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\\

\small\emph{\texttt{Keywords:} Lorem, Ipsum}
\end{abstract}
\hrule

\vfill

\pagebreak

\section{Introduction}

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

\end{document}
Cheers
OS: Kubuntu
Distribution: TexLive
Editor: Kile
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Center Title Page?

Post by localghost »

Just use the titlepage option for the document class and the environment of the same name. It would also allow to create a title page on your own as suggested in the already mentioned titlepages document.

In your code I seem to see some contradictions. You seem to use XeTeX but you are loading packages that are made LaTeX. Furthermore you are loading the obsolete package times [1]. This package is also not for use with XeTeX.

[1] View topic: Obsolete packages and document classes - Avoid usage!


Best regards and welcome to the board
Thorsten
dubhousing
Posts: 2
Joined: Tue Sep 21, 2010 6:18 am

Re: Center Title Page?

Post by dubhousing »

achim: I saw that document before, but when I tried to use the code, it didn't work for some reason. I think I didn't include something necessary in the preamble...but I don't know what.
But this code is very helpful. I found that I can center the title page just by including \documentclass[12pt,titlepage]{article}, but now I can't include my abstract on the bottom along with this. Alternatively, I will probably need a university/professor name and so on at the bottom of the title page.
Post Reply