I am trying to create a very basic package for use with a font called HEJI2 (which provides some music symbols to use in-line). My code looks like this:
\ProvidesPackage{heji}[2019/12/9 v1.0]
\RequirePackage{fontspec}[2018/07/30 vv2.6h]
\newfontfamily{\HEfont}{HEJI2.ttf}
\makeatletter
\newcommand*{\fsize}{\dimexpr\f@size pt\relax}
\makeatother
\newcommand{\heji}[2]{\mbox{#1\hspace{0.3mm}\raisebox{0.25\fsize}{\large\HEfont #2}}}
\DeclareOption{accfirst}{
\renewcommand{\heji}[2]{\mbox{\raisebox{0.25\fsize}{\large\HEfont #2}#1}}
}
\ProcessOptions\relax
\endinput
Using the package seems to work, however when I compile it, I get the following (nonfatal) errors:
! Missing = insterted for \ifnum.
<to be read again>
v
1.4
?
! Missing number, treated as zero.
<to be read again>
v
1.4
?
Not sure what this means exactly. I appear to be able to return through the messages and I get a properly formatted .pdf in the end according to my package specifications. Would appreciate any help! (Compiling with Lualatex)
[2019/12/9 v1.0]
by[2019/12/09 v1.0]
...texdoc usrguide
) tell that this date should be in the formatYYYY/MM/DD
(which is now deprecated and should actually be in the ISO formatYYYY-MM-DD
), but it actually must be in this format. I wonder if this should be made a bit more flexible...