Zathura or Okular can also be configured for this purpose. In order to view the compiled document, by default we need to have Evince installed. For example, compiling the document can be done using C-c C-a. There’s a vast amount of shortcuts, better explained here. This should be active every time you open a. For multi-file document structure and LaTeX packages support, put the following in your initialization file: (setq TeX-auto-save t)ĪUCTeX includes various modes, but for now we’ll be using the default LaTeX-mode. Refer to the official Quick Start guide for an introduction. There, we can use C-s to search for a particular thing we want to install, press i to select it, and finally x to execute the installation. To show all available packages, use M-x list-packages Package management is natively supported by Emacs with ELPA.
But in order to get the bells and whistles, we need to install a package. There you go! You can start writing LaTeX with Emacs now. Other useful additions include pressing C-c C-o for inserting \begin and \end tags, and, of course, invoking TeX. One cool feature is the smart insertion of quotes: pressing ‘ ” ‘ will write the opening or closing quotation marks, according to context, removing the mental burden of selecting one character or the other. The documentation is very short, so I suggest reading it in its entirety to get a feel of how modes work. You can switch between major modes to select different sets of functionality suited for the current task, and add minor modes for additional features.Įmacs comes with a bare-bones TeX mode. Built-in TeX modeĮmacs works with major and minor modes. There are advantages to the latter, see this discussion.
Note that initialization code can be written either in ~/.emacs or ~/.emacs.d/init.el. There’s more than one approach to solve this: See the Smooth Scrolling article in the Emacs Wiki and this StackOverflow question. A first annoyance I had was that scrolling with a trackpad moved 5 lines at a time. The default configuration of Emacs is not without its flaws. After that, there’s a vast amount of information both on the Internet and the included documentation. It’s a must-read and can be done in around 30 minutes.
The basic key notation used for Emacs commands is : C-x CTRL + xįor starters, the built-in tutorial is great, and can be accessed from the splash screen or C-h t. For people who come from vim, there’s Spacemacs and evil-mode, which seem amazing, but I haven’t tried them yet to get a good feeling of vanilla Emacs first. I suggest using the GUI version because of some features that might be lost otherwise, in the terminal version. To install it in Manjaro (or Arch Linux variants in general), we simply use pacman (for more information, read the Arch Wiki entry): sudo pacman -S emacs
It’s very famous in the Unix world because of its extensibility and how powerful it can be: it even includes a real web browser where you can watch YouTube. First of all, it’s a family of text editors, being GNU Emacs the most popular one, and the one we’ll be referencing to from now on. The thing with Emacs is that it’s not just a plain old editor. In this post I’ll be explaining my approach as a first-timer to Emacs with the goal of writing LaTeX. As of this writing, the one with the most votes is Emacs with AUCTeX, so why not try that one? There’s a great thread on StackExchange listing many LaTeX editors (which, incidentally, is where I discovered TeXstudio). I can’t deny it’s a wonderful IDE, but due to certain inconveniences and the itch of trying new things, I decided to give some other editor a go. If you opened more than one file you can go through different buffers withĮmacs splits and handles buffers and you can see multiple buffers at the same time (buffers are kind of like windows).For four years now, I’ve almost exclusively been using TeXstudio for LaTeX editing. It is a small perhaps to move through a document and the explanation that the key ctrl it will be called C and the key alt MThey are the most used keys, well now I will explain the most important shortcuts and I will follow the same nomenclature of the guide for the keys: On the home screen we can see something like this Once installed we can run Emacs from the terminal by typing emacs or opening it from the icon.Įmacs does not need a graphical environment to work like nano or vim can run under terminal.