summaryrefslogtreecommitdiff
path: root/info/examples/lgc2/10-1-1.ltx
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /info/examples/lgc2/10-1-1.ltx
Initial commit
Diffstat (limited to 'info/examples/lgc2/10-1-1.ltx')
-rw-r--r--info/examples/lgc2/10-1-1.ltx41
1 files changed, 41 insertions, 0 deletions
diff --git a/info/examples/lgc2/10-1-1.ltx b/info/examples/lgc2/10-1-1.ltx
new file mode 100644
index 0000000000..5740db2c32
--- /dev/null
+++ b/info/examples/lgc2/10-1-1.ltx
@@ -0,0 +1,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}