Variable: org-latex-reference-command

org-latex-reference-command is a customizable variable defined in ox-latex.el.gz.

Value

"\\ref{%s}"

Documentation

Format string that takes a reference to produce a LaTeX reference command.

The reference is a label such as sec:intro. A format string of "\\ref{%s}" produces numbered references and will always work. It may be desirable to make use of a package such as hyperref or cleveref and then change the format string to "\\autoref{%s}" or "\\cref{%s}" for example.

This variable was added, or its default value changed, in Org version
9.5.

Source Code

;; Defined in /usr/src/emacs/lisp/org/ox-latex.el.gz
(defcustom org-latex-reference-command "\\ref{%s}"
  "Format string that takes a reference to produce a LaTeX reference command.

The reference is a label such as sec:intro.  A format string of \"\\ref{%s}\"
produces numbered references and will always work.  It may be desirable to make
use of a package such as hyperref or cleveref and then change the format string
to \"\\autoref{%s}\" or \"\\cref{%s}\" for example."
  :group 'org-export-latex
  :type 'string
  :package-version '(Org . "9.5")
  :safe #'stringp)