%% Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes:

  jl> I think the resources (and associated options) width, height, xpos
  jl> and ypos do what you want. Did you try them? They are documented
  jl> in the man page.

Man page?

  $ man lyx
  No manual entry for lyx.

Hmm... ah, I see the problem.  The LyX man page is malformed, such that
catman -w (at least on Solaris) doesn't generate the right windex entry.
On Solaris if the man page you ask for doesn't exist in windex, man
assumes it doesn't exist at all (unless you provide the -F option).
Darn annoying, but there you go.  Here's a patch for the LyX man page:

--- /tmp/lyx.1  Thu Feb 11 10:13:12 1999
+++ /tmp/lyx.1-new      Thu Feb 11 10:07:16 1999
@@ -5,7 +5,7 @@
 .\"
 .TH LYX 1 "October 1998" "Version 1.0" "LyX 1.0"
 .SH NAME
-LyX \- A Document Processor
+lyx \- A Document Processor
 .\"
 .\" setup
 .de Cr

OK, I see it now.

But, those options don't seem to work for me :(

  $ lyx -width 800 -height 800

still gives me the same size window.  Is this a bug or a configuration
error of some sort?  In fact, no command-line options appear to work for
me.

Oh, wait.  I see the problem.  Somehow these only work if you invoke the
command with the exact name "lyx" (so that's [at least the filename part
of] arg[0]).  I installed it as "lyx-1.0.0" and was running it with that
name, and when you do that none of the command line options work.  I'd
say that's a bug, too.

The man page also says you can set these via X resources, but it doesn't
specify what resource class you need to use; trial-and-error shows that
LyX works, but that you have to load the resources into the server, you
can't put them in a directory on your XUSERFILESEARCHPATH, for example
(I guess LyX doesn't use the Xt resource functions).  Some example(s)
in the man page would be very helpful.

Some more points:

 1) _Why_ is LyX using this oh-so-strange set of options?  There sure
    ain't much standard about X user interfaces, but if _anything_ can
    be considered standard, geometry can.

    Also, if LyX doesn't support standard geometry and the -xrm option,
    it can't be handled by most session managers.  This is a Bad Thing.

 2) You can't use the common idiom of negative numbers to xpos and ypos,
    to position as an offset from the right/bottom of the window instead
    of the left/top.

 3) This should probably be documented in the manual, somewhere, as
    well.

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <[EMAIL PROTECTED]>         Network Management Development
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist
-------------------------------------------------------------------------------
   These are my opinions---Nortel Networks takes no responsibility for them.

-- 
                +++ the lyx project user mailing list +++
                To unsubscribe from this list send mail to 
                         [EMAIL PROTECTED]
                    with the **Subject** unsubscribe.

Reply via email to