News for hackers. Stuff that matters.
Re:The Emacs Lock-In Effect or the Emacs Sunk Cost Fallacy by CalChris on Friday August 06, 2021 @03:36PM (#28091819)
With respect to LaTeX, I only started to use it semi-recently in the cloud and I'd recommend it to anyone (but only in the cloud).

I don't want to master an editor anymore. I want to get work done. Pretty much the same with LaTeX. When I want to improve something in a doc, I look it up and do that. When I go back to the doc later, I don't always remember what that magic meant. But that's ok, I'm writing a doc. I'm not trying to master the writing of a doc.

Re:The Emacs Lock-In Effect or the Emacs Sunk Cost Fallacy by eulgro on Friday August 06, 2021 @04:36PM (#28092459)
> With respect to LaTeX, I only started to use it semi-recently in the cloud and I'd recommend it to anyone (but only in the cloud).

$ latexmk -pdf main.tex

How hard is that? The only thing Overleaf adds here is a button and a 10x compilation time overhead.

> I don't always remember what that magic meant.

Overleaf mostly won't help you here, unless I'm mistaken.

I don't mean to be aggressive here, I just don't get the Overleaf hype. What's wrong with good old text editor + version control? I think I'll pass on the slow web app for now. At least they have Git integration so nobody is going to force me to use it.

Re:The Emacs Lock-In Effect or the Emacs Sunk Cost Fallacy by wiz21c on Saturday August 07, 2021 @04:53AM (#28097023)
Overleaf allows you to work with several authors at the same time on the document. I was skeptical (after all, git allows that too). But after using that feature, well, it is just the killer thing. Now Overleaf doesn't add much on top on my own Latex installation. But the collaborative thing is just spot on (much like Google docs which I have discovered not a long time ago; same analysis : not that good presentation tool, but working together is just incredibly useful).
Re:The Emacs Lock-In Effect or the Emacs Sunk Cost Fallacy by ranaexmachina on Sunday August 08, 2021 @06:17AM (#28105627)
In my experience, Overleaf is actually awful for collaboration. Maybe my workflow is weird, but I tend to look at the diffs after my colleagues make changes. Also, we mainly use pull requests to add to our papers. This way, everyone can see and comment on changes.

This kind of workflow is not really usable with Overleaf. Overleaf uses Git in the background, but every commit is named "changes on Overleaf" and the individual commits do not really make much sense. In addition, everything is immediately put into the master branch and there's no way to summarize or group changes (like with commits and/or pull requests).

My next problem is, that Overleaf just uses latexmk so if you have some code to generate graphics or tables, you have to compile and add them manually all the time.

Re:The Emacs Lock-In Effect or the Emacs Sunk Cost Fallacy by wiz21c on Monday August 09, 2021 @05:28AM (#28114373)
my workflow is different : we use voice chat to share and we edit collaboratively. Both these allow to actually work together and, more importantly, think together.
Re:The Emacs Lock-In Effect or the Emacs Sunk Cost Fallacy by ranaexmachina on Friday August 13, 2021 @03:48AM (#28166526)
That's very interesting. I honestly didn't think of that, since we often worked asynchronously or at the same machine (which doesn't work at the moment, of course). I can see how Overleaf can be nice for that purpose.
Re:The Emacs Lock-In Effect or the Emacs Sunk Cost Fallacy by robotresearcher on Friday August 06, 2021 @09:40PM (#28094895)
> The only thing Overleaf adds here is a button and a 10x compilation time overhead.

Overleaf removes the need for local install. A full MacTex.pkg install is 4.4GB. I've lived in LaTeX for more than 30 years, and I love the ability to edit docs from any browser.

Re:The Emacs Lock-In Effect or the Emacs Sunk Cost Fallacy by tincholio on Sunday August 08, 2021 @03:28AM (#28104865)
I've used LaTeX for about as long as I've used Emacs, and really, the thought of editing LaTeX from my browser is rather painful. You can still use Overleaf via git, though admittedly the experience isn't as smooth.
Re:The Emacs Lock-In Effect or the Emacs Sunk Cost Fallacy by anthk on Saturday August 07, 2021 @09:55AM (#28098605)
4GB today is not that much. Current OpenBSD and NetBSD install recommend 2-3GB at minimum for a base OS and 10-16GB for a confortable usage (installing a bunch of pkgs/ports, swap partitions, and so on).
Re:The Emacs Lock-In Effect or the Emacs Sunk Cost Fallacy by deroanth on Saturday August 07, 2021 @02:57PM (#28100943)
Maybe it's just me, but 4.4 GB does feel like a not insignificant amount of space for something I don't have to install locally. Or for people that use it rarely.

I'm not a huge fan of Overleaf, mind you, but I agree with those that say it does have its uses. The easy collaboration for people that don't like -- or don't get how -- to use git. I wish everyone I collaborate with liked git...

Re:The Emacs Lock-In Effect or the Emacs Sunk Cost Fallacy by remexre on Friday August 06, 2021 @07:53PM (#28094195)
How do you do package (version) management for LaTeX? There's more than a few documents I've come across that won't build on my system, giving often-indecipherable compilation errors. Overleaf at least ensures everyone involved is using the same environment without needing to ship a Docker container or the like, or try to pin down versions.
Re:The Emacs Lock-In Effect or the Emacs Sunk Cost Fallacy by Filligree on Friday August 06, 2021 @10:14PM (#28095069)
Nix has a decent solution here, i.e. turn the document into a nix derivation.

  with import <nixpkgs> {};
  
  pkgs.runCommand "cv.pdf" rec {
    src = ./cv.tex;
    bin = with pkgs.texlive; combine {
      inherit scheme-medium collection-latexrecommended collection-fontsextra
              moderncv etoolbox;
    };
    buildInputs = [ bin ];
    allowSubstitutes = false;
  } ''
    ln -s $src cv.tex
    latexmk -pdf cv.tex
    mkdir $out
    mv *pdf $out/
  ''
These days I'd probably use flakes to pin down the latex version.
Re:The Emacs Lock-In Effect or the Emacs Sunk Cost Fallacy by eulgro on Friday August 06, 2021 @09:35PM (#28094871)
I suppose it should be fairly portable, except for missing packages maybe. In my case I have literally every common package installed so that's not an issue. But LaTeX errors are a real pain, I'll admit that.
Re:The Emacs Lock-In Effect or the Emacs Sunk Cost Fallacy by moron4hire on Friday August 06, 2021 @08:05PM (#28094277)
Lol, that's not the command for making a LaTeX document. The command for making a LaTeX document fills a sheet for all the shit you have to install--half of which isn't correct on whatever documentation you're reading--and THEN you can `latexmk`.

And I do mean you. I gave up after a solid week. I'll just make whatever I want in PowerPoint, save it to a PDF, and be done in 15 minutes.

Yes, I said PowerPoint. Set you're slides to 8.5x11 and it became a typesetting program. I've started getting my coworkers to use it for such and they are absolutely delighted by the bump in design quality they are getting because they aren't fighting Word anymore.

Re:The Emacs Lock-In Effect or the Emacs Sunk Cost Fallacy by eulgro on Friday August 06, 2021 @09:32PM (#28094855)
$ sudo apt install texlive latexmk $ latexmk -pdf main.tex

I didn't try it, but it wasn't much harder than that if I recall... If you're on Windows, well, it's your loss :(

Re:The Emacs Lock-In Effect or the Emacs Sunk Cost Fallacy by moron4hire on Friday August 06, 2021 @09:34PM (#28094861)
Excuse me for being one of the 80% of working Americans
Re:The Emacs Lock-In Effect or the Emacs Sunk Cost Fallacy by akho on Saturday August 07, 2021 @06:23AM (#28097436)
Highly relevant username.
Re:The Emacs Lock-In Effect or the Emacs Sunk Cost Fallacy by diffeomorphism on Saturday August 07, 2021 @02:37AM (#28096318)
So download whatever latex distro you prefer for windows, open your document, click the button. It will automatically download missing packages in the background. Done.
Re:The Emacs Lock-In Effect or the Emacs Sunk Cost Fallacy by GiovanniP on Saturday August 07, 2021 @10:11AM (#28098717)
> I'll just make whatever I want in PowerPoint

If you use PowerPoint, you might try TeXmacs (WYSIWYG, structured and programmable).

> they are absolutely delighted by the bump in design quality

I expect them to be even more delighted :-)

Re:The Emacs Lock-In Effect or the Emacs Sunk Cost Fallacy by CRConrad on Saturday August 07, 2021 @08:06AM (#28097962)
> Yes, I said PowerPoint. Set you're slides to 8.5x11 and it became a typesetting program.

That won't print sensibly on the paper in your printer, in most of the civilised world.

Re:The Emacs Lock-In Effect or the Emacs Sunk Cost Fallacy by Ar-Curunir on Friday August 06, 2021 @04:29PM (#28092363)
The problem with LaTeX is that it isn't well-designed enough that you can just use it without thinking about the magic.

When stuff is not up to scratch (image is placed incorrectly, spacing in your table is wrong, your diagram has an incorrect alignment, etc), the error messages suck, and you often need to figure out what the magic does to be able to fix the issue.

Re:The Emacs Lock-In Effect or the Emacs Sunk Cost Fallacy by anyfoo on Friday August 06, 2021 @03:45PM (#28091912)
I don't want to deeply learn an editor myself anymore, too, but that being said I am still extremely glad that the past decades have made me proficient in emacs. The editor is just one of the most important tools for me.
Re:The Emacs Lock-In Effect or the Emacs Sunk Cost Fallacy by User23 on Friday August 06, 2021 @03:54PM (#28092023)
Imagine a carpenter saying, "I don't want to master my tools, I just want to build things."
Re:The Emacs Lock-In Effect or the Emacs Sunk Cost Fallacy by vnorilo on Saturday August 07, 2021 @02:23AM (#28096246)
I once worked with a pretty amazing older Common Lisp programmer who used some IDE (Xanalys?) He selected forms by dragging with the mouse. Watching that felt uncomfortable, almost like physical pain.

I tried to get him into paredit, but he smiled a little and said his brain isn't so fast that it could keep up with frantic fingers like mine.

Indeed, he worked out things in his head before splashing into the buffers and mostly got things right by doing just a few things, slowly. Of course CL is one of the better languages for that.

I think programmers overestimate the importance of editors or typing. Comfort is more important than speed or efficiency, but of course you feel discomfort if you lose the speed you are accustomed to! If you feel comfortable in whatever editor you use, congrats, your quest is complete.

Re:The Emacs Lock-In Effect or the Emacs Sunk Cost Fallacy by WJW on Saturday August 07, 2021 @05:55AM (#28097301)
I can definitely sympathize with this. Typing in things has never been the bottleneck. Rather, deciding what needs to be typed in takes up the majority of the time. It probably helps that neither of my main two languages (Ruby for work/Haskell for fun) is all that verbose.
Re:The Emacs Lock-In Effect or the Emacs Sunk Cost Fallacy by sokoloff on Friday August 06, 2021 @04:05PM (#28092137)
There’s mastering the use of your tools and there’s tinkering with the windings on the electric motor inside your tools. Emacs offers users both.
Re:The Emacs Lock-In Effect or the Emacs Sunk Cost Fallacy by TchoBeer on Friday August 06, 2021 @06:32PM (#28093535)
It's more like a carpenter saying "I don't want to master my car, I just need to be able to get from place to place". A mathematician isn't payed to typeset papers, they're payed to do mathematics and typesetting in LaTeX is just a means to an end.
Re:The Emacs Lock-In Effect or the Emacs Sunk Cost Fallacy by jrochkind1 on Friday August 06, 2021 @04:40PM (#28092501)
How common is it for carpenters to make their own tools? I actually don't know!
Re:The Emacs Lock-In Effect or the Emacs Sunk Cost Fallacy by ARandomerDude on Saturday August 07, 2021 @12:54AM (#28095812)
For most woodworkers, I'd say the analogy is closest to making "plugins" for existing tools. They require a little knowledge (which easily obtained on YouTube), and can greatly increase your ability to use the base tool.

One example is a table saw sled, which helps you make clean, repeatable, 90º cuts. It's one of the most useful "plugins" you can have for your table saw, and relatively easy to make. Making the actual table saw, on the other hand, would be expensive and very difficult, and would require knowledge of many fields (metal working, electrical systems, etc.).

Re:The Emacs Lock-In Effect or the Emacs Sunk Cost Fallacy by AlanYx on Friday August 06, 2021 @04:54PM (#28092619)
For a lot of custom carpentry, it's pretty common for carpenters to make their own jigs to solve specific problems (e.g., if you need to use your router a bit like a thickness plane to mill down some object by a couple of millimetres along some axis so it fits somewhere, you probably want to build a jig first).
Re:The Emacs Lock-In Effect or the Emacs Sunk Cost Fallacy by _moof on Friday August 06, 2021 @08:09PM (#28094300)
Pretty common, I think. I've made clamps and rove punches for instance, and I've been tempted to make drill bits. (But this is for wooden boatbuilding, which is its own uniquely crotchety corner of carpentry. Not unlike emacs...)
Re:The Emacs Lock-In Effect or the Emacs Sunk Cost Fallacy by PaulDavisThe1st on Friday August 06, 2021 @04:51PM (#28092593)
Did you write Emacs? Did I write Emacs?
Re:The Emacs Lock-In Effect or the Emacs Sunk Cost Fallacy by marcosdumay on Friday August 06, 2021 @04:33PM (#28092421)
The thing with LaTeX is that it's a full text-oriented programing language. What is great if you want to extend it, but a problem if you want to use it on any context not supported by the interpreter. So, if you don't want to create a PDF, it just sucks.
Re:The Emacs Lock-In Effect or the Emacs Sunk Cost Fallacy by cpach on Friday August 06, 2021 @03:53PM (#28092006)
Just out of curiosity, which editor do you use? Overleaf?
Re:The Emacs Lock-In Effect or the Emacs Sunk Cost Fallacy by CalChris on Friday August 06, 2021 @04:15PM (#28092247)
Yes, Overleaf. I'd always had LaTeX envy but when faced with installation and configuration, I gave up again and again. Overleaf solved all that.
Re:The Emacs Lock-In Effect or the Emacs Sunk Cost Fallacy by bkallus on Friday August 06, 2021 @08:36PM (#28094475)
In college we were required to typeset assignments in LaTeX for all the math classes past multivariable calculus. I started out with Overleaf, but switched to local compilation about a year in. It's much nicer to be able to write in my usual text editor and compile documents instantly. On Arch, all I had to do was install texlive-most. It includes every package I have ever needed to use. To compile a document, I just run 'pdflatex *.tex'. Sometimes bibtex too. If you're having trouble with setup and configuration, I recommend texlive.
Re:The Emacs Lock-In Effect or the Emacs Sunk Cost Fallacy by andrepd on Friday August 06, 2021 @08:48PM (#28094569)
>installation and configuration

On Linux, literally run the texlive installer script and install an editor like TexStudio if you'd like. That's it.

Re:The Emacs Lock-In Effect or the Emacs Sunk Cost Fallacy by lenkite on Friday August 06, 2021 @09:19PM (#28094790)
Use pandoc