Skip to main content

Ways to automatically insert a space after a latexLaTeX command (inserted by an auctexAucTeX shortcut, e.g. `g) if the next keystroke is a letter

With auxtexAucTeX, one can insert many latexLaTeX commands using shortcuts.

For example in a math environment (e.g., between $ $), the shortcut `g `g insert \gamma\gamma. Normally right after \gamma\gamma if I would like to type a letter I should make a space, for example $\gamma a=1$$\gamma a=1$, but if I would like to type a number, a symbol or another latex command, it is not necessary, for example $\gamma\alpha=1$ or $\gamma*1=\gamma$$\gamma\alpha=1$ or $\gamma1=\gamma$$\gamma*1=\gamma$ or $\gamma1=\gamma$, or $\gamma^1=\gamma$$\gamma^1=\gamma$.

Is there a way in auctexAucTeX to insert a space right after a latex command (inserted by an auctexAucTeX shortcut, e.g. `g `g) if the next keystroke is a letter?

I think this can significantly increase the speed of typing, because the space should be inserted anyway.

I have added the requirement inserted by an auctexAucTeX shortcut to avoid the complicated situations like \leq\leq and \leqslant\leqslant.

Ways to automatically insert a space after a latex command (inserted by an auctex shortcut, e.g. `g) if the next keystroke is a letter

With auxtex, one can insert many latex commands using shortcuts.

For example in a math environment (e.g., between $ $), the shortcut `g insert \gamma. Normally right after \gamma if I would like to type a letter I should make a space, for example $\gamma a=1$, but if I would like to type a number, a symbol or another latex command, it is not necessary, for example $\gamma\alpha=1$ or $\gamma*1=\gamma$ or $\gamma1=\gamma$, or $\gamma^1=\gamma$.

Is there a way in auctex to insert a space right after a latex command (inserted by an auctex shortcut, e.g. `g) if the next keystroke is a letter?

I think this can significantly increase the speed of typing, because the space should be inserted anyway.

I have added the requirement inserted by an auctex shortcut to avoid the complicated situations like \leq and \leqslant.

Ways to automatically insert a space after a LaTeX command (inserted by an AucTeX shortcut, e.g. `g) if the next keystroke is a letter

With AucTeX, one can insert many LaTeX commands using shortcuts.

For example in a math environment (e.g., between $ $), the shortcut `g insert \gamma. Normally right after \gamma if I would like to type a letter I should make a space, for example $\gamma a=1$, but if I would like to type a number, a symbol or another latex command, it is not necessary, for example $\gamma\alpha=1$ or $\gamma*1=\gamma$ or $\gamma1=\gamma$, or $\gamma^1=\gamma$.

Is there a way in AucTeX to insert a space right after a latex command (inserted by an AucTeX shortcut, e.g. `g) if the next keystroke is a letter?

I think this can significantly increase the speed of typing, because the space should be inserted anyway.

I have added the requirement inserted by an AucTeX shortcut to avoid the complicated situations like \leq and \leqslant.

added 10 characters in body
Source Link
Name
  • 8k
  • 5
  • 45
  • 91

With auxtex, one can insert many latex commands using shortcuts.

For example in a math environment (e.g., between $ $), the shortcut `g insert \gamma. Normally right after \gamma if I would like to type a letter I should make a space, for example $\gamma a=1$, but if I would like to type a number, a symbol or another latex command, it is not necessary, for example $\gamma\alpha=1$ or $\gamma*1=\gamma$ or $\gamma1=\gamma$, or $\gamma^1=\gamma$. T

Is there a way in auctex to insert a space right after a latex command (inserted by an auctex shortcut, e.g. `g) if the next keystroke is a letter?

I think this can significantly increase the speed of typing, because the space should be inserted anyway.

I have added the requirement inserted by an auctex shortcut to avoid the complicated situations like \leq and \leqslant.

With auxtex, one can insert many latex commands using shortcuts.

For example in a math environment (e.g., between $ $), the shortcut `g insert \gamma. Normally right after \gamma if I would like to type a letter I should make a space, for example $\gamma a=1$, but if I would like to type a number or another latex command, it is not necessary, for example $\gamma\alpha=1$ or $\gamma*1=\gamma$ or $\gamma1=\gamma$, or $\gamma^1=\gamma$. T

Is there a way in auctex to insert a space right after a latex command (inserted by an auctex shortcut, e.g. `g) if the next keystroke is a letter?

I think this can significantly increase the speed of typing.

I have added the requirement inserted by an auctex shortcut to avoid the complicated situations like \leq and \leqslant.

With auxtex, one can insert many latex commands using shortcuts.

For example in a math environment (e.g., between $ $), the shortcut `g insert \gamma. Normally right after \gamma if I would like to type a letter I should make a space, for example $\gamma a=1$, but if I would like to type a number, a symbol or another latex command, it is not necessary, for example $\gamma\alpha=1$ or $\gamma*1=\gamma$ or $\gamma1=\gamma$, or $\gamma^1=\gamma$.

Is there a way in auctex to insert a space right after a latex command (inserted by an auctex shortcut, e.g. `g) if the next keystroke is a letter?

I think this can significantly increase the speed of typing, because the space should be inserted anyway.

I have added the requirement inserted by an auctex shortcut to avoid the complicated situations like \leq and \leqslant.

Source Link
Name
  • 8k
  • 5
  • 45
  • 91

Ways to automatically insert a space after a latex command (inserted by an auctex shortcut, e.g. `g) if the next keystroke is a letter

With auxtex, one can insert many latex commands using shortcuts.

For example in a math environment (e.g., between $ $), the shortcut `g insert \gamma. Normally right after \gamma if I would like to type a letter I should make a space, for example $\gamma a=1$, but if I would like to type a number or another latex command, it is not necessary, for example $\gamma\alpha=1$ or $\gamma*1=\gamma$ or $\gamma1=\gamma$, or $\gamma^1=\gamma$. T

Is there a way in auctex to insert a space right after a latex command (inserted by an auctex shortcut, e.g. `g) if the next keystroke is a letter?

I think this can significantly increase the speed of typing.

I have added the requirement inserted by an auctex shortcut to avoid the complicated situations like \leq and \leqslant.