Close Menu
    DevStackTipsDevStackTips
    • Home
    • News & Updates
      1. Tech & Work
      2. View All

      The Case For Minimal WordPress Setups: A Contrarian View On Theme Frameworks

      June 4, 2025

      How To Fix Largest Contentful Paint Issues With Subpart Analysis

      June 4, 2025

      How To Prevent WordPress SQL Injection Attacks

      June 4, 2025

      Smashing Animations Part 4: Optimising SVGs

      June 4, 2025

      I test AI tools for a living. Here are 3 image generators I actually use and how

      June 4, 2025

      The world’s smallest 65W USB-C charger is my latest travel essential

      June 4, 2025

      This Spotlight alternative for Mac is my secret weapon for AI-powered search

      June 4, 2025

      Tech prophet Mary Meeker just dropped a massive report on AI trends – here’s your TL;DR

      June 4, 2025
    • Development
      1. Algorithms & Data Structures
      2. Artificial Intelligence
      3. Back-End Development
      4. Databases
      5. Front-End Development
      6. Libraries & Frameworks
      7. Machine Learning
      8. Security
      9. Software Engineering
      10. Tools & IDEs
      11. Web Design
      12. Web Development
      13. Web Security
      14. Programming Languages
        • PHP
        • JavaScript
      Featured

      Beyond AEM: How Adobe Sensei Powers the Full Enterprise Experience

      June 4, 2025
      Recent

      Beyond AEM: How Adobe Sensei Powers the Full Enterprise Experience

      June 4, 2025

      Simplify Negative Relation Queries with Laravel’s whereDoesntHaveRelation Methods

      June 4, 2025

      Cast Model Properties to a Uri Instance in 12.17

      June 4, 2025
    • Operating Systems
      1. Windows
      2. Linux
      3. macOS
      Featured

      My Favorite Obsidian Plugins and Their Hidden Settings

      June 4, 2025
      Recent

      My Favorite Obsidian Plugins and Their Hidden Settings

      June 4, 2025

      Rilasciata /e/OS 3.0: Nuova Vita per Android Senza Google, Più Privacy e Controllo per l’Utente

      June 4, 2025

      Rilasciata Oracle Linux 9.6: Scopri le Novità e i Miglioramenti nella Sicurezza e nelle Prestazioni

      June 4, 2025
    • Learning Resources
      • Books
      • Cheatsheets
      • Tutorials & Guides
    Home»Development»How to Run LaTeX Projects Locally (for Free) On Windows

    How to Run LaTeX Projects Locally (for Free) On Windows

    February 25, 2025

    LaTeX is a high-quality typesetting system that is widely used in technical, academic, and scientific writing. It’s very popular in academia, especially in fields like mathematics, physics, computer science, and engineering.

    LaTeX is not a word processor like Microsoft Word – rather, it’s a document preparation system that allows you to focus on the content of your writing while it handles the formatting. If you use LaTeX to write your formal documents (like a CV, résumé, or research paper), then you don’t need to worry about the formatting and structure, as everything can be done using LaTeX scripts.

    If you use LaTeX to write your academic or research papers, you might be familiar with website-based applications like Overleaf. Overleaf is a website that allows anyone to read, write, and compile LaTeX scripts online.

    These sites are okay for small tasks or compilations, or if you need only a little bit of free collaboration. But if you need to work on bigger projects or need to conduct many collaborative tasks, then the free tier may be insufficient. And in my opinion, the paid subscription costs too much.

    But don’t worry: running LaTeX locally may be the perfect solution for you. I know this because I also faced a similar situation, and this simply changed my life! I also keep all of the tracks in Git (GitHub, GitLab, and so on) along with unlimited collaboration opportunities and compilation. And the great thing is, all of these are completely free as it’s all happening on my local machine.

    So in this article, I am going to discuss the methods in detail. I have also created an in-depth video for you to understand how this works.

    Video Tutorial

    Resources You’ll Need:

    1. GitHub Repository

    This entire guide is available in one of my GitHub projects named Install-LaTeX. The live website is available here (fahimfba.github.io/Install-LaTeX) as well. I would highly appreciate it if you star (⭐) the repository. Also, you can create issues there if you face any problems. Any kind of good contribution is also welcome here.

    2. Operating System

    You can install LaTeX on any major operating system (Windows, MacOS, and Linux-based OSes). But in this article, I am only going to talk about the Windows operating system.

    Here, I’m using the latest Windows 11 operating system, but the same procedure should be applicable to all of the Windows-based operating systems that are going to come out in the future. Windows 10 should also be okay too.

    3. Editor

    I am going to use the popular Visual Studio Code as my editor. It is a 100% free and robust editor that’s very popular among devs all over the world. If you don’t already have it, go ahead and install it before proceeding further.

    VS Code

    4. LaTeX Compiler/IDE

    To work on LaTeX files, you’ll need a specific compiler. I am going to use MikTeX. There are other tools out there, but this is the best tool right now (according to me!). It is completely free and supports all major operating systems as well. It also has a built-in IDE, but we are going to use VS Code as our main editor.

    MiKTeX

    Download the Windows executable file from the Download section.

    Download MiKTeX

    After the download is finished, install the executable. At the end of the installation, keep the tick in “Check for updates now”.

    Check for update

    You will find the MikTeX console in your taskbar. Open that.

    MiKTeX console

    Go to the “Updates” tab and click “Update now”. It will install all of those packages.

    6d585388-0218-4792-b78e-798c75dee6a6

    At the end, it will prompt you to close the console. Click “OK”. Open MiKTeX again.

    926b5aba-0a3a-4c80-a103-fef5a5aafc38

    That’s it for this tool.

    5. Perl

    The commands we are going to execute for building the LaTeX files are dependent on Perl. As the Windows operating system doesn’t come with a built-in Perl compiler, we are going to install the Strawberry Perl.

    Hostinger

    Perl

    Download the latest MSI package from it.

    Download Strawberry perl

    Install the executable after it gets finished downloading the application.

    We need to add Perl’s path to the system environment. To do that, go into the location where it has been installed. By default, it gets installed inside C:Strawberryperlbin directory. Copy the path.

    Now search for “env” in the Windows search bar until you find something called “Edit the system environment variable”.

    env

    Now click on “Environment Variables…”.

    System Properties

    Now select “Path” from “System variables” and click “Edit”.

    System variables

    Click “New”. Paste the path. Now exit every windows sequentially by clicking on “OK” in each window.

    add var inside system path

    Visual Code Studio Extensions

    We need some extensions in VS Code to streamline our workflow.

    First, let’s get LaTeX Workshop. It is the core extension for working with LaTeX files inside VS Code Studio.

    2311c19b-d56e-4363-a3c0-75a9b0a323ee

    Next, you’ll need Rewrap. It is an amazing tool that lets you wrap longer lines. It helps you work in a long line in separate lines without breaking any structure or sentence.

    86bacaa6-77ff-441c-acca-08ee6a74d354

    Build the LaTeX File

    Whenever you want to build any LaTeX file inside VS Code studio, simply open that file in it. Then open the command palette using Ctrl + Shift + P.

    Search for “LaTeX Workshop: Build with recipe” and go there. It will start building the file. Whenever it prompts you to install any missing package, untick the box that says “Always show this dialog” and press “Install”. I do this because clicking on “Install” on hundreds of prompt windows for building a LaTeX file is very difficult for me.

    package installation

    After it finishes building the LaTeX file, you will get the output PDF file inside VS Code. You can open the PDF file directly in VS Code.

    If you want to go into any specific line in the code from the output PDF file like Overleaf, simply click on that specific portion in the PDF by pressing the Ctrl key. It will immediately take you to the code part where it belongs.

    That’s it! It’s now running on your local machine and there are no restrictions or limitation to it, literally! Also, for collaboration and keeping track of the history, using Git is the best option, like I do.

    Conclusion

    Thanks for reading this short tutorial. I hope it helped you interact more easily with LaTeX.

    You can follow me on GitHub, LinkedIn, and YouTube to get more content like this. Also, my website is always available for you!

    Source: freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More 

    Hostinger
    Facebook Twitter Reddit Email Copy Link
    Previous ArticleThis clever Kindle trick lets you download 25 books at once – but it’s risky
    Next Article Microsoft makes OpenAI’s “truly magical” paywalled Think Deeper and Voice features FREE without caps for all Copilot users: “We know many of you have been hitting limits”

    Related Posts

    Security

    HPE StoreOnce Faces Critical CVE-2025-37093 Vulnerability — Urges Immediate Patch Upgrade

    June 4, 2025
    Security

    CISA Adds Qualcomm Vulnerabilities to KEV Catalog

    June 4, 2025
    Leave A Reply Cancel Reply

    Hostinger

    Continue Reading

    Enzo Biochem to Pay $4.5 Million Settlement Over Cybersecurity Failures Leading to Data Breach

    Development

    Interop 2024 mid-year update

    Development

    ScraperAPI Review 2024 – Scrape Data at Scale Easily

    Development

    CVE-2025-5000 – “Linksys FGW3000 HTTP POST Request Handler Command Injection Vulnerability”

    Common Vulnerabilities and Exposures (CVEs)
    GetResponse

    Highlights

    Development

    Google Releases Gemma 2 Series Models: Advanced LLM Models in 9B and 27B Sizes Trained on 13T Tokens

    June 27, 2024

    Google has unveiled two new models in its Gemma 2 series: the 27B and 9B.…

    CVE-2025-47668 – CookieCode Stored Cross-Site Scripting Vulnerability

    May 7, 2025

    The Serverless Architecture Handbook: How to Publish a Node Js Docker Image to AWS ECR and Deploy the Container to AWS Lambda

    April 17, 2025

    Governing the ML lifecycle at scale, Part 3: Setting up data governance at scale

    November 22, 2024
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.