-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo.tex
68 lines (50 loc) · 1.39 KB
/
demo.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
\documentclass[a4paper,12pt]{article}
%\usepackage{mtxlatex}
\usepackage[margin=2cm]{geometry}
\usepackage{ebgaramond}
\usepackage[autocompile]{gregoriotex}
\usepackage{lyluatex}
\usepackage[generate]{abc}
%\mtxlatex
\title{{\LaTeX} music typesetting demo}
\author{Laércio de Sousa}
\begin{document}
\maketitle
\section{Gregorio\TeX}
Example of GregorioTeX music typesetting:
\gregorioscore{an--adorna_thalamum--triplex}
\section{LilyPond}
Example of LilyPond music typesetting:
%\lilypond{c d e f g a b c}
\lilypondfile[pass-fonts,current-font-as-main]{lilypond-example}
\section{ABC}
Example of ABC music typesetting:
\abcinput{abc-example}
%\section{M-Tx (Musix\TeX)}
%Example of MusixTeX M-Tx typesetting:
\newcommand*{\addFileDependency}[1]{
\IfFileExists{#1}{}{\typeout{No file #1.}}
}
\newcommand{\includeMTxPages}[1]{%
\addFileDependency{#1.pdf}%
\IfFileExists{#1.pdf}{\includepdf[pages=-]{#1.pdf}}{}
}
\newcommand{\includeMTxAsGraphics}[2][]{%
\addFileDependency{#2.pdf}%
\addFileDependency{#2-crop.pdf}%
\IfFileExists{#2-crop.pdf}{%
\bigskip\includegraphics[#1]{#2-crop.pdf}\bigskip%
}{}%
}
\newcommand*{\includeMTx}[1]{%
\IfFileExists{#1.tex}
{\input{#1}\typeout{Yeah we have #1.tex}%
{\addFileDependency{\jobname.mx2}}
}
{Oops sorry \typeout{No file #1.tex.}}
\addFileDependency{#1.tex}%
}
%\begin{mus}
% \includeMTx{mozart-riff-in-c}
%\end{mus}
\end{document}