How do I overwrite the default $l$ character so that it is substituted by $\ell$ throughout math mode?
(More generally, is there an easy way to make such symbol substitutions?)
|
This is similar to how
|
|||||||
|
|
There is if you are using Lyx or SWP. E.g., you can have SWP search for l in math (SWP is wysiwym) and replace it with \ell. It will do this and ignore l in text. |
|||||||
|
|
To do it via an external search-and-replace, you could use a script that I wrote called mathgrep. It's a perl script designed to do search and search-and-replace within maths sections of a LaTeX document. The main limitation of this script is that it doesn't regard dollars as valid maths delimiters - but then, no-one uses them, right? Actually, I wrote a script to deal with that as well, which I called debuck for some reason that escapes me now. (Oh yeah, I remember: dollar = buck.) |
|||||
|
|
I think your best plan is to do a search and replace. You'll need to use some kind of regular expression (or, as user714 notes, so set up that can search selectively within math). The advantage of altering the source is you avoid any nasty side issues. |
|||||
|

\mathbb Rcame about as a way to bold on the blackboard and is now standard. I actually think that just normal bold is more elegant, somehow. (I still use\mathbbsince that's what's expected.) – TH. Aug 19 '10 at 22:21