News for hackers. Stuff that matters.
Re:Neovim by tinco on Friday February 21, 2014 @03:32PM (#7279220)
I do what I want. Also, LaTeX is a system for creating documents, and Word is a system for creating documents. There's only four important differences: Word has a more modern architecture, Words compiler is integrated into its GUI, Word is closed source, Words source format is not human readable.

Apples to Oranges? I can compare these Braeburns to those Fujis just fine thank you.

Re:Neovim by stusmall on Friday February 21, 2014 @04:00PM (#7279404)
I don't mean to be a jerk, but how much do you actually use/have used LaTex? They aren't even similar. They have very few similar use cases. One is a typesetting system the other is a word processor. Sure, documents come out the other end with both but the process and targets are very different. One allows you to quickly and easily make a quality document. One allows you to make the document to look exactly how you want.

Java and C are both programming languages but it is still apples and oranges to compare them.

Re:Neovim by tinco on Friday February 21, 2014 @04:16PM (#7279492)
I'm by no means a LaTex expert. I've written a few papers and a bunch of reports, nothing published, just undergraduate stuff. I dropped out halfway through my graduate degree, so I'm not what you'd call an academic. But I've seen and read enough to know that you can do impressive things with LaTex.

I have another question though, how much have you used Word? I have used it only a couple of times since highschool, but it's gotten pretty impressive. I bet that if you really dive into it you could get very close to the power of latex. At least, with regards to the typesetting. The drawing images/formulas/schemas thing is a whole different ballgame I'd agree.

Anyway, my point was not that Microsoft Word in any way is a good replacement for LaTex, I'm just saying that if LaTex could be as well written as Word is, it could have these fancy GUI and fast rendering features too.

There's people out there that think that the power in typesetting that LaTex has is mutual exclusive with the speed and usability that Word has. That just isn't so.

The only reason LaTex isn't fast and more easily extensible is that it was written for the machines of 40 years ago, that didn't have enough RAM to hold the parsed tree of a document.

LaTex could be ten times as fast, were it written in Ruby, the slowest language out there. Just because a modern programmer would make use of the modern hardware and modern design concepts, and just make it responsive. A GUI could be as simple external process that accessed a message passing API, rendering it to HTML and run it through Webkitview.

Overhead everywhere, still ten times faster than LaTex...

(edit: definitely worth a downvote, this comment :P)

Re:Neovim by x0x0 on Friday February 21, 2014 @04:56PM (#7279702)
to summarize:

you've written a handful of latex documents, so you're now an expert on what latex is used for and what people want out of it. would it help to point out that given latex is more difficult to use than word, I'd bet most latex users have tried and discarded word in favor of latex? Would that affect your judgements about the relative use cases?

   There's people out there that think that the power in typesetting that LaTex 
   has is mutual exclusive with the speed and usability that Word has. That 
   just isn't so.
Since, well, nothing else offers similar typesetting plus mathematical notation / flexibility, your proof is... what exactly?

If you built a better system, you'd find customers for it.

Re:Neovim by stusmall on Friday February 21, 2014 @06:22PM (#7280131)
>I'm by no means a LaTex expert. I've written a few papers and a bunch of reports, nothing published, just undergraduate stuff

I had a long talk about something like this with a close friend last night. He has a favorite technology stack that is regularly trash talked on sites like this. From what he's seen its usually from people who have only a passing knowledge of it. Either they worked a job and only had to mess with it for a few months or they worked with it for a long time but never went past just the surface. Almost all the complaints he's seen about it are either extremely outdated, fixable with a little custom code or configuration changes. I think you should spend a little more time with it before you say that developers should feel "ashamed" for using it. Your post falls squarely into the category he was talking about.

Re:Neovim by tinco on Friday February 21, 2014 @06:41PM (#7280213)
I wouldn't trash talk this if it was simply an unpopular way of working. I'm trash talking it because it's the most popular way of working. I don't know anyone that does not write his/her papers in LaTex.

I have a lot of respect for having your own toolchain that's optimized and comfortable for you.

I am sorry I come across wrong, I am not saying that developers should feel ashamed for using it. I am saying developers should feel ashamed that other people are using it.

I'm not saying using LaTex is dumb, I've stated multiple times in this thread that I use it myself. I'm just saying we could do better.

Re:Neovim by blueblob on Friday February 21, 2014 @08:38PM (#7280612)
I disagree that it's the most popular way of working. Perhaps that is true just in mathematics, physics, and maybe even computer science but unlikely to be true in many other fields. Let's be realistic and realize that the majority of people do not use LaTeX. The ones who do use it, use it because they are putting in a lot of mathematical formulae which are easier to do in LaTeX than Word (although Microsoft is making progress with the equation editor) and the formulae look way nicer in LaTeX. Word renders the formulae into an equation that generally looks bad and scales worse.

The things that I use LaTeX for are usually my own writing that I don't have to collaborate with other people for. If I have to work with other people I use Word. The things that I like about latex are that I can have it automatically generate my figures because I can script it, which I can't do with Word.

I agree that LaTeX can be difficult to write but you have to realize that word has it's shortcomings too (put an image in and send the document to somebody else, chances are the layout will get messed up). Tools like pandoc are trying to alleviate both problems so people can work in whatever environment they prefer, which seems like a good solution to me. I could write part of my document in markdown, convert to LaTeX and write my formulae and then convert to Word so my coworkers can edit it easier.

Re:Neovim by ori_b on Friday February 21, 2014 @08:36PM (#7280607)
> I'm trash talking it because it's the most popular way of working. I don't know anyone that does not write his/her papers in LaTex.

And you never stopped to investigate why, in spite of the far greater ease of entry that alternatives have?

Re:Neovim by yen223 on Saturday February 22, 2014 @12:27AM (#7281080)
I have a hard time believing this, to be honest. I know far, far more people who use Microsoft Word, than I do people who use (or even heard of) LaTeX.
Re:Neovim by danieldk on Saturday February 22, 2014 @04:26AM (#7281540)
It depends on the field. The field I am working in (computational linguistics), virtually everyone uses LaTeX. And with good reason, there are great packages for typesetting stuff that is specific to our field. So, yes, at work I know far more people who use LaTeX than Word.
Re:Neovim by mbreese on Saturday February 22, 2014 @02:07AM (#7281242)
Agreed. LaTeX is a very field specific tool. I don't know anyone that has ever used it (other than me, and I'm forced to use Word because that's what all my collaborators use).
Re:Neovim by radarsat1 on Friday February 21, 2014 @07:07PM (#7280329)
I don't actually disagree with you on most points, but just out of curiosity why do you have the impression that Latex is slow? I used it to write my thesis (> 200 pages, full of images) and was re-rendering all the time, it only took a couple of seconds on my slow netbook.. When I'm working on a shorter paper, I barely notice the time between hitting "render" and seeing the result. (I realize I could even set it up to automatically render while I'm writing but prefer to concentrate purely on the text editor as much as possible and curb my urge to re-render constantly)
Re:Neovim by halostatue on Friday February 21, 2014 @10:15PM (#7280854)
I've formatted three books self-published by my wife. The first in Pages (better than Word for nearly everything except document interchange), and the latter two in LaTeX.

I'll take LaTeX. It's more reliably reproducible. Once I got the basic format created (for her second book)—which took about as much time as it took to format the first book in Pages—the third book took about a tenth the time. My tooling was in place.

It's not for everyone, and you really have to either dig deep or find a macro set that does what you want (or both—I'm using a macro set on top of scrbook). There is room for something better, but that something better is not Word (or Pages).

(I'd almost say that what LeanPub does is good enough, but their LaTeX typography sucked when I tried it almost two years ago.)

Re:Neovim by chris_wot on Monday February 24, 2014 @09:24AM (#7290864)
"I bet that if you really dive into it you could get very close to the power of latex."

I find that very unlikely.

Re:Neovim by Perseids on Friday February 21, 2014 @08:35PM (#7280602)
> One allows you to make the document to look exactly how you want.

Are you talking about InDesign? Exact placement of anything is really a pain with Latex, choosing "normal" fonts requires you to switch to a different compiler and the debugging information on all those automatic choices TeΧ and LaTeΧ does for you is abysmal. What I'm saying is that even though LaTeΧ allows you to do precision work does not mean it is a good at it.

Re:Neovim by reeses on Friday February 21, 2014 @10:13PM (#7280849)
I am very confused by the implication that TeX or LaTeX make it easy to create a document that looks exactly the way you want. Unless you want it to look like a paper presented to a publication that has a mandatory style, and a package is available with that style, it's just not true.

And that is almost the whole point. Most people are idiots about how to present written material, so TeX and friends make those decisions for us. It's especially frustrating when you have to dink with floats, because now you're second-guessing TeX, and it exacts a high price.

I've used TeX for over 25 years and I'm comfortable saying that I could produce documents of a similar quality, with better support for collaboration, with Word.

I still use TeX for many projects but the Word style capability is great.

Markdown still sucks, though. :)

Re:Neovim by nhaehnle on Saturday February 22, 2014 @06:35AM (#7281782)
with better support for collaboration, with Word

How? This is an honest question. I wouldn't use Word anyway, but I am just not aware of anything that could come close to Git + LaTeX in terms of collaboration support.

Re:Neovim by reeses on Saturday February 22, 2014 @11:09AM (#7282453)
Fair question.

I've been doing projects with people who have no technical background to speak of, but immense domain knowledge. They wrote their theses in word (god help them), published in journals that required submissions in word (there are more and more of the things), and include a lot of figures in their papers or grant proposals.

Sharepoint helps a lot with collaboration, but even word's basic change tracking and commenting facilities are good for people working around a document via email, Dropbox, or even git.

Word still creates those weird situations for which it is infamous, but they are generally rare. Also, word has become much more stable, even with larger documents.

Re:Neovim by terminus on Friday February 21, 2014 @06:16PM (#7280109)
Those are just the surface differences. The modes in which you use all of these are very different.

Word: explicit WYSIWYG control over typesetting.

LaTeX: semantic level control over typesetting. Additionally provides explicit low level typesetting commands.

Markdown: given how basic (trivial even) Markdown is (http://daringfireball.net/projects/markdown/syntax) I'm not sure why it's even in this list.

Re:Neovim by dovel on Friday February 21, 2014 @07:47PM (#7280461)
I do not use any of the mathematical elements of LaTeX and the work I do render using it is exclusively words. Just words. So really LaTeX isn't necessary for what I do. But, I write using MultiMarkdown in Scrivener, using Bibtex citekeys for referencing then export the document as LaTeX from scrivener and then compile using Texshop.

I guess I don't really have a point. Just that if you are writing essays in the humanities or sociology then markdown can have a place in your workflow

Re:Neovim by tinco on Friday February 21, 2014 @06:24PM (#7280139)
It's in the list because it's what I would use for my thesis, if I'd do one now :) It's basic, but it has the semantics for most stuff, and can easily be extended for more. I'd do all formula's/drawings in external tools.

Word nowadays has semantic typesetting controls too, I think since they started that ribbon thing that it has become useable. If you stick to using their semantic things I think you can do a pretty good job of properly typesetting in Word.

Re:Neovim by jbranchaud on Friday February 21, 2014 @06:52PM (#7280262)
Writing a thesis using only markdown sounds extremely painful. Are you going to create all your figures elsewhere and then include them as images? How are you going to create your list of figures? And your table of contents? How are you going to create, maintain, and organize your list of references? I could go on.
Re:Neovim by jojoo on Saturday February 22, 2014 @05:52AM (#7281702)
Writing my thesis with markdown was one of the best decisions i made. I wrote 99% of my master thesis in markdown (50 pages w/o interviews). 1) I didn't have a lot of images so i just wrote FIXME: Image Foo.png where they belonged. 2) I wrote my Citations Plain in there (e.g. Wocken, 1985, 7 ff.), using a special folder for all sources i really used in Mendeley. 3) Writing in markdown i could just c&p perfectly formatted chapters written with simplenote. 4) i also could seperate the chapters in files and keep everything in a git repo.

When i was finnished writing i exported the markdown to rtf, 1) selected all the h1's via "select all", set them to be a real (word) h1. vice versa with all other styles i used. 2) Then i put in all the pictures. 3) Then i exported the list from Mendeley.

That process - from markdown to perfection - took me less than 4 hours.

I have some experience with latex and especially latex + komascript, but i hated that experience because the latex sourcecode doesn't ebrace readability and you're sure to get obscure errors in the last second. besides stuff like running latex twice for a table of contents.

Writing

  \begin{itemize}
    \item really long line which gets wrangled in my vim 
  terminal, so that i don't see where the second item starts.
    \item another long line. maybe 200 characters long?
  \end{itemize}
is complicated and you can't read it well. this otoh is very easy to read:

  * really long line which gets wrangled as well, but is 
  better to read because it starts with a clear sign which 
  is recognized to be a bullet.
  * next line, which is also very long.
Easy readability is crucial, because i needed proof readers. The young proof readers could actually get the markdown code and correct my mistakes there (or write comments, starting with another fixme). really rocked with diff.

The older proofreaders could proofread it in the final stage in ms word with the track changes functionality.

I put a lot of thought into Design and Typography and i was sure that i could decide better how my document should look, than latex. I agree, that for some people this is not the case.

Re:Neovim by jbranchaud on Saturday February 22, 2014 @11:22PM (#7284917)
Most content can be written in something other than LaTeX, especially in early drafts. I always start drafting papers in Markdown. I cannot imagine going from start to finish with Markdown though. Especially since most papers have fairly strict style guidelines and length restrictions.

After a draft or two, transitions to LaTeX is a must. [Pandoc](http://johnmacfarlane.net/pandoc/) for the win!

Re:Neovim by jessah on Saturday February 22, 2014 @09:27PM (#7284656)
How do you get pagination with markdown? I would like to switch to markdown instead of using latex, because my needs are simple. But how can I convert markdown into something with support for pagination?
Re:Neovim by jojoo on Sunday February 23, 2014 @06:15AM (#7285576)
i actually converted it to rtf and imported it then in MS Word (On OS X). I took care of pagination there.

Actually the Plan was to typeset it in Indesign, but as i woke up the day of the final layout i just decided to do it in Word.

Re:Neovim by mazesc on Sunday February 23, 2014 @09:07AM (#7285915)
Saying that this toolchain is better than using Latex is so hilarious :D

I'll just pretend it's a parody.

Re:Neovim by ngoldbaum on Friday February 21, 2014 @09:20PM (#7280710)
> Are you going to create all your figures elsewhere and then include them as images?

This is what most people do in physics and astronomy. You make the plot in some kind of plotting package and export it to a vector format. In astronomy, the journals only recently started accepting PDF figures in addition to EPS.

In my experience doing all of my figures in LaTeX is significantly more painful than using a real plotting package like matplotlib.

Re:Neovim by GFK_of_xmaspast on Friday February 21, 2014 @10:28PM (#7280879)
I wrote a dissertation, two theses, and a bunch of papers in latex and I never ever ever ever did any graphics that weren't imported as eps or, later, png.
Re:Neovim by matthiasv on Saturday February 22, 2014 @04:03AM (#7281493)
I don't know your exact use cases but I am reallyfond of pgfplots which, being based on TikZ, integrates much better than matplotlib. But I also happen to hate matplotlib for sticking with "that" API ...
Re:Neovim by jbranchaud on Saturday February 22, 2014 @11:18PM (#7284904)
As long as you can get it in vector format, it doesn't matter.

What about tables? Granted they aren't fun to make, but I am not aware of any methods of creating them outside of a latex document.

Re:Neovim by giovannibajo1 on Friday February 21, 2014 @09:25PM (#7280725)
None of those features require LaTeX arcane syntax, obscure source code, and multiple compilation steps. reStructuredText is a Markdown-like language containing some of the features you mention, especially with extensions; its syntax is well-defined, and its main implementation is in Python.

The point isn't if Markdown has enough features, but rather that LaTeX lets you a pay a price for those features that you shouldn't be paying, just because it's a 40-years-old software.

Re:Neovim by reeses on Friday February 21, 2014 @10:15PM (#7280851)
I actually had a mini panic attack thinking about that.

The best thing about markdown is pandoc.

Re:Neovim by AliceWonder32 on Saturday February 22, 2014 @12:02PM (#7282644)
Plus there are many advances to doing figures in LaTeX - such as the ability to have you math typeset the same way as in non figures.
Re:Neovim by ThatOtherPerson on Saturday February 22, 2014 @03:51AM (#7281467)
Check out pandoc [1], it will let you write documents in Markdown + LaTeX for equations and then convert it to LaTeX, a PDF, or several other document formats.

Also, even though Markdown tends to be fairly easy to write, there are many edge cases where you can't really be sure what the result is unless you try it.

[1]: http://johnmacfarlane.net/pandoc/

Re:Neovim by Crito on Friday February 21, 2014 @03:44PM (#7279295)
If that is all you need and expect from a replacement for LaTeX, why aren't you just using LibreOffice?
Re:Neovim by tinco on Friday February 21, 2014 @03:49PM (#7279327)
It's not, I need the human readable source part, so I can track my work and cooperate in git :) I use LibreOffice for some stuff though.
Re:Neovim by davidgerard on Friday February 21, 2014 @04:41PM (#7279615)
Versioning of OpenOffice/LibreOffice documents using git: http://blog.riemann.cc/2013/04/23/versioning-of-openoffice-l...
Re:Neovim by blueblob on Friday February 21, 2014 @08:40PM (#7280620)
That is really cool, thanks for that.
Re:Neovim by Crito on Friday February 21, 2014 @03:54PM (#7279363)
Aren't modern word processor formats just zipped-up XML files? I suspect it should be a straight-forward matter to get at least LibreOffice and version control cooperating.
Re:Neovim by TylerE on Friday February 21, 2014 @05:06PM (#7279772)
You are technically correct, but not usefully so. The XML is pretty hairy. A VCS that handles XML semantically (e.g. tag-pair oriented, rather than line-oriented) might have some shot....but, basically, merges are more or less not going to work so it's not really version control, just backups.
Re:Neovim by PeterisP on Saturday February 22, 2014 @03:37AM (#7281440)
If we're talking about LaTeX, Word, Markdown and LibreOffice - well, then LibreOffice is a contender for the worst usability, it's superficially similar to a mature product but it's a case of "the remaining 10% of goodness will take more work than the first 90%".
Re:Neovim by Crito on Saturday February 22, 2014 @02:03PM (#7283130)
Usability depends on who is using it. I refuse to use LibreOffice because it is so bad, but I would sooner recommend LibreOffice to my father than LaTeX or Markdown.