As part of my document, I'm typing something like $A(.....)$ very often. For the benefits of typography, I would much prefer to have typed \mathcal{A}(...) instead, just so it looks a bit more professional. Like with the little hack for automatically changing the inversion of speech and quotation marks, is there a method to globally swap every instance of a capital A inside an equation to \mathcal{A} instead?
Asked
Active
Viewed 38 times
1
Brad
- 155
1 Answers
3
\documentclass{article}
\DeclareMathSymbol{A}{\mathalpha}{symbols}{`A}
\begin{document}
$ABC+BCA$
\end{document}
David Carlisle
- 757,742

Ain any other context as part of math elsewhere? – Werner Mar 11 '19 at 20:40A(...)into something like\Amacro{...}where you define\Amacroto take a single argument and output\mathcal{A}(#1), say, promoting consistent typography. – Werner Mar 11 '19 at 20:52A(*some stuff*). – Brad Mar 11 '19 at 21:04grepping stuff. There'sfarton Windows, otherwise most Unix-related systems providesgrepout-of-the-box to physically change content within a file. – Werner Mar 11 '19 at 21:08