[texhax] Unicode Replacement Character in Standard TeX

Philip Taylor P.Taylor at Rhul.Ac.Uk
Fri Jan 16 10:30:50 CET 2015

Good morning Doug --

> This is helpful and shows how to solve the problem similarly to the
> earlier solution, using the \llap (left overlap) macro.  But this
> doesn't quite work visually, because the lozenge is too narrow to
> hold a question mark.

How odd.  In my environment (TeX Live 2014, Windows 7 Enterprise), a 
7-point CMR "?" fits perfectly in the default 10-point AMS black 
lozenge; can you post a screen-shot of yours so that I can see how it 
differs ?   Mine can be seen at :

> Plus there was some overlap when two or more
> are adjacent.

Ah, that I confess I did /not/ try ...  It would occur because I failed 
to properly restore the /a priori/ x-coordinate after the llap; 
corrected in the code below.

> So I tried it with an exclamation point, and after
> some fussing to get things kerned and centered, I though this looked
> pretty good:
> $\blacklozenge\mkern-3.4mu\llap{\raise-.15ex\hbox{\textcolor{white}{!}}}\mkern2.5mu$

And that (in my environment) really pushes the envelope; see :


>  Many thanks.  Both solutions are proving useful.

You are most welcome.
** Phil.
Revised code :

\documentclass [a4paper]{minimal}
\usepackage [dvipsnames]{xcolor}
\usepackage {amssymb}

\font \cmr = cmr7
\def \missing {$\blacklozenge \mkern -2,5mu \llap {\hbox {\textcolor 
{white} {\cmr ?}}}\mkern 2,5 mu$}


\missing \missing \missing




More information about the texhax mailing list