Menu

#318 LaTeX output cannot be compiled

1.7.0
open
nobody
None
5
2023-03-27
2022-04-28
No

Situation: I export a game to LaTeX
Problem: LaTeX cannot compile the result.
I tested on Windows (MiKTeX) and on Linux/Ubuntu 21.10 (impish)

Discussion

  • Lumbra74

    Lumbra74 - 2023-02-21

    I suggest the following LaTeX definition:

    \documentclass[12pt,DIV=20]{scrreprt}
    % This is a file generated by ChessX.
    % You must have the skak, KOMAScript and pstricks packages installed.
    \usepackage{scrlayer-scrpage}
    \usepackage{charter}
    \usepackage[svgnames]{xcolor}
    \usepackage{xskak}
    \usepackage{lmodern}
    \usepackage[T1]{fontenc}
    \usepackage{latexsym}
    \usepackage{pstricks-add}
    \usepackage{tabularx}
    \usepackage{microtype}
    \usepackage[ngerman]{babel}
    
    % \definecolor{VariationColor}{gray}{0.40}
    \definecolor{VariationColor}{RGB}{0,0,128}
    % \definecolor{ScoreColor}{gray}{0.40}
    \definecolor{ScoreColor}{RGB}{255,215,0}
    \definecolor{GridColor}{RGB}{72,61,139}
    \definecolor{EvenGameColor}{RGB}{240,240,240}
    \definecolor{BlackPiecesGraphColor}{RGB}{101,37,37}
    \definecolor{WhitePiecesGraphColor}{RGB}{189,183,107}
    
    \setlength{\extrarowheight}{3pt}  
    
    \newcommand{\win}{1-0}
    \newcommand{\loss}{0-1}  
    \newcommand{\draw}{=-=}  
    \newcommand{\p}{\figsymbol{p}}
    \newcommand{\N}{\figsymbol{N}}
    \newcommand{\B}{\figsymbol{B}}
    \newcommand{\R}{\figsymbol{R}}
    \newcommand{\Q}{\figsymbol{Q}}  
    \newcommand{\K}{\figsymbol{K}}    
    
    \renewcommand*\thesection{\arabic{section}}
    \addtokomafont{section}{\color{blue}}
    \addtokomafont{subsection}{\color{red}}
    
    \begin{document}
    
    ...
    
    \end{document}
    

    Additionally, it should be possible to set the definition in the settings.

     
  • Jens Nissen

    Jens Nissen - 2023-03-27
    • Group: 1.5.8 --> 1.7.0
     

Log in to post a comment.

MongoDB Logo MongoDB