jperon / lyluatex

Alternative à lilypond-book pour lualatex
MIT License
58 stars 11 forks source link

Lyluatex, lilypond and TexLive 2017 #17

Closed Brayanokles closed 5 years ago

Brayanokles commented 6 years ago

Hello everybody,

I have a problem with running lyluatex and TexLive 2017. OS: Windows 10.

According to a friend, the problem is here:

Package etex Warning: Extended allocation already in use.
(etex)                etex.sty code will not be used.
(etex)                To force etex package to load, add
(etex)                \RequirePackage{etex}
(etex)                at the start of the document.
) (c:/texlive/2017/texmf-dist/tex/latex/xkeyval/xkeyval.sty
<knip>

**! LaTeX Error: Option clash for package lyluatex.**

The complete output:

C:\Users\doesd\Documents\Laus Tibi Praios NIEUW\Oefening>lualatex -shell-escape erik.texThis is LuaTeX, Version 1.0.4 (TeX Live 2017/W32TeX) system commands enabled.(./erik.texLaTeX2e <2017-04-15>(using write cache: C:/texlive/2017/texmf-var/luatex-cache/generic)(using readcache: C:/texlive/2017/texmf-var/luatex-cache/generic C:/Users/doesd/.texlive2017/texmf-var/luatex-cache/generic)luaotfload \| main : initialization completed in 0.355 secondsBabel <3.15> and hyphenation patterns for 1 language(s) loaded.(c:/texlive/2017/texmf-dist/tex/latex/memoir/memoir.clsDocument Class: memoir 2016/05/16 v3.7f configurable book, report, article document class(c:/texlive/2017/texmf-dist/tex/generic/luatex85/luatex85.sty)(c:/texlive/2017/texmf-dist/tex/generic/oberdiek/ifpdf.sty)(c:/texlive/2017/texmf-dist/tex/latex/ifetex/ifetex.sty(c:/texlive/2017/texmf-dist/tex/plain/ifetex/ifetex.tex))(c:/texlive/2017/texmf-dist/tex/generic/ifxetex/ifxetex.sty)(c:/texlive/2017/texmf-dist/tex/generic/oberdiek/ifluatex.sty)(c:/texlive/2017/texmf-dist/tex/latex/memoir/mem14.clo(load luc: C:/texlive/2017/texmf-var/luatex-cache/generic/fonts/otl/lmroman12-regular.luc))(load luc: C:/texlive/2017/texmf-var/luatex-cache/generic/fonts/otl/lmroman10-regular.luc)(c:/texlive/2017/texmf-dist/tex/latex/memoir/mempatch.sty))(c:/texlive/2017/texmf-dist/tex/generic/babel/babel.sty(c:/texlive/2017/texmf-dist/tex/generic/babel/switch.def)(c:/texlive/2017/texmf-dist/tex/generic/babel/luababel.def)(c:/texlive/2017/texmf-dist/tex/generic/babel-dutch/dutch.ldf(c:/texlive/2017/texmf-dist/tex/generic/babel/babel.def(c:/texlive/2017/texmf-dist/tex/generic/babel/switch.def)(c:/texlive/2017/texmf-dist/tex/generic/babel/luababel.def))(c:/texlive/2017/texmf-dist/tex/generic/hyph-utf8/loadhyph/loadhyph-nl.texUTF-8 Dutch hyphenation patterns(c:/texlive/2017/texmf-dist/tex/generic/hyph-utf8/patterns/tex/hyph-nl.tex))))(c:/texlive/2017/texmf-dist/tex/latex/bera/bera.sty(c:/texlive/2017/texmf-dist/tex/latex/base/fontenc.sty(c:/texlive/2017/texmf-dist/tex/latex/base/t1enc.def)(c:/texlive/2017/texmf-dist/tex/latex/lm/t1lmr.fd))(c:/texlive/2017/texmf-dist/tex/latex/base/textcomp.sty(c:/texlive/2017/texmf-dist/tex/latex/base/ts1enc.def))(c:/texlive/2017/texmf-dist/tex/latex/bera/beraserif.sty(c:/texlive/2017/texmf-dist/tex/latex/graphics/keyval.sty)(c:/texlive/2017/texmf-dist/tex/latex/bera/t1fve.fd))(c:/texlive/2017/texmf-dist/tex/latex/bera/berasans.sty)(c:/texlive/2017/texmf-dist/tex/latex/bera/beramono.sty))(c:/texlive/2017/texmf-dist/tex/latex/base/alltt.sty)(c:/texlive/2017/texmf-dist/tex/latex/graphics/graphicx.sty(c:/texlive/2017/texmf-dist/tex/latex/graphics/graphics.sty(c:/texlive/2017/texmf-dist/tex/latex/graphics/trig.sty)(c:/texlive/2017/texmf-dist/tex/latex/graphics-cfg/graphics.cfg)(c:/texlive/2017/texmf-dist/tex/latex/graphics-def/luatex.def)))(c:/texlive/2017/texmf-dist/tex/latex/tikzsymbols/tikzsymbols.sty(c:/texlive/2017/texmf-dist/tex/latex/l3packages/xparse/xparse.sty(c:/texlive/2017/texmf-dist/tex/latex/l3kernel/expl3.sty(c:/texlive/2017/texmf-dist/tex/latex/l3kernel/expl3-code.tex)(c:/texlive/2017/texmf-dist/tex/latex/l3kernel/l3pdfmode.def)))(c:/texlive/2017/texmf-dist/tex/latex/pgf/frontendlayer/tikz.sty(c:/texlive/2017/texmf-dist/tex/latex/pgf/basiclayer/pgf.sty(c:/texlive/2017/texmf-dist/tex/latex/pgf/utilities/pgfrcs.sty(c:/texlive/2017/texmf-dist/tex/generic/pgf/utilities/pgfutil-common.tex(c:/texlive/2017/texmf-dist/tex/generic/pgf/utilities/pgfutil-common-lists.tex)) (c:/texlive/2017/texmf-dist/tex/generic/pgf/utilities/pgfutil-latex.def(c:/texlive/2017/texmf-dist/tex/latex/ms/everyshi.sty))(c:/texlive/2017/texmf-dist/tex/generic/pgf/utilities/pgfrcs.code.tex))(c:/texlive/2017/texmf-dist/tex/latex/pgf/basiclayer/pgfcore.sty(c:/texlive/2017/texmf-dist/tex/latex/pgf/systemlayer/pgfsys.sty(c:/texlive/2017/texmf-dist/tex/generic/pgf/systemlayer/pgfsys.code.tex(c:/texlive/2017/texmf-dist/tex/generic/pgf/utilities/pgfkeys.code.tex(c:/texlive/2017/texmf-dist/tex/generic/pgf/utilities/pgfkeysfiltered.code.tex)) (c:/texlive/2017/texmf-dist/tex/generic/pgf/systemlayer/pgf.cfg)(c:/texlive/2017/texmf-dist/tex/generic/pgf/systemlayer/pgfsys-luatex.def(c:/texlive/2017/texmf-dist/tex/generic/pgf/systemlayer/pgfsys-common-pdf.def)))(c:/texlive/2017/texmf-dist/tex/generic/pgf/systemlayer/pgfsyssoftpath.code.tex)(c:/texlive/2017/texmf-dist/tex/generic/pgf/systemlayer/pgfsysprotocol.code.tex)) (c:/texlive/2017/texmf-dist/tex/latex/xcolor/xcolor.sty(c:/texlive/2017/texmf-dist/tex/latex/graphics-cfg/color.cfg))(c:/texlive/2017/texmf-dist/tex/generic/pgf/basiclayer/pgfcore.code.tex(c:/texlive/2017/texmf-dist/tex/generic/pgf/math/pgfmath.code.tex(c:/texlive/2017/texmf-dist/tex/generic/pgf/math/pgfmathcalc.code.tex(c:/texlive/2017/texmf-dist/tex/generic/pgf/math/pgfmathutil.code.tex)(c:/texlive/2017/texmf-dist/tex/generic/pgf/math/pgfmathparser.code.tex)(c:/texlive/2017/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.code.tex(c:/texlive/2017/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.basic.code.tex)(c:/texlive/2017/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.trigonometric.code.tex)(c:/texlive/2017/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.random.code.tex)(c:/texlive/2017/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.comparison.code.tex)(c:/texlive/2017/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.base.code.tex)(c:/texlive/2017/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.round.code.tex)(c:/texlive/2017/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.misc.code.tex)(c:/texlive/2017/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.integerarithmetics.code.tex)))(c:/texlive/2017/texmf-dist/tex/generic/pgf/math/pgfmathfloat.code.tex))(c:/texlive/2017/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepoints.code.tex)(c:/texlive/2017/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepathconstruct.code.tex)(c:/texlive/2017/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepathusage.code.tex)(c:/texlive/2017/texmf-dist/tex/generic/pgf/basiclayer/pgfcorescopes.code.tex)(c:/texlive/2017/texmf-dist/tex/generic/pgf/basiclayer/pgfcoregraphicstate.code.tex)(c:/texlive/2017/texmf-dist/tex/generic/pgf/basiclayer/pgfcoretransformations.code.tex)(c:/texlive/2017/texmf-dist/tex/generic/pgf/basiclayer/pgfcorequick.code.tex)(c:/texlive/2017/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreobjects.code.tex)(c:/texlive/2017/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepathprocessing.code.tex)(c:/texlive/2017/texmf-dist/tex/generic/pgf/basiclayer/pgfcorearrows.code.tex)(c:/texlive/2017/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreshade.code.tex)(c:/texlive/2017/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreimage.code.tex(c:/texlive/2017/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreexternal.code.tex))(c:/texlive/2017/texmf-dist/tex/generic/pgf/basiclayer/pgfcorelayers.code.tex)(c:/texlive/2017/texmf-dist/tex/generic/pgf/basiclayer/pgfcoretransparency.code.tex)(c:/texlive/2017/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepatterns.code.tex)))(c:/texlive/2017/texmf-dist/tex/generic/pgf/modules/pgfmoduleshapes.code.tex)(c:/texlive/2017/texmf-dist/tex/generic/pgf/modules/pgfmoduleplot.code.tex)(c:/texlive/2017/texmf-dist/tex/latex/pgf/compatibility/pgfcomp-version-0-65.sty)(c:/texlive/2017/texmf-dist/tex/latex/pgf/compatibility/pgfcomp-version-1-18.sty)) (c:/texlive/2017/texmf-dist/tex/latex/pgf/utilities/pgffor.sty(c:/texlive/2017/texmf-dist/tex/latex/pgf/utilities/pgfkeys.sty(c:/texlive/2017/texmf-dist/tex/generic/pgf/utilities/pgfkeys.code.tex))(c:/texlive/2017/texmf-dist/tex/latex/pgf/math/pgfmath.sty(c:/texlive/2017/texmf-dist/tex/generic/pgf/math/pgfmath.code.tex))(c:/texlive/2017/texmf-dist/tex/generic/pgf/utilities/pgffor.code.tex(c:/texlive/2017/texmf-dist/tex/generic/pgf/math/pgfmath.code.tex)))(c:/texlive/2017/texmf-dist/tex/generic/pgf/frontendlayer/tikz/tikz.code.tex(c:/texlive/2017/texmf-dist/tex/generic/pgf/libraries/pgflibraryplothandlers.code.tex)(c:/texlive/2017/texmf-dist/tex/generic/pgf/modules/pgfmodulematrix.code.tex)(c:/texlive/2017/texmf-dist/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibrarytopaths.code.tex))) (c:/texlive/2017/texmf-dist/tex/latex/tools/xspace.sty) (c:/texlive/2017/texmf-dist/tex/latex/l3packages/l3keys2e/l3keys2e.sty)(c:/texlive/2017/texmf-dist/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibraryarrows.code.tex(c:/texlive/2017/texmf-dist/tex/generic/pgf/libraries/pgflibraryarrows.code.tex))(c:/texlive/2017/texmf-dist/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibrarydecorations.pathmorphing.code.tex(c:/texlive/2017/texmf-dist/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibrarydecorations.code.tex(c:/texlive/2017/texmf-dist/tex/generic/pgf/modules/pgfmoduledecorations.code.tex))(c:/texlive/2017/texmf-dist/tex/generic/pgf/libraries/decorations/pgflibrarydecorations.pathmorphing.code.tex))(c:/texlive/2017/texmf-dist/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibrarytrees.code.tex)) (c:/texlive/2017/texmf-dist/tex/latex/tools/afterpage.sty)******************************************************Stock height and width: 845.04684pt by 597.50787ptTop and edge trims: 0pt and 0ptPage height and width: 845.04684pt by 597.50787ptText height and width: 639.15155pt by 448ptSpine and edge margins: 59.73816pt and 89.63971ptUpper and lower margins: 113.81102pt and 92.08427ptHeadheight and headsep: 17.5pt and 35ptFootskip: 35ptColumnsep and columnseprule: 10pt and 0ptMarginparsep and marginparwidth: 17pt and 51ptSidecapsep and sidecapwidth: 7pt and 51ptSidebarhsep and sidebarwidth: 7pt and 51ptSidebarvsep and sidebartopsep: 17.5pt and 0ptSidebarheight: 589.74994ptSidefoothsep and sidefootwidth: 7pt and 51ptSidefootvsep and sidefootheight: 17.5pt and 589.74994pt******************************************************(./lyluatex.sty(c:/texlive/2017/texmf-dist/tex/luatex/luatexbase/luatexbase.sty(c:/texlive/2017/texmf-dist/tex/luatex/ctablestack/ctablestack.sty))(c:/texlive/2017/texmf-dist/tex/latex/oberdiek/kvoptions.sty(c:/texlive/2017/texmf-dist/tex/generic/oberdiek/ltxcmds.sty)(c:/texlive/2017/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty(c:/texlive/2017/texmf-dist/tex/generic/oberdiek/infwarerr.sty)(c:/texlive/2017/texmf-dist/tex/generic/oberdiek/etexcmds.sty)))(c:/texlive/2017/texmf-dist/tex/latex/keycommand/keycommand.sty(c:/texlive/2017/texmf-dist/tex/latex/etex-pkg/etex.styPackage etex Warning: Extended allocation already in use.(etex)                etex.sty code will not be used.(etex)                To force etex package to load, add(etex)                \RequirePackage{etex}(etex)                at the start of the document.) (c:/texlive/2017/texmf-dist/tex/latex/xkeyval/xkeyval.sty(c:/texlive/2017/texmf-dist/tex/generic/xkeyval/xkeyval.tex(c:/texlive/2017/texmf-dist/tex/generic/xkeyval/xkvutils.tex)))(c:/texlive/2017/texmf-dist/tex/latex/etoolbox/etoolbox.sty))(c:/texlive/2017/texmf-dist/tex/latex/environ/environ.sty(c:/texlive/2017/texmf-dist/tex/latex/trimspaces/trimspaces.sty))(c:/texlive/2017/texmf-dist/tex/latex/currfile/currfile.sty(c:/texlive/2017/texmf-dist/tex/latex/filehook/filehook.sty(c:/texlive/2017/texmf-dist/tex/latex/filehook/filehook-memoir.sty))))! LaTeX Error: Option clash for package lyluatex.See the LaTeX manual or LaTeX Companion for explanation.Type  H <return>  for immediate help. ...l.43?
--

Who can help me?

rpspringuel commented 6 years ago

Option clash errors usually result from trying to load the same package twice with different options. What does the preamble of your document look like?

Brayanokles commented 6 years ago

Here it is:

\documentclass[a4paper,article,14pt]{memoir}
\usepackage[dutch]{babel}

% fonts
\usepackage{bera}
\usepackage{alltt}
\makeatletter
\def\verbatim@font{\normalfont}
\makeatother

% graphics
\usepackage{graphicx}
\usepackage{tikzsymbols}
\usepackage{xcolor}

% page layout
\usepackage{afterpage}
\settrimmedsize{297mm}{210mm}{*}
\setlength{\trimtop}{0pt}
\setlength{\trimedge}{\stockwidth}
\addtolength{\trimedge}{-\paperwidth}
\settypeblocksize{634pt}{448.13pt}{*}
\setulmargins{4cm}{*}{*}
\setlrmargins{*}{*}{1.5}
\setmarginnotes{17pt}{51pt}{\onelineskip}
\setheadfoot{\onelineskip}{2\onelineskip}
\setheaderspaces{*}{2\onelineskip}{*}
\checkandfixthelayout
\setlength{\parindent}{0pt}
\nonzeroparskip

% header and footer
\copypagestyle{lvstyle}{plain}
\makefootrule{lvstyle}{\textwidth}{\normalrulethickness}{\footruleskip}
\makeheadfootruleprefix{lvstyle}{\color{black}}{\color{black}}
\makeevenfoot{lvstyle}{\color{black}\small\thepage}{}{}
\makeoddfoot{lvstyle}{}{}{\color{black}\small\thepage}
\pagestyle{lvstyle}

% lilypond
\usepackage{lyluatex}

\begin{document}

% title page
\thispagestyle{empty}

\begin{center}
    \Huge{Gedachtenisviering} \\

    \vspace{2cm}

    \includegraphics{hart.jpg}

    \normalsize{26 november 2017} \\
\end{center}

\newpage

\par\vspace*{\fill}

\parbox[b][5cm][t]{\linewidth}{\small
 voorganger:  ds. C. E. Dahmen \\
 ouderling van dienst:  M. Schrader \\
 organist:  Erik van der Does de Bye  \\ 
 m.m.v. de Cantorij \\ 
 m.m.v.: Groep Liturgisch Bloemschikken
  \normalsize
}

\newpage

\section*{Voorbereiding}

\textbf{Orgelspel}

\textbf{Mededelingen}

\textbf{Stilte}

\textbf{Aanvangslied Psalm 116: 1 en 2}

\begin{ly}
\version "2.18.2"

#(define-public (format-time-sig-note grob)
(let* ((frac (ly:grob-property grob 'fraction))
(num (if (pair? frac) (car frac) 4))
(den (if (pair? frac) (cdr frac) 4))
(m (markup #:override '(baseline-skip . 0.5)
#:center-column (#:number (number->string num)
#:override '(style . default)
#:note (number->string den) DOWN))))
(grob-interpret-markup grob m)))

\paper {
    indent = 0\mm
    line-width = 160\mm
    line-width = #(- line-width (* mm  3.000000) (* mm 1))
    line-width = 160\mm - 2.0 * 10.16\mm
    line-width = #(- line-width (* mm  3.000000) (* mm 1))
}

global =  {
    \override Staff.TimeSignature #'stencil = #format-time-sig-note
    \override Staff.BarLine #'transparent = ##t  
    \time 1/2
    \key f \major
}

melody = \relative c'' { \global
    a2 a4 bes c2 c a4 bes g g f2 \r2 \break
    f2 a4 bes c2 bes a4 g a c b2 c r2 \break
    c2 bes4 a g2 c bes4 a bes c d2 c \break
    g2 a4 bes c2 g a4 bes g g f\breve
    \override Staff.BarLine #'transparent = ##f \bar "|."
}

words = \lyricmode { \set stanza = #"1. "
    God heb ik lief, want die ge -- trou -- we Heer
    nam, toen ik riep, met toe -- ge -- ne -- gen o -- ren
    mijn woor -- den aan, Hij zal mij blij -- ven ho -- ren
    en le -- vens -- lang ben ik niet een -- zaam meer.
}

\score { 
    <<
    \new Staff { \melody }
    \addlyrics { \words }
    >>
    \layout { 
        \context { \Score
            \remove "Bar_number_engraver"
        }
    }
}
\end{ly}

\end{document}
jperon commented 6 years ago

On my computer, I get no option clash, but the following :

! Class memoir Error: The combination of argument values is ambiguous.                                                                                              
(memoir)              The lengths will be set to zero.                                                                                                              

See the memoir class documentation for explanation.                                                                                                                 
Type  H <return>  for immediate help.                                                                                                                               
 ...                                                                                                                                                                

l.23 \setulmargins{4cm}{}{}                                                                                                                                         

?

Could you please try updating your TeXLive (tlmgr update --all) to ensure you didn't encounter a bug that would have been corrected, then try again ?

jperon commented 6 years ago

P.S : when giving code, you should use triple backticks before and after, to have it formatted better.

jperon commented 6 years ago

I just tried compiling a document on a Windows VM ; it didn't work with stock TeXLive 2017 (but the error was none of those that were mentionned in this issue), but after tlmgr update --self and tlmgr update --all, it worked. @Brayanokles Could you confirm, please ?

Brayanokles commented 6 years ago

Thank you for your information. I somehow can't find the two updates. Could you explain the steps I have to take? Thank you in advance.

jperon commented 6 years ago

What I mean is to update TeXLive itself. To do so, launch the commandline from the TeXLive menu, then type those two commands followed by <Enter> (assuming you are connected to the internet) :

tlmgr update --self
tlmgr update --all

If you installed from DVD, perhaps it will reply that no update is available. If so, launch the gui :

tlmgr --gui

and navigate through menus to update from a distant repository.

Brayanokles commented 6 years ago

I got this message by tlmgr update --all:

TLUtils::check_file: removing C:\Users\doesd\AppData\Local\Temp\rSKz5cS1Qk\ne4R4yG0IU\csplain.tar.xz, sizes differ: TLUtils::check_file: TL=9979, arg=117296 TLPDB::_install_package: downloading did not succeed tlmgr.pl: Installation of new version of csplain failed, trying to unwind. [ 60/287, 09:21/41:34] update: csplain [115k] (45678 -> 46212) ... xzdec: (stdin): Unexpected end of input Cannot open tlpobj file: C:/texlive/2017/tlpkg/tlpobj/csplain.tlpobj at C:/texlive/2017/tlpkg/TeXLive/TLPOBJ.pm line 69.

jperon commented 6 years ago

Seems like a download corruption. You should try again, and if it fails, ask for help on TeXLive mailing list : I don't really know from where this error comes.

Brayanokles commented 6 years ago

Now I got this one:

C:\texlive>tlmgr update --all xzdec: (stdin): Unexpected end of input tlmgr.pl: package repository http://ctan.triasinformatica.nl/systems/texlive/tlnet (not verified: gpg unavailable) tlmgr.pl: saving backups to C:/texlive/2017/tlpkg/backups tlmgr.pl: no updates available

jperon commented 6 years ago

Are you sure you have a stable internet connection ?

jperon commented 6 years ago

Otherwise, try tlmgr --gui, then choose another mirror in the list. Perhaps the problem comes from the mirror.

Brayanokles commented 6 years ago

Still no result.

Should I re-install TexLive?

jperon commented 6 years ago

This is certainly something you could try. All I can say is that, on my Window VM, it worked after the following steps:

jperon commented 5 years ago

@Brayanokles Is this issue still relevant ?