Tell me more ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I've created my own environment, called int-interface, which accept 3 args:

\begin{int-interface}{mod}{intName}{other stuff}
...
\end{int-interface}

Now I would like to use RefTeX to add reference to it in this form:

~\reftoswif{mod-intName}

Following RefTeX manual I've customised reftex-variable-alist adding

(setq reftex-label-alist '(("\\begin{int-interface}{*}{}{}" ?p nil "~\\reftoswif{%s}" 2)))

to my .emacs.

It works fine finding and listing instances of my environment (using C-c )), but I don't know how to set RefTeX to build the reference %s string combining first and second arguments of the environment.

Any hints?

share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.