I've been struggling with titlingpage
and Memoir
a few hours, trying to make the document title have equal linespacing between its lines when using \\
.
The code is:
\documentclass[10pt,a4paper,oneside]{memoir}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[brazil]{babel} %Hifenização em português
\title{Estudo e modelagem de \\ soluções de otimização discreta para \\ grades horárias}
\newcommand{\subtitle}{
Trabalho de Conclusão do Curso de\\[-5pt]
Bacharelado em Ciência da Computação
}
%flushright alinha a direita
%DoubleSpacing, ver pag. 48 manual memoir
\pretitle {\begin{DoubleSpace} \begin{flushright} \begin{huge} \scshape}
%sffamily = sans serif
%tamanho grande = \Large
\posttitle {\end{huge} \\[1cm] \sffamily \Large \subtitle \end{flushright} \end{DoubleSpace}}
\begin{document}
\begin{titlingpage}
\maketitle
\end{titlingpage}
\end{document}
The result:
It has a small, but evident, difference in vertical space between lines, could you help me get rid of that ?
Thanks in advance.
EDIT (solved!):
After applying \strut
as suggested!
\strut
on each line. This is a box of zero width and height that extends just above and below the baseline.