>>>>> "Yoni" == Yoni Elhanani <[EMAIL PROTECTED]> writes:

Yoni> Sorry for not replying to the list.  I am not subscribed, and I
Yoni> just read the archive.

No problem. I added the list as Cc:.

Yoni> A reference will be created automaticly with the name of the
Yoni> section (it will change as the name changes).  So when you
Yoni> create a "\section{Hello World}" it will not become a label.
Yoni> But, in the cross reference menu, one will see tabs for Section,
Yoni> chapters, floats, and such.  In each tab will be a list of
Yoni> sections (or the tab he chose), and when he chooses the name of
Yoni> his section, a label will be automaticly added to there
Yoni> (transparently) and will be called after tha section.  (if there
Yoni> are two sections with the same name, like introduction sections
Yoni> that apear in many chapters, the name will consist of a chapet
Yoni> and the section name).

If I remember correctly, this is how Word does it, and it is indeed
very nice. 

Yoni> So if I crossref to a section called "Hello", the actual code
Yoni> will be "\section{hello}\label{sec:hello}".  and the crossref
Yoni> will be a crossref to "sec:hello".

Note that you should offer a way to override the name, so that file
could be correclty exchanged with LaTeX user. Don't count on any
algorithm to pick a meaningful name...

Yoni> The labels will not show up on the lyx canvas buffer, they will
Yoni> be availible with a doubleclick on the section name.  (also the
Yoni> optional "\section[tocname]" could be set in there) It make
Yoni> writing documents much easier, since users will not have to know
Yoni> what labels are.  (I assume the whole idea of LyX is to hide
Yoni> LaTeX from novice users)

I thin the [tocname] should be a foldable inset (like a foot note) in
the main text. You do not have enough editing power in a popup.

Yoni> This can have only one problem, but it is very minor.  People
Yoni> will have to manually create labels for pagerefs on multipage
Yoni> sections.  (where the section header is not on the page with the
Yoni> label wanted).  Ususaly this is not the case, since anything
Yoni> worth of labeling to can be either a float, or a
Yoni> [sub][sub]section.

I'd like indeed to see most labels attached to the object they refer
to (section, etc) instead of being inserted in the text. But this will
of course be a problem with \pagerefs.

Yoni> BTW, I downloaded the CVS unstable tree, If I want to send
Yoni> patches, whom should i send them too?

All patches should be sent to the [EMAIL PROTECTED] list. Note
however that the source is not in a good shape for this kind of
changes:

- the GUI independent stuff is not yet completed, and no GUI other
than xforms yet exists

- we have just rewritten the kernel (data structure) and currently lyx
is not able to display nor edit a document! Moreover, what you plan to
do should be done in the new context, not the ugly old one.

Howerver, in the mean time, you'll be welcome to help us make this
mess work...

Yoni> I think a nice thing I can create would be a fancy heading
Yoni> editor, It will read and write to "fancy.sty" file or something.
Yoni> with ablities to change both "\cfoot" type headers,
Yoni> "\fancyhf[OE|LCR|FH]" headers, And a
Yoni> "\chaptermark","\sectionmark" editor too, maybe...  But first I
Yoni> will need to know how to use lyx's "multiplatform gui" thingy
Yoni> and stuf like this.

Yes supporting fancyhdr.sty would be great.

JMarc

Reply via email to