Here is the code I have in my .emacs:
(defun advice:org-ctrl-c-ctrl-c (orig-func &rest args)
(apply orig-func args)))
(advice-add 'org-ctrl-c-ctrl-c :around #'advice:org-ctrl-c-ctrl-c)
With the settings above, I can do things like this:
(defun org-toggle-preview-latex-fragment (arg)
"Toggle LaTeX fragments."
(define-key org-mode-map (kbd "C-c C-t") 'org-toggle-preview-latex-fragment)
At first I wrote myself a piece of code, but I have found a thread talking about this and found the workaround.
The second piece of code is due to John Kitchin. The idea of the workaround is due to Aaron Ecay.
You can see them at https://lists.gnu.org/archive/html/emacs-orgmode/2014-07/msg00323.html .
(edited on March 24, 2016)
Toggling of latex fragments is part of org-mode as of March 24, 2016.
Latex fragments can be previewed by calling
Personally I use the following setting in my init.el:
(define-key org-mode-map (kbd "C-c C-t") 'org-toggle-latex-fragment)