summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/schwalbe-chess/schwalbe.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2015-02-17 23:11:17 +0000
committerKarl Berry <karl@freefriends.org>2015-02-17 23:11:17 +0000
commit460ad823d97bcad332e3db0b9c43d2723d250808 (patch)
tree7dc6a6dc4f15c50b83463f49be3b9b8e3f372dbc /Master/texmf-dist/tex/latex/schwalbe-chess/schwalbe.sty
parent29f590621e4729cf07be8eeae76b0eeb7bc945f3 (diff)
schwalbe-chess (17feb15)
git-svn-id: svn://tug.org/texlive/trunk@36309 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/schwalbe-chess/schwalbe.sty')
-rw-r--r--Master/texmf-dist/tex/latex/schwalbe-chess/schwalbe.sty79
1 files changed, 22 insertions, 57 deletions
diff --git a/Master/texmf-dist/tex/latex/schwalbe-chess/schwalbe.sty b/Master/texmf-dist/tex/latex/schwalbe-chess/schwalbe.sty
index ed80d8a7129..f416849f785 100644
--- a/Master/texmf-dist/tex/latex/schwalbe-chess/schwalbe.sty
+++ b/Master/texmf-dist/tex/latex/schwalbe-chess/schwalbe.sty
@@ -20,7 +20,7 @@
%% original source files, as listed above, are part of the
%% same distribution. (The sources need not necessarily be
%% in the same archive or directory.)
-%% File 'diagram.dtx'
+%% File 'schwalbe.dtx'
%%
%% This file may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version
@@ -34,74 +34,39 @@
%%
%%
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{schwalbe}[2015/01/11]
-\RequirePackage[T2A,T1]{fontenc}% fsRUS 140121
-\RequirePackage[koi8-r,utf-8]{inputenc}% fsRUS 140121
-\RequirePackage[ngerman,english,german]{babel}
-\RequirePackage{ifthen}
+\ProvidesPackage{schwalbe}[2015/02/17]
+\DeclareOption{10pt}{\PassOptionsToPackage{10pt}{diagram}}
+\DeclareOption{11pt}{\PassOptionsToPackage{11pt}{diagram}}
+\DeclareOption{12pt}{\PassOptionsToPackage{12pt}{diagram}}
+\ProcessOptions
\RequirePackage{diagram}
-\usepackage{times}
-\usepackage{picinpar}
-\usepackage{multicol}
-\hyphenation{Patt-idee Da-men-op-fer nicht-ortho-doxe Grim-shaw}
-\advance\exhyphenpenalty by -10
-\tolerance2000\relax
-\emergencystretch15\p@
-\def\dh{d.\,h.\ \ignorespaces}
-\def\ua{u.\,a.\ \ignorespaces}
-\def\zB{z.\,B.\ignorespaces}
-\def\su{s.\,u.\ignorespaces}
-\def\ep{e.\,p.\ignorespaces}
-\def\seedia{s.\,Diagr.}
-\def\figline{%
-\centerline{%
-\wK \wK \wK \wK \wK \wK \wK \wK \wK \wK \wK \wK \wK %
-\wK \wK \wK \wK \wK \wK \wK \wK \wK \wK \wK \wK \wK %
-\wK \wK \wK \wK \wK \wK \wK \wK \wK \wK \wK \wK \wK %
-}}
-\def\foto#1#2#3{%
- \begin{minipage}[t]{#1}
- \hbox to #1{\hsize#1%
- \vtop to #2{%
- \noindent\hbox{}\vfill\hbox{}%
- }%
- }%
- \par%
- #3%
- \end{minipage}
-}%
\newcommand{\rb}[1]{\raisebox{0.4ex}{#1}}
\nocomputer
\setboolean{piececounter}{true}
\diagcenter
\setmonthstyle{Roman}
+
+\renewcommand*\authorfont{\bfseries}
+\renewcommand*\cityfont{\itshape}
+\renewcommand*\sourcefont{\slshape}
+\renewcommand*\awardfont{}
+\renewcommand*\dedicfont{\itshape}
+\renewcommand*\stipfont{}
+\renewcommand*\remfont{}
+\renewcommand*\labelfont{\footnotesize}
+\renewcommand*\cpd@boardfont{\footnotesize}
+
\def\normaldia{%
- \font\chessfont=fselch16%
- \renewcommand*\authorfont{\bfseries}
- \renewcommand*\cityfont{\itshape}
- \renewcommand*\sourcefont{\slshape}
- \renewcommand*\awardfont{}
- \renewcommand*\dedicfont{\itshape}
- \renewcommand*\stipfont{}
- \renewcommand*\remfont{}
- \renewcommand*\labelfont{\footnotesize}
- \renewcommand*\cpd@boardfont{\footnotesize}
+ \normalsize%
+ \diagramxii%
\setboardwidth%
}
\def\smalldia{%
- \font\chessfont=fselch12%
- \renewcommand*\authorfont{\small\bfseries}%
- \renewcommand*\cityfont{\small\itshape}%
- \renewcommand*\sourcefont{\small\slshape}%
- \renewcommand*\awardfont{\small}%
- \renewcommand*\dedicfont{\small\itshape}%
- \renewcommand*\stipfont{\small}%
- \renewcommand*\remfont{\small}%
- \renewcommand*\labelfont{\small\footnotesize}%
- \renewcommand*\cpd@boardfont{\small\footnotesize}%
+ \small%
+ \diagramx%
\setboardwidth%
}
-\renewcommand*{\diagramxi}{\normaldia}
+
\def\do@dia@job{%
\@write@sol\ifvmode\noindent\fi\unhbox\dia@box%
\sw@problem%