Hello Gerd,

I think, your ideas are very good, and since I use/would like to use F9 
much more often, I welcome improvement!
Just to make sure to understand from the users view: instead of typing 
"\eqref{eq<F9>" and then looking through the list to find the right label 
(e.g. "eq:maxwell"), you type the number "(2.4)<F9>" (which has label 
"eq:maxwell" before compilation into the aux-file) and it is expanded 
automatically into "\eqref{eq:maxwell}".

As far as I see, if you want to ref an equation this way, you have to do 
the compilation first, and the numbers probably will change after each 
compilation. In case of a replacement, this means you need to have:
1) the up-to-date pdf/dvi file open all the time and
2) knowledge of the numbers, even if they are far away in the document.

For this reasons I would _strongly_ prefer to be able to choose which way 
to use at all times.
Your method is very convenient, nonetheless and I would very much like to 
use it!

All the best,
Simon

Gerd Wachsmuth wrote:
>> I can see how someone editing a single
>> document would often want to complete both ways.
> In which situation you need to stick to the old tex-based completion? I
> used my aux-based completion since one or two months and I never missed
> the tex-based completion.
>
> The only advantage of the tex-based completion is, that you see some
> neighbourhood (one line before or after) of the \label, but mostly this
> contained no information for me.
>
>
>>> Typing (3.4)<F9>   results in \eqref{eq:a_beautiful_equation}
>>
>> [ Note: The need for \eqref can be mitigated with varioref's
>> \labelformat and/or hyperref's \autoref. There is absolutely no reason
>> that equations need to be handled differently within the main LaTeX
>> content than any other reference. ]
>>
>>> Moreover, I also works for theorems etc. Typing theorem.4.5 results in
>>> \autoref{thm:a_nice_theorem}
>>
>> I'm a little confused (I haven't looked at the script) about how the
>> completer picks the \*ref you want. Some people are going to use the
>> \*refs provided by the cleveref package. Others (like me) are going to
>> use \autoref nearly everywhere but other variants (\Autoref) in some
>> places and \ref in some other cases (after "and", for example), and I
>> would never ever use \eqref. How could I configure?
> Currently, this can't be customized, but it is surely possible.
>
>> I also am confused about using "theorem.4.5" some places and "(3.4)"
>> other places.
> For referencing equations you type (equation.number). This does work also
> with (A.1) or (12.23c).
>
> For referencing something which is not an equation you type
> latex-counter-name.number, e.g. section.2 or subsection.2.12,...
>
>> For one, how is the average user going to know for sure
>> exactly which AUX name to use (thm.4.5 vs theorem.4.5)?
> You have to use the name of the latex counter.
>
>> And why the different handling of equations?
> Because I can type (2.2) faster than equation.2.2.
>
>> Furthermore, I think I would much rather type...
>>
>> \autoref{theorem.4.5<F9>}
>>
>> and have that replaced with
>>
>> \autoref{thm:a_nice_theorem}
> This does work.
>
>
> Gerd
>
> ------------------------------------------------------------------------------
> Index, Search&  Analyze Logs and other IT data in Real-Time with Splunk
> Collect, index and harness all the fast moving IT data generated by your
> applications, servers and devices whether physical, virtual or in the cloud.
> Deliver compliance at lower cost and gain new business insights.
> Free Software Download: http://p.sf.net/sfu/splunk-dev2dev
> _______________________________________________
> Vim-latex-devel mailing list
> Vim-latex-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/vim-latex-devel

------------------------------------------------------------------------------
Index, Search & Analyze Logs and other IT data in Real-Time with Splunk 
Collect, index and harness all the fast moving IT data generated by your 
applications, servers and devices whether physical, virtual or in the cloud.
Deliver compliance at lower cost and gain new business insights. 
Free Software Download: http://p.sf.net/sfu/splunk-dev2dev
_______________________________________________
Vim-latex-devel mailing list
Vim-latex-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vim-latex-devel

Reply via email to