Debian Codegraph @

texmf-dist/doc/latex/gtrcrd/gtrcrd-doc.tex

raw
1 \documentclass[green,a4paper,oneside,openany,noparindent,noparskip,article,nomatter]{bookest}
2
3 \usepackage{gtrcrd}
4 \usepackage{hyperref}
5
6 \setleftmark{}
7 \setrightmark{}
8
9 %pdfLaTeX
10 \hypersetup{
11 pdftitle={gtrcrd},
12 pdfsubject={A LaTeX package which is suitable to add chords to lyrics.},
13 pdfauthor={Riccardo Bresciani},
14 pdfkeywords={gtrcrd, LaTeX, chords, lyrics, TeX},
15 pdfstartview=FitV,
16 %colorlinks
17 }
18
19
20 % Aliases
21 \newcommand{\ie}{\emph{i.e.} }
22
23 \author{Riccardo Bresciani}
24 \title{gtrcrd\hfill{\small\href{http://tex.nopkoguo.it/gtrcrd}{http://tex.nopkoguo.it/gtrcrd}}}
25 \newcommand{\belowLine}{{\normalsize Version 1.1 --- \today}}
26
27 \makeatletter
28 \renewcommand{\maketitle}{\thispagestyle{plain}{\Huge\textbf{\colorB\@title}\Large\\\vspace{2ex}
29 \@author{\colorA\hrule}\vspace{1ex}\belowLine\\\vspace{2ex}}}
30 \makeatother
31
32 \geometry{
33 hmargin=2.6cm,
34 vmargin={3.5cm,3cm},
35 bindingoffset=0mm,
36 columnsep=20pt
37 }
38
39 \pagestyle{plain}
40
41 \begin{document}
42
43 \maketitle
44
45 \begin{abstract}{Brief description of the package:}
46 This package is suitable to add chords to lyrics. The main advantages of using this package is that chords are written before the text they refer to and \LaTeX\ takes care of typesetting them above the lyrics in the right place: thanks to this we avoid the task of correctly aligning chords above the lyrics, which is tedious in the case of a monospaced font and absolutely non-trivial in the case of variable-width fonts.
47 \end{abstract}
48
49 \artsection{Usage}
50 \artsubsection{Chords}
51
52 The following commands typeset a chord above a given text:
53
54 \begin{center}
55 \ttfamily \textbackslash\A A \quad\textbackslash\B B \quad\textbackslash\C C \quad\textbackslash\D D \quad\textbackslash\E E \quad\textbackslash\F F \quad\textbackslash\G G
56
57 \textbackslash\Ab Ab \quad\textbackslash\Bb Bb \quad\textbackslash\Cb Cb \quad\textbackslash\Db Db \quad\textbackslash\Eb Eb \quad\textbackslash\Fb Fb \quad\textbackslash\Gb Gb
58
59 \textbackslash\As As \quad\textbackslash\Bs Bs \quad\textbackslash\Cs Cs \quad\textbackslash\Ds Ds \quad\textbackslash\Es Es \quad\textbackslash\Fs Fs \quad\textbackslash\Gs Gs
60
61 \textbackslash\Am Am \quad\textbackslash\Bm Bm \quad\textbackslash\Cm Cm \quad\textbackslash\Dm Dm \quad\textbackslash\Em Em \quad\textbackslash\Fm Fm \quad\textbackslash\Gm Gm
62
63 \textbackslash\Abm Abm \quad\textbackslash\Bbm Bbm \quad\textbackslash\Cbm Cbm \quad\textbackslash\Dbm Dbm \quad\textbackslash\Ebm Ebm \quad\textbackslash\Fbm Fbm \quad\textbackslash\Gbm Gbm
64
65 \textbackslash\Asm Asm \quad\textbackslash\Bsm Bsm \quad\textbackslash\Csm Csm \quad\textbackslash\Dsm Dsm \quad\textbackslash\Esm Esm \quad\textbackslash\Fsm Fsm \quad\textbackslash\Gsm Gsm
66 \end{center}
67
68 For example \texttt{\textbackslash Bb\{text\}} produces the following: \Bb{text}.
69
70 \ppar
71 Each command takes an optional argument, in order to allow users to typeset variations of the above chords.
72
73 For example \texttt{\textbackslash G[7sus4]\{text\}} produces the following: \G[7sus4]{text}.
74
75 \artsubsubsection{An Example: London Bridge is Falling Down}
76
77 \begin{tabular}{p{6cm}l}
78 \G London bridge is falling down &\texttt{\textbackslash G London bridge is falling down}\\
79
80 \D[7] Falling down, \G falling down. &\texttt{\textbackslash D[7] Falling down, \textbackslash G falling down.}\\
81
82 \G London bridge is falling down, &\texttt{\textbackslash G London bridge is falling down,}\\
83
84 \D my fair \G lady. &\texttt{\textbackslash D my fair \textbackslash G lady.}
85 \end{tabular}
86
87 \artsubsection{Different notations}\label{notations}
88
89 By default chords are typeset in English notation above the text. The default behaviour can be altered via the following commands:
90
91 \begin{itemize}
92 \item \texttt{\textbackslash chordsbelow} switches to typesetting chords below the text --- for example \texttt{\textbackslash Cs\{text\}} outputs {\chordsbelow \Cs{text}} instead of \Cs{text};
93 \item \texttt{\textbackslash neolatin} switches to the neo-latin notation (\emph{i.e.} Do-Re-Mi-Fa-Sol-La-Si) --- for example \texttt{\textbackslash As\{text\}} outputs {\neolatin \As{text}} instead of \As{text}.
94 \end{itemize}
95
96
97
98 \artsubsection{Operations on chords}\label{opts}
99
100 It is sometimes useful to transpose a song by a certain number of half-tones. This package provides the following commands to do this:
101
102 \begin{center}\ttfamily
103 \begin{tabular}{p{4cm}p{4cm}p{4cm}}
104
105 \textbackslash transposeOneUp &\textbackslash transposeTwoUp &\textbackslash transposeThreeUp\\
106
107 \textbackslash transposeFourUp &\textbackslash transposeFiveUp &\textbackslash transposeSixUp\\
108
109 \textbackslash transposeOneDown &\textbackslash transposeTwoDown &\textbackslash transposeThreeDown\\
110
111 \textbackslash transposeFourDown &\textbackslash transposeFiveDown &\textbackslash transposeSixDown
112 \end{tabular}
113 \end{center}
114
115 Things can be brought back to normal via the command \texttt{\textbackslash notranspose}.
116
117 \ppar
118 Another possibility is to convert all chords with a $\flat$ to the corresponding chords with a $\sharp$ or vice-versa: this is achieved with the commands \texttt{\textbackslash sharponly} and \texttt{\textbackslash flatonly}.
119
120 \ppar
121 Finally it is possible to avoid all occurrences of E$\sharp$, F$\flat$, B$\sharp$ and C$\flat$ and replace them with F, E, C and B respectively by using the command \texttt{\textbackslash normalize}.
122
123 \artsubsection{Package Options}
124 All commands from \S\S\ref{notations},\ref{opts} can be run at the beginning of the document by using the desired ones as package options --- the initial backslash has to be omitted of course!
125
126 \artsubsection{Changing the Way Things Look}
127 The line spacing in presence of a chord is controlled by the length \texttt{\textbackslash crdheight} --- the default setting is \texttt{3ex}.
128
129 \ppar
130 The font of the chord is controlled by the command \texttt{\textbackslash crdfont} --- the default setting is \texttt{\textbackslash footnotesize \textbackslash sffamily}.
131
132 \ppar
133 All chords are specific instances of the command \texttt{\textbackslash CHORD}, which takes two mandatory arguments and an optional one: the first argument is concatenated to the optional argument (respectively the chord and its variation) and is typeset above the text given as second argument.
134
135 It is possible to change the way a chord is typeset by redefining this command --- and this does not compromise the functionality of the commands in \S\ref{opts} as long as the meaning of the arguments of \texttt{\textbackslash CHORD} is not changed.
136
137 \artsection{Contacts}
138 If you have comments or want to report any bug, please send a mail to \textsl{\href{mailto:[email protected]}{[email protected]}}.
139
140
141 \end{document}