Debian Codegraph @

texmf-dist/doc/latex/latex4musicians/Figures/sample-includeall.tex

raw
1 % typeset with:
2 % pdflatex -shell-escape sample-example.tex
3
4 \documentclass{article}
5 \thispagestyle{empty}
6 \usepackage[generate,ps2eps]{abc}
7
8 % --- M-Tx support
9 % https://ctan.org/pkg/m-tx
10
11 \newcommand{\mtxinput}[2][]{%
12 \abcinput[program=musixtex,options={-g},extension=mtx,#1]{#2}}
13
14 % --- PMW support
15 % http://people.ds.cam.ac.uk/ph10/pmw.html
16
17 \newcommand{\pmwinput}[2][]{%
18 \abcinput[program=pmw,options={-includefont},extension=pmw,#1]{#2}}
19
20 % --- LilyPond support
21 % http://lilypond.org/
22
23 \newcommand{\lilyinput}[2][]{%
24 \abcinput[program=lilypond,options={-d backend=eps},extension=ly,#1]{#2}}
25
26 % --- MUP support
27 % http://arkkra.com/
28
29 \newcommand{\mupinput}[2][]{%
30 \abcinput[program=mup,options={-F},extension=mup,#1]{#2}}
31
32 % --- ABC is supported by default
33
34 \begin{document}
35
36 This document includes music excerpts written in several formats. It
37 uses \texttt{abc.sty} and defines new environments.
38
39 \bigskip
40
41 This is a short piece, typeset by M-Tx:
42
43 \medskip
44
45 \mtxinput{sample-mtx}
46
47 \medskip
48
49 The same piece, typeset by LilyPond:
50
51 \medskip
52
53 \lilyinput{sample-lilypond}
54
55 \medskip
56
57 The same piece, typeset by PMW:
58
59 \medskip
60
61 \pmwinput{sample-pmw}
62
63 \medskip
64
65 The same piece, typeset by MUP:
66
67 \medskip
68
69 \mupinput{sample-mup}
70
71 \medskip
72
73 The same piece, typeset by abcm2ps:
74
75 \medskip
76
77 \abcinput[program=abcm2ps,options={-c -O=},extension=abc]{sample-abc}
78
79 \end{document}
80
81 % End of file `sample-includeall.tex'.