auctex-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [AUCTeX-devel] reftex-select-toggle-follow for master and slave file


From: Uwe Brauer
Subject: Re: [AUCTeX-devel] reftex-select-toggle-follow for master and slave files
Date: Fri, 25 Nov 2016 08:54:55 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

>>> "Arash" == Arash Esbati <address@hidden> writes:

    > Uwe Brauer <address@hidden> writes:
    >> I just did, I downloaded your file and applied it. I don't not any
    >> difference to the behavior I described earlier, so I am not sure where
    >> the difference should lie in?

    > Thanks for checking and feedback.  Hard to tell, maybe saved parsed
    > information with (setq reftex-save-parse-info t)?  My RefTeX config is:

No it is nil.
    >     (require 'reftex)
    >     (add-hook 'LaTeX-mode-hook #'turn-on-reftex)
    >     (setq reftex-plug-into-AUCTeX t)

    > I also removed all automatic generated styles by AUCTeX before
    > restarting Emacs and visiting the test files.  I have

    >     (setq TeX-auto-save nil)

I had t, I set it to nil, but that does not change anything.


    > in my .emacs anyways.  My idea was to start with 3 new files and see if
    > RefTeX can handle it without any saved information.


I am very puzzeled now, I observe the behavior you wish, but you don't.
Here is my reftex setting

(setq reftex-insert-label-flags '("s" nil))
(setq reftex-comment-citations t)
(setq reftex-extra-bindings t)          ;must be before (require 'reftex) 
otherwise it does not work(require 're
(add-hook 'LaTeX-mode-hook 'turn-on-reftex)   ; with AUCTeX LaTeX mode
(setq reftex-plug-into-AUCTeX t)
(setq reftex-initialize-temporary-buffers t)
(setq reftex-index-macros
   '(("\\nomenclature{*}{}" "ncl" ?n "" nil nil)))



(setq reftex-label-alist
                '(("equation"  ?e "eq:%f:" "~(\\ref{%s})" t
                   ("Equation" "Eq." "Eqn." "Gleichung"  "Gl."))
                  ("neweq"  ?e "eq:%f:" "~(\\ref{%s})" t
                   ("Equation" "Eq." "Eqn." "Gleichung"  "Gl."))
                  ("newequation"  ?e "eq:%f:" "~(\\ref{%s})" t
                   ("Equation" "Eq." "Eqn." "Gleichung"  "Gl."))
                  ("axiom"   ?a "ax:%f:"  "~\\ref{%s}" nil ("Axiom"   "Ax."))
                  ("func"   ?F "fnc:%f:"  "~\\ref{%s}" nil ("funci\'on"  "Fnc"))
                  ("fact"   ?C "fct:%f:"  "~\\ref{%s}" nil ("Fact"   "Fct"))
                  ("script"   ?T "scpt:%f:"  "~\\ref{%s}" nil ("Script"   
"scpt"))
                  ("claim" ?k "clm:%f:" "~\\ref{%s}" t   ("Claim" "claim" ))
                  ("thm" ?h "thr:%f:" "~\\ref{%s}" t   ("Theorem" "Theor." 
"Th."))
                  ("example" ?E "ex:%f:" "~\\ref{%s}" t   ("Example" "Ejemplo"))
                  ("ex" ?A "ex:%f:" "~\\ref{%s}" t   ("Ejercicio" "ejercicio"))
                  ("cor" ?c "cor:%f:" "~\\ref{%s}" t   ("Corollary" "Cor." 
"C."))
                  ("rem" ?R "rem:%f:" "~\\ref{%s}" t   ("Remark" "rem." "R."))
                  ("SaveListing" ?V "SvL:%f:" "~\\ref{%s}" t   ("SaveL" )-1)
                  ("prac" ?P "prac:%f:" "~\\ref{%s}" t   ("Practica" "prac." 
"P."))
                  ("prop" ?p "prop:%f:" "~\\ref{%s}" t   ("Proposicion" 
"proposition" "prop." "P."))
                  ("sol" ?o "sol:%f:" "~\\ref{%s}" t   ("Solucion" "sol." "S."))
                  ("lstlisting" ?G "lstl:%f:" "~\\ref{%s}" t   ("lstlisting" 
"lst." "L."))
                  ("lem" ?L "lem:%f:" "~\\ref{%s}" nil   ("Lemma" "Lema" ))
                  ("slide" ?l "slide:%f:" "~\\ref{%s}" t   ("slide" ))
                  ("Slide" ?S "slide:%f:" "~\\ref{%s}" t   ("slide" ))
                  ("prop" ?M "prop:%f:" "~\\ref{%s}" t   ("Proposicion" "prop." 
"P."))
                  ("\\myfig" ?f "fig:%f:" nil          2)
                  ("defn" ?D "def:%f:" "~\\ref{%s}" nil   ("Definition" 
"Definici'on"))
                  ("enumerate" ?i "item:%f:" "~\\ref{%s}" item
                   (regexp "Items?" "Punkte?"))
                  AMSTeX
                  ))


And via customize

 '(reftex-default-bibliography (quote 
("/home/oub/texmf/bibtex/bib/bibgraf.bib")))
 '(reftex-extra-bindings nil)
 '(reftex-include-file-commands (quote ("include" "input" "subfile")))
 '(reftex-index-default-macro (quote (110 "ncl")))
 '(reftex-ref-macro-prompt nil)
 '(reftex-revisit-to-follow t)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]