Skip to main content
Tweeted twitter.com/StackTeX/status/690812703745691648
added 96 characters in body
Source Link
bubba
  • 2.6k
  • 2
  • 18
  • 31

I have been using m \times n to denote the size of a matrix. But lately I've decided that it has too much space and doesn't look quite right (to me). Presumably the largish spaces are present because LaTeX treats \times as ana mathematical operator -- it thinks I'm writing $m$ multiplied by $n$.

So, I'd like to define a \by symbol, so that I can write m \by n instead of m \times n, and get reduced spacing. The obvious approach is to define \by to be \hspace{-0.1em}\times\hspace{-0.1em}, or something like that.

Does that seem like a good approach? I'm a bit worried about what will happen if I use this in superscripts.

Edit: I ended up using

\newcommand{\by}{\hspace{0.05em}{\times}\hspace{0.05em}} 

I have been using m \times n to denote the size of a matrix. But lately I've decided that it has too much space and doesn't look quite right (to me). Presumably the largish spaces are present because LaTeX treats \times as an operator -- it thinks I'm writing $m$ multiplied by $n$.

So, I'd like to define a \by symbol, so that I can write m \by n instead of m \times n, and get reduced spacing. The obvious approach is to define \by to be \hspace{-0.1em}\times\hspace{-0.1em}, or something like that.

Does that seem like a good approach? I'm a bit worried about what will happen if I use this in superscripts.

I have been using m \times n to denote the size of a matrix. But lately I've decided that it has too much space and doesn't look quite right (to me). Presumably the largish spaces are present because LaTeX treats \times as a mathematical operator -- it thinks I'm writing $m$ multiplied by $n$.

So, I'd like to define a \by symbol, so that I can write m \by n instead of m \times n, and get reduced spacing. The obvious approach is to define \by to be \hspace{-0.1em}\times\hspace{-0.1em}, or something like that.

Does that seem like a good approach? I'm a bit worried about what will happen if I use this in superscripts.

Edit: I ended up using

\newcommand{\by}{\hspace{0.05em}{\times}\hspace{0.05em}} 
Removed code that I was hoping would be typeset by MathJax.
Source Link
bubba
  • 2.6k
  • 2
  • 18
  • 31

Symbol for $m$m by $n$n matrix

I have been using m \times n to denote the size of a matrix. But lately I've decided that it has too much space and doesn't look quite right (to me). Presumably the largish spaces are present because LaTeX treats \times as an operator -- it thinks I'm writing $m$ multiplied by $n$.

So, I'd like to define a \by symbol, so that I can write m \by n instead of m \times n, and get reduced spacing. The obvious approach is to define \by to be $\text{\hspace{-0.1em}\times\hspace{-0.1em}}$, or something like that. This will give me

\[ m \times n \] 

instead of

\[ m \hspace{-0.1em}\times\hspace{-0.1em} n \] 

Does that seem like a good approach? I'm a bit worried about what will happen if I use this in superscripts.

Symbol for $m$ by $n$ matrix

I have been using m \times n to denote the size of a matrix. But lately I've decided that it has too much space and doesn't look quite right (to me). Presumably the largish spaces are present because LaTeX treats \times as an operator -- it thinks I'm writing $m$ multiplied by $n$.

So, I'd like to define a \by symbol, so that I can write m \by n instead of m \times n, and get reduced spacing. The obvious approach is to define \by to be $\text{\hspace{-0.1em}\times\hspace{-0.1em}}$, or something like that. This will give me

\[ m \times n \] 

instead of

\[ m \hspace{-0.1em}\times\hspace{-0.1em} n \] 

Does that seem like a good approach? I'm a bit worried about what will happen if I use this in superscripts.

Symbol for m by n matrix

I have been using m \times n to denote the size of a matrix. But lately I've decided that it has too much space and doesn't look quite right (to me). Presumably the largish spaces are present because LaTeX treats \times as an operator -- it thinks I'm writing $m$ multiplied by $n$.

So, I'd like to define a \by symbol, so that I can write m \by n instead of m \times n, and get reduced spacing. The obvious approach is to define \by to be \hspace{-0.1em}\times\hspace{-0.1em}, or something like that.

Does that seem like a good approach? I'm a bit worried about what will happen if I use this in superscripts.

Rollback to Revision 3
Source Link
Sigur
  • 38.4k
  • 10
  • 106
  • 212

I have been using m \times n to denote the size of a matrix. But lately I've decided that it has too much space and doesn't look quite right (to me). Presumably the largish spaces are present because LateXLaTeX treats \times as an operator -- it thinks I'm writing $m$$m$ multiplied by $n$$n$.

So, I'd like to define a \by symbol, so that I can write m \by n instead of m \times n, and get reduced spacing. The obvious approach is to define \by to be $\text{\hspace{-0.1em}\times\hspace{-0.1em}}$, or something like that. This will give me $$ m \hspace{-0.1em}\times\hspace{-0.1em} n $$ instead

\[ m \times n \] 

instead of $$ m \times n $$ Does

\[ m \hspace{-0.1em}\times\hspace{-0.1em} n \] 

Does that seem like a good approach? I'm a bit worried about what will happen if I use this in superscripts.

Sorry for the appearance of the question. I can't figure out why my math isn't getting typeset properly.

I have been using m \times n to denote the size of a matrix. But lately I've decided that it has too much space and doesn't look quite right (to me). Presumably the largish spaces are present because LateX treats \times as an operator -- it thinks I'm writing $m$ multiplied by $n$.

So, I'd like to define a \by symbol, so that I can write m \by n instead of m \times n, and get reduced spacing. The obvious approach is to define \by to be \hspace{-0.1em}\times\hspace{-0.1em}, or something like that. This will give me $$ m \hspace{-0.1em}\times\hspace{-0.1em} n $$ instead of $$ m \times n $$ Does that seem like a good approach? I'm a bit worried about what will happen if I use this in superscripts.

Sorry for the appearance of the question. I can't figure out why my math isn't getting typeset properly.

I have been using m \times n to denote the size of a matrix. But lately I've decided that it has too much space and doesn't look quite right (to me). Presumably the largish spaces are present because LaTeX treats \times as an operator -- it thinks I'm writing $m$ multiplied by $n$.

So, I'd like to define a \by symbol, so that I can write m \by n instead of m \times n, and get reduced spacing. The obvious approach is to define \by to be $\text{\hspace{-0.1em}\times\hspace{-0.1em}}$, or something like that. This will give me

\[ m \times n \] 

instead of

\[ m \hspace{-0.1em}\times\hspace{-0.1em} n \] 

Does that seem like a good approach? I'm a bit worried about what will happen if I use this in superscripts.

added 101 characters in body
Source Link
bubba
  • 2.6k
  • 2
  • 18
  • 31
Loading
added 38 characters in body
Source Link
Sigur
  • 38.4k
  • 10
  • 106
  • 212
Loading
added 103 characters in body
Source Link
bubba
  • 2.6k
  • 2
  • 18
  • 31
Loading
Source Link
bubba
  • 2.6k
  • 2
  • 18
  • 31
Loading