3

I'm a bit new to RefTeX. How can I change the RefTeX configuration so that instead of \cite{ref} it automatically inserts ~\cite{ref} whenever I press C-[ (that ~ adds a space before the citation). Thanks

3

You have to set the variable reftex-cite-format via customize or in your init file. In your init file, this should do the trick:

(setq reftex-cite-format
      '((?\C-m . "~\\cite{%l}")
        (?t    . "\\cite{%l}")))

After pressing C-[, you can enter RET for ~\cite or t for a version without ~.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.