Saving and Compiling Your Document
To save a file, use C-x C-s. You should see “Wrote <document-name>” in the mini buffer.
To compile a Latex document, use C-c C-c. You may need to follow a few simple prompts. For example, you may need to tell Emacs that this is Latex.
If you are compiling a beamer presentation, and you did not specify your Tex engine in your document, you will need to execute the following command before compiling your document: M-x TeX-engine-set and then select xetex and return. Now use C-c C-c.
Then, in your finder, you should see <document-name>.pdf next to your .tex file. Our configuration compiles with latexmk, which comes with MacTeX, and puts LaTeX’s auxiliary and log files in a new folder named build. Open the PDF. You can also use C-c C-a, which compiles the document and then opens the PDF in Skim. Congrats! You’ve made your document!