Can I rename a standard LaTeX symbol and use the old one?

image

I've got myself into a stupid situation: I am writing a document about entropy, and decided to use \H as a macro for \mathbf{H}. But then I had a problem because I had written the name Erd\H{o}s elsewhere in the document.

I would very much like to use \H as my macro -- is there an alternative way to realize the Hungarian umlaut if I do? (Obviously a simple solution would be just to use \h or \HH or something instead, so this isn't an important problem, but I'd still be happy if there were a suitable dodge that would allow me the luxury of using \H.)

Change the command for \mathbf{H}. I'd use \bH, but you can choose anything that fancies you. Maybe a semantic one, such as \entropy, as has been suggested in comments.

If you want to live dangerously,



As a general rule, don't use \renewcommand{\foo}{...} unless you precisely know that this won't cause harm. The example I often use is

because I don't like the “closed” form of phi. A colleague of mine wrote a frantic email because he couldn't solve a LaTeX error: he did \renewcommand{\c}{...} and his coauthor for the particular paper had “Ş” in his name…

Ask AI
#1 #2 #3 #4 #5 #6 #7 #8 #9 #10 #11 #12 #13 #14 #15 #16 #17 #18 #19 #20 #21 #22 #23 #24 #25 #26 #27 #28 #29 #30 #31 #32 #33 #34 #35 #36 #37 #38 #39 #40 #41 #42 #43 #44 #45 #46 #47 #48 #49 #50 #51 #52 #53 #54 #55 #56 #57 #58 #59 #60 #61 #62 #63 #64 #65 #66 #67 #68 #69 #70