Karakas Online

3.1. LyX

In case you are wondering what LyX is, here is what http://www.lyx.org says on the subject:

LyX is an advanced open source document processor that encourages an approach to writing based on the structure of your documents, not their appearance. LyX lets you concentrate on writing, leaving details of visual layout to the software.

LyX runs on many Unix platforms, OS/2, and under Windows/Cygwin (this port requires an X server). It can also run natively on Mac OS X, thanks to the Qt/Mac library.

LyX produces high quality, professional output -- using LaTeX, an industrial strength typesetting engine, in the background; LyX is far more than a front-end to LaTeX, however. No knowledge of LaTeX is necessary to use LyX, although it will give a user more power.

LyX is stable and fully featured. It has been used for documents as large as a thesis, or as small as a business letter. Despite its simple GUI interface (available in many languages), it supports tables, figures, and hyperlinked cross-references, and has a best-of-breed math editor.

Get a suitable version of LyX available fo your distribution. I prefer to get the source RPM, like lyx-1.2.0-91.src.rpm and then compile it with

rpm --rebuild /usr/src/lyx-1.2.0-91.src.rpm

Update: Versions 1.3.2 and 1.3.4 of LyX do NOT work for our purposes! Version 1.3.2 brings the error Counter does not exist: sect1 and version 1.3.4 does not contain the “begin{equation}” commands in the alt part of the equation element (see LyX 1.3.4 not suitable for DocBook and Mathematics work), thus making all our efforts to use the DBTeXMath method (see Section 10.1) fail in vain. I am currently in contact with the LyX development team to iron these problems out. In the meantime, if you are having difficulties with your own LyX version, you can use the following RPMs to install version 1.2.0-91 which is guaranteed to work:

If you want to compile version 1.2.0-91 for your own Linux system, here are the source RPMs:

Note that the two source RPMs are practically identical, up to the lyx.spec file and an extra dif file for src/frontends/xforms/GUIRunTime.C. This is due to the renaming of some packages under SuSE 9.0, which makes changes in the “# usedforbuild” part of the spec file necessary, as well as to the check for the xforms package version that accepts only versions 0.88 and 0.89 - while in SuSE 9.0 we have already arrived at xforms 1.0-137! See How to compile an older version for a newer system in RPM for the details.

You might have to install doxygen (SuSE: Series d, install with YaST). The rebuild process of rpm creates a new RPM packet of LyX, as one can see from the last lines of the long output:

Processing files: lyx-1.2.0-91 
Finding Provides: (using /usr/lib/rpm/find-provides)... 
Finding Requires: (using /usr/lib/rpm/find-requires)... 
Requires: tetex te_latex /bin/bash /bin/sh /usr/bin/perl
/usr/bin/python ld-linux.so.2 libICE.so.6 libSM.so.6 libX11.so.6
libXpm.so.4 libc.so.6 libc.so.6(GLIBC_2.0) libc.so.6(GLIBC_2.1)
libc.so.6(GLIBC_2.1.3) libforms.so.0.89 libjpeg.so.62 libm.so.6
libm.so.6(GLIBC_2.0) libstdc++-libc6.2-2.so.3 
Wrote: /usr/src/packages/RPMS/i386/lyx-1.2.0-91.i386.rpm

Install the newly created RPM package as usual, either with YaST, or with

rpm -Uvh /usr/src/packages/RPMS/i386/lyx-1.2.0-91.i386.rpm
Note Please note:
 

As you can see from the above output of the rebuild command, LyX requires the following packages and libraries to be already installed on your system:

Requires: tetex te_latex /bin/bash /bin/sh /usr/bin/perl
/usr/bin/python ld-linux.so.2 libICE.so.6 libSM.so.6 libX11.so.6
libXpm.so.4 libc.so.6 libc.so.6(GLIBC_2.0) libc.so.6(GLIBC_2.1)
libc.so.6(GLIBC_2.1.3) libforms.so.0.89 libjpeg.so.62 libm.so.6
libm.so.6(GLIBC_2.0) libstdc++-libc6.2-2.so.3

On SuSE systems, if you install Lyx with the above rpm command, it is a good idea to either run SuSEconfig, or just the part of SuSEconfig that is relevant to LyX, /sbin/conf.d/SuSEconfig.lyx:

/sbin/conf.d/SuSEconfig.lyx  Running LyX configure script ...

On other systems, you may have to reconfigure LyX by hand: This is done from the menu Edit-->Reconfigure. See Section 4.1.

Now your LyX is up-to-date. You just have to write your document with it. Since LyX comes with a well written Tutorial (written itself in LyX), as well as User Guide (both easily acessed from the Help menue), I will not delve into the details of writing with LyX here.

Last updated Mon Sep 24 01:19:25 CEST 2007 Permalink: http://www.karakas-online.de/mySGML/lyx.html All contents © 2002-2007 Chris Karakas