summaryrefslogtreecommitdiff
path: root/info/examples/lgc2/10-1-1.ltx
blob: 5740db2c322bb78789bcdfce4a5062a70815c5c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
%% 
%%  The LaTeX Graphics Companion, 2ed (first printing May 2007)
%% 
%%  Example 10-1-1 on page 669.
%% 
%%  Copyright (C) 2007 Michel Goossens, Frank Mittelbach, Denis Roegel, Sebastian Rahtz, Herbert Vo\ss 
%% 
%%  It may be distributed and/or modified under the conditions
%%  of the LaTeX Project Public License, either version 1.3
%%  of this license or (at your option) any later version.
%% 
%%  See http://www.latex-project.org/lppl.txt for details.
%% 

\documentclass{ttctexa}
\pagestyle{empty}
\setcounter{page}{6}
\setlength\textwidth{207.83385pt}

\StartShownPreambleCommands
\usepackage[LSBC1,T1]{fontenc} \usepackage{chessboard}
\StopShownPreambleCommands
\begin{document}
\setchessboard{border=false,vlabellift=2.8ex,linewidth=0.01ex,padding=0.05ex,pgfborder,
 linewidth=0.1ex,padding=0.25ex,pgfborder,showmover=false,boardfontencoding=LSBC1}
\chessboard[
%% pieces
 setpieces={Ka8,qd7,kc6}, addpieces={ka1,Kb3,Rc3},
 addpieces={kh1,Nf3,Rg4}, addpieces={kh8,ph7,Rg6,Bg5},
%% lines between the four parts
 linewidth=0.1ex,padding=0pt,markstyle=leftborder,markfile=e,
 markstyle=topborder,markrank=4,
%% marks mating moves
 markstyle=straightmove, color=blue, linewidth=0.2ex,
 shortenstart=0.4em, arrow=to, markmoves={d7-b7,c3-c1,g4-g1,g5-f6},
%% coloring the mating figure
 piececolor=blue,coloremph, emphfields={d7,g5,c3,g4},
%% borders
 addpgf=\pgfsetdash{{0.1ex}{0.1ex}}{.05ex}, markstyle=border,
 linewidth=0.05ex, markfields={b7,a8,c1,b1,a1,g1,h1,f6,g7,h8}]
\end{document}