# \ulcorner without padding to letter

I'm trying to achieve this with \ulcorner:

But I'm just getting

with ^\ulcorner R.

Any ideas how I can get rid of the padding between the corner and the letter?

• – Werner Mar 12 '18 at 17:32
• @Werner Do you think the first one is made with framebox? – Cir0X Mar 12 '18 at 17:46
• you could add negative space such as \! – David Carlisle Mar 12 '18 at 18:20
• Probably not, since the rules have rounded edges. \framebox draws rules with flat ends. – Werner Mar 12 '18 at 18:20
• Are you looking for a general solution to write (say) \ulc{R} and have a \ulcorner as a prefix to R, but then have it extendable to (say) \urc{R} and have \urcorner as a suffix to R. – Werner Mar 12 '18 at 18:22

\documentclass{article}
\newcommand*{\ulcR}{\raisebox{1.5pt}{\rlap{$\ulcorner$}\kern.5pt}R}
$\ulcR$