TeX - LaTeX Asked on January 24, 2021
If I use a structure like
def-{-minus-}
A-Bfootnote{A-B}
then the result is the expected A-minus-B
in the main text area, but the footnote only contains AB
.
I did more testing, it seems that the def-
declarations like the above are simply ignored in the footnotes.
Is there a way to fix this?
The above discussion makes it clear that redefining -
is a bad idea.
Nevertheless, I need "my versions" of some characters, and here is my solution: basically, it is in the flavour of defa-{-minus-}
mentioned above, but it reuses the one-letter literal command (I changed it to g
) for multiple characters:
usepackage{ifthen}
mathchardefmyhyphen="2D
newcommand{g}[1]{%
ifthenelse{equal{#1}-}{myhyphen}{}%
ifthenelse{equal{#1}=}{equiv}{}%
ifthenelse{equal{#1}+}{oplus}{}%
}
The result can be seen via $g+ g= g-$
: it suits my needs.
Answered by curious on January 24, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP