Skip to main content
Learn how to typeset musical notation, symbols, and scores professionally in LaTeX.

Rendered Previews (prototype)

Below each relevant code block, we show a “Rendered output” image that illustrates the expected result. These SVGs are placeholders for now; after your approval we can hook in a build step to generate them automatically from the LaTeX examples.

Essential Music Packages

Rendered output:

Rendered Output

Packages are loaded in the preamble and produce no visible output. They enable music notation commands throughout your document.

Musical Symbols

Basic Music Notation

Note Values and Rests

Rendered output:

Rendered Output

Displays musical note values: whole note (𝅝), half note (𝅗𝅥), quarter note (♩), eighth note (♪), sixteenth note (𝅘𝅥𝅯). Corresponding rests appear as horizontal bars or symbols. Dotted notes show a small dot after the note head extending the duration by half.

Accidentals and Key Signatures

Rendered output:

Rendered Output

Shows accidental symbols: C♯ (sharp raises pitch), B♭ (flat lowers pitch), F♮ (natural cancels previous accidental), G𝄪 (double sharp), D𝄫 (double flat). Key signatures display appropriate sharps or flats at the beginning of the staff.

Chord Notation

Chord Symbols with harmony

Rendered output:

Rendered Output

Displays professionally formatted chord symbols: Cmaj, Cmin, Cdim, Caug for basic triads. Seventh chords appear as Cmaj7, Cmin7, C7, Cm7♭5. Extended chords show C9, C11, C13. Slash chords display as C/G and Am/F with the bass note after the slash.

Guitar Chord Diagrams

Using the guitar Package

Rendered output:

Rendered Output

Renders guitar chord diagrams as fretboard grids showing finger positions. Each diagram displays 6 vertical strings and horizontal frets with dots indicating where to press. X marks strings not played, O marks open strings. Barre chords show a bar across multiple strings.

Simple Scores with MusiXTeX

Basic Staff Notation

Rendered output:

Rendered Output

Displays a musical staff with treble clef (𝄞) and 4/4 time signature. Notes appear on the five-line staff: C (quarter), D (half), E-F (quarters), G (whole). Note heads are positioned at correct pitch heights with appropriate stems.

Two-Staff System

Rendered output:

Rendered Output

Shows a grand staff (piano system) with treble clef (𝄞) on top and bass clef (𝄢) on bottom, connected by a brace. The right hand plays C major chord (C-E-G) on the upper staff while the left hand plays bass notes C and G on the lower staff.

Lead Sheets with leadsheets

Song Structure

Rendered output:

Rendered Output

Produces a formatted lead sheet with title “My Song” and composer credit. Verse and chorus sections are labeled. Chord symbols (C, Am, F, G) appear above the lyrics at the appropriate syllables, creating a professional songbook layout.

Rhythm Notation

Time Signatures and Tempo

Rendered output:

Rendered Output

Displays time signatures as stacked numbers (4/4, 3/4, 6/8, 5/4). Tempo markings show Italian terms like “Allegro” or “Andante” with metronome values. Metronome markings appear as ”♩ = 120” indicating beats per minute.

Musical Expressions

Dynamics and Articulation

Rendered output:

Rendered Output

Shows dynamic markings in italic: pp (very soft), p (soft), mp (medium soft), mf (medium loud), f (loud), ff (very loud). Crescendo and diminuendo appear as hairpin wedges (< and >). Articulation marks include staccato dots, accent marks (>), tenuto lines, and fermata symbols (𝄐).

ABC Notation Integration

Using ABC Notation

Rendered output:

Rendered Output

Converts ABC notation into standard music notation. The melody “Simple Melody” appears on a staff in C major, 4/4 time. Notes C-D-E-F followed by two half-note Gs, then F-E-D-C, ending with a whole-note C. Bar lines separate measures.

Musical Analysis

Roman Numeral Analysis

Rendered output:

Rendered Output

Displays Roman numeral chord analysis in small caps. Major key progression: I - IV - V - I. Inversions shown with figured bass: I6, IV6/4, V7. Minor key uses lowercase: i - iv - V - i. These symbols appear below the staff in harmonic analysis.

Form Analysis

Rendered output:

Rendered Output

Shows musical form sections labeled A (mm. 1-8), B (mm. 9-16), A’ (mm. 17-24) in bold text. Phrase diagrams display horizontal lines with vertical endpoints marking phrase boundaries, with “4 measures” labeled beneath each phrase bracket.

Lyrics and Text

Aligning Lyrics to Music

Rendered output:

Rendered Output

Displays a melodic line with lyrics aligned below each note. The words “This is my song” appear with each syllable centered under its corresponding note (C, D, E, F). The half note on “song” shows extended duration.

Musical Tables

Interval Reference Table

Rendered output:

Rendered Output

Produces a formatted table with columns for Interval, Semitones, and Example. Lists musical intervals from Unison (0 semitones, C-C) through Perfect 5th (7 semitones, C-G), including Minor/Major 2nds, 3rds, Perfect 4th, and Tritone. Includes a caption “Common musical intervals.”

Special Music Characters

Unicode Music Symbols

Rendered output:

Rendered Output

Displays Unicode music symbols including emoji instruments: 🎵 🎶 🎼 🎹 🎸 🎺 🎻 🥁. Musical notation symbols show note values from whole to 128th notes. Clef symbols display: 𝄞 (treble), 𝄢 (bass), 𝄡 (alto), and percussion clefs.

Best Practices

Choose the Right Package

Select packages based on your needs - MusiXTeX for full scores, harmony for chord symbols

Consistent Notation

Use standard music notation conventions throughout

Clear Layout

Ensure adequate spacing between staves and systems

Compile Multiple Times

Music packages often require multiple compilation passes

Troubleshooting

Common issues:
  • MusiXTeX requires special compilation: Run musixtex command
  • Font conflicts: Some music fonts require specific setup
  • Spacing issues: Manual adjustment often needed for complex scores

Further Reading

Linguistics Notation

Phonetic symbols and syntax trees

Symbol Reference

General symbol reference

Creating Diagrams

Creating diagrams with TikZ

Advanced Text Formatting

Text styling, emphasis, and structure