Loading ...
Sorry, an error occurred while loading the content.

[jasspa] Hyperlinks within a document

Expand Messages
  • Detlef Groth
    Hello Me-users and Me-vendors.... labels and references are written in LaTex: text begin{figure} figure one label{label.one} end{figure} text begin{figure}
    Message 1 of 1 , Sep 30, 1999
    • 0 Attachment
      Hello Me-users and Me-vendors....

      labels and references are written in LaTex:

      text

      \begin{figure}
      figure one
      \label{label.one}
      \end{figure}

      text

      \begin{figure}
      figure two
      \label{label.two}
      \end{figure}

      text

      references:

      see Fig. \ref{label.two}.

      I was trying to make hyperlinks in a latex-document from the ref to the labels in the document by using the following commands:

      0 define-macro latex-process-link
      set-variable #10 $window-col
      set-variable #l1 $window-line
      ; end of link must be found within 2 lines
      !force -2 search-backward "ref"
      3 forward-char
      execute-string "\p"
      set-mark
      search-forward "}"
      exchange-point-and-mark
      copy-region
      set-variable #l2 @y
      -1 yank
      beginning-of-buffer
      !force search-forward &cat "label" #12
      !emacro
      global-bind-key latex-process-link "C-j"

      However this found the first but not the right label. Can you help me ? Why
      the variable is not properly written ? I don't understand these variables
      work... properly

      Such hyperlinks could be useful for
      fast control of existence of the link. Or even (much later) more sophisticated to jump to to right references in an other file. Par example by \cite{detlef99}
      to the foo.bib (where the bibtex-literature is) or the foo.bbl file (which is the processed file) and to check the existence of the reference detlef99.

      A jump back function should be also included:

      define-macro Go-back
      execute-string "\P"
      !emacro
      global-bind-key Go-back "A-z"

      At least this works within one file. I was missing such a function in the browser.


      Best regards, Detlef
    Your message has been successfully submitted and would be delivered to recipients shortly.