From 796c8777c5370a4d91881d27d89ee622420552dc Mon Sep 17 00:00:00 2001 From: Ulrike Fischer Date: Wed, 10 Apr 2024 00:46:35 +0200 Subject: [PATCH] test nobreakspace --- experiments/nobreakspace.tex | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 experiments/nobreakspace.tex diff --git a/experiments/nobreakspace.tex b/experiments/nobreakspace.tex new file mode 100644 index 00000000..777bf5f9 --- /dev/null +++ b/experiments/nobreakspace.tex @@ -0,0 +1,17 @@ +\DocumentMetadata{uncompress,testphase={phase-III,title}} +\documentclass{article} +\ExplSyntaxOn +\pdf_object_new:n{obj-nbsp} +\pdf_object_write:nnn{obj-nbsp}{dict}{/ActualText~} +\DeclareRobustCommand{\nobreakspace}{% + \leavevmode\pdf_bdcobject:nn{Span}{obj-nbsp}\nobreak\pdffakespace\nobreak\ \pdf_emc:} +\ExplSyntaxOff +\title{blub} +\textwidth=3mm +\begin{document} +a b c + +a~b~c + +We~don't~want~line~breaks~here +\end{document}