# How to create new symbols like these with codes only?

I need some new symbols and I don't have any idea how to create them. I tried to find out if these symbols were already in a LaTeX package but they weren't. So finally I ask here.

Every answer will be very helpful for me because I am a novice with using TeX.

The commands I want are going to be used in math mode. I want three commands, but two of them are just variants of the other called \lrod{ }. The name comes from the dowsing tool 'L-rod', grabbed by left hand.

1. \lrod{ }. The bar whose left tip bent down perpendicularly. See the image below.
2. \rrod{ }. The right-side version of \lrod{ }.
3. \stapler{ }. The both-side version of \lrod{ }.

\lrod{ } takes as an argument a letter or a string of letters. Then it gives us the (string of) letter(s) covered by the 'lefthand L-rod' of the appropriate horizontal length above it. That is, if I type

\end{document}


You can customize the looks of it by changing the definitions of the parameters.

• Thank you very much. By studying your code I will be able to do some symbol-creation myself. Nov 11, 2020 at 10:10