Mari Voipio
19. Mai 2016 um 12:45
On Thu, May 19, 2016 at 1:04 PM, Wolfgang Schuster

This kind of works. The box and the number are now on the same line,
but one of them - the number, I think - is offset and that looks
funny. Is there a trick that'd fix that?
1. Lower your graphic because it has margins around the lines which positions it too high.

\definesymbol[box3mm][{\offset[y=.25ex]{\externalfigure[box3mm]}}]

\starttext

\dontleavehmode\symbol[box3mm] 1

\stoptext



2. Use a box symbol which sits lower on the baseline.

\starttext

\dontleavehmode\symbol[square] 1

\stoptext


3. Use metapost to create your own box.

\startuseMPgraphic{box3mm}
    draw unitsquare scaled 3mm ;
\stopuseMPgraphic

\definesymbol[box3mm][{\useMPgraphic{box3mm}}]

\starttext

\dontleavehmode\symbol[box3mm] 1

\stoptext


Wolfgang