Hello,
I'm running Webwork 2.17 on RHEL 8. I've installed Latex and other necessary packages. I added few problems from OPL to a set, when I try to generate a hardcopy I get the following TeX errors:
---------------------------------------------------------------------
2 errors occured while generating hardcopy:
- Failed to convert TeX to PDF with command '
cd /opt/webwork/webwork2/tmp/Test_June13/hardcopy/admin/work.oGpdfph9 && TEXINPUTS=.:/opt/webwork/webwork2/conf/snippets/hardcopyThemes/common: /usr/local/texlive/2023/bin/x86_64-linux/pdflatex --no-shell-escape >pdflatex.stdout 2>pdflatex.stderr hardcopy
' (exit=1 signal=0 core=0). - First error in TeX log is:
! Extra alignment tab has been changed to \cr. <template> ... width\arrayrulewidth }\endtemplate l.81 \(k\) &1 &2 &3 & 4 &5 &6 \\ \hline You have given more \span or & marks than there were in the preamble to the \halign or \valign now in progress. So I'll assume that you meant to type \cr instead.
A hardcopy file was generated, but it may not be
complete or correct. Please check that no problems are missing and that
they are all legible. If not, please inform your instructor.
---------------------------------------------------------------------
I found this very old post in this forum (https://webwork.maa.org/moodle/mod/forum/discuss.php?d=2514) where solution was to change the path of pdflatex. I''ve already changed the path in site.conf for $externalPrograms{latex} and
$externalPrograms{pdflatex} to reflect the "
/usr/local/texlive/2023/bin/x86_64-linux/
" location.