Tag Info

4

Of course AUCTeX is already able to do this out of the box! From the description of LaTeX-math-mode (C-h f LaTeX-math-mode RET): Easy insertion of LaTeX math symbols. If you give a prefix argument, the symbols will be surrounded by dollar signs. Thus, C-u  t inserts $\tau$ If you want to automatically wrap dollars around the symbol when in text ...

4

4

I would highly recommend to read the org-mode manual for LaTeX exporting capabilities. It is very good: org-export-latex. org-mode for Emacs has the optional LaTeX customization by using this: #+LaTeX_HEADER: \newcommand\myaddress{...} You can put as many header information lines as you please which in turn can build your custom LaTeX file on the fly. ...

3

The trick is to use advising. Add the following to your .emacs (defadvice comment-region (around comment-region-asymptote activate) "Use \"//\" as comment prefix in Asymptote environments." (let ((comment-start (if (and (equal major-mode 'latex-mode) (or (equal (LaTeX-current-environment) "asy") (equal ...

3

bibtool can sort your .bib file, among many other things. Although I do edit my bibliography file by hand, I don't use it much for this task, because emacs provides a better solution (see the comment by giordano, e.g.). To sort by bibkey, it is as simple as (options are not grouped here for clarity): bibtool -s -i input.bib -o output.bib To reverse sort ...

2

Since you're using reftex anyways, you can use the reftex function reftex-get-bibfile-list to find all the .bib files associated with your file, and use those as completion targets for find-file: (defun open-current-bib-file () "Visit the bib file for the current document. Only works when reftex is in use, otherwise returns nil." (interactive) (unless ...

2

I manage all my bib file by hand using notepad++ and copy and paste, which brings me to the long way to do it: Each entry is just text, so provided your files aren't too long, you could just copy and paste them by hand. For longer files, things are tricker. I've not heard of a program that is made to sort bib files. However, LaTeX doesn't care about ...

1

I just found the answer to my question here on stackexchange: resetting the $to its original catcode seems to work (do not ask me why :-) ): \documentclass{standalone} \usepackage{tikz} \usepackage{etoolbox} \usetikzlibrary{calc} \AtBeginEnvironment{tikzpicture}{\catcode$=3 } % $\begin{document} \begin{tikzpicture} \draw ($(0,0) + (0,0)$) -- ($(1,1) + ...

1

There is a relatively easy workaround if a better solution can't be found: C-c C-v calls TeX-view, which will open the associated .pdf or .dvi file (assuming there is one). On my computer, TeX-view in fact calls xdg-open, but you can hardwire a particular viewer in you .emacs file if you like.

1

Nothing is wrong with your init file. You need to configure AucTeX with the option ./configure <tab>--with-emacs, then just make and sudo make install. Of course, in a perfect world emacs ought to be compiled by the user. But either way, this is assuming that your emacs is working as it should. As a side note, you can always (add-to-list 'load-path ...

Only top voted, non community-wiki answers of a minimum length are eligible