
Quero alinhar verticalmente o título e os nomes dos documentos na página de título. Meu LaTeX atual está assim:
\documentclass[a4paper]{article}
\title{ ... }}
\author{ ... }
\date{{ ... }}
\begin{document}
\begin{titlepage}
\maketitle
\end{titlepage}
\end{document}
Mas isso mostra um pouco o conteúdo na metade superior do documento. Quero centralizá-lo verticalmente.Esta postagempede para usar \vplace
. Mas não consigo descobrir como usar \vplace
na página de título.
tentei
\begin{vplace}[1]
\begin{titlepage}
\maketitle
\end{titlepage}
\end{vplace}
e também
\begin{vplace}[1]
\title{ ... }}
\author{ ... }
\date{{ ... }}
\end{vplace}
Mas está dando erro tipo Environment vplace undefined
. Parece que requer memoir
classe. Mas o verso não reconhece memoir
a classe do documento. Como posso conseguir o mesmo na classe de documento?
Responder1
O titling
pacote possui ferramentas para customizar o maketitle
comando. Aqui está um exemplo:
\documentclass[a4paper]{article}
\usepackage{showframe}
\renewcommand{\ShowFrameLinethickness}{0.3pt}
\usepackage{titling}
\setlength{\droptitle}{-9.5ex}
\renewcommand{\maketitlehooka}{\vfill\bfseries}
\renewcommand{\maketitlehookb}{\normalfont}
\renewcommand{\maketitlehookd}{\vfill\clearpage}
\title{The Quangle-Wangle’s Hat}
\author{Edward Lear}
\date{(1876)}
\begin{document}
\begin{titlingpage}
\maketitle
\end{titlingpage}
\end{document}
Responder2
Pessoalmente, eu gostaria, TiKz
já que há melhor controle sobre o alinhamento (minha perspectiva) e o código de cálculo é mais fácil de compreender para mim - para a TiKz
opção, consulte a edição
Centralizar verticalmente a página de título: Artigo
\documentclass[]{article}
\title{Project Title}
\date{2016-31-01}
\author{Author Name}
%\usepackage[showframe]{geometry}
\usepackage{titling}
\renewcommand\maketitlehooka{\null\mbox{}\vfill}
\renewcommand\maketitlehookd{\vfill\null}
\begin{document}
\begin{titlingpage}
\maketitle
\end{titlingpage}
\end{document}
EDITAR --- página de título com tikz
Formatando uma página de título, usando Tikz
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{calc}
\begin{document}
\begin{titlepage}
\begin{tikzpicture}[remember picture, overlay]
\draw[line width = 2pt] ($(current page.north west) + (1in,-1in)$)
rectangle ($(current page.south east) + (-1in,1in)$);
\draw[line width = 1pt, blue] ($(current page.center) + (-1in,0in)$) --
($(current page.center) + (1in,0in)$)node[pos=0.5,above](){%
\textbf{\LARGE Escola Secundária Domingos Sequeira}\\[4.5cm]
};
\end{tikzpicture}
\vfill
% Bottom of the page
\centering{\bf \large \today}
\end{titlepage}
\end{document}