Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Lytex PDF PreviewNew to Visual Studio Code? Get it now.
Lytex PDF Preview

Lytex PDF Preview

bncummings

|
33 installs
| (0) | Free
Preview and compile LyTeX files. Requires LilyPond to be installed.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Lytex Preview: LaTeX + LilyPond Rendering

Render LaTeX documents with embedded LilyPond snippets directly to PDF, all from within VS Code.

Prerequisites

NOTE: This extension is currently MacOS exclusive. LyTeX Compilation depends requires the following tools to be installed:

  • lilypond - includes lilypond-book which can embed lilypond in LaTeX.
  • latexit - For rendering latex.
  brew install lilypond
  brew install --cask latexit

How to use

  • Render LaTeX with LilyPond - Embed LilyPond in a LaTeX and save the file with a .lytex extension.

    \documentclass{article}
    \usepackage{lilypond}
    
    \begin{document}
      Here’s a simple melody:
    
      \begin{lilypond}
        \relative c' { c d e f g a b c }
      \end{lilypond}
    
    \end{document}
    

    See lilypond-book documentation for more information.

  • Compile Straight To PDF — Compile .lytex files containing lilypond environments directly to PDF.

    LyTeX compile demo
  • Lytex Preview Session — Recompile automatically on save. LyTeX preview demo

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft