如何快速删除 xskak 中的 FEN 字符串

如何快速删除 xskak 中的 FEN 字符串

我想知道是否有一种更省时的方法来删除 FEN 字符串或在使用时将其从输出 pdf 中保留下来xskak

\documentclass[10pt,DIV=20]{scrreprt}

% This is a LaTeX file generated by Scid.

% You must have the skak, KOMAScript and pstricks packages installed to typeset this file.


\usepackage{scrpage2}

\usepackage{charter}

\usepackage[svgnames]{xcolor}

\usepackage{xskak}

\usepackage{lmodern}

\usepackage[T1]{fontenc}

\usepackage{latexsym}

\usepackage{pstricks-add}

\usepackage{tabularx}


% \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}

\twocolumn[

\begin{@twocolumnfalse}

{

\center

\begin{tabularx}{0.9\textwidth}{rllXr}


White: & Abu Naim & & & ?\\

Black: & 9th Century & & & \\

& & & & ????\\

Result: & 1-0\\

\end{tabularx}

\\[1ex]}

\newchessgame


\hrulefill

\\

\end{@twocolumnfalse}

]

Fen: 6K1/3r3r/5kn1/5p2/5P2/6N1/8/4R1R1 w - - 0 1\\[1ex]

\newchessgame[moveid=1w,setfen=6K1/3r3r/5kn1/5p2/5P2/6N1/8/4R1R1 w - - 0 1]

\begin{center}

\vspace{1ex}

\chessboard

\vspace{1ex}

\end{center}

\mainline{1. Nh5+!!}


Decoy: g6\\[1ex]

\mainline{1... Rxh5 }

\begin{center}

\vspace{1ex}

\chessboard[lastmoveid,pgfstyle=border,color=gray,markfields={\xskakget{moveto},\xskakget{movefrom}},pgfstyle=straightmove,markmove=\xskakget{movefrom}-\xskakget{moveto}]\vspace{1ex}

\end{center}

\textcolor{VariationColor}{\variation{1... Rxh5 2. Rxg6+ }}

\\[1ex]

\mainline{2. Rxg6+!}


Decoy: g6\\[1ex]

\mainline{2... Kxg6 }

\begin{center}

\vspace{1ex}

\chessboard[lastmoveid,pgfstyle=border,color=gray,markfields={\xskakget{moveto},\xskakget{movefrom}},pgfstyle=straightmove,markmove=\xskakget{movefrom}-\xskakget{moveto}]\vspace{1ex}

\end{center}

\textcolor{VariationColor}{\variation{2... Kxg6 3. Re6\# }}

\\[1ex]

\mainline{3. Re6\# }


{\textbf 1-0}

\hrule


\end{document}

相关内容