Debian Codegraph @

texmf-dist/doc/latex/abc/example.tex

raw
1 %%
2 %% This is file `example.tex',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% abc.dtx (with options: `example')
8 %%
9 %% Copyright 2006, 2008 Enrico Gregorio
10 %%
11 %% This program is provided under the terms of the
12 %% LaTeX Project Public License distributed from CTAN
13 %% archives in directory macros/latex/base/lppl.txt.
14 %%
15 %% Author: Enrico Gregorio
16 %% Enrico dot Gregorio at univr dot it
17 %%
18 %% This work has the LPPL maintenance status "author-maintained".
19 %%
20 \documentclass[a4paper,12pt]{article}
21 \usepackage[generate,ps2eps]{abc}
22 \usepackage{mathptmx}
23
24 \begin{document}
25
26 \title{Example of ABC Plus in \LaTeX{}}
27 \author{Guido Gonzato}
28 \date{}
29 \maketitle
30
31 This is a short piece.
32
33 \medskip
34
35 \begin{abc}
36 X:4
37 T:Cronin's Hornpipe
38 R:hornpipe
39 S:Keenan and Glackin
40 E:7
41 M:C|
42 L:1/8
43 K:G
44 BA|GABc dBde|gage dega|bage dBGB|cABG A2BA|!
45 GABc dBde|gage dega|bage dBAB|G2G2 G2:|!
46 fg|afd^c d2ga|bged e2ga|(3bag (3agf gedB|(3cBA AG AcBA|!
47 GABc dBde|~g3e dega|bage dBAB|G2G2 G2:|!
48 \end{abc}
49
50 \medskip
51
52 This is another short piece, but we would like to keep the
53 ABC source in our directory.
54
55 \begin{abc}[name=jacky]
56 X:9
57 T:Jacky Tar
58 R:hornpipe
59 M:4/4
60 L:1/8
61 K:Edor
62 (Bd) | "Em" e2 ed efge | "G" d2 B2 B2 (dB) | "D" ABde faef | d2 A2 A2 (Bd) |
63 "Em" e2 ef g2 fe | "G" dB GB d2 (cB) | "D" AGFE DEFA | "Em" G2 E2 E2 :|
64 (GA) | "Em" BGEG BGEG | BAGF E2 (FG) | "D" BGEG BGEG | AGFE D2 (EF) |
65 "G" GFGB g2 (fe) | dBGB d2 (cB) | "D" AGFE DEFA | "Em" G2 E2 E2 :|
66 \end{abc}
67
68 \clearpage
69
70 And, finally, we want to set also the last piece; its ABC code
71 is already in our directory.
72
73 \medskip
74
75 \abcinput{poll}
76
77 \end{document}
78
79 \endinput
80 %%
81 %% End of file `example.tex'.