-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlualatex_document.tex
51 lines (38 loc) · 1.05 KB
/
lualatex_document.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
% LuaLaTeX
\documentclass[a4paper, 12pt]{article}
\usepackage[latin]{babel}
\usepackage[left=2cm, right=2cm, top=2cm, bottom=2cm]{geometry}
\usepackage{fontspec}
\usepackage[hidelinks]{hyperref}
\usepackage{etoolbox}
% for gregorio
\usepackage{luatextra}
\usepackage{graphicx}
\usepackage{gregoriotex}
{{glyvars}}
% header fields like title, transcription-date etc.
% are translated by 'gly preview' to latex commands like
% \glyTitle \glyTranscriptionDate etc.
% (All of your document header fields are handled this way.)
% These commands can be used for various purposes,
% but we will use them only to assemble document title:
\newcommand{\glyPreviewTitle}{
\begin{center}
\ifdef{\glyTitle}{{\huge \glyTitle}}{}
\ifdef{\glyAuthor}{\emph{\glyAuthor}}{}
\ifdef{\glyYear}{\glyYear}{}
\vspace{6mm}
\end{center}
}
\newcommand{\glyPreviewTagline}{
\begin{center}
\texttt{\href{https://github.com/igneus/gly}{gly preview} \today}
\end{center}
}
\begin{document}
\glyPreviewTitle
{{body}}
% tagline
\vfill
\glyPreviewTagline
\end{document}