Skip to content

Testing LaTeX on VS Code with GitHub as an alternative to online LaTeX editors and compilers.

Notifications You must be signed in to change notification settings

rosciRic/latex-vscode-git

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“˜ Setup LaTeX in VS Code + GitHub (Alternativa ad Overleaf)

Questo progetto mostra come scrivere, compilare e tracciare i propri documenti LaTeX usando strumenti open-source, senza dipendere da servizi cloud proprietari (es. Overleaf).


πŸ”§ Requisiti


βš™οΈ Setup LaTeX su VS Code

  1. Installa MiKTeX β†’ durante l’installazione lascia l’opzione Install missing packages on-the-fly.

  2. Installa Strawberry Perl β†’ serve a latexmk per funzionare su Windows.

  3. Apri il menu Start e cerca MiKTeX Console β†’ da qui puoi aggiornare MiKTeX e installare pacchetti mancanti.

  4. Installa l’estensione LaTeX Workshop su VS Code:

    • Apri VS Code
    • Vai su Extensions (Ctrl+Shift+X)
    • Cerca β€œLaTeX Workshop” e installala
  5. Apri un file main.tex e compila con Ctrl+Alt+B β†’ il PDF viene generato nella cartella del progetto.

  6. Apri l’anteprima PDF interna con Ctrl+Alt+V.


πŸ“‚ Struttura tipica del progetto

πŸ“ progetto-latex
 β”œβ”€ main.tex
 β”œβ”€ sections/
 β”‚   β”œβ”€ intro.tex
 β”‚   └─ results.tex
 β”œβ”€ images/
 β”‚   └─ figure1.png
 β”œβ”€ references.bib
 └─ README.md

πŸ“ Workflow con GitHub

  1. Inizializza Git nel progetto

    git init
    git add .
    git commit -m "Primo commit: setup LaTeX"
  2. Crea una nuova repo su GitHub Vai su GitHub β†’ New Repository e segui le istruzioni.

  3. Collega la repo locale a GitHub

    git remote add origin https://github.com/USERNAME/progetto-latex.git
    git branch -M main
    git push -u origin main
  4. Ogni volta che modifichi i file .tex:

    git add .
    git commit -m "Aggiunta sezione metodologia"
    git push

🎯 Vantaggi rispetto a Overleaf

  • βœ… Tutto offline β†’ nessun vincolo di connessione o abbonamenti.
  • βœ… Open-source: MiKTeX, VS Code e GitHub sono gratuiti.
  • βœ… Versionamento: Git/GitHub ti permette di tornare indietro e collaborare come con Overleaf.
  • βœ… Personalizzabile: estensioni, workflow e build recipe su misura.

About

Testing LaTeX on VS Code with GitHub as an alternative to online LaTeX editors and compilers.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages