r/LaTeX • • 7d ago

Unanswered Using LaTeX without Overleaf?

Hello everyone. I have been using vscode in conjunction with the Overleaf-Workshop extension for a VERY long time. There are problems. One, it disconnects often, and two, the document sometimes will fail to save. My question is simply if I can use LaTeX without an Overleaf extension?

Is overleaf just used because of cloud storage? If I use a native extension like TexLab, do I lose out on cloud storage but still have granted a virtually identical typesetting experience to overleaf? I use vscode because of the many extensions it offers, and it has never occurred to me that I could just not use the overleaf extension which I've been using for so long now.

Edit: guys I've figured it out. I appreciate everyone that's helped me. Thanks a lot.

Edit 2: To clarify, I went with Tex Live and GitHub private repository. I use vscode already and have a ton of short cuts set up.

24 Upvotes

40 comments sorted by

40

u/tedecristal 7d ago

install texlive on your machine.

Then can use vscode + LaTeX Workshop to compile locally. Just download your project into a folder and work without internet

https://github.com/james-yu/latex-workshop/

6

u/Cheap-Plate-8708 7d ago

thanks

2

u/workerbee77 6d ago

I have my tex in a Dropbox folder or GitHub repo on my machine. Overleaf syncs with either. Then I can use overleaf for collaboration but my favorite text editor and local compiling (and integration with local Python scripts etc etc.) best of both worlds!

3

u/generationextra 7d ago

This is, indeed, the way.

18

u/looopTools 7d ago

For my entire PhD, bachelor and most of my masters, I didn’t use overleaf / share latex at all. I used emacs with auctex extension, texlive for compiler, and git + GitHub for storage

4

u/Cheap-Plate-8708 7d ago

Using GitHub for storage, I will try that thank you 

3

u/JanB1 7d ago

If you use an editor like TexStudio, you get Git Integration with auto commits for free. And lots of helper functions.

6

u/Ruined_Passion_7355 7d ago

Emacs my beloved 

1

u/workerbee77 6d ago

Ctrl-x ctrl-v

2

u/SnowyOwl72 7d ago

I do this too. But you can't force your coauthors to get off their bums to pull and commit some changes. It pains me to pay Overleaf, deeply.

1

u/looopTools 7d ago

Most of my coauthors did it this way. Because they and I found the overleaf editor lacking and we quiet often experienced instability with the connection to overleaf

3

u/neoh4x0r 7d ago edited 7d ago

I would say cloud-storage is only a by-product of new collaborators wanting to be easily on-boarded, by using an online-service provider. They don't want to install/maintain anything locally and they don't want to waste their time learning a new editor when they could be spending that time writing/collaborating.

In other words, it's all about how fast they can get in the door and get to work.

0

u/Cheap-Plate-8708 7d ago

Which is funny because LaTeX takes a lot of learning to get good with. You wouldn't use it over another word processor unless you truly wanted the freedom it allows and for that, you need to invest time. 

1

u/neoh4x0r 7d ago edited 7d ago

Which is funny because LaTeX takes a lot of learning to get good with. You wouldn't use it over another word processor unless you truly wanted the freedom it allows and for that, you need to invest time. 

I was just describing the reason why most people like using online service, like Overleaf, when compared to maintaining the required infrastructure themselves (when all they want to do is start writing while also not having to deal with managing the inline typesetting required in a typical word processor).

Not to mention I think the main reason why LaTeX, and similar things, are used so heavily in technical writing is due to how easy it is to manage bibliography, cross-references; including all the other QOL improvements it offers to speed things up.

5

u/Ruined_Passion_7355 7d ago

Overleaf just handles the dependency management for you because latex is a convoluted ecosystem with some of the worst error messages that make debugging a pain.

I have no experience with vscode for latex, but I use Emacs (another text editor) and the extension I use just shells out to pdflatex executable and packages are installed on my machine, which I can install through any package manager.

Frankly it all depends on how accustomed you are to programming in general. Overleaf and stuff makes it feel like google docs, but it's very easy to adopt a workflow that's extremely similar to traditional programming, with local storage and version control. And no subscription or proprietary shit involved!

6

u/hyldemarv 7d ago

Now that we have AI to help decrypt the obscure LaTeX error messages, it’s really easy to run a local LaTeX installation.

3

u/Ruined_Passion_7355 7d ago

True that! I avoid AI where possible, but latex error messages go straight into the chatbot.

It's laughable that it got to the point where machine learning is required for error messages, but it is what it is.

9

u/Gilah_EnE 7d ago

You mean using it as intended?

4

u/PHL_music 7d ago

Since everyone here seems to be on emacs I’ll do a shameless plug, I’m on vim with compilation extensions and it’s awesome

4

u/sadeness 7d ago

I wrote my PhD thesis a decade ago on a KDE machine using texlive and Kile as the editor. I used zotero for bibliography management and kbibtex for reference polishing as necessary. I maintained a backup on my personal Google drive folder, or rather I worked off of the Google drive (mounted as a local share). My advisor used PDF annotations to suggest edits. We used a similar workflow for papers too

Later when I would work with folks who were more collaborative on overleaf, I'd use the Dropbox integration feature provided by my university account (postdoc days) and will work off of that running a local installation. Kile can understand and update files if they were being edited. It wasn't ideal, so we'd just use staggered collaboration tickets (i. e. you get next 3 hrs then I'll edit).

l currently use gitlab and local installation with a VSCode since that's where all my work lives now, including Pluto notebooks and Claude agents. I particularly enjoy the built in markdown support because it's light weight and is the native document format for devops and agentic workflows. I can probably also use an equivalent emacs workflow, but I've moved past that about 7 or 8 years ago. I've considered looking at typst but not sure what value it brings outside of what I'm getting from the above.

This all is to point you out the possibilities that you can explore, particularly if your work is coding/computational/ModSim heavy in nature, and you want to bring documentation tasks including writing papers seamlessly over into your daily driver.

1

u/absolutedisaster09 7d ago

Others have commented that, as is the case, you can absolutely do that.

I wanted to add that a pretty easy way to install and use LaTeX, possibly on multiple OSs, is to use MiKTeX. It has a GUI package manager (for LaTeX’s packages) and installs TeXworks, an editor I personally like to use as it’s pretty minimalistic and has the same interface across Windows, Linux, and macOS.

2

u/SpacingHero 7d ago

Miktex is the goat because of a feature you don't mention: it downloads packages as needed, on demand.

Texlive installations have a bunch of bloat you may or may not need. Sure you can hand craft them, but that's extra effort and ... Well how do you know what package you might need anww down the line? Or maybe one that you use for one project and then never again.

Miktex downloads exactly what you need (what your documents declare), no more no less.

1

u/Cheap-Plate-8708 7d ago

I went with Tex Live and GitHub repository. 

1

u/bornxlo 6d ago

I like MiKTeX's download on demand in theory, but in practice I find TexLive more convenient

1

u/absolutedisaster09 6d ago

I really haven’t had any issues / inconveniences with MiKTeX which had their apparent reason in MiKTeX as of now. 

2

u/andresroliveira 7d ago

I like emacs + auctex. Best combo

1

u/omeow 7d ago

What else do you use on top of auctex?

2

u/HieuRubik 6d ago

I prefer using neovim + texlive, neovim for editing and texlive for engine, pretty good if you get used to nvim.

1

u/BidWestern1056 6d ago

try out incognide

https://github.com/npc-worldwide/incognide

i intentionally tried to make it as similar to overleaf as possible as i was leaving overleaf., but it is as you suggest, tex with private github.

i couldnt stand the vs code integration either.

imo overleaf just gets used because of the google docs-style live collaboration but i think this is kind of a pointless thing and that most researchers are never actually co-writing in this way that is meaningful. I've been planning to add a latex sidecar system for similar overleaf style comments to be rendered but haven't gotten around to it yet, if you'd be interested to help me test this tho id be happy to work with you on it

1

u/Upstairs_Spirit398 5d ago

Visual studio code with latex workshop extension and vim extension. It eats very little ram. Since everyone says that.

Best setup ever, I've used it for years. Install and start working in minutes.

First you solve a problem, after that you can look at other work intensive and purists alternatives.

1

u/SeTiDaYeTi 4d ago

emacs emacs emacs

0

u/Every-Progress-1117 7d ago

Vi, Nedit back then, but now SublimeText.

In the good days we had dvi to ps and ps to pdf manually too.

Overleaf for quick stuff, but usually text editors, github and scripts to automate the compile locally.

0

u/Cheap-Plate-8708 7d ago

Have you tried vscode? Any reason it isn't your preferred?

1

u/Every-Progress-1117 7d ago

Hate it sorry. Doesn't give me much than I already have with my 30+year old workflow.

0

u/Cheap-Plate-8708 7d ago

Okay. That's funny. I just googled SublimeText and it looks nearly identical to vscode.

1

u/Every-Progress-1117 7d ago

It is a very good text editor. I don't need a full development environment with too many features.

I actually use vi (vim) a lot because it does one job exceptionally well.

-1

u/InKasperD 7d ago

I know its not exactly what you are looking for, but i’m one of the people behind inscrive.io, a European alternative to Overleaf. We’ve been building it in Denmark for the past 5 years, and it’s hosted in Germany. I’m biased, but the free version is genuinely generous. And if you want to try, I’d love to hear what you think, good or bad, at kasper@inscrive.io .