Things only #LaTeX can do:
If you want to use a properly displayed # symbol (for C#), you "only" need to include a few hundreds lines of code… no problem… 🤷

tex.stackexchange.com/a/44717/

#csharp

@rugk Just escape the hash character: C\# should do the trick. Your code seems to draw an new glyph.

@kirschwipfel @rugk yes, C\# is the correct way. If you don't like how it looks, change font. The linked answer is just funny way how to draw a character. The fact that you can do such things in LaTeX doesn't meant that you have to. There are always easier ways.

@michal_h21 @rugk @kirschwipfel The # symbol becomes quite a disaster when you need to pass it in an argument to a custom command that prints the # and also sends it to another command where # must be unescaped (like \url{}). In that case, it's broken if you pass "\#" and also if you pass "#"

Follow

@kirschwipfel @rugk @michal_h21 Try writing a custom command that uses \href and also creates a footnote of the URL. The "#" and "_" chars and a few others need some quite bizarre hacks to work.

Sign in to participate in the conversation
Mastodon 🔐 privacytools.io

Fast, secure and up-to-date instance. PrivacyTools provides knowledge and tools to protect your privacy against global mass surveillance.

Website: privacytools.io
Matrix Chat: chat.privacytools.io
Support us on OpenCollective, many contributions are tax deductible!