Guitar chords

Demonstration of chords.sty, a library for generating guitar chord diagrams.


guitar-chords

Edit and compile if you like:

% Guitar chords
% Author: Christoph
% Source: http://rio.eta-ori.net/latex-chords/chords.sty
% http://rio.eta-ori.net/latex-chords/example.tex
\documentclass{article}
\usepackage{subfig}
\usepackage{tikz}
%% Code from chords.sty
% Counters
\newcounter{chords-string}
\newcounter{chords-fret}
% Variables
\newcommand{\chordreset}{
\def\chordtuning{E,A,D,G,B,E}
\def\chordfretstart{1}
\def\chordfretend{4}
}
\chordreset
% The chord environmant
% \begin{chord}
% \begin{chord}[D,G,D,G,H,E]
\newenvironment{chord}
{
% A single note
% \single
\newcommand{\single}[3]{
\draw node[single] at (##1,##2) {##3};
}
% A bar
% \bar
\renewcommand{\bar}[3]{
\draw[bar] (##1,##2) -- node[midway] {##3} (1,##2);
}
% No strike
% \nostrike
\newcommand{\nostrike}[1]{
\draw[nostrike] (##1,\chordfretstart-.5) +(-135:.2cm) -- +(45:.2cm);
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Click to download: guitar-chords.texguitar-chords.pdf
Open in Overleaf: guitar-chords.tex