Hi,

On Tue, 22 Feb 2011, Simon Quittek wrote:

> 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!
With my aux-based completion, both methods work:
\eqref{eq:max<F9> => \eqref{eq:maxwell}
(4.1) => \eqref{eq:maxwell}


On Tue, 22 Feb 2011, Ted wrote:

> It's too restrictive for me to need to have the PDF visible at every 
time I edit. It's nice sometimes to see a numbered equation, realize you
> want a reference to it, and quickly add a reference without figuring out 
its label. However, normally when I'm referring to equations in-line
> with text, I'm writing that text soon after I generated the equation 
label (and in close proximity). Moreover, I use a label that has some
> useful meaning. For example, a reference to Newton's Second Law could be 
"eq:n2l", and I wouldn't have to open up a PDF to find it.
See above, you can also use the label-based variant, but there is no line 
of
context of the tex-file shown.


A comparision: \ref{<F9> with the current tex-based completion results in
something like

2. Modeling of Solid mechanics<<<1
>      sec:introduction_mechanics               <Dissertation.tex>
:        \chapter{Modeling of Solid mechanics}
     2.1. Linear Elasticity<<<2
>          sec:elasticity               <Dissertation.tex>
:            \section{Linear Elasticity}
>          fig:sketch_of_deformation            <Dissertation.tex>
:            Sketch of the undeformed and deformed domain.
>          eq:definition_of_gradient            <Dissertation.tex>
:

the aux-based completion produces:

2 Modeling of Solid mechanics<<<1
>  sec:introduction_mechanics
:    chapter.2
   2.1 Linear Elasticity<<<2
>    sec:elasticity
:      section.2.1
>    fig:sketch_of_deformation
:      figure.2.1
>    eq:definition_of_gradient
:      (2.1)

The aux-based completion does not output the filenames, since I didn't see 
any
need for them.


> So I can see some cases where the aux-based completion would be 
convenient, but I think most people would need the tex-based completion 
most of
> the time.
After giving some clearance, that you still use the labels for completion, 
did
you still think, that one needs the tex-based completion?

> A lot of people (especially when journals setup theorem-like 
environments for you) won't know the counter name. I suppose they could 
assume
> they know the first letter of the counter and use F9 to figure out the 
rest<?>.
Yes, that works.

Regards

------------------------------------------------------------------------------
Free Software Download: 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. 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