%%
%% The LaTeX Companion, 3ed
%%
%% Example 13-3-10 on page II-312 in "The tilde".
%%
%% Copyright (C) 2022 Frank Mittelbach
%%
%% It may be distributed and/or modified under the conditions
%% of the LaTeX Project Public License, either version 1.3c
%% of this license or (at your option) any later version.
%%
%% See
https://www.latex-project.org/lppl.txt for details.
%%
\documentclass{tlc3exa}
\pagestyle{empty}
\setcounter{page}{6}
\setlength\textwidth{165.0pt}
\setlength\parindent{10pt}
\tolerance=3000 % to allow the loose typesetting
%StartShownPreambleCommands
\usepackage[spanish,activeacute]{babel}
%StopShownPreambleCommands
\begin{document}
En español, la raya que abre incisos ~---como
este--- no debe quedar al final de~una línea.
\end{document}