Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
mako09 opened this issue Mar 20, 2023 · 1 comment
Closed

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

mako09 opened this issue Mar 20, 2023 · 1 comment
Labels

Comments

@mako09
Copy link

mako09 commented Mar 20, 2023

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$
@mako09 mako09 added the bug label Mar 20, 2023
@jgm jgm closed this as completed in 5af2d70 Mar 20, 2023
@tarleb
Copy link
Collaborator

tarleb commented Mar 20, 2023

Minor note: soul has worked fine for me in the past, even with lualatex.
I support the change though, as it seems to improve CJK support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants