DonationCoder.com Forum

Main Area and Open Discussion => General Software Discussion => Topic started by: superboyac on March 15, 2011, 03:48 PM

Title: Lyx is the answer
Post by: superboyac on March 15, 2011, 03:48 PM
I've been writing a lot the past year.  You guys might be familiar with my frustrations with Word and styles and all that.  Well, I think Lyx is the answer for me.  I haven't gotten my hands dirty with it yet, but I've been reading about it and it seems like it's exactly what I'm looking for.

The other reason why I'm just about convinced is because of the intro/tutorial that's included with the program.  It's very clear that they want to make writing and styling very easy.  Not like Word, and not like any other application I've seen.

I've been using Indesign for a side business involving equations and text and graphics.  Indesign is ok, but still a little too much fiddling around for me.  And like any of the big name software, there are a lot of features that are implemented in a weird way.  I'm going to give Lyx a try and I'm pretty sure I'm going to like it a lot.

Word sucks. Extremely unstable.  It's been two fucking decades and it still can't do bullets and numbering without making you nervous.  All the experts say avoid most of the interesting features because it corrupts the document.  And it does.  i remember ignoring that advice, and my documents got corrupted almost immediately.

And I love that Lyx can do math stuff.  Man, Indesign has some pretty annoying issues with math stuff.  You have to bring it in from something like Mathtype, and then it doesn't display nicely if it's a Mac, and it creates an extra step if you want to change anything.  You have to go back to mathtype, bring it back in, etc.  So it's nice to have it in one place.

I'm also going to be interested in automating document creation based on databases and such.  but that's in the future.

So Word is out.  Indesign is out, most likely.  I never was a fan of Quark.  I've had experience with Scientific Notation's Scientific Workplace package, but it's outdated now and not as nice as Lyx.  (This is all Latex stuff, for those of you wondering).  I was never a huge fan of Latex because of it's unix-like environment, but it has matured into nice applications like Lyx now.  And it's free.  Crazy.  I would actually prefer something like Lyx that I can pay for, so I can get support more easily if necessary.  But there doesn't seem to be an equivalent out there.  It's ok, Lyx sounds like it's just right.

I'm pretty excited about it, actually.
Title: Re: Lyx is the answer
Post by: Curt on March 15, 2011, 05:05 PM
And I love that Lyx can do math stuff. 

The other way around, I would say. LYX is a math editor than also can type words and stuff.

Well, what I would say is, that the included CygWin has made some computers unstable.
Title: Re: Lyx is the answer
Post by: superboyac on March 15, 2011, 05:38 PM
And I love that Lyx can do math stuff. 

The other way around, I would say. LYX is a math editor than also can type words and stuff.

Well, what I would say is, that the included CygWin has made some computers unstable.

Would you say it's anything to worry about?  I'm not saying it will never ever do anything wrong.  Do I have to worry about doing a bunch of work, and then losing it?  It doesn't seem to be the case.
Title: Re: Lyx is the answer
Post by: Edvard on March 15, 2011, 06:39 PM
Lyx is great for what it says it's for, which may be exactly what you're looking for.
If you can get the concept of WYSIWYM, you're more than halfway there.

The only instability I've discovered so far is when that one section looks almost right, and I just KNOW I can fix it in the Class file...  

Long story short
Save yourself from the get-go by picking a Class that looks most like what you envision your end-product to be, and work with it.
Save tweaking up your own for when you have more experience and a few hours to waste :P

Title: Re: Lyx is the answer
Post by: superboyac on March 15, 2011, 07:47 PM
Save yourself from the get-go by picking a Class that looks most like what you envision your end-product to be, and work with it.
Save tweaking up your own for when you have more experience and a few hours to waste. 
Well...I plan to be extremely picky about my styling.  That's the whole point.  It's not like any other program makes styling a breeze.
Title: Re: Lyx is the answer
Post by: Edvard on March 15, 2011, 09:21 PM
I totally understand.
All I'm saying is, concentrate on your writing, because that's the point; you'll be telling Lyx what to do as you go along, and it will obey.
The Pre-set Classes available are pretty good, just roll with them for now, there might even be one that's perfect out of the box.
Later, you can open one up and make minor adjustments here and there, and IME that process can get nuts pretty damn quick.
Title: Re: Lyx is the answer
Post by: Eóin on March 15, 2011, 09:51 PM
I don't know LyX, but I do know LaTeX which is what LyX builds on. LaTeX is all about removing you, the writer, from the typesetting. Basically you're just supposed to type and then rely on the TeX engine to compile your document in a beautiful PDF. It will do that, and it will do it well.

Again, I don't know how easy or not LyX is to use, but at the moment I myself wouldn't consider using a LaTeX GUI. For me a LaTeX document is like a webpage, you have the content and styling separate, so you can change one easily without affecting the other. When you write a LaTeX document in the markup code, it's easy to try out loads of different styles. I did my Thesis this way, so doing large documents is very possible.

A thing to remember though is that LaTeX wants you to only provide the content, it wants to be left alone to decide the typesetting. Frankly LaTeX assumes you, the writer, is useless at typesetting and document design, and will fight you tooth an nail every time you disagree with it. That include small things like page breaks, it believes it knows better than you.

This behavior is largely by design, most people aren't designers and will often produce awful end products if given access to such features.

Personally I'd say go with raw LaTeX code, possible with the XeLaTeX compiler so that you can easily use system fonts. Also go with the MikTeX distribution, it's Windows orientated and very simple to use.

Of course by all means give LyX a whirl, but I couldn't imagine doing my Thesis (~160 pages, full of math equations, tables and graphs) in WYSIWYM or WYSIWYG program.
Title: Re: Lyx is the answer
Post by: superboyac on March 15, 2011, 10:45 PM
Eoin, I understand most of what you say.  But it doesn't quite make sense to me.  I understand the whole idea of Latex.  You say you wouldn't use a gui.  i don't understand why not.  To me, you sound like those programmers and computer powerusers who insist that using keyboard shortcuts and programming things from scratch is "better".

Whenever people talk about latex, they keep repeating the same things.  Latex doesn't want you thinking about typesetting, etc.  And they keep repeating it and repeating.  Look, I get it.  I get the philosophy behind the thing.  Now, let's get down to it.  Latex is not a person, it doesn't assume anything.  I just want to define like 5 different styles, and start using them to create content.  Why wouldn't I want a gui?  Can you explain that?

You say:
Frankly LaTeX assumes you, the writer, is useless at typesetting and document design, and will fight you tooth an nail every time you disagree with it. That include small things like page breaks, it believes it knows better than you.
That doesn't make sense to me.  latex is not a person, so you need to explain this without all the abstract talk.  What good is a program if it's going to fight me for trying to get things just the way I want it?  That doesn't make sense.  If it's true, why the hell would I use it?

I want to define when and where page breaks should occur.  I want to define what borders and stuff appear on the page.  I want to define how the paragraphs are styled.  I'm EXTREMELY PICKY.  I'm going to nitpick every line spacing, every white space, the indentations.  I don't want it almost the way I want it.  I want it exactly the way I want it.  I don't want to go around in circles trying to "trick" the program to do it.  I want a program that will easily do these things.  Not with codes or syntax, but with buttons and dialogs and previews, etc.

A lot of people like us scoff at WYSIWYM or WYSIWYG.  Why?  How is that a bad thing?  I just don't understand any of this.

If your recommendation is to go raw latex, my answer is no thanks.  I'll just stick to Indesign.
Title: Re: Lyx is the answer
Post by: zaminur143 on March 16, 2011, 02:02 AM
I've been writing a lot the past year.  You guys might be familiar with my frustrations with Word and styles and all that.  Well, I think Lyx is the answer for me.  I haven't gotten my hands dirty with it yet, but I've been reading about it and it seems like it's exactly what I'm looking for.
As I am new in this community, I didn't see your past posts. But I can say about your style. Because I'm answering your present post.
No big words for you, I just impressed.
Title: Re: Lyx is the answer
Post by: Curt on March 16, 2011, 06:10 AM
just a quote for your information:


The first WYSIWYM word processor (and also first editor) was LyX. LyX is a graphical editor built on top of a LaTeX  processor, so it, like LaTeX, is particularly suited for the editing of scientific documents — though, again like LaTeX, it can be used for a wide variety of purposes.

Inside LyX, the structure of a document is partly determined by the 'document layout' chosen for it. These layouts correspond to LaTeX document classes, though LyX can also work with DocBook. The export process is performed in two steps. First the contents are transformed from an internal format to LaTeX, and then the LaTeX processor is used to generate the output document in the requested format (DVI, PDF, etc.). An advantage of this system is that LyX can produce any format to which a LaTeX file can itself be converted.
-Wikipedia on 'WYSIWYM'
Title: Re: Lyx is the answer
Post by: Renegade on March 16, 2011, 07:05 AM
I'm pretty excited about it, actually.

Hell! You've got me excited about it~! :D

Sounds fantastic. Checking it out now...
Title: Re: Lyx is the answer
Post by: Edvard on March 16, 2011, 07:13 AM
Superboy, all we're saying is that Lyx (Latex) is VERY powerful for formatting text (you already know that), and as Spider-Man once said oh so long ago, "with great power comes great responsibility".
We'd like to spare you that pain, but since you've stated many times how nit-picky you are, I'm thinking it's inevitable you'll be wanting to get your hands dirty.
IMHO, nothing wrong with using a GUI, nothing wrong with being picky; Latex CAN be made to do your bidding, it just might take a bit of work.

My advice would be to write an example document, say 5-10 pages long, load it into Lyx and spit out some PDF's, applying appropriate-sounding Classes for each one.
Figure which one is closest to how you want it, make a copy and tweak it, checking the output after each adjustment until you get it just right.
Don't be surprised if this process takes a good chunk of time, but once you get it set up, you can write to your heart's content and spit out perfectly formatted documents until the cows come home.

I only warned you because I did this myself a short while ago, trying to format a resume from a plain text file into a pretty document.
I have to say it actually worked VERY well, and the default 'Curriculum Vitae' formatting was very impressive.
I tried out a few different classes and every one had nice touches and distinct advantages that obviously would work very well for other types of documents.
But when a few very minor things didn't turn out exactly to my liking, I spent a LOT of time tweaking a Class and after 4 or 5 hours it still wasn't coming out exactly right (probably due more to my inexperience than anything), so I gave up and went back to the CV class I had tried in the first place.

Caveat Utilitor...
Title: Re: Lyx is the answer
Post by: superboyac on March 16, 2011, 08:46 AM
Edvard, I'd like to discuss the details of your issue here:
But when a few very minor things didn't turn out exactly to my liking, I spent a LOT of time tweaking a Class and after 4 or 5 hours it still wasn't coming out exactly right
These are my questions:
1) What was it exactly that you were trying to do?
2) When you say tweaking, what were you tweaking. (the more specific the better.  An xml file?  A settings dialog?)

I don't think I'd have more than 10 styles I'd use.  It can't be that hard to create 10 styles from scratch, could it?  Let's say it takes me 40 hours.  that's ok.  I'm fine with that.  What I don't want to do is after 40 hours, find out that it's really going to take me 100 more hours to figure this out, and then I just go back to Indesign.  i suppose I should just start playing with it.  I just can't see too many things that need to be tweaked.  Font, font size, font styles (italic, bold), line spacing (top, bottom), indentation, bullet lists, numbered lists.  This is all basic stuff.  Then I'd add some page decorations, like borders, page breaks, horizontal lines.  Is lyx going to fight me in trying to do these things?
Title: Re: Lyx is the answer
Post by: superboyac on March 16, 2011, 08:55 AM
Well, here's my first problem with Lyx:
No print preview of any kind.
I'd like to be able to preview what my document is going to look like without having to print to pdf, which takes a while.  I'd like to be able to make some changes, check the changes, fine tune the changes, check it again, etc.  I know, I know, "Lyx doesn't want you worrying about that." Whatever.  I need to see a preview!  It's 2011.
Title: Re: Lyx is the answer
Post by: f0dder on March 16, 2011, 08:56 AM
I'm going to nitpick every line spacing, every white space, the indentations.  I don't want it almost the way I want it.  I want it exactly the way I want it.  I don't want to go around in circles trying to "trick" the program to do it.  I want a program that will easily do these things.  Not with codes or syntax, but with buttons and dialogs and previews, etc.
From that chunk of text, it sounds like you want DtP software, and not something with TeX as the underlying formatting engine.

It's not that you can't tweak layout with TeX, but it's something you do once, globally, and then let go - you don't mess with individual line spacing, page breaks, et cetera. A GUI frontend for TeX isn't meant to be (ab)used as a pseudo-DtP application, it's meant to provide some shortcuts, possibly a bit of not-accurate preview, and streamlining the "create ouput" process so you don't have to fiddle around with a shell and a bunch of commands.

I need to see a preview!  It's 2011.
Content over form, mate ;) - while TeX is about making things looking good, it's also about separating all the layout stuff from content-production. You shouldn't be worried about those pesky details (and wasting time tweaking) while producing content. Go into content-production mode, write write write write write, and worry about layouting later.
Title: Re: Lyx is the answer
Post by: superboyac on March 16, 2011, 09:10 AM
Hmmm...interesting, fodder.
Here's what I make out of all of this.  I like DTP software like Indesign because it has a "modern" interface.  There are buttons, and when I look on the screen, I see pretty much exactly what I'm going to print.  Now, what I find very attractive about Latex is that I can spend some time up front and really get styles just the way I want it, and then I don't have to do it again.  I also like that it can handle math stuff very well.  Indesign has styles also, I just don't know how good they are (I haven't tried it yet).  Also, getting math stuff into Indesign is a pretty big hassle.  I'd like to streamline as much of this as possible...BUT, I need to be able to see live previews of my document as I make changes.  I don't want to go back and forth between printing and a simple interface while trying to check things.

I really like the idea of Latex, I just wish it had a live preview.  All the latex people say that there's no preview because it's intentional.  "It's not WYSIWYG".  But I don't think that's the real reason.  I think the real reason is that it's difficult and takes a lot of time to program an interface that accurately (somewhat) shows to live document with all the styles attached.  And then they defend it with the usual language that programmers like to tell people like me: it's more efficient, keyboard shortcuts are better, I can do more with [insert more difficult method here] way.
Lyx says the same things.  "Don't worry about what it looks like, we'll take care of it."  But they do have some kind of preview interface.  The fonts are styled, there are colors and highlights, the line spacings are there.  It's just a matter of adding more of the interface features like making the window look like a page, showing columns for newspaper style articles.  But I know that takes a lot of work, and this is all freeware stuff, and like most good freeware utilities, it's going to take shortcuts with command line stuff and programming-like elements.  It's always this idea of "We want maximum power.  Whether it's easy to use or not is not our concern."
Title: Re: Lyx is the answer
Post by: superboyac on March 16, 2011, 09:11 AM
To sum up:
Why wouldn't somebody want Latex with a live preview?  Let's say it was available right now, and implemented really well.  Most people would NOT prefer to go back to another way.  That's all I'm saying.
Title: Re: Lyx is the answer
Post by: superboyac on March 16, 2011, 09:15 AM
I think I'm sticking with indesign.  I got a little excited yesterday.
Title: Re: Lyx is the answer
Post by: mahesh2k on March 16, 2011, 10:15 AM
As I am new in this community, I didn't see your past posts. But I can say about your style. Because I'm answering your present post.
No big words for you, I just impressed.

S P A M
Title: Re: Lyx is the answer
Post by: kfitting on March 16, 2011, 10:43 AM
Regarding preview, does this help: http://wiki.lyx.org/LyX/NewInLyX20#toc22 (http://wiki.lyx.org/LyX/NewInLyX20#toc22)
Title: Re: Lyx is the answer
Post by: Edvard on March 16, 2011, 10:55 AM
Edvard, I'd like to discuss the details of your issue here:
But when a few very minor things didn't turn out exactly to my liking, I spent a LOT of time tweaking a Class and after 4 or 5 hours it still wasn't coming out exactly right
These are my questions:
1) What was it exactly that you were trying to do?
2) When you say tweaking, what were you tweaking. (the more specific the better.  An xml file?  A settings dialog?)
It's been quite a while since I used Lyx, pardon the rust.
What I was trying to do was spiff up a plain text resume.
Like you, I had gotten tired of styles dialogs and thought Lyx could help me by doing the magical formatting part and I would just tell it what and where.

First, Classes.
A Class is not actually a style like you know them from other WP software, it's like a collection of styles that will get applied to certain parts of your document based on what you tell it to do from within the document itself.
Almost everything about a Class can be defined in the 'Document -> Settings' dialog.
I don't know where they are in Windows, but the files that define Classes have the extension ".layout".
Do a search for them.
Copy one to your Documents folder and use it by selecting 'Document Class -> Local Layout' in the dialog and point it to your local copy.

Where I ran into trouble was defining what parts of my resume would inherit what style element; kinda like trying to get HTML to look nice.
Is it a Header or Body text? Which Header size? That kind of stuff, but in Latex terms.
So then I'd get the elements straightened out and it was hanging 2 sentences on a third page or something so I thought I'd make all the fonts smaller.
Uh-oh, my address got smooshed; better define that part differently...
I can't remember everything, but that's the gist.
I don't think I'd have more than 10 styles I'd use.  It can't be that hard to create 10 styles from scratch, could it?  Let's say it takes me 40 hours.  that's ok.  I'm fine with that.  What I don't want to do is after 40 hours, find out that it's really going to take me 100 more hours to figure this out, and then I just go back to Indesign.  i suppose I should just start playing with it.  I just can't see too many things that need to be tweaked.  Font, font size, font styles (italic, bold), line spacing (top, bottom), indentation, bullet lists, numbered lists.  This is all basic stuff.  Then I'd add some page decorations, like borders, page breaks, horizontal lines.  Is lyx going to fight me in trying to do these things?
No, Lyx will not fight you per se, it simply does things automatically according to the set of rules defined in the Class.
Sometimes those rules do something unexpected (especially when you don't know them well), and sometimes you'd like to break a rule here or there, which is where you get into fights.

Here's where I try to cut it short and say RTFM (Read The Free Manual).
As in, go through the Help menu; the Tutorial, Users Guide, Customization, etc.
Read ALL of it; it's very thorough and informative.
Really, it'll help A LOT.

Well, here's my first problem with Lyx:
No print preview of any kind.
I'd like to be able to preview what my document is going to look like without having to print to pdf, which takes a while.  I'd like to be able to make some changes, check the changes, fine tune the changes, check it again, etc.  I know, I know, "Lyx doesn't want you worrying about that." Whatever.  I need to see a preview!  It's 2011.
That's why I said start with an example document that was small.
That way it won't take so long to generate a document for you to preview.
If your Windows Lyx has DVI preview, use that; it's faster than PDF, and is just as accurate.
In my opinon, the biggest reason Lyx doesn't have a "live" preview is that the formatted & typeset product is SO good that a 'live' approximation just won't do it justice and is actually likely to mislead you as to final appearances.
Really. It's that good.
I mean, even MS Word prints out differently then how you see it on the screen.
Which is why we keep coming back to the same point; you do the writing, let Lyx do the formatting.
That is it's destiny

I think I'm sticking with indesign.  I got a little excited yesterday.
Oh.
OK.
NVM.
 :P
Title: Re: Lyx is the answer
Post by: Edvard on March 16, 2011, 10:56 AM
Regarding preview, does this help: http://wiki.lyx.org/LyX/NewInLyX20#toc22 (http://wiki.lyx.org/LyX/NewInLyX20#toc22)
Not really.
What that does is allow you to see a rough rendering of Latex code snippets inline with the text you're working with.
The code still shows, and you still have to render to PDF or DVI to see the final results, which will show the rendered results of the code, and all prettified with your defined formatting.
Title: Re: Lyx is the answer
Post by: Eóin on March 16, 2011, 11:05 AM
To sum up:
Why wouldn't somebody want Latex with a live preview?  Let's say it was available right now, and implemented really well.  Most people would NOT prefer to go back to another way.  That's all I'm saying.

LaTeX wasn't designed to be WYSIWYG, so providing one doesn't simply mean it's hard work, it means you'd have to fight the underlying engine. Would anyone really want to use a program when the two core parts of it are constantly at each others throats.

WYSIWYM is perfect for LaTeX, which is why LyX can do it, but that's not ideal for someone who wants to tweak every little detail.

All the latex people say that there's no preview because it's intentional.  "It's not WYSIWYG".  But I don't think that's the real reason.  I think the real reason is that it's difficult and takes a lot of time to program an interface that accurately (somewhat) shows to live document with all the styles attached.  And then they defend it with the usual language that programmers like to tell people like me: it's more efficient, keyboard shortcuts are better, I can do more with [insert more difficult method here] way.

Wow, so presumptuous...

Title: Re: Lyx is the answer
Post by: 40hz on March 16, 2011, 11:08 AM
For presentation, a professional DTP app like InDesign or Quark Xpress is probably your best bet.

The trick to getting good work flow is to exercise discipline when you're creating content. That means when you're creating content -  stick to creating the content. Think plaint text file here.

Do all your editorial proofing and spellchecking here. Content should be as clean and correct as humanly possible before you even think of styles and fonts. Repeat after me: proof and approve all content text before you make it look pretty.

All stylization and formatting should be done in DTP and strictly controlled by style TAGs.

Once you set up your master document and style sheets, it's a relatively simple matter to "pour" your text into it and do the text formatting. And because everything is controlled by the style tags and master doc settings, any change to a style format becomes global.  

Adobe also has nice integration between it's other apps. So you'll gain productivity and workflow advantages using InDesign with the rest of Adobe's 'creative' suite.

 I'm more familiar with Quark because when I started learning DP, it was clearly superior to PageMaker or Interleaf. But if I were starting today, I'd definitely go with InDesign.

LyX is pretty cool. I like it. But IMO it often creates more work for you than it saves. And you need to make a commitment to rethink how you do things to get full benefit from it. The other big issue is staffing & support. If you're doing books as a business, you're going to eventually need to start hiring (or subcontracting) if it's successful. I think it's much easier to find InDesign freelancers than it is to find TeX experts - unless you live near a university with a big UNIX department.

Just my 2¢
Title: Re: Lyx is the answer
Post by: timns on March 16, 2011, 11:29 AM
What we need is for someone to try out Lyx and then write a review. I used to use LaTeX all the time back in the early 90's and loved it. Even now, those documents look damn good.
Title: Re: Lyx is the answer
Post by: Armando on March 16, 2011, 11:39 AM
Aram : I went through approximately the same route a few years ago when I was working on my Ph.D. I got excited about LyX. It lasted only 2-3 days. Got back to Old MS Word 2003 and other tools I badly needed. (I don't have Indesign btw).
Title: Re: Lyx is the answer
Post by: Eóin on March 16, 2011, 01:08 PM
The thing about writing large technical-ish documents is that it's entirely nonlinear. You're skipping back and forth between chapters, editing, adding bits, removing, etc. That makes it impossible to manage document layout midway. There's no point getting all your page breaks just perfect only to add a large paragraph somewhere and find now every page breaks halfway.

Mind you, this talk of LyX has my intrigued. When version 2.0 is out for Windows I'll definitely be giving it a serious test drive, maybe I'll write a mini-review too, but not till after I'm confident I gave it a fair chance.
Title: Re: Lyx is the answer
Post by: Armando on March 16, 2011, 01:46 PM
LyX is definitely worth exploring. But as always, it boils down to what exactly you need to do.
E.g.: I needed to closely work with EndNote, and while it was possible to convert my library to libtex etc. it was definitely not a smooth workflow...

Also, the separation of format and content is very nice in theory, but I always found -- to a certain extent -- that format actually helps working with content. That's why we have outliners with outline styles, etc.
Title: Re: Lyx is the answer
Post by: superboyac on March 16, 2011, 03:03 PM
I agree, Armando.  I've been looking into it a little more and I think I have to stick to Indesign.  I found this quote:
The learning curve for LaTeX is both deep and broad. In my opinion it's harder to learn than C, C++, Java, Perl and the like. But learn it you must, unless you're willing to accept every LyX default for the document class you've chosen.

I don't want to learn a programming language.  And I have to customize my content, i.e., I'm going to start from scratch.  There's just no way I'm going to use a style that someone else created.  I'm far too picky for that.

So now the question is, what can I do to automate Indesign?  The math stuff is the biggest headache.  All of the tools out there work, but they all have an issue here and there.  And the best one is very expensive, even for me.  It's like $700.  I want to use mathtype, but it has weird, minor issues with placing content into Indesign.  Everything else about it is perfect.
Title: Re: Lyx is the answer
Post by: superboyac on March 16, 2011, 03:04 PM
Are there any nice gui tools for customizing latex styles?  Does it HAVE to be programmed by hand?  i don't see why someone hasn't done this yet.  It's just a matter of a few parameters.  Fonts, sizes, whitespace...there just isn't that much.  Someone has to have created a tool for it.
Title: Re: Lyx is the answer
Post by: superboyac on March 16, 2011, 03:11 PM
The chestnut we used back in the old days was that LaTeX was not a WYSIWYG ("What you see is what you get") editor, but a WYSIWYW ("what you see is what you want") editor. And the way you inform TeX what you want is by editing rawtext stylesheets by hand - essentially, exactly what you (the OP, I mean) said when you pointed out that you don't know how to write your own stylesheets in the XML editor under discussion. And if it doesn't give you what you want, you nudge & fiddle with & otherwise coax that code until your output looks right.
To wrap up, let me share with you my current emotional state: when my grandfather told me tales of the Depression, he'd joke "Oh, it was terrible. Abysmal. Worst times of my life. Can't for the life of me figure out why I feel nostalgia when I tell you stories about it." I feel like grampa, right now.
Title: Re: Lyx is the answer
Post by: superboyac on March 16, 2011, 03:16 PM
Forget it.  Latex is no good.  Indesign all the way.  Now, for the blasted math typography.

Mathtype:
Does everything fine, but the EPS export inside Indesign looks like shit.  All pixelated and barely legible.  prints fine.  Still, I'd like to see what it looks like before printing.  This is on a mac.  I'll have to try on a PC.  Or maybe there's another way to import it into ID.  One thing i don't want to do is import it, and have to still fiddle around with it inside ID.

MathMagic:
haven't tried it, but it's supposed to be the best.  Very expensive...$700 for the professional version needed for Indesign.  it costs more than indesign.  Indesign really needs to add math funcionality to the program.  it's the freaking industry standard, cmon! (Gob).
Title: Re: Lyx is the answer
Post by: timns on March 16, 2011, 03:35 PM
I agree, Armando.  I've been looking into it a little more and I think I have to stick to Indesign.  I found this quote:
The learning curve for LaTeX is both deep and broad. In my opinion it's harder to learn than C, C++, Java, Perl and the like. But learn it you must, unless you're willing to accept every LyX default for the document class you've chosen.

And I find this quote... a load of baloney. I have just been getting misty-eyed over some old TeX and LaTeX documents I wrote way back when, it's not hard at all. Maybe the person who wrote that quote has not done much programming.

     \[
        \frac{d}{dx}\left( \int_{0}^{x} f(u)\,du\right)=f(x).
     \]

[ You are not allowed to view attachments ]

Does that look so hard? 10 minutes with a tutorial.

Title: Re: Lyx is the answer
Post by: Armando on March 16, 2011, 03:42 PM
Please... don't "link" me to that quote... :) LyX is effectively perfect for that type of stuff.
(And I agree : not that complicated. The main matter here IMO isn't "complication" per se but needs and workflow.)
Title: Re: Lyx is the answer
Post by: timns on March 16, 2011, 03:55 PM
Please... don't "link" me to that quote... :) LyX is effectively perfect for that type of stuff.
(And I agree : not that complicated. The main matter here IMO isn't "complication" per se but needs and workflow.)

Nevah! I had a feeling it was a quote from someone with quite limited experience  :)
Title: Re: Lyx is the answer
Post by: Eóin on March 16, 2011, 04:12 PM
timns, writing LaTeX content is pretty darn simple, that is the point of it after all. But writing your own style files is difficult, the underlying descriptive language, TeX, is a fully fledged programming language. That said, most style files out there expose tonnes of variables so you can tweak their look easily, but if you want to start from scratch you're in for a lot of work.

For fun, look at pages 8+ of An Acronym Environment for LATEX2ε (http://ftp://ftp.tex.ac.uk/tex-archive/macros/latex/contrib/acronym/acronym.pdf). The files is the manual to the Acronym package and the pages I mentioned go through the code involved. It truly all looks like gobbledegoop to me.
Title: Re: Lyx is the answer
Post by: timns on March 16, 2011, 04:22 PM
It's like a lot of rewarding things - you can't just dip your toe in, so yes I agree it's got a learning curve. Maybe it's just that I'm wired in the right way - I got on with TeX and LaTeX very well. To my eye it's a lot easier to comprehend than, say, perl.

I suppose the main question is just how much does one really need to fart around with those style files. 90% of the time, those predefined styles are going to work just fine. I do feel there's quite a lot of customize for customization's sake going on.
Title: Re: Lyx is the answer
Post by: superboyac on March 16, 2011, 04:36 PM
I suppose the main question is just how much does one really need to fart around with those style files. 90% of the time, those predefined styles are going to work just fine. I do feel there's quite a lot of customize for customization's sake going on.
I think I'm not being clear.  I'm not really disagreeing with you guys.  If I didn't want to create my own styles, latex and lyx are perfectly easy to use, and I'd LOVE to use it specifically because of the math abilities.

My issue is that I REQUIRE the ability to create styles from scratch.  If you tell me:
I do feel there's quite a lot of customize for customization's sake going on.
I don't think that's fair to me, because it's like you are telling me how I should do my work.  I understand that the default styles are adequate in most cases.  I'm telling you, it's not adequate for mine.  So my issue is, how can I create my own styles without getting bogged down with programming?  I'm not going to want to use any languages.  i want buttons, previews, dialogs, drop downs.  If not...I'll just stick to Indesign.

So if there is no tool out there that can create customize latex styles from scratch with a gui, i am not interested.
Title: Re: Lyx is the answer
Post by: timns on March 16, 2011, 04:41 PM
Oh don't get me wrong - I was making a general statement about folks tinkering with layouts and styles and peppering it with my own personal opinion that different != better in many cases.

Of course not everyone is a programmer, nor has the time or inclination to create nice styles. But it may be that if you are able to exemplify exactly what you needed, some kind soul would step up to the plate and help you. Either here or on the Lyx site.

Or are you saying that you need a different style every time?
Title: Re: Lyx is the answer
Post by: JavaJones on March 16, 2011, 04:45 PM
Given your styling needs I think the only clear solution is InDesign, maybe in combination with InCopy. And since you already have it and evidently know how to use it, it's even more compelling. What exactly about it do you want improved for your needs?

- Oshyan
Title: Re: Lyx is the answer
Post by: Edvard on March 16, 2011, 05:42 PM
He doesn't like the math rendering.
Obviously InDesign doesn't do formula editingw well.

I was wondering if perhaps there were an InDesign plugin to allow Latex-style formula editing and a quick search came up with this:
MathMagic Pro for InDesign
http://www.mathmagic.com/product/prowin.html

Holy crow it's 500 bucks!!  :o
NVM...

Listen, Eóin is right when he said Latex was primarily invented for folks who write large bodies of documentation, voluminous research papers, etc. where you can't be bothered with things like 'what style did I apply on page 4,215 because I need it for 3 pages out of chapter 172.05' kind of stuff.
In fact it's BRILLIANT for things like that, but it could simply be the wrong tool for what you want and the kind of content you are producing.

In keeping in the spirit of this site, let's think of the problem in Programmer's terms.
These are admittedly not exactly accurate, but just for illustration's sake:

Your writing = code.
Latex = compiler.
Classes = language rules (java, C, fortran, etc.).
Lyx = IDE.

Would you agree that code for a simple application is much easier to write than the compiler and language definitions that make it into a nice pretty executable?
Therein lies the rub.

Aram, my advice to you is to either stick with InDesign because you already know it and presumably can work around it's shortcomings, or set aside a day to sit down with Lyx and chew through the tutorials and documentation.
Not opinions, not others' experiences, just you alone coming to terms with what it can and can't do for you and your writing.
I sincerely believe all your questions will be answered there and either you'll come to a blinding realization that it's all painfully true and Lyx will never do or be what you need, or you'll discover some elusive secret that actually proves it to be so much easier than everybody here makes it out to be.

May the force be with you... :P
Title: Re: Lyx is the answer
Post by: Curt on March 16, 2011, 07:16 PM
Given your styling needs I think the only clear solution is InDesign, maybe in combination with InCopy. And since you already have it and evidently know how to use it, it's even more compelling.

Thanks for telling. It was really interesting to read about InCopy (http://www.adobe.com/products/incopy/), I had never heard about it before (obviously because of the price tag)!
Title: Re: Lyx is the answer
Post by: 40hz on March 16, 2011, 09:41 PM
At the risk of provoking a burst of laughter, the way my company used to handle mathematical formulas was to use a high-end math symbol Postscript font and create all the formulas using Adobe Illustrator. We selected a drawing app in order to get extremely fine control over symbol placement, scaling, and positioning.

My former business partner was a typography expert that didn't believe in automating certain things when it came to characters or symbols. :mrgreen: His approach was to treat mathematical formulas as pictures rather than as text since they would never change once they were created.

After a formula was created, it was saved as a (scalable vector format) illustration so that it could be dropped in and re-sized as and where needed. This was a major up-front pain to do. But once the formula "art" was created (and proofed/approved) it was very easy to catalog for future reuse.

We did a 1200-page technical manual for a Fortune 10 company where we built a library of about 200 formulas. This came in handy down the road when we were contracted to produce some additional manuals.

Having a library of the requisite formulas allowed us to hold down our costs and shorten our delivery times such that we beat out several larger competitors for future editions of this manual. We had a major advantage because we didn't have to redo - or proof - hundreds of  formulas we didn't actually understand. And because the formulas were art - there was no danger of a typo error creeping in once we had done the initial proofing.

Maybe not the most elegant or 'techy' way to do it. But our approach worked quite well, both for the initial project and its revisions.

 8)

Title: Re: Lyx is the answer
Post by: JavaJones on March 16, 2011, 09:50 PM
40hz, something very much like that occurred to me in considering this issue. If we knew more about the original project requirements here I think it would help determine the best approach though.

- Oshyan
Title: Re: Lyx is the answer
Post by: 40hz on March 16, 2011, 09:59 PM
40hz, something very much like that occurred to me in considering this issue.

Doesn't surprise me. It's a fairly logical way to do it once you think about it. I make no claim for originality. ;D

If we knew more about the original project requirements here I think it would help determine the best approach though.

- Oshyan

I think Aram mentioned what he was doing in a previous thread. He's creating study review guides to help people prepare for a professional licensing exam.

 :)

Title: Re: Lyx is the answer
Post by: JavaJones on March 16, 2011, 11:42 PM
If we knew more about the original project requirements here I think it would help determine the best approach though.

- Oshyan

I think Aram mentioned what he was doing in a previous thread. He's creating study review guides to help people prepare for a professional licensing exam.

 :)

Ah, must have missed that. Still, professional *what*? Why the math equations? How much are they used?

- Oshyan
Title: Re: Lyx is the answer
Post by: superboyac on March 16, 2011, 11:45 PM
Actually, 40, had I not suggested mathtype to my partner, he was going to do it just as you said: creating the vector art directly in the program (Indesign, not Illustrator, although he was doing it there also).
Your way is logical, and also just cool.  I actually wouldn't mind doing it (I'm very particular about how to present math solutions properly).  But in our case, it's clearly not a good use of time and resources.  You're more like my partner in this stuff, he enjoys the personal touch in all of this.  

When I used to design more in my early career, I was very proud of my CAD toolbox of symbols I had made.  Very similar to this.  Like math, these are all common engineering symbols, but I liked how I had done everything just the way I like it.  The proportions, the spacing, the snap points, etc.  I felt like I had designed my own font.

Yeah, but for this project, I'd like to automate it as much as possible.  I already save all my calculations using the fantastic SpaceTime program on the ipad and Windows.  So after we publish the books in a couple of weeks, I'm going to go back and try to fine tune all the content as far as automation, consistency, styling, database, all that stuff.  This is part of that effort.  We're already done writing everything, so I don't NEED it.  SO I want to take it to the next level and find a more optimum method.  This is what I waste my time with.  I'm sure my partner will think it's a little over the top.  But this is what I do.
Title: Re: Lyx is the answer
Post by: superboyac on March 16, 2011, 11:47 PM
If we knew more about the original project requirements here I think it would help determine the best approach though.

- Oshyan

I think Aram mentioned what he was doing in a previous thread. He's creating study review guides to help people prepare for a professional licensing exam.

 :)

Ah, must have missed that. Still, professional *what*? Why the math equations? How much are they used?

- Oshyan
Please.  I'll explain it all in a couple of weeks.  Let me finish it up first.  But...in the meantime...the whole thing is chock full of math.
Title: Re: Lyx is the answer
Post by: JavaJones on March 17, 2011, 12:02 AM
Roger. Sounds like at this point it's more of a "how to tackle the revision/next project" type of consideration anyway, so best to wait for completion of the current to fully consider and test.

- Oshyan
Title: Re: Lyx is the answer
Post by: superboyac on March 17, 2011, 08:42 AM
Roger. Sounds like at this point it's more of a "how to tackle the revision/next project" type of consideration anyway, so best to wait for completion of the current to fully consider and test.

- Oshyan
Yeah.  It was much too manual for my tastes, but my partner didn't mind.  I just need to know if there's a better way.
Title: Re: Lyx is the answer
Post by: 40hz on March 17, 2011, 09:08 AM
Actually, 40, had I not suggested mathtype to my partner, he was going to do it just as you said: creating the vector art directly in the program (Indesign, not Illustrator, although he was doing it there also).
Your way is logical, and also just cool.  I actually wouldn't mind doing it (I'm very particular about how to present math solutions properly).  But in our case, it's clearly not a good use of time and resources.  You're more like my partner in this stuff, he enjoys the personal touch in all of this. 


You give us too much credit. It was neither cool nor intended to provide a personal touch.  ;)

Not being all that knowledgeable about engineering or math software, it was the only bloody way we could get acceptable quality within the time and budget constraints we'd been given. Basically we used what we had and knew best - and went from there.   ;D

Turned out it worked very well - and proved to be remarkably efficient down the road since all the formulas could be dropped in like tiles afterwards. Definitely not the optimal or most elegant strategy for how to get a project like that manual done. But it was a workable method. And sometimes, 'workable' is as good as it gets.

Like the chief engineer for the Data General Eclipse 'Eagle' computer said: Not everything worth doing is worth doing well. Sometimes you have to learn to accept the constraints you're given.  We built the machine we thought we could get away with building. But that's just the way things work here so it's really not all that important. What's really important is that you get your machine out the door.


 8)


Title: Re: Lyx is the answer
Post by: superboyac on March 17, 2011, 09:44 AM
Not everything worth doing is worth doing well.
I keep having to remind myself of this.  I go overboard with this stuff.  It's funny, our process was like this:
I'd write all the math and formulas on my wacom tablet and photoshop, then I'd send the exported png to my partner, who would enter it in the mathtype and indesign.  But the eps form mathtype looks HORRIBLE on the mac version of indesign.  It might be an issue with installed fonts or something like that.  We are having some minor graphics problems.  I'll be able to look into it in a couple of weeks after I finish all the math stuff.  So we've done well, I think, so far, it's just that I feel there's some room for some practical improvement.
Title: Re: Lyx is the answer
Post by: Edvard on March 17, 2011, 11:50 AM
Well, if that's all you really need, then I upvote the vector idea... +1

However, if you're not entirely turned off of Latex yet, and since your final layouts are being done on a Mac, may I suggest Latexit:

http://www.apple.com/downloads/macosx/math_science/latexit.html
[ You are not allowed to view attachments ] (http://www.apple.com/downloads/macosx/math_science/latexit.html)
(requires MacTex: http://www.tug.org/mactex/)

No bugging around with layouts, configurations, or documents; just work up your math snippet, export and paste.
Title: Re: Lyx is the answer
Post by: superboyac on March 17, 2011, 12:57 PM
Thanks Edvard.  I looked into that program, but it's not sufficient.  It doesn't have enough flexibility with exporting.  I'm not going to stick pdf exports in my documents.  It needs to be EPS, or something equal.

Whoever recommended Incopy:  I'm looking into it.  Seems like something we should get.  Still, Adobe really needs to build in some math/equation capabilities.  Cmon already.  Reminds me of how Microsoft never improves their numbered and unordered list style editor...version after version after version.  Has it changed at all in the last 10 years?  Stop with the ribbon and fix the tools that are fundamental to the nature of the program.
How can you expect to be the industry standard for desktop publishing and not have the ability to do math?
Title: Re: Lyx is the answer
Post by: Edvard on March 17, 2011, 01:21 PM
This here says Latexit can export EPS:
http://pierre.chachatelier.fr/programmation/latexit_en.php

Besides, it's freeware, so it's practically painless to give it a shot.
Title: Re: Lyx is the answer
Post by: superboyac on March 17, 2011, 03:24 PM
This here says Latexit can export EPS:
http://pierre.chachatelier.fr/programmation/latexit_en.php

Besides, it's freeware, so it's practically painless to give it a shot.
Nice!  Thanks.  I don't know why I didn't catch that.
Title: Re: Lyx is the answer
Post by: 40hz on March 17, 2011, 03:59 PM
@SB- Latexit looks promising. EPS vector format is what we used for our formula "artwork."

@Edvard- very cool find. Thanks for sharing! :Thmbsup:
Title: Re: Lyx is the answer
Post by: superboyac on March 17, 2011, 04:52 PM
@SB- Latexit looks promising. EPS vector format is what we used for our formula "artwork."

@Edvard- very cool find. Thanks for sharing! :Thmbsup:

(I wish I knew this a few months ago!  My friend uses a mac, and this would be perfect!)