Menu

#40 Game Export to LaTeX uses obsolete KOMA-Script package "scrpage2"

1.0
closed
nobody
2024-05-31
2021-11-14
No

Scid-vs-PC 4.22 (x64) on Windows 10 21H1, TeXLive 2021 with all up-to-date package, TeXWorks 0.6.6

Game export to LaTeX creates a .tex file with the following package usage:

\usepackage{scrpage2}

When I try to generate to PDF with TeXWorks via pdfLaTeX, this raises the error message:

"! LaTeX Error: File scrpage2.sty' not found."

According to this discussion
[https://tex.stackexchange.com/questions/541766/latex-error-file-scrpage2-sty-not-found/541772]

the referenced package is obsolete. If I follow the suggested workaround, and replace
\usepackage{scrpage2}

with
\usepackage{scrlayer-scrpage}

the generation of the output PDF succeeds. So I think you should change the generation of the .tex file in Scid-vs-PC accordingly.

However, there are still a lot of depreciation warning in the pdflatex output. So I'm not sure where the layout of the generated PDF looks like it was intended. For me it looks quite ok, but you might want to check. I attach the pdflatex.log and the generated PDF for you to check.

P.S.: Don't laugh about the included game I lost today ;-)

1 Attachments

Discussion

  • Peter Schneider

    Peter Schneider - 2021-11-14

    I added 2nd attachment temp.log

     
  • Peter Schneider

    Peter Schneider - 2021-11-14

    Also, if needed, I added the PGN file of the game.

     
  • Steven

    Steven - 2021-11-16

    OK, cheers for the heads up. I am fairly ignorant about latex, but I made your change on my linux box and it seems to be fine, so i'll commit it to subversion shortly.

    If you have the time could you perhaps have a look at my attachments. Exporting your temp.pgn to latex/pdf (view latex) fails unless i delete your comments (setting export-comments to 0 does not suffice). Perhaps it is just a locale thing.

    Passed pawns are buggers :) Thanks

     
  • Peter Schneider

    Peter Schneider - 2021-11-16

    Thanks for taking this into account, and thanks that you maintain such a nice chess software!

    I checked your attachments. When I open 1.tex with TexWorks and try to convert to PDF, I get a similar error message like that in your "Game-Preview.log" log file. Even the processing stops, and with indicating '?', waits for input. I have no idea what to input, and when I just press RETURN, the processing stops with an error, without creating a PDF. Please see attached log file "1.log"

    However, when I export my game, and replace the package as I wrote above in the ".tex" file, and then convert to PDF, it succeeds, even with my comments included. These comments include German umlauts... File encoding is UTF-8, and they seem to be carried over correctly to the ".tex" file. Please see attached files "pschneider_thkaftan.tex", "pschneider_thkaftan.log" and PDF output file "pschneider_thkaftan.pdf".

    So I guess you are right that this might be a locale issue, or a PGN file encoding issue, or perhaps a matter of EOL style (Windows LF vs Unix LF+CR). I don't know. In any case, with your fix regarding the package usage, the issue seems to be solved for me! Thank you very much!

     
  • Peter Schneider

    Peter Schneider - 2021-11-16

    It seems I cannot attach multiple files to a single issue posting, so here we go...

     
  • Peter Schneider

    Peter Schneider - 2021-11-16

    pdfLatex Log file

     
  • Peter Schneider

    Peter Schneider - 2021-11-16

    and PDF output file

     
  • Steven

    Steven - 2021-11-19

    OK, cheers. We have quite a few bugs / issues with exporting to various formats...
    Maybe i'll do some fixes.

     
  • DARCET Bruno

    DARCET Bruno - 2024-05-31

    Solution : option / exportation / LaTex
    then "reset to default"
    Hum, th real problem is : how to announce mandatory updates in LaTex configuration ?

     
  • DARCET Bruno

    DARCET Bruno - 2024-05-31
    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB