Language support for LyTeX — LaTeX with embeded LilyPond — providing syntax highlighting for documents that combine musical notation and typeset text.
- Syntax Highlighting for LyTeX files (
.lytex):- Recognizes LaTeX commands and environments.
- Highlights embedded
lilypondblocks (see: lilypond-book documentation).
Planned Features:
- Error highlighting for LaTeX and LilyPond code.
- IntelliSense and autocompletion for commands and environments.
\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}Render LaTeX documents with embedded LilyPond snippets directly to PDF, all from within VS Code.
NOTE: This extension is currently MacOS exclusive. LyTeX Compilation depends requires the following tools to be installed:
brew install lilypond
brew install --cask latexit-
Render LaTeX with LilyPond - Embed LilyPond in a LaTeX and save the file with a
.lytexextension.\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
.lytexfiles containinglilypondenvironments directly to PDF.
-
Lytex Preview Session — Recompile automatically on save.
