Skip to content

soul.sty for strikeout does't work with lualatex #8707

@mako09

Description

@mako09

When using pandoc with --pdf-engine=lualatex, an error occurs if strikeout is included.

$ echo '~~打ち消し線~~、それから[下線]{.underline}、さらに==ハイライト==' | pandoc -f markdown+mark --pdf-engine=lualatex -V documentclass=jlreq -o sample.pdf
Error producing PDF.
! Package soul Error: Reconstruction failed.

See the soul package documentation for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.59 \st{打ち消し線}

This is because the package soul cannot be used with lualatex.

Would it be possible to modify the default.latex as follows to address this issue?

$if(strikeout)$
$-- also used for underline
\ifLuaTeX
  \usepackage{luacolor}
  \usepackage[soul]{lua-ul}
\else
  \usepackage{soul}
\fi
$endif$

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions