use env variables LYX_DIR_12x and LYX_USERDIR_12x; update man page

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3880 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2002-04-02 11:55:36 +00:00
parent 4db858856f
commit 6d33dcd660
4 changed files with 51 additions and 35 deletions

View File

@ -1,3 +1,7 @@
2002-04-02 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
* lyx.man: update somewhat for 1.2.0
2002-03-31 Lars Gullik Bjønnes <larsbj@birdstep.com> 2002-03-31 Lars Gullik Bjønnes <larsbj@birdstep.com>
* configure.in: call LYX_XFORMS_IMAGE_LOADER_NEEDS_JPEG * configure.in: call LYX_XFORMS_IMAGE_LOADER_NEEDS_JPEG

59
lyx.man
View File

@ -3,7 +3,7 @@
.\" .\"
.\" tbl lyx.1 | nroff -man | less .\" tbl lyx.1 | nroff -man | less
.\" .\"
.TH LYX 1 "November 1999" "Version 1.1" "LyX 1.1" .TH LYX 1 "April 2002" "Version 1.2" "LyX 1.2"
.SH NAME .SH NAME
lyx \- A Document Processor lyx \- A Document Processor
.\" .\"
@ -20,22 +20,26 @@ lyx \- A Document Processor
format. If your system is properly configured, you can access the full format. If your system is properly configured, you can access the full
documentation within \fBLyX\fR under the Help menu. documentation within \fBLyX\fR under the Help menu.
\fBLyX\fR is a modern approach of writing documents with a computer \fBLyX\fR is a document preparation system. It excels at letting you create
which breaks with the tradition of the obsolete typewriter concept. It complex technical and scientific articles with mathematics,
is designed for people who want a professional output with a minimum cross-references, bibliographies, indices, etc. It is very good at
of time effort, without becoming specialists in typesetting. Compared documents of any length in which the usual processing abilities are
to common word processors, \fBLyX\fR will increase the productivity a required: automatic sectioning and pagination, spellchecking, and so
lot, since most of the typesetting will be done by the computer, not forth. It can also be used to write a letter to your mom, though
the author. With \fBLyX\fR the author can concentrate on the contents granted, there are probably simpler programs available for that. It is
of his writing, since the computer will take care of the look. Read more definitely not the best tool for creating banners, flyers, or
about this concept in the online documentation under the Help menu. advertisements (we'll explain why later), though with some effort all
these can be done, too. Some examples of what it is used for: memos,
letters, dissertations and theses, lecture notes, seminar notebooks,
conference proceedings, software documentation, books (on PostgreSQL,
remote sensing, cryptology, fictional novels, poetry, and even a
children's book or two), articles in refereed scientific journals,
scripts for plays and movies, business proposals... you get the idea.
Currently, \fBLyX\fR uses the XForms library as a toolkit. \fBLyX\fR Currently, \fBLyX\fR uses the XForms library as a toolkit. \fBLyX\fR
should run everywhere, where XForms runs. This is on all major Unix should run everywhere, where XForms runs. This is on all major Unix
platforms as well as some PC platforms, including Sun, SGI, HP, Compaq platforms as well as Windows, Mac OS X (which actually is a unix
Tru64, IBM RS6000, Convex, Cray, i386/Linux, Alpha/Linux, platform) and OS/2.
i386/FreeBSD, i386/NetBSD, DecSystem(mips)/Ultrix, OS/2 with XFree or
PMX and others.
.SH OPTIONS .SH OPTIONS
\fBLyX\fR supports the following command-line switches, which can also \fBLyX\fR supports the following command-line switches, which can also
be specified as X resources (e. g. in .Xdefaults) with class be specified as X resources (e. g. in .Xdefaults) with class
@ -120,7 +124,7 @@ specifies the application name under which resources are to be
obtained, rather than the default executable file name. obtained, rather than the default executable file name.
.SH ENVIRONMENT .SH ENVIRONMENT
.TP .TP
.B LYX_DIR_11x .B LYX_DIR_12x
can be used to specify which system directory to use. can be used to specify which system directory to use.
.PP .PP
The system directory is determined by searching for the file The system directory is determined by searching for the file
@ -128,7 +132,7 @@ The system directory is determined by searching for the file
.br .br
1) -sysdir command line parameter 1) -sysdir command line parameter
.br .br
2) LYX_DIR_11x environment variable 2) LYX_DIR_12x environment variable
.br .br
3) Maybe <path of binary>/TOP_SRCDIR/lib 3) Maybe <path of binary>/TOP_SRCDIR/lib
.br .br
@ -136,14 +140,14 @@ The system directory is determined by searching for the file
.br .br
5) hardcoded lyx_dir (usually /usr/local/share/lyx on UNIX and %X11ROOT%\\XFree86\\lib\\X11\\lyx on OS/2 with XFree) 5) hardcoded lyx_dir (usually /usr/local/share/lyx on UNIX and %X11ROOT%\\XFree86\\lib\\X11\\lyx on OS/2 with XFree)
.TP .TP
.B LYX_USERDIR_11x .B LYX_USERDIR_12x
can be used to specify which user directory to use. can be used to specify which user directory to use.
.PP .PP
The user directory is, in order of precedence: The user directory is, in order of precedence:
.br .br
1) -userdir command line parameter 1) -userdir command line parameter
.br .br
2) LYX_USERDIR_11x environment variable 2) LYX_USERDIR_12x environment variable
.br .br
3) $HOME/.<name of binary> if no explicit setting is made 3) $HOME/.<name of binary> if no explicit setting is made
@ -177,10 +181,13 @@ reLyX(1), latex(1), xforms(5).
Full documentation in either native \fBLyX\fR or postscript format. Full documentation in either native \fBLyX\fR or postscript format.
.SH BUGS/LIMITATIONS .SH BUGS/LIMITATIONS
There are probably still some bugs in \fBLyX\fR. Please report them to There are still some bugs in \fBLyX\fR. To report one, read if
lyx-devel@lists.lyx.org with detailed info, including which version of possible the Introduction found under the Help menu in LyX. You'll
\fBLyX\fR you use. Consult the bug-reporting instructions in the find detailed info on submitting bug reports there. If you can't do
Introduction (accessible from the Help menu in LyX) first if possible. that, send details to the LyX Developers mailing list
lyx-devel@lists.lyx.org, or use the LyX bug tracker at
http://bugzilla.lyx.org/. Don't forget to mention which version you
are having problems with!
\fBLaTeX\fR import is still not perfect and may produce buggy *.lyx \fBLaTeX\fR import is still not perfect and may produce buggy *.lyx
files. Consult the \fBreLyX\fR documentation. files. Consult the \fBreLyX\fR documentation.
@ -199,12 +206,12 @@ Preview of inline images in rare cases does not show the image. If you
want to preview the image, just click on it and choose fullscreen want to preview the image, just click on it and choose fullscreen
preview. preview.
If you have performance problems, please go through the \fBlyxrc\fR If you have performance problems, please go through the
configuration file. It contains settings that can be used to improve Edit>Preferences... dialog. It contains settings that can be used to
performance on slow systems. improve performance on slow systems.
.SH AUTHORS .SH AUTHORS
Copyright Copyright
.Cr .Cr
1995, 1996, 1997, 1998, 1999 by Matthias Ettrich 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002 by Matthias Ettrich
(ettrich@informatik.uni-tuebingen.de) and the rest of the \fBLyX (ettrich@informatik.uni-tuebingen.de) and the rest of the \fBLyX
Team\fR (See Credits under the Help menu item). Team\fR (See Credits under the Help menu item).

View File

@ -1,3 +1,8 @@
2002-04-02 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
* lyx_main.C (init): use environment variable LYX_DIR_12x instead
of LYX_DIR_11x. Same for LYX_USERDIR_12x.
2002-03-29 Juergen Vigna <jug@sad.it> 2002-03-29 Juergen Vigna <jug@sad.it>
* lyxfunc.C (dispatch): add a missing fitCursor call. * lyxfunc.C (dispatch): add a missing fitCursor call.

View File

@ -262,7 +262,7 @@ void LyX::init(bool gui)
// Directories are searched in this order: // Directories are searched in this order:
// 1) -sysdir command line parameter // 1) -sysdir command line parameter
// 2) LYX_DIR_11x environment variable // 2) LYX_DIR_12x environment variable
// 3) Maybe <path of binary>/TOP_SRCDIR/lib // 3) Maybe <path of binary>/TOP_SRCDIR/lib
// 4) <path of binary>/../share/<name of binary>/ // 4) <path of binary>/../share/<name of binary>/
// 4a) repeat 4 after following the Symlink if <path of // 4a) repeat 4 after following the Symlink if <path of
@ -279,11 +279,11 @@ void LyX::init(bool gui)
if (!system_lyxdir.empty()) if (!system_lyxdir.empty())
searchpath= MakeAbsPath(system_lyxdir) + ';'; searchpath= MakeAbsPath(system_lyxdir) + ';';
// LYX_DIR_11x environment variable // LYX_DIR_12x environment variable
string const lyxdir = GetEnvPath("LYX_DIR_11x"); string const lyxdir = GetEnvPath("LYX_DIR_12x");
if (!lyxdir.empty()) { if (!lyxdir.empty()) {
lyxerr[Debug::INIT] << "LYX_DIR_11x: " << lyxdir << endl; lyxerr[Debug::INIT] << "LYX_DIR_12x: " << lyxdir << endl;
searchpath += lyxdir + ';'; searchpath += lyxdir + ';';
} }
@ -359,7 +359,7 @@ void LyX::init(bool gui)
// Warn if environment variable is set, but unusable // Warn if environment variable is set, but unusable
if (!lyxdir.empty()) { if (!lyxdir.empty()) {
if (system_lyxdir != NormalizePath(lyxdir)) { if (system_lyxdir != NormalizePath(lyxdir)) {
lyxerr <<_("LYX_DIR_11x environment variable no good.") lyxerr <<_("LYX_DIR_12x environment variable no good.")
<< '\n' << '\n'
<< _("System directory set to: ") << _("System directory set to: ")
<< system_lyxdir << endl; << system_lyxdir << endl;
@ -371,7 +371,7 @@ void LyX::init(bool gui)
if (system_lyxdir == "./") { if (system_lyxdir == "./") {
lyxerr <<_("LyX Warning! Couldn't determine system directory. ") lyxerr <<_("LyX Warning! Couldn't determine system directory. ")
<<_("Try the '-sysdir' command line parameter or ") <<_("Try the '-sysdir' command line parameter or ")
<<_("set the environment variable LYX_DIR_11x to the " <<_("set the environment variable LYX_DIR_12x to the "
"LyX system directory ") "LyX system directory ")
<< _("containing the file `chkconfig.ltx'.") << endl; << _("containing the file `chkconfig.ltx'.") << endl;
if (!path_shown) { if (!path_shown) {
@ -401,15 +401,15 @@ void LyX::init(bool gui)
// Directories are searched in this order: // Directories are searched in this order:
// 1) -userdir command line parameter // 1) -userdir command line parameter
// 2) LYX_USERDIR_11x environment variable // 2) LYX_USERDIR_12x environment variable
// 3) $HOME/.<name of binary> // 3) $HOME/.<name of binary>
// If we had a command line switch, user_lyxdir is already set // If we had a command line switch, user_lyxdir is already set
bool explicit_userdir = true; bool explicit_userdir = true;
if (user_lyxdir.empty()) { if (user_lyxdir.empty()) {
// LYX_USERDIR_11x environment variable // LYX_USERDIR_12x environment variable
user_lyxdir = GetEnvPath("LYX_USERDIR_11x"); user_lyxdir = GetEnvPath("LYX_USERDIR_12x");
// default behaviour // default behaviour
if (user_lyxdir.empty()) if (user_lyxdir.empty())