I would like to prepare a bilingual document and at the same time I would like to be able adding pdf comments by pdfcomment.

  • Compilation by the command lualatex test.tex gets stuck when the library soul.sty is loaded. The translation does not finish even after an hour of waiting.
  • Compilation by the command xelatex test.tex works well!!

Issue disappears, when commands \setmainlanguage{czech} and \setotherlanguage{english} are commented.

I am using fresh installation of the miktex-2.9.7255-x64 distribution. See attached file listing. The error message is shown below.



\usepackage{pdfcomment}   % A user-friendly interface to pdf annotations.


Error compilation

File listing

    *File List*
 scrbook.cls    2019/10/12 v3.27 KOMA-Script document class (book)
scrkbase.sty    2019/10/12 v3.27 KOMA-Script package (KOMA-Script-dependent bas 
ics and keyval usage)
 scrbase.sty    2019/10/12 v3.27 KOMA-Script package (KOMA-Script-independent b 
asics and keyval usage)
  keyval.sty    2014/10/28 v1.15 key=value parser (DPC)
scrlfile.sty    2019/10/12 v3.27 KOMA-Script package (loading files)
tocbasic.sty    2019/10/12 v3.27 KOMA-Script package (handling toc-files)       
scrsize11pt.clo    2019/10/12 v3.27 KOMA-Script font size class option (11pt)   
typearea.sty    2019/10/12 v3.27 KOMA-Script package (type area)
fontspec.sty    2019/10/19 v2.7d Font selection for XeLaTeX and LuaLaTeX        
  xparse.sty    2019-10-11 L3 Experimental document command parser
   expl3.sty    2019-11-07 L3 programming layer (loader)
expl3-code.tex    2019-11-07 L3 programming layer
l3deprecation.def    2019-04-06 v L3 Deprecated functions
l3backend-pdfmode.def    2019-04-06 L3 backend support: PDF mode
fontspec-luatex.sty    2019/10/19 v2.7d Font selection for XeLaTeX and LuaLaTeX 

   tuenc.def    2018/08/11 v2.0j Standard LaTeX file
polyglossia.sty    2019/11/15 v1.46 Alternative to Babel for XeLaTeX and LuaLaT 
etoolbox.sty    2019/09/21 v2.5h e-TeX tools for LaTeX (JAW)
makecmds.sty    2009/09/03 v1.0a extra command making commands
 xkeyval.sty    2014/12/03 v2.7a package option processing (HA)
 xkeyval.tex    2014/12/03 v2.7a key=value parser (HA)
ifluatex.sty    2019/10/25 v1.5 ifluatex legacy package. Use iftex instead.     
   iftex.sty    2019/11/07 v1.0c TeX engine tests
 ifxetex.sty    2019/10/25 v0.7 ifxetex legacy package. Use iftex instead.      
l3keys2e.sty    2019-10-11 LaTeX2e option processing using LaTeX3 keys
filehook.sty    2019/10/03 v0.6 Hooks for input files
filehook-scrlfile.sty    2011/01/03 v0.1 filehook patch for scrlfile package    
luatexbase.sty    2015/10/04 v1.3 luatexbase interface to LuaTeX
ctablestack.sty    2015/10/01 v1.0 Catcode table stable support
gloss-latex.ldf    polyglossia: module for default language
pdfcomment.sty    2018/11/01 pdfcomment.sty v2.4a - Josef Kleber (C) 2008-2012, 
 2015-2016, 2018
luatex85.sty    2016/06/15 v1.4 pdftex aliases for luatex
datetime2.sty    2019/11/11 v1.5.5 (NLCT) date and time formats
tracklang.sty    2019/11/11 v1.3.9 (NLCT) Track Languages
tracklang.tex    2019/11/11 v1.3.9 (NLCT) Track Languages Generic Code
zref-savepos.sty    2018/11/21 v2.27 Module savepos for zref (HO)
zref-base.sty    2018/11/21 v2.27 Module base for zref (HO)
 ltxcmds.sty    2016/05/16 v1.23 LaTeX kernel commands for general use (HO)     
infwarerr.sty    2016/05/16 v1.4 Providing info/warning/error messages (HO)     
kvsetkeys.sty    2016/05/16 v1.17 Key value parser (HO)
etexcmds.sty    2016/05/16 v1.6 Avoid name clashes with e-TeX commands (HO)     
kvdefinekeys.sty    2016/05/16 v1.4 Define keys (HO)
pdftexcmds.sty    2019/07/25 v0.30 Utility functions of pdfTeX for LuaTeX (HO)  
   ifpdf.sty    2019/10/25 v3.4 ifpdf legacy package. Use iftex instead.        
 auxhook.sty    2016/05/16 v1.4 Hooks for auxiliary files (HO)
refcount.sty    2016/05/16 v3.5 Data extraction from label references (HO)      
  ifthen.sty    2014/09/29 v1.1c Standard LaTeX ifthen package (DPC)
    calc.sty    2017/05/25 v4.3 Infix arithmetic (KKT,FJ)
marginnote.sty    2018/08/09 v1.4b non floating margin notes for LaTeX
 soulpos.sty    2012/02/25 v1.1 Fancy underlining
hyperref.sty    2019/11/10 v7.00c Hypertext links for LaTeX
pdfescape.sty    2016/05/16 v1.14 Implements pdfTeX's escape features (HO)      
 hycolor.sty    2016/05/16 v1.8 Color options for hyperref/bookmark (HO)        
xcolor-patch.sty    2016/05/16 xcolor patch
 hopatch.sty    2016/05/16 v1.3 Wrapper for package hooks (HO)
letltxmacro.sty    2016/05/16 v1.5 Let assignment for LaTeX macros (HO)
kvoptions.sty    2016/05/16 v3.12 Key value format for package options (HO)     
  pd1enc.def    2019/11/10 v7.00c Hyperref: PDFDocEncoding definition (HO)      
 intcalc.sty    2016/05/16 v1.2 Expandable calculations with integers (HO)      
hyperref.cfg    2002/06/06 v1.2 hyperref configuration of TeXLive
   puenc.def    2019/11/10 v7.00c Hyperref: PDF Unicode definition (HO)
stringenc.sty    2016/05/16 v1.11 Convert strings between diff. encodings (HO)  
     url.sty    2013/09/16  ver 3.4  Verb mode for urls, etc.
  bitset.sty    2016/05/16 v1.2 Handle bit-vector datatype (HO)
bigintcalc.sty    2016/05/16 v1.4 Expandable calculations on big integers (HO)  
atbegshi.sty    2016/06/09 v1.18 At begin shipout hook (HO)
 hluatex.def    2019/11/10 v7.00c Hyperref driver for luaTeX
atveryend.sty    2016/05/16 v1.9 Hooks at the very end of document (HO)
rerunfilecheck.sty    2016/05/16 v1.8 Rerun checks for auxiliary files (HO)     
uniquecounter.sty    2016/05/16 v1.3 Provide unlimited unique counter (HO)      
blindtext.sty    2012/01/06 V2.0 blindtext-Package
  xspace.sty    2014/10/28 v1.13 Space after command names (DPC,MH)
soulutf8.sty    2016/05/16 v1.1 Permit use of UTF-8 characters in soul (HO)     
    soul.sty    2003/11/17 v2.4 letterspacing/underlining (mf)
 nameref.sty    2019/09/16 v2.46 Cross-referencing by name of section
gettitlestring.sty    2016/05/16 v1.5 Cleanup title references (HO)
bookmark.sty    2019/06/04 v1.27 PDF bookmarks (HO)
  ifvtex.sty    2019/10/25 v1.7 ifvtex legacy package. Use iftex instead.       
bkm-pdftex.def    2019/06/04 v1.27 bookmark driver for pdfTeX (HO)

pdfcomment loads soulpos which for an unknown reason loads soulutf8 in \AtBeginDocument, at this time the language shorthands are already active and this breaks soul.

Load soul earlier (and consider also to load the languages later to avoid such conflicts).


\usepackage{pdfcomment}   % A user-friendly interface to pdf annotations.


(but I get other errors with lualatex, so consider to use babel instead).

  • Thank you very much. It is really frustrating, when I had have started with teaching Latex myself I had no glue, that it will be so painful. I give up! New error message is absolutely incomprehensible to me: warning (node filter): error: ...Local/Programs/MiKTeX 2.9/tex/luatex/luavlna/ luavlna.lua:289: attempt to index a nil value (local 'nextn') . \par ...@m \@noitemerr {\@@par }\fi \else {\@@par }\fi l.14 \blinddocument. I am latex user, and unfortunately I will never become an expert over Tex.
    – JardaFait
    Nov 19 '19 at 6:14
  • 2
    As I wrote; consider to use babel. Polyglossia was developed for xetex. Nov 19 '19 at 6:59
  • It seems it's time to update soulpos (7 years is an eternity, and the changes in 2019 were minimal). Nov 22 '19 at 18:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.