pdflatexによって、Optics Expressの論文のテンプレート(https://www.overleaf.com/latex/templates/universal-manuscript-template-for-osa-journals/bccwtwxwjbvs)
をコンパイルしたところ次のようなエラーが出ます。(https://www.osapublishing.org/oe/submit/templates/default.cfm の LatexTemplateから上のリンクに飛びます)
=====================================================================================
! Undefined control sequence.
\@begindocumenthook ...i \ifosa@openaccess \appto
{\@copyrighttext }{\space ...
l.23 \begin{document}
?
! Undefined control sequence.
\hyper@linkurl ...tionraw >>}\relax \Hy@colorlink
\@urlcolor #1\Hy@xspace@en...
l.23 \begin{document}
?
! Undefined control sequence.
\close@pdflink ->\Hy@endcolorlink
\Hy@VerboseLinkStop \pdfendlink
l.23 \begin{document}
=====================================================================================
pdflatexのバージョンは以下の通りです。
$ pdflatex
This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012/Debian)
解決方法のわかる方がいらっしゃったらご教示ください。
コマンドラインから実行すると、エラーが出るもののpdfは生成されるのですが、
Emacsなどから実行すると、エラーでコンパイルが止まってしまいます(pdfは生成されない)。
pdflatexを実行したときの完全なログは次の通りです。
=====================================================================================
This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012/Debian)
restricted \write18 enabled.
entering extended mode
(./OSA-template.tex
LaTeX2e <2011/06/27>
Babel <v3.8m> and hyphenation patterns for english, dumylang, nohyphenation, et
hiopic, farsi, arabic, pinyin, croatian, bulgarian, ukrainian, russian, slovak,
czech, danish, dutch, usenglishmax, ukenglish, finnish, french, basque, ngerma
n, german, swissgerman, ngerman-x-2012-05-30, german-x-2012-05-30, monogreek, g
reek, ibycus, ancientgreek, hungarian, bengali, tamil, hindi, telugu, gujarati,
sanskrit, malayalam, kannada, assamese, marathi, oriya, panjabi, italian, lati
n, latvian, lithuanian, mongolian, mongolianlmc, nynorsk, bokmal, indonesian, e
speranto, coptic, welsh, irish, interlingua, serbian, serbianc, slovenian, friu
lan, romansh, estonian, romanian, armenian, uppersorbian, turkish, afrikaans, i
celandic, kurmanji, polish, portuguese, galician, catalan, spanish, swedish, th
ai, loaded.
(./osa-article.cls
Document Class: osa-article 2018/07/24 LaTeX package for OSA Journal Submission
s
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo))
(/usr/share/texlive/texmf-dist/tex/latex/geometry/geometry.sty
(/usr/share/texlive/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifpdf.sty)
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifvtex.sty)
(/usr/share/texlive/texmf-dist/tex/generic/ifxetex/ifxetex.sty))
(/usr/share/texmf/tex/latex/xcolor/xcolor.sty
(/usr/share/texlive/texmf-dist/tex/latex/latexconfig/color.cfg)
(/usr/share/texlive/texmf-dist/tex/latex/pdftex-def/pdftex.def
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/infwarerr.sty)
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ltxcmds.sty))
(/usr/share/texlive/texmf-dist/tex/latex/colortbl/colortbl.sty
(/usr/share/texlive/texmf-dist/tex/latex/tools/array.sty)))
(/usr/share/texlive/texmf-dist/tex/latex/graphics/graphicx.sty
(/usr/share/texlive/texmf-dist/tex/latex/graphics/graphics.sty
(/usr/share/texlive/texmf-dist/tex/latex/graphics/trig.sty)
(/usr/share/texlive/texmf-dist/tex/latex/latexconfig/graphics.cfg)))
(/usr/share/texlive/texmf-dist/tex/latex/silence/silence.sty)
(/usr/share/texlive/texmf-dist/tex/latex/base/fontenc.sty
(/usr/share/texlive/texmf-dist/tex/latex/base/t1enc.def))
(/usr/share/texlive/texmf-dist/tex/latex/newtx/newtxtext.sty
`newtxtext' v0.95, 2012/05/23 Text macros based on txfonts (msharpe)
(/usr/share/texlive/texmf-dist/tex/latex/xkeyval/xkeyval.sty
(/usr/share/texlive/texmf-dist/tex/generic/xkeyval/xkeyval.tex))
(/usr/share/texlive/texmf-dist/tex/latex/base/fontenc.sty
(/usr/share/texlive/texmf-dist/tex/latex/base/t1enc.def)))
(/usr/share/texlive/texmf-dist/tex/latex/newtx/newtxmath.sty
`newtxmath' v0.95, 2012/05/26 Math macros based on txfonts (msharpe)
(/usr/share/texlive/texmf-dist/tex/generic/kastrup/binhex.tex))
(/usr/share/texlive/texmf-dist/tex/latex/psnfss/courier.sty)
(/usr/share/texlive/texmf-dist/tex/latex/psnfss/helvet.sty)
(/usr/share/texlive/texmf-dist/tex/latex/microtype/microtype.sty
(/usr/share/texlive/texmf-dist/tex/latex/microtype/microtype.cfg))
(/usr/share/texlive/texmf-dist/tex/latex/fancyhdr/fancyhdr.sty)
(/usr/share/texlive/texmf-dist/tex/latex/lastpage/lastpage.sty)
(/usr/share/texlive/texmf-dist/tex/latex/cite/cite.sty) (./jabbrv.sty
(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/kvoptions.sty
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/etexcmds.sty
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifluatex.sty))))
(./jabbrv-ltwa-all.ldf) (./jabbrv-ltwa-en.ldf))
(/usr/share/texlive/texmf-dist/tex/latex/hyperref/hyperref.sty
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/hobsub-hyperref.sty
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/hobsub-generic.sty))
(/usr/share/texlive/texmf-dist/tex/latex/hyperref/pd1enc.def)
(/usr/share/texlive/texmf-dist/tex/latex/latexconfig/hyperref.cfg)
(/usr/share/texlive/texmf-dist/tex/latex/url/url.sty))
Package hyperref Message: Driver (autodetected): hpdftex.
(/usr/share/texlive/texmf-dist/tex/latex/hyperref/hpdftex.def
(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty)))
(./styles/osac.sty)
No file OSA-template.aux.
(/usr/share/texlive/texmf-dist/tex/latex/newtx/omlntxmi.fd)
(/usr/share/texlive/texmf-dist/tex/latex/newtx/omsntxsy.fd)
(/usr/share/texlive/texmf-dist/tex/latex/newtx/omxntxex.fd)
(/usr/share/texlive/texmf-dist/tex/latex/newtx/untxexa.fd)
(/usr/share/texlive/texmf-dist/tex/latex/newtx/t1ntxr.fd)
*geometry* driver: auto-detecting
*geometry* detected driver: pdftex
(/usr/share/texlive/texmf-dist/tex/context/base/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
) (/usr/share/texlive/texmf-dist/tex/latex/oberdiek/epstopdf-base.sty
(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/grfext.sty)
(/usr/share/texlive/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg))
! Undefined control sequence.
\@begindocumenthook ...i \ifosa@openaccess \appto
{\@copyrighttext }{\space ...
l.23 \begin{document}
?
! Undefined control sequence.
\hyper@linkurl ...tionraw >>}\relax \Hy@colorlink
\@urlcolor #1\Hy@xspace@en...
l.23 \begin{document}
?
! Undefined control sequence.
\close@pdflink ->\Hy@endcolorlink
\Hy@VerboseLinkStop \pdfendlink
l.23 \begin{document}
?
(/usr/share/texlive/texmf-dist/tex/latex/hyperref/nameref.sty
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/gettitlestring.sty))
(/usr/share/texlive/texmf-dist/tex/latex/psnfss/t1phv.fd)
(/usr/share/texlive/texmf-dist/tex/latex/newtx/untxmia.fd)
(/usr/share/texlive/texmf-dist/tex/latex/newtx/untxsya.fd)
(/usr/share/texlive/texmf-dist/tex/latex/newtx/untxsyb.fd)
(/usr/share/texlive/texmf-dist/tex/latex/newtx/untxsyc.fd)
(/usr/share/texlive/texmf-dist/tex/latex/psnfss/omsphv.fd)
LaTeX Warning: Reference `sec:refs' on page 1 undefined on input line 46.
(/usr/share/texlive/texmf-dist/tex/latex/psnfss/t1pcr.fd)
Overfull \hbox (26.18248pt too wide) in paragraph at lines 63--63
[]\T1/pcr/m/n/10 \author{Author One\authormark{1,3} and Author Two\authormark{2
,4,*}}[]
Overfull \hbox (12.98247pt too wide) in paragraph at lines 63--63
[]\T1/pcr/m/n/10 \authormark{2}Publications Department, Optical Society of Amer
ica,[]
[1{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}]
Overfull \hbox (14.18248pt too wide) in paragraph at lines 93--93
[]\T1/pcr/m/n/10 \author{Author One\authormark{1,3} and Author Two\authormark{2
,4}}[]
Overfull \hbox (12.98247pt too wide) in paragraph at lines 93--93
[]\T1/pcr/m/n/10 \authormark{2}Publications Department, Optical Society of Amer
ica,[]
<osafig1.pdf, id=21, 190.5519pt x 150.3216pt> <use osafig1.pdf>
LaTeX Warning: Citation `Yelin:03' on page 2 undefined on input line 118.
[2 <./osafig1.pdf>] <osafig2.pdf, id=32, 233.9139pt x 117.67964pt>
<use osafig2.pdf>
LaTeX Warning: Citation `Masajada:13' on page 3 undefined on input line 147.
LaTeX Warning: Citation `Masajada:13' on page 3 undefined on input line 147.
Overfull \hbox (15.98247pt too wide) in paragraph at lines 158--158
[]\T1/pcr/m/n/10 \caption{Normalized modulus distributions of transverse electr
ical[]
[3 <./osafig2.pdf>]
Underfull \hbox (badness 10000) in paragraph at lines 177--182
Overfull \hbox (8.4244pt too wide) in paragraph at lines 177--182
\T1/ntxr/m/n/10 (-20) National Sci-ence Foun-da-tion (NSF) (1253236, 0868895, 1
222301); Pro-gram 973 (2014AA014402);
Underfull \hbox (badness 10000) in paragraph at lines 177--182
Underfull \hbox (badness 10000) in paragraph at lines 187--192
Underfull \hbox (badness 10000) in paragraph at lines 187--192
[4]
Overfull \hbox (0.75381pt too wide) in paragraph at lines 202--203
[]\T1/ntxr/m/n/10 (-20) The com-mands []\T1/pcr/m/n/10 \begin{thebibliography}{
} \T1/ntxr/m/n/10 (-20) and []\T1/pcr/m/n/10 \end{thebibliography} \T1/ntxr/m/n
/10 (-20) for-
Overfull \hbox (25.18295pt too wide) in paragraph at lines 202--203
\T1/ntxr/m/n/10 (-20) mat the sec-tion ac-cord-ing to stan-dard style, show-ing
the ti-tle \T1/ntxr/bx/n/10 Ref-er-ences\T1/ntxr/m/n/10 (-20) . Use the []\T1/
pcr/m/n/10 \bibitem{label}
LaTeX Warning: Citation `Yelin:03' on page 5 undefined on input line 207.
LaTeX Warning: Citation `Masajada:13' on page 5 undefined on input line 207.
LaTeX Warning: Citation `Zhang:14' on page 5 undefined on input line 207.
LaTeX Warning: Citation `Zhang:14' on page 5 undefined on input line 220.
LaTeX Warning: Citation `OSA' on page 5 undefined on input line 220.
LaTeX Warning: Citation `FORSTER2007' on page 5 undefined on input line 220.
LaTeX Warning: Citation `Dean2006' on page 5 undefined on input line 220.
No file OSA-template.bbl.
Package lastpage Warning: Rerun to get the references right on input line 251.
AED: lastpage setting LastPage
[5] (./OSA-template.aux)
LaTeX Warning: There were undefined references.
LaTeX Warning: Label(s) may have changed. Rerun to get cross-references right.
){/usr/share/texlive/texmf-dist/fonts/enc/dvips/base/8r.enc}</usr/share/texliv
e/texmf-dist/fonts/type1/public/amsfonts/cm/cmsy8.pfb></usr/share/texlive/texmf
-dist/fonts/type1/public/newtx/rntxmi.pfb></usr/share/texlive/texmf-dist/fonts/
type1/public/newtx/rntxmi7.pfb></usr/share/texlive/texmf-dist/fonts/type1/publi
c/txfonts/rtxmi.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/newtx/rtx
mi7.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/txfonts/rtxr.pfb></us
r/share/texlive/texmf-dist/fonts/type1/public/txfonts/txex.pfb></usr/share/texl
ive/texmf-dist/fonts/type1/public/newtx/txsy7.pfb></usr/share/texlive/texmf-dis
t/fonts/type1/urw/courier/ucrr8a.pfb></usr/share/texlive/texmf-dist/fonts/type1
/urw/helvetic/uhvb8a.pfb></usr/share/texlive/texmf-dist/fonts/type1/urw/helveti
c/uhvr8a.pfb></usr/share/texlive/texmf-dist/fonts/type1/urw/helvetic/uhvro8a.pf
b></usr/share/texlive/texmf-dist/fonts/type1/urw/times/utmb8a.pfb></usr/share/t
exlive/texmf-dist/fonts/type1/urw/times/utmr8a.pfb></usr/share/texlive/texmf-di
st/fonts/type1/urw/times/utmri8a.pfb>
Output written on OSA-template.pdf (5 pages, 546047 bytes).
Transcript written on OSA-template.log.
=====================================================================================