Skip to content

17/22: Kern title into left margin #18

@niluxv

Description

@niluxv

Another issue I noticed with the seventeen and twentytwo layouts is that the main title looks slightly indented compared to the course, author and date. This is not actually the case, but it looks this way since it is set in a much larger (and bold) font, so its characters have more white space before the actual letter shape.

For example, the issue is visible in both example files in #17, e.g. this file.

To solve this, you could kern the title a bit into the left margin, so that it becomes optically aligned with the other elements. (A different solution would be to change the design and actually indent the title a bit; being slightly off looks bad but significant indent would look just fine; however I assume you don't want to change the design, at least not to solve a technical issue.)

The problem is of course, how much kern? What looks best is font dependent but also depends on the first letter of the title. I think the "L" could do without kern, or maybe a -0.5pt kern, while I think the "A" looks good with -1pt kern. I don't have time to check with every letter, but I think something around -0.5pt would be an improvement from the status quo in most cases.

Example

Without kern (example code in #17, under the "Fix" header)

With -0.5pt kern:

\documentclass{report}

\usepackage{rutitlepage}

\newcommand\theauthor{John Doe}
\newcommand\thedate{Tomorrow}
\newcommand\thecourse{Master’s Thesis}
\newcommand\thetitle{A Very Very Long Title May Break Lines if it is Long Enough}

\begin{document}
    \newgeometry{left=25mm,top=25mm,right=15mm,bottom=10mm,hmarginratio=1:1}
    \begin{titlepage}%
        \null\vfill%
        \parindent0pt
        \textsc{\LARGE\thecourse}\\[1.5cm]
        \mbox{\hskip-0.5pt\parbox{\textwidth}{\raggedright\Huge\bfseries\thetitle}}%
        \\[4\baselineskip]
        {\Large\scshape\theauthor}\\[\baselineskip]
        {\large\thedate}
        \vfill\vfill

        \hfill
        \includegraphics[width=80mm]{rutitlepage-logo-cmyk.pdf}\\
    \end{titlepage}
    \restoregeometry
\end{document}

Output

(Note: this code also includes the \parbox with \raggedright fix from #17.) The \hskip-0.5pt performs the kern, but without the \mbox for some reason it won't apply the kern properly. (You could do the kern inside the \parbox, then you don't need the extra \mbox but it only applies the kern to the first line.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions