Text FormattingUnsure about hyphen spacing between some words

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
latex_fun
Posts: 6
Joined: Mon Jun 16, 2025 11:00 am

Unsure about hyphen spacing between some words

Post by latex_fun »

Hi again Stefan,
I'm unsure about the spacing latex allocates between hyphenated words for some cases.
For some letter combinations, the space following the hyphen up to the start of the next letter seems excessive, e.g. Trope-Tic (not a real phrase, just made it up).
Questions:
1. Has latex got it right / am I looking at it wrong?
I think latex is dropping a line from the left edge of the T to the baseline and saying the hyphen is not allowed in that space. This might be formally correct, but to my untrained eye it's not aesthetically pleasing. It looks a little amateur / unbalanced.
2. If latex is incorrect for these cases, so the letter following the hyphen should be brought closer to the right edge of the hyphen, how would I do that?
Thanks

over-the-top MWE:

Code: Select all

\documentclass{scrartcl}
\usepackage{float}
\usepackage{appendix}
\usepackage{braket}
\usepackage{fancyvrb}
\usepackage{graphicx}
\usepackage{listings}
\usepackage{pdfpages}
\usepackage{mathrsfs}
\usepackage{eufrak}
\usepackage{yfonts}
\usepackage{lmodern}
\usepackage[english]{babel}
\usepackage[autostyle]{csquotes}
\usepackage{changepage}
\usepackage{blindtext}
\usepackage{etoolbox}
\setcounter{secnumdepth}{4}
\lstset{language={[LaTeX]TeX},
  escapeinside={{(*@}{@*)}},
  gobble=0,
  stepnumber=1,numbersep=5pt,
  numberstyle={\footnotesize\color{gray}},
  breaklines=true,
  framesep=5pt,
  basicstyle=\small\ttfamily,
  showstringspaces=false,
  keywordstyle=\ttfamily\textcolor{blue},
  stringstyle=\color{orange},
  commentstyle=\color{black},
  rulecolor=\color{gray!10},
  breakatwhitespace=true,
  showspaces=false,
  backgroundcolor=\color{gray!15}}

\listfiles
\title{Terrible layout Trope-Tic}
\author{Happy Author}
\date{End of the World}

\listfiles
\begin{document}
\pagenumbering{gobble}
\begin{titlepage}
  \makeatletter
  \centering
      {\Huge\bfseries\sffamily\@title} \par
      {\Large\sffamily trope-Tick no-good hyphen spacing} \par
      {\Large\bfseries\@author}
        \makeatother
          \vfill
          \thispagestyle{empty}
\end{titlepage}

\pagenumbering{arabic}
\section{Not-so-bad hyphen spacing}
Hyphen spacing ok for some word combinations, not sure about others.
\end{document}
Last edited by latex_fun on Wed Jul 02, 2025 1:06 pm, edited 1 time 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.

Stefan Kottwitz
Site Admin
Posts: 10337
Joined: Mon Mar 10, 2008 9:44 pm

Re: Unsure about hyphen spacing between some words

Post by Stefan Kottwitz »

That is not really a LaTeX issue but a kerning issue of the font, which should contains corrections for combinations of characters/glyphs. For example, with kpfonts, it looks a bit better.

You can use a small manual quick fix like Trope-\!Tic:

Code: Select all

\documentclass{scrartcl}
\title{Terrible layout Trope-\!Tic}
\author{Happy Author}
\date{End of the World}
\begin{document}
\begin{titlepage}
  \makeatletter
  \centering
      {\Huge\bfseries\sffamily\@title} \par
      {\Large\sffamily trope-\!Tick no-good hyphen spacing} \par
      {\Large\bfseries\@author}
        \makeatother
          \vfill
          \thispagestyle{empty}
\end{titlepage}
\end{document}
Stefan
LaTeX.org admin
latex_fun
Posts: 6
Joined: Mon Jun 16, 2025 11:00 am

Re: Unsure about hyphen spacing between some words

Post by latex_fun »

Hi Stefan,
Thanks, that's perfect, you're awesome!
Kind regards
Post Reply