Linux.com

Feature

Hot LyX

By Dave Fancella on September 22, 2004 (8:00:00 AM)

Share    Print    Comments   

A common problem with word processors today is that they force users to deal with typesetting, a skill that is about as useful to a writer as metalworking is to a mechanic. This focus on typesetting means that writers have to spend too much time dealing with the way their documents look. To make matters worse, many documents are shared in a variety of different formats requiring additional time wasted in export, conversion, and quality control on the finished product. To help get around these obstacles, Linux users can turn to a document processor called LyX. LyX is optimized for writing and takes the chores of typesetting out of the writer's hands and places them in a competent professional: LaTeX.
By using LaTeX as an interim format LyX is capable of taking a document and exporting it into any format. LyX lets you focus on what you mean rather than what your page looks like. When you're finished writing, you simply inform LyX in what format you would like the document and LyX delivers it to you. By using LaTeX as an interim format, you can use any command line LaTeX converter to produce your document in any format needed. Out of the box, LyX supports exporting PDF, HTML, PostScript, PlainText, and DVI. In addition, LyX has an excellent GUI constructor for building simple and complex mathematical statements, making it suitable for writing technical theses.

I tried exporting one of the included documents to PDF, figuring an included document would be more likely to be written "correctly" than something I just wrote. Viewing the resulting file I found myself looking at a book with every appearance of having been professionally typeset and ready to go to press.

Impressed, I wanted to try my own hand at formatting. So I imported a book from Project Gutenberg and spent half a minute telling LyX what the parts were. (LyX is limited in the kids of documents it can import. It handles only plain text, LaTeX, and Noweb.) I inserted a table of contents and placed a title and author at the top of the book. Exporting that to PDF I found that I, too, can lay out professional-looking novels.

Despite all the positive points, my first impressions of LyX were not very good. I started typing and got lost quickly. I kept trying to put two spaces after each period, hitting Return for extra white space, and all the things that I'm used to doing with other word processors. Luckily, I then found the online documentation, which was thorough and helpful. After five minutes' worth of tutorial, I went back and started writing and the interface made sense.

LyX screen shot

LyX's interface is very minimal, showing a small toolbar with a drop-down menu, a few buttons, and a large editing area. The buttons themselves are a bit different than the common assortment of typesetting-centric buttons, since you won't find Justify, Right-Align, Italic, Bold, or any of the other buttons you're used to seeing. Instead, you find Emphasis, Noun Style, Footnote, Margin, and the Math Editor. The editing area is also a bit different than I was used to seeing, consisting of just a more or less generic edit control rather than the large rendered page you get with standard word processors.

I had a pretty easy time installing LyX, since I just installed it from RPM. LyX comes with most major Linux distributions in whatever format they use, so your distribution's package manager should already make it available. If you build it from source, you really need to worry only about having XForms or Qt. If you're not using KDE, you can build with the XForms interface, just making sure XForms is installed.

LyX uses any command-line utility to make the conversion from LaTeX to your target format, so you will need to make sure you have such a utility available. While this appears at first glance a drawback compared to traditional word processors, it is an extension of the Unix philosophy of building small programs that work well. Using the Reconfigure feature, LyX can discover the programs it already understands on its own. If you have already used LaTeX for any serious work then you are already familiar with the additional programs you need for your target formats. If you have never used LaTeX, just relax and install anything that converts LaTeX. LyX's online documentation contains a list of LaTeX packages you should have, and if you want to output to any given target format, you can expect to find the right applications by searching through your package manager for "latex" or your target format. If you have never done anything with LaTeX, spend some time reading through LyX's documentation.

LyX has been around for a while. It was originally written by Matthias Ettrich, KDE's founding father, before he had discovered Qt and started the KDE project. Originally a Motif application, LyX was later ported to XForms. Today, LyX supports XForms and Qt, with a GTK interface in development. LyX is now maintained by Lars Gullik Bjønnes and more than 20 developers worldwide.

LyX's primary benefit is that it takes the work of typesetting completely out of your hands. Since I spend a lot of time writing without knowing what the target format will be, I found LyX to be exactly the right tool at the right time for me. I find that even after I've written something in one format I frequently have to provide the same stuff in other formats, and LyX handles that beautifully.

LyX's primary drawback is that it doesn't interchange documents well with more traditional word processors. Since I generally don't have to worry about interchanging documents, I've been able to switch all of my important writing to LyX. Just as when I switched to Linux, I'm looking back and thinking, "Why did I waste my time with that other stuff?"

Share    Print    Comments   

Comments

on Hot LyX

Note: Comments are owned by the poster. We are not responsible for their content.

LyX is a gateway drug

Posted by: Anonymous Coward on September 23, 2004 02:30 AM
LyX was the gateway drug to LaTeX for me.

great software!!

#

LyX's primary drawback

Posted by: Anonymous Coward on September 23, 2004 02:43 AM
LyX's primary drawback is that it doesn't interchange documents well with LaTeX. Export is one-way, import is one-way. No sustained collaboration with other means of writing LaTeX.

Edit a LaTeX document from a coworker, and return it in completely mangled form.

#

Re:LyX's primary drawback

Posted by: Anonymous Coward on September 23, 2004 05:34 AM
Indeed this is a major problem and it needs to be worked out.

#

This is getting there

Posted by: Anonymous Coward on September 23, 2004 03:33 AM
We have been running into this type of problem with MS Word and Open Office. Where we have 20 different people working with 70 different documents on one project. Somehow the formats get all screwed up, because different users have different defaults or different default languages or the user isn't paying attention. We just had one guy spend 3 days correcting the formats on these 70 documents.

 

  So for the last week I have been looking at DocBook, which appears to have the right idea in how we would want to go, but it still looks like it might be confusing to users.

  I'll definitely look at LyX.

 
But there is definitely a big market for an application that simplifies typesetting and the creation of documents in multiple formats.

#

Re:This is getting there

Posted by: Anonymous Coward on September 23, 2004 06:06 AM
You should be using templates and styles.

OpenOffice.org has a very powerful notion of styles. If you can get your users to use the style consistently, it can be a life saver. It has any of the benefits as LyX. It creates a constant appearance. You give your document a "logical" description (e.g. author, title, etc).

Take a look at the OpenOffice.org user guide:

http://www.oooauthors.org

We have dozens of volunteers working on the guide, and we maintain a common look by having a standard template.

Furthermore, we can change the appearance fairly easily. We make a new template and apply it to each document. So, the process takes just a few clicks for each file.

LyX is fantastic software, I love it, and I use it. But for "average" users how have the kind of need you describe (e.g. for your company) the best option might be OpenOffice.org WITH TEMPLATES AND STYLES.

Remember: Templates and Styles.

Very important.

Those are what set OpenOffice.org appart from other office suites. That's what sets OOo appart from a glorified typewriter.

Cheers,
Daniel.
OpenOffice.org volunteer.

#

Re:This is getting there

Posted by: Anonymous Coward on September 23, 2004 07:07 PM
>OpenOffice.org has a very powerful notion of styles. If you can get your users to use the style consistently, it can be a life saver.

Yes, that's the same thing as "document classes" in LaTeX/LyX.
In fact, both are implementations of the more general concept of "logical markup" (as opposed to "physical markup", i.e. setting point sizes, typefaces etc. manually).

>It has any of the benefits as LyX.

Except that LyX uses LaTeX as its rendering engine, a professional typesetting system of the highest quality. Especially when it comes to math formulas, nothing I've ever seen comes close to it.

#

Re:This is getting there

Posted by: Anonymous Coward on September 24, 2004 01:51 AM
>>It has any of the benefits as LyX.
>
>Except that LyX uses LaTeX as its rendering
>engine, a professional typesetting system of the
>highest quality. Especially when it comes to math
>formulas, nothing I've ever seen comes close to
>it.

OOps. I meant to say "many", not "any". Definitely not all. LyX beats the snot out of OOo when it comes to mathematical formulae, for example.

For that matter, OOo beats the snot out of LyX on other areas (e.g. built-in vector graphics engine).

Cheers,
Daniel.
OpenOffice.org volunteer.

#

Re:This is getting there

Posted by: Anonymous Coward on September 25, 2004 02:04 PM
> Except that LyX uses LaTeX as its rendering engine, a professional typesetting system of the highest quality. Especially when it comes to math formulas, nothing I've ever seen comes close to it.

Although I'm a LyX/LaTeX user myself, I've found tht there is a nice package for OO called Writer2LaTeX (<A HREF="http://www.hj-gym.dk/~hj/writer2latex/" title="hj-gym.dk">http://www.hj-gym.dk/~hj/writer2latex/</a hj-gym.dk>) which enables one to use OO adn then export to LaTeX to get the best possible output<nobr> <wbr></nobr>:-)

#

Lyx is nice, but could have better docs

Posted by: Anonymous Coward on September 23, 2004 06:39 AM
There's more that latin characters in the world..<nobr> <wbr></nobr>;)
I spent some time finding how to write Greek in Latex. I found all stuff (with greekISO, with UTF8) , with Omega..
The settings of Lyx were a bit mess in this particular subject, so I ended up using Kile and writing pure LateX

There's also TeXmacs but these guys, seem to support 8 languages [at least seen that from the menu]. Well.. I can be wrong, but still cannot pray to the Lord to find how to write in my native language! (I tried lyx-qt until lyx-gtk is out) and lyx-gtk is out, then I'll try again because I so much like GTK and may have the courage to re-ask in the mailing lists and do the whole searching from scratch

#

Very fine!

Posted by: Anonymous Coward on September 23, 2004 08:17 AM
I'm running Mandrake 9.2. So I thought: "Wha, Mandrake has everything, let's try it...".

Starting aterm, I searched for klyx (I remember there was such an app years ago), but no such thing here... maybe lyx getting Qt supported deprecated klyx... ?

Anyway, lyx was there. I started it and was greeted with a short (some 10 lines text). Exporting to dvi generated an error. Curiously, it started with a read-only file.

Leaving lyx and re-entering revealed a different splash screen this second time. I then look at the Help| Introduction. It looks very good. I surely will give it a go soon.

An idea that strikes me is using Lyx and Scribus together, as they seem complementary to me.

Does anyone used them both?

PS: BTW, Dave, if you wanted to sell the lyx idea, I think you were overwhelmingly succesful. Thanks.

#

Re:Very fine!

Posted by: Anonymous Coward on September 23, 2004 09:45 PM
I'm a long time user of LyX and Scribus (well, Scribus is young but I started using it at version 0.3).

Like you said they are complementary, I insist. You won't use LyX for a DTP project, Scribus is perfect for a flyer or a project involving heavy graphics, the use of layers, etc.

LyX, on the otherhand, is perfect for a document, a book, a long document with plenty of cross references, hyperlinks, etc.

But you may mix both softwares in a final pdf project, merging the resulting files with pdftk. You then get the best of the two worlds<nobr> <wbr></nobr>:-)

And don't forget to ajust LyX's preambule so that it contains the hyperref package for clickable hyperlinks in the pdf output.

Raymond

#

Re:Very fine!

Posted by: Anonymous Coward on September 24, 2004 02:19 AM
Exactly what I was looking for...

Thanks for the comments.

#

Lyx

Posted by: Anonymous Coward on September 23, 2004 08:47 AM
Lyx is the only application that I will use for serious writing. It allows you to focus on the writing and to forget about everything else.

And it produces beautiful, beautiful output. And here's a tip for those of you that need to output to PDF and make it look nice on non-unix platforms, make sure that in your document definition, you choose the pdflatex fonts and that when you export, you also use the pdf-latex filter. You will then be able to produce beatiful documents without much work at all.

Free Software is such a beautiful thing. The developers have my deep appreciation.

Regards,

Gonzalo

#

plain old LaTeX

Posted by: Anonymous Coward on September 23, 2004 09:45 AM
doesn't anyone use good old LaTeX anymore? give me vi + LaTeX and I'm happy... I guess most people prefer WYSIWYG (but those editors tend to make such complicated/ugly/redundant code!)

#

Re:plain old LaTeX

Posted by: Anonymous Coward on September 23, 2004 02:43 PM
Use <A HREF="http://preview-latex.sourceforge.net/" title="sourceforge.net">preview-latex</a sourceforge.net>: you get full WYSIWYG on your formulas and stuff, and yet there is not a single character in the output that you did not put in there yourself.

#

Re:plain old LaTeX

Posted by: Anonymous Coward on September 23, 2004 04:26 PM
i wrote my thesis in latex using mostly vi<nobr> <wbr></nobr>:-) fair enough?
after some initial time to work into the system, i was satisfied to see all my word-using fellows struggeling with layout and formatting issues while i was able to concentrate on content<nobr> <wbr></nobr>:-) well... more or less *g*

#

Re:plain old LaTeX

Posted by: Anonymous Coward on September 23, 2004 09:27 PM
I started out using LyX when writing my thesis, but when I suffered a 486SX/33 laptop with 8 MB RAM for a short period, I couldn't even use X11. So I exported my work from LyX and continued my writing in Vim and LaTeX. It was a great way to learn, because the learning curve was so smooth.

I eventually ended writing the rest of the thesis in Emacs with Auctex after using OS X for a while. Terminal.app didn't support Norwegian characters æ, ø, and å, so Vim was out of the question, and the most popular OS X LaTeX editors were crap. So as a by-product of starting with LyX, i learned both LaTeX and Emacs (I'm a Vim fan by nature, but Emacs is great for TeX). And of course, my thesis looked excellent (and was excellent, I got an A).

#

Re:plain old LaTeX

Posted by: Anonymous Coward on September 24, 2004 03:22 AM
Did you try Vim with LaTeXSuite? I use it both on Linux at home and Windows at work, and I love it.

http://vim-latex.sourceforge.net/

#

Re:plain old LaTeX

Posted by: Anonymous Coward on September 24, 2004 08:47 AM
No, but I'll check it out. Thanks.

#

Re:plain old LaTeX

Posted by: Anonymous Coward on September 24, 2004 01:32 AM
Actually, there are some things that I use Plain TeX for. One of the advantages to (La)TeX that wasn't relevant to the discussion of LyX is that it is so easy to generate a document or pieces of a document from a script. This idea is certainly no longer a novelty in a world with XML and XSLT, but I have a Perl script that generates a TeX document from a database for me. The script has been slowly evolving since 1994.

That brings me to a second advantage of the TeX family. Your old documents can still be processed. Go grab a Word document from the early 90's and see what Office XP does with it. I'd be interested to know.

#

Project GutenMark

Posted by: Anonymous Coward on September 23, 2004 09:20 PM
Dave,

If you like the Gutenberg etext/LyX combination, then check out Project GutenMark the <A HREF="ftp://ftp.sandroid.org/GutenMark/MarkedTexts" title="sandroid.org">FTP Site</a sandroid.org> for several etexts in LyX format.

There's also a tool for automating the process.

Rick Holbert

#

I used Lyx during college - was great!

Posted by: Anonymous Coward on September 24, 2004 02:27 AM
I used Lyx to write all my term-paper assignments as needed for my General Elective courses while I pursued my BS in Comp.Sci.

It was great!

Me

#

ill give it a try

Posted by: Anonymous Coward on September 24, 2004 03:24 AM
i am currently using slackware-10, OpenOffice-1.1.2 will not print envelopes properly in my HP deskjet-840, same with KDE's office & ABIWord they print text good but not envelopes, theses are both good apps just that this setup has a bug or something, i also have a old copy of StarOffice-5.1 that prints envelopes great (who knows why), i will give this lyx a try at what its office capabilitys are...

#

You must be joking?

Posted by: Anonymous Coward on September 24, 2004 08:29 PM
Or didn't you read the article at all? A program (lyx) should do one thing (writing & editing text) and do that task very good. Lyx is not about printing envelopes. Unless you want well formatted novels written on a envelope, lyx is not the way to go.
But you knew that didn't you?

(frigging trolls...)

#

Re:ill give it a try

Posted by: Anonymous Coward on September 25, 2004 02:21 AM
There is a PERL script called "envelope" or something like that floating around, I have used it last year to print hundreds of envelopes on a deskjet printer. It was easier and faster than anything else I have tried before. I highly recommend it.

#

LyX, LaTeX, Metapost, IPE

Posted by: Anonymous Coward on September 24, 2004 03:40 AM
LyX is a great piece of software. I mostly write LaTeX in Vim, (recently I discovered LaTeXSuite, http://vim-latex.sourceforge.net/) but I use LyX every once a while, and it is the only "word processor" type software I am able to use without having a fit every five minutes or so<nobr> <wbr></nobr>:) It has the best math editor I have ever tried.

My main problem with LyX is how difficult is it to use Metapost generated graphics with LyX. I use Metapost a lot, and to use it with LyX and produce both ps and pdf versions of a document is painful (which is funny, because both LyX and Metapost alone are very good at producing identical ps and pdf documents. They approaches to the problem sort of clash with each other).

There is another program whose philosophy reminds me of LyX. It's the graphics editor IPE (http://ipe.compgeom.org/) I would recommend every person who likes LyX and has to create technical graphics to look at it. If you do, don't forget to try all the snapping modes.

#

LyX: neither fish nor fowl

Posted by: Anonymous Coward on September 24, 2004 03:53 AM
If you want the software to do all the layout for you - use LaTeX. And an ordinary text editor like emacs. If your doc has a lot of math, this is definitely the best way to go.

If you want a GUI, then use OpenOffice. It's a pity it can't export to LaTeX, but I have to admit I've never needed it to.

So who needs LyX? Beats me. The whole point of a GUI is that you get direct control over layout, assuming that that's what you want. LyX doesn't give you that, so what's the point of a GUI? It panders to the unthinking prejudice that a GUI is always "better", "more user-friendly". But in this case, it isn't, because it creates the wrong expectations in the user.

#

Re:LyX: neither fish nor fowl

Posted by: Anonymous Coward on September 24, 2004 05:18 PM
>So who needs LyX? Beats me. The whole point of a GUI is that you get direct control over layout, assuming that that's what you want.

Really? I can't speak for others, but I usually don't care about "direct control over layout". Rather the opposite: I want to "just type" while LyX takes care of the layout without me having to bother.

>use LaTeX. And an ordinary text editor like emacs. If your doc has a lot of math, this is definitely the best way to go.

Did you know that in LyX, you can just type LaTeX math commands into a math box (e.g. \int, \sqrt, \frac...), and symbols appear as you type?
(To be exact, in order to see the symbol you must either start the next one or hit space, so that LyX knows that the command is finished.)

#

Re:LyX: neither fish nor fowl

Posted by: Anonymous Coward on September 24, 2004 06:24 PM
Did you know that in LyX, you can just type LaTeX math commands into a math box

And why is that better than<nobr> <wbr></nobr>... just typing them?

#

Re:LyX: neither fish nor fowl

Posted by: Anonymous Coward on September 25, 2004 02:38 PM

>>Did you know that in LyX, you can just type LaTeX math commands into a math box

>And why is that better than<nobr> <wbr></nobr>... just typing them?


Maybe, you can see what you have typed and if there is e typo you immediately know? Or, maybe, you don't need to worry about matching curly brackets?

#

Re:LyX: neither fish nor fowl

Posted by: Anonymous Coward on September 25, 2004 06:16 PM
"The whole point of a GUI is that you get direct control over layout, assuming that that's what you want."

The point of a GUI is typically for usability. In this instance, it takes away the cognitive drain of a feature-rich system like Latex. You have menus and icons that do things, and the user can recognise their functions. This is opposed to simply using a text editor , where by the user has to recall all the necessary commands.

Lyx isn't a WYSIWYG editor, so even if you changed page properties, it wouldn't be reflected on screen - only when you exported it as a document in your chosen format (PS, PDF, etc)

Of course, whether it's user-friendly will probably depend on the user. I use Lyx every now and again. I tend to use good ol' vim for writing Latex files. But I think Lyx is rather good.

Latex and therefore Lyx are better for certain types of documents, articles, reports, thesese, books. Normally large docuements that are heavily structured. Lyx should help to provide a means for people who want to write such documents, who are tired with word processors, and want to try things the Latex way, but without Latex experience.

#

convert to doc

Posted by: kirkjobsluder on September 24, 2004 04:30 AM
Some of my best writing experiences involved LaTeX but then, I ran into a stupid problem.

Far to many conferences, jounals, and colleagues in my field want MSWord as a file format. Worse, they want APA citation style which requires special processing and layout tags not understood by any of the LaTeX to RTF formatters. After spending a few weeks trying to get various converters to work, (and then a few more weeks converting by hand) I just gave up on it.

I just saw that <A HREF="http://www.cse.ohio-state.edu/~gurari/TeX4ht/mn.html" title="ohio-state.edu">Tex4ht </a ohio-state.edu> has a oo.org converter which might be worth trying if I can dig up my old stuff.

#

Re:convert to doc

Posted by: Anonymous Coward on September 24, 2004 09:29 AM
You can render LaTeX to PDF, either directly or via Postscript. Even the most hidebound editor should be able to manage with a PDF file.

#

Re:convert to doc

Posted by: kirkjobsluder on September 24, 2004 11:20 AM
I think the problem is they want documents in a form that can be sliced, diced, and commented on in a word processor that is comfortable to them. Certainly, I've asked, "is pdf copy ok?" and the response I get back is they want Word.

#

Don't take that for an answer

Posted by: Anonymous Coward on September 24, 2004 06:22 PM
the response I get back is they want Word.

The response I give to people like that is, "I don't use Microsoft Word". If they can't take documents in some well-defined, standard format, they're not doing their job properly. OK, you will lose a few contacts, but not many, and none that are irreplaceable.

#

Word is 'a' standard

Posted by: Anonymous Coward on September 24, 2004 08:34 PM
For the average lay person, word is a well defined standard. That is the networking effect for you. Life is not black and white, so sometimes you need to make compromises. "i won't do it because I dont [like|trust|have] microsoft products" is not a comprommise.
Good luck with your contacts!

#

Re:Word is 'a' standard

Posted by: Anonymous Coward on September 25, 2004 02:51 AM
Actually Word is not a standard format (and certainly not well defined), and that is probably the main problem with it. Don't misunderstand what I'm saying. What I mean is that there is no standard "Word" format or ".doc" format. Different versions of Word produce incompatible formats. Even RTF, as the original poster was exporting his documents to, is much more consistent than<nobr> <wbr></nobr>.doc.

#

Re:Don't take that for an answer

Posted by: kirkjobsluder on September 25, 2004 04:29 AM
A great teacher once told me, "it depends on how hungry you are." At this stage in my career as a lowly graduate student. I need the reviewers who feel most comfortable with word a lot more than they need my submission.

#

good news

Posted by: kirkjobsluder on September 25, 2004 04:26 AM
A recent <A HREF="http://www.cse.ohio-state.edu/~gurari/TeX4ht/bugfixes.html" title="ohio-state.edu">update</a ohio-state.edu> for TeX4ht fixes the problem I've been having with apacite and creates OO.org formatted files.

#

This story has been archived. Comments can no longer be posted.



 
Tableless layout Validate XHTML 1.0 Strict Validate CSS Powered by Xaraya