Martin Vermeer wrote:
On Wed, Oct 10, 2007 at 01:31:40PM -0400, Paul A. Rubin wrote:
Martin Vermeer wrote:
On Wed, Oct 10, 2007 at 11:55:12AM -0400, Richard Heck wrote:
Tommaso Cucinotta wrote:
like a "paragraph settings" or "layout settings" dialog.
Or, in order to have it more explicit in the text, it might be simply
a little "hole" that always appears near the very start of the
environment supporting the option...
Yes. Or even just a single button, marked "EvnOpts" or something, and if
you press that you get a dialog allowing you to enter whatever there is
to enter. The box shouldn't be a separate inset, like Short Title, but
instead would get drawn with the environment somehow. The former
solution leads to lots of problems.
Hmmm, it can be an inset without looking like one. You can do a lot of
visual remodelling of insets nowadays ;-)
The good thing about this being an inset is that you can enter full
LyXText into it, generating full LaTeX.
I'd vote to add it to the current paragraph settings dialog.
So you're happy to never use any special symbols or emphasis etc. in you
table of contents?
BTW my initial inplementation of optarg was in the paragraph dialog.
Wasn't good enough.
Someone is working on formatted search+replace. They need
a mini "main window" in their dialog. The same kind
of window could be used in a paragraph settings dialog as well,
allowing formatted input.
Different idea:
Make the optarg inset so it only will go at the
start of the paragraph. No cursor position in front of it so
the cursor can't go there. And special-case its insertion so it
always inserts at the front of the paragraph, rather than anywhere.
If the user can't move it away, then the fact that it is implemented
by the normal inset mechanism won't matter.
Third idea, but more work:
The paragraph settings dialog, as well as optarg, is changed
into something new that doesn't exist now.
In its collapsed state, "paragraph settings" is a little box
in the margin in front of each paragraph. Doesn't break up reading,
doesn't alter the line breaking. Click on it, and it expands
to a dialog inset embedded in the document. It is still at the top
of the paragraph of course, with no way to move it out from there.
The exact contents of such a dialog depends on the paragraph in
question. Only "labeling" needs the "longest label",
the sectioning needs "short title", various
latex environments/commands have extra parameters.
More conceptually correct, but more work also.
Helge Hafting