Repair the export of source code line references in LaTeX
commitbfad0126290a6f8dc6dd12c5dbcd690266976d15
authorCarsten Dominik <carsten.dominik@gmail.com>
Thu, 14 Jan 2010 17:06:22 +0000 (14 18:06 +0100)
committerCarsten Dominik <carsten.dominik@gmail.com>
Thu, 14 Jan 2010 17:06:22 +0000 (14 18:06 +0100)
tree0f43b97f0ebcfc3c0219bc67f8451f665844b6f7
parentb83c03a89863c0605c080b7fa393d9a50fea7a53
Repair the export of source code line references in LaTeX

Marting G. Skjaeveland writes:

> I pulled a fresh copy of org-mode this morning and noticed that
> references to source code line numbers no longer work as they used
> to. Instead of displaying the number of the line with the label, the
> label is displayed.
>
> Exporting the following example, retrieved from the online
> documentation (http://orgmode.org/manual/Literal-examples.html),
>
> -------------------------------------start
> #+BEGIN_SRC emacs-lisp -n -r
>  (save-excursion                  (ref:sc)
>  (goto-char (point-min))       (ref:jump)
> #+END_SRC
>
>  In line [[(sc)]] we remember the current position.  [[(jump)][Line
> (jump)]] jumps to point-min.
>
> -------------------------------------end
>
> gives me in latex export
>
> -------------------------------------start
> \begin{verbatim}
> 1:  (save-excursion
> 2:  (goto-char (point-min))
> \end{verbatim}
>
>  In line \hyperref[(sc)]{(sc)} we remember the current
>  position. \hyperref[(jump)]{Line (jump)} jumps to point-min.
>  -------------------------------------end
>
lisp/ChangeLog
lisp/org-exp.el