0

I'm trying to achieve this with \ulcorner:

Goal

But I'm just getting

wrong

with ^\ulcorner R.

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

  • Somewhat related: How to choose which sides of the border to draw in a framebox? – 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
1

A solution depends on the used fonts, sizes, math style, ... Adjust the parameters accordingly.

\documentclass{article}
\usepackage{amssymb}
\newcommand*{\ulcR}{\raisebox{1.5pt}{\rlap{$\ulcorner$}\kern.5pt}R}
\begin{document}
\[ \ulcR \]
\end{document}

Result

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.