On 26.01.05, Rich Shepard wrote: > On Wed, 26 Jan 2005, Steve Litt wrote: > > > Having to label chapters doesn't bother me because there are so few > > chapters (17 in my upcoming book). But there are multiple floats per > > chapter, and I know of no sane naming convention, and labels are global, > > not local to a chapter.
If inserting the label after writing the caption, the caption string is used as default value presented by LyX. It is just one more keypress for the [OK] button. So, binding a key to insert-label makes creating labels a two-press task. If we had a lyx-function (LFUN) for pressing the [OK]-button, the task could become a one-key task with e.g. \bind "some key" "command-sequence simulate-keypress Enter; label-insert;" A script using the lyxserver could then define "autolabel-floats", "autolabel-section" and "autolabel-all" functions creating labels for all candidates. > 2) I think you'd find local labels a problem. Consider a figure in Chapter > 2 that you want to reference in Chapter 11. How do you do this with local > labels? With namespaces. I would make them local to files of a multi-file document, like "filename.fig:the-caption-of-the-figure". "reference-insert" already has a drop down list for labels from different files of the same document. However, this might creates a mess, if you move the figure from Chapter 2 to Chapter 4. IMHO, a carefully hand-chosen label name is still the most transparent option. My feature-wish would be a check for naming conflicts in label-insert. G�nter -- G.Milde web.de
