I can't type latex on my laptop without sore hands. I use latex in org-mode to write math notes and my right pinky is always stretching for _
, {
, }
, and \
.
Does anyone advice for typing large amounts of latex? Alternative input methods or touch typing tips are welcome, as are obvious tips or alternatives. I can't understand how people do it.
Easing RSI is basically about
The first point can obviously be taken care of by not writing when you don't have to. Technically the first point can be taken care of by reducing unnecessary input, e.g. by constructing your LaTeX code so that you have less redundancies, but overly doing this may obfuscate your code (you want it readable). Another way to technically take care of the first point is by using different tools such as the features of an editor or by configuring your environment. The second point may technically be taken care of the same way as the first. The third point may obviously taken care of by taking pauses which may be enforced by tools such as those in https://superuser.com/questions/305940/linux-software-for-periodical-work-break/306276#306276 but this point does not seem relevant if you're taking lectures notes or similar. Thus, I'll focus on technical solution to the first and the second point.
To ease writing construct that you often write you could use a snippets manager/template system such as yasnippet. With such a solution you can create your own snippets to be more efficient and nicer to your fingers. For example you can make a snippet such that if you write align
and press Tab it prints
\begin{align}
\end{align}
and places the cursor inside the environment.
Math symbols are often cumbersome to write because many of them starts with \
. AUCTeX comes with functionality that makes it easier to type math symbols, see http://www.gnu.org/s/auctex/manual/auctex/Mathematics.html. To use it you press the key that calls (LaTeX-math-mode)
(the default key is ` but that may not be optimal for your keyboard, so give it a good bind) and a defined key to write a math symbol, e.g. if you type ` and then f
it prints \phi
. Here's a reference for the default bindings ftp://ftp.gnu.org/gnu/auctex/11.82-extra/tex-ref.pdf.
You could remap your keys so that the commands that hurts for you to type gets easier to type. If you're on Linux remapping can be done by xmodmap and XKB and you can also remap the keys internally in Emacs. For details on remapping specific to LaTeX see the following excellent answer https://tex.stackexchange.com/questions/1979/good-keyboard-layouts-for-typing-latex/1985#1985 (there's also a blog post introducing it http://tex.blogoverflow.com/2011/08/great-questions-i-save-your-fingers/) and note that the other answers to the linked question might interest you.