Debian Codegraph @

texmf-dist/doc/latex/lilyglyphs/documentation/lilyglyphs-example.tex

raw
1 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2 % %
3 % This file is part of the 'lilyglyphs' LaTeX package. %
4 % ========== %
5 % %
6 % https://github.com/openlilylib/lilyglyphs %
7 % http://www.openlilylib.org/lilyglyphs %
8 % %
9 % Copyright 2012-2020 Urs Liska and others, [email protected] %
10 % %
11 % 'lilyglyphs' is free software: you can redistribute it and/or modify %
12 % it under the terms of the LaTeX Project Public License, either %
13 % version 1.3 of this license or (at your option) any later version. %
14 % You may find the latest version of this license at %
15 % http://www.latex-project.org/lppl.txt %
16 % more information on %
17 % http://latex-project.org/lppl/ %
18 % and version 1.3 or later is part of all distributions of LaTeX %
19 % version 2005/12/01 or later. %
20 % %
21 % This work has the LPPL maintenance status 'maintained'. %
22 % The Current Maintainer of this work is Urs Liska (see above). %
23 % %
24 % This work consists of the files listed in the file 'manifest.txt' %
25 % which can be found in the 'license' directory. %
26 % %
27 % This program is distributed in the hope that it will be useful, %
28 % but WITHOUT ANY WARRANTY; without even the implied warranty of %
29 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. %
30 % %
31 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
32
33 \documentclass[oneside,11pt]{article}
34 \usepackage{lilyglyphsStyle}
35 \usepackage{lilyglyphsManualFonts}
36
37 \pagestyle{empty}
38
39 \newcommand{\superscript}[1]{{\addfontfeatures{VerticalPosition=Superior}#1}}
40 \linespread{1.1}
41
42 % make the glyphs lighter
43 \lilyOpticalSize{26}
44
45 \begin{document}
46 \begin{center}
47 { \Huge \lilyglyphs }
48
49 \bigskip
50 { \Large Urs Liska }
51
52 \emph{September 2013}
53
54 \end{center}
55
56 \bigskip
57
58 You are authoring text documents about music, maybe you're a musicologist, teacher, or composer?
59 You are preparing such documents for publication and have always missed the ability to print sentences like this one?
60
61 \begin{quote}
62 In m.\,24 the \decrescHairpin{} lasts from the 2\superscript{nd} \halfNote{} to the \lilyDynamics{sf} on the 11\superscript{th} \semiquaverDown[raise=-.5].
63 \end{quote}
64
65 With the new package \lilyglyphs{} you can easily insert the notational elements of the LilyPond%
66 \footnote{\url{http://www.lilypond.org}}
67 engraving software in your text documents.
68 Accidentals like \flat{} or \sharp, but also articulation scripts (\hspace{.65ex}\fermata{}) and time signatures such as \lilyTimeCHalf{} or \lilyTimeSignature{5\,+\,7}{8} are readily available.
69 But you can also insert arbitrary notational constructs like this mockup example \lilyFancyExample{} into your text or even make scanned images available as “characters”.
70 This package may greatly extend your typographical options when authoring or typesetting critical reports, analytical texts or teaching/exam material.
71
72 One thing that sets \lilyglyphs{} apart from other solutions I had investigated is that one isn't restricted to a set of predefined symbols but is able to print \emph{any notation} that can be realized with LilyPond.
73
74 \footnotesize
75 The other nice thing is that the glyphs \halfNoteRest{} scale well with the surrounding font size,
76 \large making it easy \halfNoteRest{} to incorporate them into continuous text.
77 \normalsize By default the glyphs scale automatically but they can also be scaled \clefF[scale=.4] manually, either individually or document-wise \clefG[scale=1.5,raise=-3.1].
78
79 \medskip
80 Sounds too good to be true? Well, there’s one catch to it: \lilyglyphs{} is a \LaTeX{}%
81 \footnote{\url{http://www.latex-project.org}}
82 package, so you may have to consider a change in mind-set.
83 But if the above examples whet your appetite and match your professional needs you should really consider giving it a serious try -- it's all Free Software anyway.
84 You may find reading my essay on the advantages of plain text toolchains helpful too%
85 \footnote{\url{http://lilypondblog.org/2013/07/plain-text-files-in-music/}}.
86
87 For more information you may visit \lilyglyphs' project homepage \url{http://openlilylib.org/lilyglyphs} or contact us through \href{mailto:[email protected]}{[email protected]}.
88
89 \end{document}