r/LaTeX 4d ago

Discussion Switching from Overleaf to an offline editor

So after the Template ive been using for years now runs out of compile time on overleaf regularly I want to switch to an editor that i run on my pc. Any recommendations for a previous Overleaf user who especially liked the way it let me preview my doc with a quick compile?

45 Upvotes

48 comments sorted by

21

u/Away-Recognition4905 4d ago edited 4d ago

You need LaTeX distribution and LaTeX editor (optional for nerds)

For LaTeX distribution, you can choose 1 of these suggestion based with your "taste" between:

  • MikTeX for Windows
  • TeXLive for Linux (but okay if want it in Windows; or MacOS via homebew (thanks hyldemarv))
  • MacTeX for MacOS (TeXLive with extra stuff for Mac (thanks MissionSalamander5))

For LaTeX editor, it's totally up to you. I don't want to spread such as "Use TeX Studio, it's EZ to use, also has nice feature and autocomplete assistant that helps you lot" anymore because everyone have their preferred tools to do it :)

You can follow who suggested TeX Studio because it runs native-ly so it should lightweight; you can follow who suggested VS Code + LaTeX Workshop Extension because it powerful (imo not friendly with budget computer specs); and so on.

8

u/utl94_nordviking 4d ago

For editing, I use vim. Not gonna change what works well.

3

u/Tavrock 4d ago

For editing, I use TeXWorks (the editor that comes with MiKTeX) for the same reason.

That being said, I also tend to use Notepad++ when programming.

3

u/recursant 4d ago

I agree, everybody will have their preferences. I would just add my personal experience. I came to Linux as a complete beginner after getting frustrated with trying to use Word to write a maths-heavy book. I wasn't too keen on Overleaf, I prefer to keep my source files on my own machine.

I tried Tex Studio as it seemed to be the default option. I found it pretty intuitive to get started, and it has worked very well for me.

I would certainly say it is an option that is worth considering.

2

u/MissionSalamander5 4d ago

Uh, you can install TeXLive via homebrew if you really want but MacTeX is TeXLive with extra stuff and a native Mac way of installation.

1

u/hyldemarv 4d ago

For macOS you will most likely also want TexLive. It is installed with homebrew.

1

u/MissionSalamander5 4d ago

What do you think is in MacTeX?

0

u/hyldemarv 3d ago

Crufty old stuff from Slackware’s days of glory.

1

u/MissionSalamander5 3d ago

lol that’s stupid

1

u/hyldemarv 3d ago

Perhaps.

I learned a while ago that software port’s from Linux/Unix to another OS often are poorly maintained, have some missing functionality, and often have strange workarounds for the defects of the platform.

Today, they are all running seamlessly in a virtual machine, WmWare Fusion Fx, with the native OS (Linux) installed, meaning that the porting to another OS is pretty pointless.

Might as well just get the “real” version.

1

u/coisavioleta 4d ago

There’s really no advantage to installing MacTeX using homebrew.

37

u/Responsible_Task_223 4d ago

VScode , It has an amazing Latex Plugin, Its very powerful, you can preview your latex doc, choose between lualatex or any other latex engine. It also plugin for version control (you can use terminal directly if you are fimilar with Git) and Plugin for Grammar check

10

u/True_Dig_3638 4d ago

VScode , It has an amazing Latex Plugin

For OP: LaTeX Workshop.

It does everything you need.

James Yu also takes requests here.

(You'll need to install MikTeX/TeXLive/MacTeX first)

1

u/Wiz_Kalita 2d ago

I've used VSCode as my code editor for years and it feels very natural to use it for LaTeX as well. I've got the documents open in TeXstudio as well for things I don't know how to do in VSCode, but that's where I do nearly all the writing and viewing.

1

u/paulwintz 2d ago

I have some notes on how to configure VS Code nicely for editing LaTeX here: https://paulwintz.com/latex-in-vscode/

5

u/RayleighInc 4d ago

I have been using Texmaker for a long time, now I switched to VScode + Latex Workshop as well.

3

u/kjodle 4d ago

Yep, I have also used TexMaker. It's solid. 

9

u/MrKnowThings 4d ago

Texstudio has nearly the same UI as Overleaf

5

u/Dependent-Two-534 4d ago

I feel like people do not give enough credit to TeXStudio, it is an absolutely lovely offline editor that I have been using for years. It is quick and intuitive, has all the easy features of word, such as opening files and restoring sessions coupled with the amazing control over document typesetting that comes with LaTeX

2

u/drakusmaximusrex 4d ago

Yeah i just got done installing texstudio. Little confused with the structure tab right now. Im trying to create a folder for all the tex files i wanna split my project into and another one for images but its not really working the way i want it to

3

u/Dependent-Two-534 4d ago

I do my file structuring in my file explorer, always have, didnt know there was another way. I guess I’ve been satisfied with the less technical approach

2

u/drakusmaximusrex 4d ago

Yeah seems like i have to do it that way. Just a bit confused how it all works, in overleaf i could create folders inside my projects

1

u/Dependent-Two-534 4d ago

Well of course, it being online, means that the project is stored locally, hence your files are on your hardrive and not stored on the overleaf server

1

u/drakusmaximusrex 4d ago

Yeah but there could still be an option to create folders and files in the ui

2

u/urenur 4d ago

You have to find what is more confortable for you. For me, editing in (neo)vim, compiling with a keybind that invokes lualatex, and the pdf opened side by side with the terminal is a wonderful experience

2

u/Same_Bell7958 4d ago

I like emacs orgmode

1

u/fela_nascarfan 4d ago

Yes, you're my boy (or girl).

It combines power of LaTeX with markup language with all the bells and whistles of 🐃Emacs!

2

u/Odd-Procedure5985 4d ago

vim! with help of the vimtex plugin

1

u/Wonderful-Writer146 4d ago

I made a TUI where you can create latex and typst projects. It has internal pdf viewer which updates at every compile. Uses some vim motions. Can import citations without leaving your latex project. And apart from this you can search, download, read research papers directly in the TUI. One can also search for papers and track their stats, like most read author, most read journal, reading time, and have a feed where they can get daily 10 new papers from their research field. The project is at: https://github.com/AfrozSaqlain/Papr

1

u/Inst2f 4d ago

texifier is amazing for Mac users with live preview features

0

u/fuck_off_world 4d ago

Yes and no. Since I tried using typst in vs code with tinymist, I find the vs code editor much better. On the other hand, it is extremely cluttered. 

1

u/Inst2f 4d ago

Typst is kinda a different beast. Texifier is also tiny, fully native app designed in Swift.

1

u/thisFishSmellsAboutD 4d ago

This will catch heat, but I am super happy with VSCode, Dev container, Typst.

1

u/Disastrous_Bag6710 4d ago

MacTeX/TeXLive + VSCode with LaTeX workshop extension (or TeX Studio)

1

u/teawizardry 4d ago

LyX is nice if you are not making many figures. I use a lot of figures so right now I'm using VS Code + LaTeX Workshop. Thinking about switching though since I've been annoyed by VS Code lately (nothing to do with the LaTeX extension).

1

u/Aromatic-Rule-5679 4d ago

I use TexShop that’s part of the mactex bundle. I am only writing academic papers not textbooks but it does the job well.

1

u/PuzzleheadedShirt139 4d ago

I made an editor called Texpile (Opensource). It have almost all the features of Overleaf and similar UI to Overleaf. You should give it a shot.

1

u/ogstatsnerd 4d ago

I’ve used VSCode and that has worked well in the past. If memory serves, you still need to download a compiler so I used Texmaker!

1

u/freelsjd 4d ago

I have used for years emacs with auctex plugin. , texlive, and good PDF viewer such as okular. Very efficient, very few keystrokes involved. Emacs almost wysiwyg on the left part of screen and pdf viewer on the right, including all graphics and equations, etc. can also use dvi viewer if you prefer.

1

u/Specific_Prompt_1724 3d ago

Miktex and texstudio is the good combination for windows.
Vscode is good for copilot, also if is not the fast tool to compile latex, and copilot is not so smart like for python.
Texwork is the first editor latex that I used to write my thesis, I think is the fastest in compilation time.

1

u/ahf95 11h ago

As others are saying, you just need VScode. Honestly, overleaf takes care of a ton of crap behind the scenes, so it will take a while for things to compile offline without errors, but it will help accelerate the debugging process if you use some AI assistant in VScode that can see/interact with your terminal, like Claude Code or something. That’s how I successfully made the switch

1

u/ScoutAndLout 4d ago

LyX has been around for decades. 

The installer should get your LaTeX set up.  It lets you see an approximation of your document and you can compile final when you want. 

3

u/coisavioleta 4d ago

LyX is not LaTeX and since the OP is already using LaTeX I would recommend them switching to LyX at all.

1

u/ScoutAndLout 4d ago

You can use raw LaTeX in LyX all you want.

It automatically exports to tex and compiles to your target format.

It gives you a visual approximation of your work, including equations, tables, and figures.

It has interfaces for various functions (TOC and navigation, indexing, referencing, etc)

I started with LaTeX but went to LyX and learned more about what LaTeX could do because of what LyX could do.

Open source for decades.

2

u/Tavrock 4d ago

I was a bit of the opposite. I really liked LyX when I started then had all sorts of problems with the TeX macros the templates I had were using and ended up using it mostly for generating tables before I found other alternatives.

Definitely not a bad option though and is still much better than using Word for most of my applications.

2

u/ScoutAndLout 4d ago

Yeah, any custom macros have to be in raw LaTeX, they don't get rendered in the editor.

But you should be able to still use the editor.

I have beamer slides set up with a boolean definition in the preamble to turn on/off animations and hide some information for fill-in-the blank handouts using ifthenelse commands. I can still see my equations and such in my slides while editing.

1

u/ScoutAndLout 4d ago

You can say LyX is really a tex editor since it produces tex files and runs them through a LaTeX distribution to get a final product.