replace waf with make

This commit is contained in:
Sebastian Hugentobler 2017-11-08 11:07:22 +01:00
parent 6eeb3e8b3c
commit cc46c8779f
No known key found for this signature in database
GPG key ID: 7BBE74D3F626FC0F
29 changed files with 1100 additions and 427 deletions

BIN
src/images/title.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.8 KiB

69
src/kommersbuch.tex Normal file
View file

@ -0,0 +1,69 @@
% !Mode:: "TeX:UTF-8"
\documentclass[9pt, a4paper, openany]{scrbook}
\usepackage{fontspec}
\usepackage{fancyhdr}
\usepackage{geometry}
\usepackage{tgschola}
\usepackage{tocloft}
\usepackage[unicode]{hyperref}
\usepackage{songs}
\usepackage{lyluatex}
\makeatletter
\newcommand{\unchapter}[1]{%
\begingroup
\let\@makechapterhead\@gobble % make \@makechapterhead do nothing
\chapter{#1}
\endgroup
}
\makeatother
\setlength{\headheight}{15pt}
\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{ \markboth{#1}{} }
\renewcommand{\sectionmark}[1]{ \markright{#1}{} }
\fancyhf{}
\fancyhead[LE,RO]{\thepage}
\fancyhead[RE]{\textit{ \nouppercase{\leftmark}} }
\fancyhead[LO]{\textit{ \nouppercase{\rightmark}} }
\fancypagestyle{plain}{
\fancyhf{}
\fancyhead[LE,RO]{\thepage}
\fancyhead[RE]{\textit{ \nouppercase{Alcolica}} }
\fancyhead[LO]{\textit{ \nouppercase{Alcolica}} }
}
\geometry{a5paper,left=20mm,right=20mm, top=3cm, bottom=3cm}
\renewcommand\addchaptertocentry[2]{\addtocentrydefault{chapter}{}{#2}}
\renewcommand{\contentsname}{Inhalt}
\renewcommand{\cfttoctitlefont}{\huge\textbf\rmfamily}
\renewcommand{\cftchapfont}{\large\rmfamily}
\begin{document}
\begin{titlepage}
\begin{center}
\includegraphics[width=0.50 \textwidth]{images/title.png}\\
\rule{\linewidth}{0.5mm} \\[0.4cm]
{ \huge \bfseries Alcolica}
\rule{\linewidth}{0.5mm} \\[1.5cm]
\end{center}
\end{titlepage}
\pagenumbering{Roman}
\tableofcontents
\newpage
\songs
\end{document}

187
src/lyluatex.lua Normal file
View file

@ -0,0 +1,187 @@
local err, warn, info, log = luatexbase.provides_module({
name = "lyluatex",
version = '0',
greinternalversion = internalversion,
date = "2017/09/30",
description = "Module lyluatex.",
author = "The Gregorio Project (see CONTRIBUTORS.md)",
copyright = "2008-2017 - The Gregorio Project",
license = "MIT",
})
local md5 = require 'md5'
LILYPOND = 'lilypond'
TMP = 'tmp_ly'
N = 0
function ly_definir_programme(lilypond)
if lilypond then LILYPOND = lilypond end
end
function contenuIntegral(contenu)
local content =""
for i, Line in ipairs(contenu:explode('\n')) do
if Line:find("^%s*[^%%]*\\include") then
local i = io.open(Line:gsub('%s*\\include%s*"(.*)"%s*$', "%1"), 'r')
if i then
content = content .. contenuIntegral(i:read('*a'))
else
content = content .. Line .. "\n"
end
else
content = content .. Line .. "\n"
end
end
return content
end
function direct_ly(ly, largeur, facteur)
N = N + 1
facteur = calcul_facteur(facteur)
ly = ly:gsub('\\par ', '\n'):gsub('\\([^%s]*) %-([^%s])', '\\%1-%2')
print(ly)
local sortie = TMP..'/'..string.gsub(md5.sumhexa(contenuIntegral(ly))..'-'..facteur..'-'..largeur, '%.', '-')
if not lfs.isfile(sortie..'-systems.tex') then
compiler_ly(entete_lilypond(facteur, largeur - 10)..'\n'..ly, sortie)
end
retour_tex(sortie)
end
function inclure_ly(entree, currfiledir, largeur, facteur)
facteur = calcul_facteur(facteur)
nom = splitext(entree, 'ly')
entree = currfiledir..nom..'.ly'
if not lfs.isfile(entree) then entree = kpse.find_file(nom..'.ly') end
if not lfs.isfile(entree) then err("Le fichier %s.ly n'existe pas.", nom) end
local i = io.open(entree, 'r')
ly = i:read('*a')
i:close()
local sortie = TMP..'/' ..string.gsub(md5.sumhexa(contenuIntegral(ly))..'-'..facteur..'-'..largeur, '%.', '-')
if not lfs.isfile(sortie..'-systems.tex') then
compiler_ly(entete_lilypond(facteur, largeur - 10)..'\n'..ly, sortie, dirname(entree))
end
retour_tex(sortie)
end
function compiler_ly(ly, sortie, include)
mkdirs(dirname(sortie))
local commande = LILYPOND.." "..
"-dno-point-and-click "..
"-dbackend=eps "..
"-djob-count=2 "..
"-ddelete-intermediate-files "
if include then commande = commande.."-I '"..lfs.currentdir().."/"..include.."' " end
commande = commande.."-o "..sortie.." -"
local p = io.popen(commande, 'w')
p:write(ly)
p:close()
end
function entete_lilypond(facteur, largeur)
return string.format(
[[%%En-tête
\version "2.18.2"
#(define default-toplevel-book-handler
print-book-with-defaults-as-systems )
#(define toplevel-book-handler
(lambda ( . rest)
(set! output-empty-score-list #f)
(apply print-book-with-defaults rest)))
#(define toplevel-music-handler
(lambda ( . rest)
(apply collect-music-for-book rest)))
#(define toplevel-score-handler
(lambda ( . rest)
(apply collect-scores-for-book rest)))
#(define toplevel-text-handler
(lambda ( . rest)
(apply collect-scores-for-book rest)))
#(set-global-staff-size %s)
%%Paramètres de la partition
\paper{
indent = 0\mm
line-width = %s\pt
}
%%Partition originale
]],
facteur,
largeur
)
end
function calcul_facteur(facteur)
if facteur == 0 then facteur = fontinfo(font.current()).size/39321.6 end
return facteur
end
function retour_tex(sortie)
local i = io.open(sortie..'-systems.tex', 'r')
contenu = i:read("*all")
i:close()
texoutput, _ = string.gsub(
contenu,
[[includegraphics{]], [[includegraphics{]]..dirname(sortie)
)
tex.print(([[\noindent]]..texoutput):explode('\n'))
end
function dirname(str)
if str:match(".-/.-") then
local name = string.gsub(str, "(.*/)(.*)", "%1")
return name
else
return ''
end
end
function splitext(str, ext)
if str:match(".-%..-") then
local name = string.gsub(str, "(.*)(%." .. ext .. ")", "%1")
return name
else
return str
end
end
function mkdirs(str)
path = '.'
for dir in string.gmatch(str, '([^%/]+)') do
path = path .. '/' .. dir
lfs.mkdir(path)
end
end
local fontdata = fonts.hashes.identifiers
function fontinfo(id)
local f = fontdata[id]
if f then
return f
end
return font.fonts[id]
end
mkdirs(TMP)

71
src/lyluatex.sty Normal file
View file

@ -0,0 +1,71 @@
\ProvidesPackage{lyluatex}
% Dépendances
\RequirePackage{luatexbase}
\RequirePackage{luaotfload}
\RequirePackage{kvoptions}
\RequirePackage{graphicx}
\RequirePackage{keycommand}
\RequirePackage{environ}
\RequirePackage{currfile}
% Options
\DeclareStringOption[lilypond]{program}[lilypond]
\ProcessKeyvalOptions*
% Script lua
\directlua{dofile(kpse.find_file("lyluatex.lua"))}
\directlua{LILYPOND = '\lyluatex@program'}
% Une tricherie un peu sale pour récupérer la largeur de ligne
\let\bs\textbackslash
{\catcode`p=12 \catcode`t=12 \gdef\un#1pt{#1}}
\newcommand*{\largeur}{\expandafter\un\the\linewidth}
% Taille des partitions
% Si la valeur est 0, elle sera automatiquement calculée
% à partir de la taille de police.
\def\staffsize{0}
\let\localstaffsize\staffsize
% Commandes principales
% Inclusion d'un fichier ly
\newkeycommand*\includely[staffsize=\staffsize][autres][1]{%
\directlua{%
inclure_ly(
"\luatexluaescapestring{#1}",
"\luatexluaescapestring{\currfiledir}",
\luatexluaescapestring{\largeur},
\luatexluaescapestring{\commandkey{staffsize}}
)%
}%
}
% Inclusion d'un fragment intégré au document (environnement de base)
\NewEnviron{compilerly}{%
\directlua{%
direct_ly(
"\luatexluaescapestring{\unexpanded\expandafter{\BODY}}",
\luatexluaescapestring{\largeur},
\luatexluaescapestring{\localstaffsize}
)%
}%
}
% Commande et environnement avec paramètres
\newkeycommand{\lily}[staffsize=\staffsize][autres][1]{%
\def\localstaffsize{\commandkey{staffsize}}%
\begin{compilerly}%
#1
\end{compilerly}%
}
\newkeyenvironment{ly}[staffsize=\staffsize][autres]{%
\def\localstaffsize{\commandkey{staffsize}}%
\compilerly%
}{%
\endcompilerly%
}
% Commandes pour la compatibilité avec lilypond-book
\let\lilypondfile\includely
\let\lilypond\ly
\let\endlilypond\endly

22
src/song.tex Normal file
View file

@ -0,0 +1,22 @@
% !Mode:: "TeX:UTF-8"
\documentclass[fontsize=9pt, a4paper, openany]{article}
\usepackage{fontspec}
\usepackage{lmodern}
\usepackage{tgschola}
\usepackage[unicode]{hyperref}
\usepackage{lyluatex}
\begin{document}
\pagenumbering{gobble}
\directlua{
tex.sprint("\string\\includely[staffsize=14]{" .. arg[5] .. "}")
}
~\\
\directlua{
tex.sprint("\string\\input{" .. arg[6] .. "}")
}
\end{document}

30
src/songs.lua Normal file
View file

@ -0,0 +1,30 @@
require "lfs"
local open = io.open
local function read_file(path)
local file = open(path, "rb") -- r read mode and b binary mode
if not file then return nil end
local content = file:read "*a" -- *a or *all reads the whole file
file:close()
return content
end
function string.ends(String,End)
return End=='' or string.sub(String,-string.len(End))==End
end
function find_songs(dir)
for file in lfs.dir(dir) do
if string.ends(file, ".ly") then
local ly_content = read_file(dir .. '/' .. file)
local ly_title = string.match(ly_content, 'title = "(.-)"')
tex.sprint('\\unchapter{' .. ly_title .. '}')
tex.sprint('\\includely[staffsize=14]{' .. dir .. '/' .. file .. '}')
tex.sprint('~\\\\')
tex.sprint('~\\\\')
tex.sprint('\\input{' .. dir .. '/' .. file:gsub("%.ly", ".tex") .. '}')
end
end
end

19
src/songs.sty Normal file
View file

@ -0,0 +1,19 @@
\ProvidesPackage{songs}
\RequirePackage{luatexbase}
\RequirePackage{luaotfload}
\RequirePackage{kvoptions}
\RequirePackage{keycommand}
\RequirePackage{currfile}
\directlua{dofile(kpse.find_file("songs.lua"))}
\def\songpath{"./songs"}
% Commandes principales
% Inclusion d'un fichier ly
\newkeycommand*\songs[songpath=\songpath]{%
\directlua{%
find_songs(\songpath)%
}%
}

View file

@ -67,17 +67,6 @@ verseOne = \lyricmode {
}
\book {
\bookOutputName "bierlein_rinn_score"
\score {
<<
\new Voice = "one" {
\musicOne
}
>>
\layout {
}
}
\score {
\unfoldRepeats \articulate
<<

View file

@ -33,7 +33,7 @@ musicOne = \relative f' {
verseOne = \lyricmode {
Hier sind wir ver -- sam -- melt zu |
löb -- li -- chem Run, drum, |
löb -- li -- chem Tun, drum, |
Brü -- der -- chen, er -- go bi -- |
ba -- mus! (Das) |
heisst noch ein altes, ein |
@ -75,17 +75,6 @@ verseOneRepeat = \lyricmode {
}
\book {
\bookOutputName "ergo_bibamus_score"
\score {
<<
\new Voice = "one" {
\musicOne
}
>>
\layout {
}
}
\score {
\unfoldRepeats \articulate
<<

View file

@ -57,17 +57,6 @@ verseOne = \lyricmode {
}
\book {
\bookOutputName "gaudeamus_igitur_score"
\score {
<<
\new Voice = "one" {
\musicOne
}
>>
\layout {
}
}
\score {
\unfoldRepeats \articulate
<<

View file

@ -57,17 +57,6 @@ verseOne = \lyricmode {
}
\book {
\bookOutputName "in_jedem_vollen_glase_wein_score"
\score {
<<
\new Voice = "one" {
\musicOne
}
>>
\layout {
}
}
\score {
\unfoldRepeats \articulate
<<

View file

@ -63,17 +63,6 @@ verseOne = \lyricmode {
}
\book {
\bookOutputName "lindenwirtin_score"
\score {
<<
\new Voice = "one" {
\musicOne
}
>>
\layout {
}
}
\score {
\unfoldRepeats \articulate
<<

View file

@ -66,17 +66,6 @@ verseOne = \lyricmode {
}
\book {
\bookOutputName "viel_volle_becher_score"
\score {
<<
\new Voice = "one" {
\musicOne
}
>>
\layout {
}
}
\score {
\unfoldRepeats \articulate
<<

View file

@ -0,0 +1 @@
\relax

View file

@ -0,0 +1,20 @@
# Fdb version 3
["pdflatex"] 1509718845 "/Users/sebastianhugentobler/Documents/workspace/kommersbuch/src/templates/kommersbuch.j2" "kommersbuch.pdf" "kommersbuch" 1509718845
"/Users/sebastianhugentobler/Documents/workspace/kommersbuch/src/templates/kommersbuch.j2" 1509716660 1691 f5909bb2d078cf0c32c064bc3562d216 ""
"/opt/local/etc/texmf/texmf.cnf" 1498210216 30504 ca4c9cc71f3515cad4981dfa185b811b ""
"/opt/local/share/texmf-texlive/tex/generic/unicode-data/CaseFolding.txt" 1493155083 78161 e3fbf2f626f10070000fe66f3a2ff5ef ""
"/opt/local/share/texmf-texlive/tex/generic/unicode-data/SpecialCasing.txt" 1493155083 16830 fea30f45a2f81ffa474fd984d297e2ea ""
"/opt/local/share/texmf-texlive/tex/generic/unicode-data/UnicodeData.txt" 1493155083 1686443 dde25b1cf9bbb4ba1140ac12e4128b0b ""
"/opt/local/share/texmf-texlive/tex/latex/base/article.cls" 1467165121 19821 310da678527a7dfe2a02c88af38079b7 ""
"/opt/local/share/texmf-texlive/tex/latex/base/size10.clo" 1467165122 8292 e897c12e1e886ce77fe26afc5d470886 ""
"/opt/local/share/texmf-texlive/tex/latex/fontspec/fontspec.sty" 1493155085 1704 f155bd31324526584df93d8880629e82 ""
"/opt/local/share/texmf-texlive/tex/latex/l3kernel/expl3-code.tex" 1496799555 689208 a4a1f960caacd72906628f3f1a2e3b4c ""
"/opt/local/share/texmf-texlive/tex/latex/l3kernel/expl3.sty" 1496799555 9344 31607e39934aa760394a75d15a0594e0 ""
"/opt/local/share/texmf-texlive/tex/latex/l3kernel/l3pdfmode.def" 1496799555 10255 ae20359c06d3acc750024781d0520fe6 ""
"/opt/local/share/texmf-texlive/tex/latex/l3packages/xparse/xparse.sty" 1496799555 76757 9db3143638eba1ea8405900fbbcff235 ""
"/opt/local/var/db/texmf/web2c/pdftex/pdflatex.fmt" 1498210795 3768257 ca4ae9b50676c7797795cbaf354884e6 ""
"kommersbuch.aux" 1509718845 8 a94a2480d3289e625eea47cd1b285758 ""
"kommersbuch.j2" 1509716660 1691 f5909bb2d078cf0c32c064bc3562d216 ""
(generated)
"kommersbuch.log"
"kommersbuch.pdf"

View file

@ -0,0 +1,22 @@
PWD /Users/sebastianhugentobler/Documents/workspace/kommersbuch/src/templates
INPUT /opt/local/etc/texmf/texmf.cnf
INPUT /opt/local/var/db/texmf/web2c/pdftex/pdflatex.fmt
INPUT /Users/sebastianhugentobler/Documents/workspace/kommersbuch/src/templates/kommersbuch.j2
OUTPUT kommersbuch.log
INPUT /opt/local/share/texmf-texlive/tex/latex/base/article.cls
INPUT /opt/local/share/texmf-texlive/tex/latex/base/article.cls
INPUT /opt/local/share/texmf-texlive/tex/latex/base/size10.clo
INPUT /opt/local/share/texmf-texlive/tex/latex/base/size10.clo
INPUT /opt/local/share/texmf-texlive/tex/latex/fontspec/fontspec.sty
INPUT /opt/local/share/texmf-texlive/tex/latex/fontspec/fontspec.sty
INPUT /opt/local/share/texmf-texlive/tex/latex/l3kernel/expl3.sty
INPUT /opt/local/share/texmf-texlive/tex/latex/l3kernel/expl3.sty
INPUT /opt/local/share/texmf-texlive/tex/latex/l3kernel/expl3-code.tex
INPUT /opt/local/share/texmf-texlive/tex/latex/l3kernel/expl3-code.tex
INPUT /opt/local/share/texmf-texlive/tex/generic/unicode-data/UnicodeData.txt
INPUT /opt/local/share/texmf-texlive/tex/generic/unicode-data/CaseFolding.txt
INPUT /opt/local/share/texmf-texlive/tex/generic/unicode-data/SpecialCasing.txt
INPUT /opt/local/share/texmf-texlive/tex/latex/l3kernel/l3pdfmode.def
INPUT /opt/local/share/texmf-texlive/tex/latex/l3kernel/l3pdfmode.def
INPUT /opt/local/share/texmf-texlive/tex/latex/l3packages/xparse/xparse.sty
INPUT /opt/local/share/texmf-texlive/tex/latex/l3packages/xparse/xparse.sty

View file

@ -1,6 +1,6 @@
% !Mode:: "TeX:UTF-8"
\documentclass[9pt, a5paper, openany]{scrbook}
\documentclass[9pt, a4paper, openany]{article}
\usepackage{fontspec}
\usepackage{lmodern}

View file

@ -0,0 +1,182 @@
This is pdfTeX, Version 3.14159265-2.6-1.40.18 (TeX Live 2017/MacPorts 2017_2) (preloaded format=pdflatex 2017.6.23) 3 NOV 2017 15:20
entering extended mode
restricted \write18 enabled.
file:line:error style messages enabled.
%&-line parsing enabled.
**/Users/sebastianhugentobler/Documents/workspace/kommersbuch/src/templates/kom
mersbuch.j2
(/Users/sebastianhugentobler/Documents/workspace/kommersbuch/src/templates/komm
ersbuch.j2
LaTeX2e <2017-04-15>
Babel <3.10> and hyphenation patterns for 55 language(s) loaded.
(/opt/local/share/texmf-texlive/tex/latex/base/article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(/opt/local/share/texmf-texlive/tex/latex/base/size10.clo
File: size10.clo 2014/09/29 v1.4h Standard LaTeX file (size option)
)
\c@part=\count79
\c@section=\count80
\c@subsection=\count81
\c@subsubsection=\count82
\c@paragraph=\count83
\c@subparagraph=\count84
\c@figure=\count85
\c@table=\count86
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
(/opt/local/share/texmf-texlive/tex/latex/fontspec/fontspec.sty
(/opt/local/share/texmf-texlive/tex/latex/l3kernel/expl3.sty
Package: expl3 2017/05/13 L3 programming layer (loader)
(/opt/local/share/texmf-texlive/tex/latex/l3kernel/expl3-code.tex
Package: expl3 2017/05/13 L3 programming layer (code)
\c_max_int=\count87
\l_tmpa_int=\count88
\l_tmpb_int=\count89
\g_tmpa_int=\count90
\g_tmpb_int=\count91
\g__prg_map_int=\count92
\c_log_iow=\count93
\l_iow_line_count_int=\count94
\l__iow_line_target_int=\count95
\l__iow_one_indent_int=\count96
\l__iow_indent_int=\count97
\c_zero_dim=\dimen103
\c_max_dim=\dimen104
\l_tmpa_dim=\dimen105
\l_tmpb_dim=\dimen106
\g_tmpa_dim=\dimen107
\g_tmpb_dim=\dimen108
\c_zero_skip=\skip43
\c_max_skip=\skip44
\l_tmpa_skip=\skip45
\l_tmpb_skip=\skip46
\g_tmpa_skip=\skip47
\g_tmpb_skip=\skip48
\c_zero_muskip=\muskip10
\c_max_muskip=\muskip11
\l_tmpa_muskip=\muskip12
\l_tmpb_muskip=\muskip13
\g_tmpa_muskip=\muskip14
\g_tmpb_muskip=\muskip15
\l_keys_choice_int=\count98
\c__fp_leading_shift_int=\count99
\c__fp_middle_shift_int=\count100
\c__fp_trailing_shift_int=\count101
\c__fp_big_leading_shift_int=\count102
\c__fp_big_middle_shift_int=\count103
\c__fp_big_trailing_shift_int=\count104
\c__fp_Bigg_leading_shift_int=\count105
\c__fp_Bigg_middle_shift_int=\count106
\c__fp_Bigg_trailing_shift_int=\count107
\c__fp_rand_size_int=\count108
\c__fp_rand_four_int=\count109
\c__fp_rand_eight_int=\count110
\l__sort_length_int=\count111
\l__sort_min_int=\count112
\l__sort_top_int=\count113
\l__sort_max_int=\count114
\l__sort_true_max_int=\count115
\l__sort_block_int=\count116
\l__sort_begin_int=\count117
\l__sort_end_int=\count118
\l__sort_A_int=\count119
\l__sort_B_int=\count120
\l__sort_C_int=\count121
\c_empty_box=\box26
\l_tmpa_box=\box27
\l_tmpb_box=\box28
\g_tmpa_box=\box29
\g_tmpb_box=\box30
\l__box_top_dim=\dimen109
\l__box_bottom_dim=\dimen110
\l__box_left_dim=\dimen111
\l__box_right_dim=\dimen112
\l__box_top_new_dim=\dimen113
\l__box_bottom_new_dim=\dimen114
\l__box_left_new_dim=\dimen115
\l__box_right_new_dim=\dimen116
\l__box_internal_box=\box31
\l__coffin_internal_box=\box32
\l__coffin_internal_dim=\dimen117
\l__coffin_offset_x_dim=\dimen118
\l__coffin_offset_y_dim=\dimen119
\l__coffin_x_dim=\dimen120
\l__coffin_y_dim=\dimen121
\l__coffin_x_prime_dim=\dimen122
\l__coffin_y_prime_dim=\dimen123
\c_empty_coffin=\box33
\l__coffin_aligned_coffin=\box34
\l__coffin_aligned_internal_coffin=\box35
\l_tmpa_coffin=\box36
\l_tmpb_coffin=\box37
\l__coffin_display_coffin=\box38
\l__coffin_display_coord_coffin=\box39
\l__coffin_display_pole_coffin=\box40
\l__coffin_display_offset_dim=\dimen124
\l__coffin_display_x_dim=\dimen125
\l__coffin_display_y_dim=\dimen126
\l__coffin_bounding_shift_dim=\dimen127
\l__coffin_left_corner_dim=\dimen128
\l__coffin_right_corner_dim=\dimen129
\l__coffin_bottom_corner_dim=\dimen130
\l__coffin_top_corner_dim=\dimen131
\l__coffin_scaled_total_height_dim=\dimen132
\l__coffin_scaled_width_dim=\dimen133
)
(/opt/local/share/texmf-texlive/tex/latex/l3kernel/l3pdfmode.def
File: l3pdfmode.def 2017/03/18 v L3 Experimental driver: PDF mode
\l__driver_color_stack_int=\count122
\l__driver_tmp_box=\box41
))
(/opt/local/share/texmf-texlive/tex/latex/l3packages/xparse/xparse.sty
Package: xparse 2017/05/13 L3 Experimental document command parser
\l__xparse_current_arg_int=\count123
\g__xparse_grabber_int=\count124
\l__xparse_m_args_int=\count125
\l__xparse_mandatory_args_int=\count126
\l__xparse_v_nesting_int=\count127
)
Package: fontspec 2017/03/31 v2.6a Font selection for XeLaTeX and LuaLaTeX
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
/opt/local/share/texmf-texlive/tex/latex/fontspec/fontspec.sty:28: Fatal fontsp
ec error: "cannot-use-pdftex"
!
! The fontspec package requires either XeTeX or LuaTeX.
!
! You must change your typesetting engine to, e.g., "xelatex" or
! "lualatex"instead of plain "latex" or "pdflatex".
!
! See the fontspec documentation for further information.
!
! For immediate help type H <return>.
!...............................................
l.28 \msg_fatal:nn {fontspec} {cannot-use-pdftex}
|'''''''''''''''''''''''''''''''''''''''''''''''
| This is a fatal error: LaTeX will abort.
|...............................................
) )
Here is how much of TeX's memory you used:
7521 strings out of 493588
152856 string characters out of 6147356
171207 words of memory out of 5000000
10980 multiletter control sequences out of 15000+600000
3640 words of font info for 14 fonts, out of 8000000 for 9000
846 hyphenation exceptions out of 8191
33i,1n,32p,10444b,275s stack positions out of 5000i,500n,10000p,200000b,80000s
No pages of output.
PDF statistics:
0 PDF objects out of 1000 (max. 8388607)
0 named destinations out of 1000 (max. 500000)
1 words of extra memory for PDF output out of 10000 (max. 10000000)