Newsgroup: it.comp.software.tex
Titolo: TeX e scacchi

Girellando su TeX showcase sono rimasto particolarmente impressionato da
un esempio di libro di scacchi scritto in TeX...
Ora: scaricando il documento in TeX non funziona niente; allora ho
scaricato chess12 e ho provato ad installarlo... errori vari (tra cui un
warning sul fatto che uso una vecchia versione di latex?) e alla fine un
output (pdflatex) di una pagina bianca...Non ci capisco un cavolo, uso
CMaCTeX su Macos9 e compilo in pdflatex... C'č qualcuno cosě gentile da
darmi qualche dritta?
Grazie in anticipo
jk
-- 
I play the music I am. CM


vorrei approfittare del tread aperto per chidere qualcosa in piů sui giochi:
esistono pacchetti per disegnare scacchiere con pedine bianche e nere?
mi servirebbero scacchiere di ogni dimensione, magari con tutte le caselle 
bianche. ho provato a fare una tabella, ma non viene bene...
pazqo

. Indica anche
un pacchetto.
Se ne parla sul LaTeX Graphics Companion, che però non ho
sotto mano.
Ciao
Enrico

Scusate se insisto, ma qui continua a non funzionare niente (tra le
altre cose con nemmeno su Panther conTexshop...) dunque vi posto un paio
di esempietti (magari qualcuno ci capisce qualcosa).
Documento boards.tex
\documentstyle[a4wide,chess]{article}
\begin{document}
{\font\Chess=chess10
\board{rnbqkbnr}
      {pppppppp}
      { * * * *}
      {* * * * }
      { * * * *}
      {* * * * }
      {PPPPPPPP}
      {RNBQKBNR}
$$\showboard$$
\centerline{{\tt chess10}}\smallskip}
 
{\font\Chess=chess20
\board{rnbqkbnr}
      {pppppppp}
      { * * * *}
      {* * * * }
      { * * * *}
      {* * * * }
      {PPPPPPPP}
      {RNBQKBNR}
$$\showboard$$
\centerline{{\tt chess20}}\smallskip}
 
{\font\Chess=chess30
\board{rnbqkbnr}
      {pppppppp}
      { * * * *}
      {* * * * }
      { * * * *}
      {* * * * }
      {PPPPPPPP}
      {RNBQKBNR}
$$\showboard$$
\centerline{{\tt chess30}}\smallskip}
\end{document}
Compilo e ottengo:
This is pdfTeX, Version 3.141592-1.11b (CMacTeX) (format=pdflatex
2004.9.24)  7 DEC 2004 19:05
\write18 enabled.
 (/due/CMacTeX 4.3/texmf-cmt/cmactex/tcx/cp8bit.tcx)
**boards.tex
(/due/CMacTeX 4.3/texmf/tex/latex/base/chess12/doc/boards.tex{/due/CMacT
eX 4.3/
texmf-cmt/pdftex/config/pdftex.cfg}
LaTeX2e <2001/06/01>
Babel <v3.7h> and hyphenation patterns for american, french, german,
ngerman, i
talian, nohyphenation, loaded.
(/due/CMacTeX 4.3/texmf/tex/latex/base/latex209.def
File: latex209.def 1998/05/13 v0.52 Standard LaTeX file
          Entering LaTeX 2.09 COMPATIBILITY MODE
 *************************************************************
    !!WARNING!!    !!WARNING!!    !!WARNING!!    !!WARNING!!   
 
 This mode attempts to provide an emulation of the LaTeX 2.09
 author environment so that OLD documents can be successfully
 processed. It should NOT be used for NEW documents!
 
 New documents should use Standard LaTeX conventions and start
 with the \documentclass command.
 
 Compatibility mode is UNLIKELY TO WORK with LaTeX 2.09 style
 files that change any internal macros, especially not with
 those that change the FONT SELECTION or OUTPUT ROUTINES.
 
 Therefore such style files MUST BE UPDATED to use
          Current Standard LaTeX: LaTeX2e.
 If you suspect that you may be using such a style file, which
 is probably very, very old by now, then you should attempt to
 get it updated by sending a copy of this error message to the
 author of that file.
 *************************************************************
\footheight=\dimen102
\@maxsep=\dimen103
\@dblmaxsep=\dimen104
\@cla=\count79
\@clb=\count80
\mscount=\count81
(/due/CMacTeX 4.3/texmf/tex/latex/base/tracefnt.sty
Package: tracefnt 1997/05/29 v3.0j Standard LaTeX package (font tracing)
\tracingfonts=\count82
LaTeX Info: Redefining \selectfont on input line 96.
)
\symbold=\mathgroup4
\symsans=\mathgroup5
\symtypewriter=\mathgroup6
\symitalic=\mathgroup7
\symsmallcaps=\mathgroup8
\symslanted=\mathgroup9
LaTeX Font Info:    Redeclaring math alphabet \mathbf on input line 288.
LaTeX Font Info:    Redeclaring math alphabet \mathsf on input line 289.
LaTeX Font Info:    Redeclaring math alphabet \mathtt on input line 290.
LaTeX Font Info:    Redeclaring math alphabet \mathit on input line 296.
LaTeX Info: Redefining \em on input line 306.
(/due/CMacTeX 4.3/texmf/tex/latex/base/latexsym.sty
Package: latexsym 1998/08/17 v2.2e Standard LaTeX package (lasy symbols)
\symlasy=\mathgroup10
LaTeX Font Info:    Overwriting symbol font `lasy' in version `bold'
(Font)                  U/lasy/m/n --> U/lasy/b/n on input line 42.
)
LaTeX Font Info:    Redeclaring math delimiter \lgroup on input line
370.
LaTeX Font Info:    Redeclaring math delimiter \rgroup on input line
372.
LaTeX Font Info:    Redeclaring math delimiter \bracevert on input line
374.
(/due/CMacTeX 4.3/texmf/tex/latex/config/latex209.cfg)
(/due/CMacTeX 4.3/texmf/tex/latex/tools/rawfonts.sty
Package: rawfonts 1994/05/08 Low-level LaTeX 2.09 font compatibility
(/due/CMacTeX 4.3/texmf/tex/latex/tools/somedefs.sty
Package: somedefs 1994/06/01 Toolkit for optional definitions
)
LaTeX Font Info:    Try loading font information for U+lasy on input
line 44.
(/due/CMacTeX 4.3/texmf/tex/latex/base/ulasy.fd
File: ulasy.fd 1998/08/17 v2.2e LaTeX symbol font definitions
)))
(/due/CMacTeX 4.3/texmf/tex/latex/base/article.cls
Document Class: article 2001/04/21 v1.4e Standard LaTeX document class
(/due/CMacTeX 4.3/texmf/tex/latex/base/size10.clo
File: size10.clo 2001/04/21 v1.4e Standard LaTeX file (size option)
)
\c@part=\count83
\c@section=\count84
\c@subsection=\count85
\c@subsubsection=\count86
\c@paragraph=\count87
\c@subparagraph=\count88
\c@figure=\count89
\c@table=\count90
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
Compatibility mode: definition of \rm ignored.
Compatibility mode: definition of \sf ignored.
Compatibility mode: definition of \tt ignored.
Compatibility mode: definition of \bf ignored.
Compatibility mode: definition of \it ignored.
Compatibility mode: definition of \sl ignored.
Compatibility mode: definition of \sc ignored.
LaTeX Info: Redefining \cal on input line 501.
LaTeX Info: Redefining \mit on input line 502.
\bibindent=\dimen105
)
(/due/CMacTeX 4.3/texmf/tex/latex/base/chess12/inputs/a4wide.sty
(/due/CMacTeX 4.3/texmf/tex/latex/base/chess12/inputs/a4.sty))
(/due/CMacTeX 4.3/texmf/tex/latex/base/chess.sty
(/due/CMacTeX 4.3/texmf/tex/generic/babel/english.sty
! Package babel Error: You have used an old interface to call babel
(babel)                You may expect compatibility problems wit other
packages
.
See the babel package documentation for explanation.
Type  H <return>  for immediate help.
 ...                                              
 
l.54     \bblstyerror
 
? 
(/due/CMacTeX 4.3/texmf/tex/generic/babel/english.ldf
Language: english 2001/04/15 v3.3l English support from the babel system
(/due/CMacTeX 4.3/texmf/tex/generic/babel/babel.def
File: babel.def 2001/03/01 v3.7h Babel common definitions
\babel@savecnt=\count91
\U@D=\dimen106
)
\l@canadian = a dialect from \language\l@english 
))
\@c=\count92
\@r=\count93
\@sum=\count94
\movecount=\count95
! Undefined control sequence.
l.576 \resetat
 
? 
) (/due/CMacTeX 4.3/texmf/tex/latex/base/chess12/doc/boards.aux)
\openout1 = `boards.aux'.
LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 2.
LaTeX Font Info:    ... okay on input line 2.
LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 2.
LaTeX Font Info:    ... okay on input line 2.
LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 2.
LaTeX Font Info:    ... okay on input line 2.
LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 2.
LaTeX Font Info:    ... okay on input line 2.
LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 2.
LaTeX Font Info:    ... okay on input line 2.
LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 2.
LaTeX Font Info:    ... okay on input line 2.
LaTeX Font Info:    External font `cmex10' loaded for size
(Font)              <7> on input line 12.
LaTeX Font Info:    External font `cmex10' loaded for size
(Font)              <5> on input line 12.
 [1
{/due/CMacTeX 4.3/texmf-cmt/dvips/config/pdftex-pfb.map}{/due/CMacTeX 4.
3/texmf
-cmt/dvips/config/adobe-pfb.map}{/due/CMacTeX 4.3/texmf-cmt/dvips/config
/bsr-pf
b.map}{/due/CMacTeX 4.3/texmf-cmt/dvips/config/bakoma-extra-pfb.map}{/du
e/CMacT
eX 4.3/texmf-cmt/dvips/config/mathtime-pfb.map}{/due/CMacTeX 4.3/texmf-c
mt/dvip
s/config/lucida-pfb.map}{/due/CMacTeX 4.3/texmf-cmt/dvips/config/context
.map}{/
due/CMacTeX 4.3/texmf-cmt/dvips/config/xypic-pfb.map}{/due/CMacTeX 4.3/t
exmf-cm
t/dvips/config/pad.map}{/due/CMacTeX 4.3/texmf-cmt/dvips/config/wolfram.
map}]
(/due/CMacTeX 4.3/texmf/tex/latex/base/chess12/doc/boards.aux) ) 
Here is how much of TeX's memory you used:
 970 strings out of 10430
 10557 string characters out of 279620
 59166 words of memory out of 750001
 3962 multiletter control sequences out of 10000+2048
 22802 words of font info for 88 fonts, out of 300000 for 1000
 14 hyphenation exceptions out of 1000
 25i,4n,22p,267b,160s stack positions out of 600i,150n,500p,50000b,4000s
 13 PDF objects out of 65536
 0 named destinations out of 20000
 1 words of extra memory for PDF output out of 65536
</due/CMacTeX 4
.3/texmf/fonts/type1/bluesky/cm/cmr10.pfb>
Warning: pdflatex (file chess30): Font chess30 at 600 not found
Warning: pdflatex (file chess20): Font chess20 at 600 not found
</due/CMacTeX 4.3/texmf/fonts/type1/bluesky/cm/cmtt10.pfb>
Warning: pdflatex (file chess10): Font chess10 at 600 not found
Output written on boards.pdf (1 page, 11859 bytes).
Il pdf generato mi avverte di un errore (14), poi mi dice che userà il
font Helvetica e infine mi da un foglio completamente bianco!!!
Davvero nessuno mi spiega cosa fare?
Grazie per la pazienza.


 Davvero nessuno mi spiega cosa fare?
Il pacchetto chess è piuttosto vecchio. Io credo che ti convenga passare a
skak o skaknew, che hanno anche un'interfaccia un po' più simpatica.
Anche il documento che stai tentando di compilare è piuttosto vecchio
((tant'è che ottieni l'avvertimento compatibility mode LaTeX 2.09).
Sostituisci \documentstyle con \documentclass.
Ciao.

Scusa se approfitto ancora della tua pazienza, ma anche con skaknew non
funziona...ho scaricato, messo i file nelle cartelle indicate, poi provo
a compilare Skaknew.tex e ottengo:
This is pdfTeX, Version 3.141592-1.11b (CMacTeX) (format=pdflatex
2004.9.24)  8 DEC 2004 11:28
\write18 enabled.
 (/due/CMacTeX 4.3/texmf-cmt/cmactex/tcx/cp8bit.tcx)
**SkakNew.tex
(/due/Desktop Folder/downloads/skaknew/SkakNew.tex{/due/CMacTeX 4.3/texm
f-cmt/p
dftex/config/pdftex.cfg}
LaTeX2e <2001/06/01>
Babel <v3.7h> and hyphenation patterns for american, french, german,
ngerman, i
talian, nohyphenation, loaded.
(/due/CMacTeX 4.3/texmf/tex/latex/base/article.cls
Document Class: article 2001/04/21 v1.4e Standard LaTeX document class
(/due/CMacTeX 4.3/texmf/tex/latex/base/size10.clo
File: size10.clo 2001/04/21 v1.4e Standard LaTeX file (size option)
)
\c@part=\count79
\c@section=\count80
\c@subsection=\count81
\c@subsubsection=\count82
\c@paragraph=\count83
\c@subparagraph=\count84
\c@figure=\count85
\c@table=\count86
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
(/due/CMacTeX 4.3/texmf/tex/latex/base/skak.sty
Package: skak 2003/01/25 v1.2 Chess typesetting
(/due/CMacTeX 4.3/texmf/tex/latex/base/lambda.sty)
(/due/CMacTeX 4.3/texmf/tex/latex/base/ifthen.sty
Package: ifthen 2001/05/26 v1.1c Standard LaTeX ifthen package (DPC)
)
(/due/CMacTeX 4.3/texmf/tex/latex/tools/calc.sty
Package: calc 1998/07/07 v4.1b Infix arithmetic (KKT,FJ)
\calc@Acount=\count87
\calc@Bcount=\count88
\calc@Adimen=\dimen103
\calc@Bdimen=\dimen104
\calc@Askip=\skip43
\calc@Bskip=\skip44
LaTeX Info: Redefining \setlength on input line 59.
LaTeX Info: Redefining \addtolength on input line 60.
\calc@denominator=\count89
)
\c@fileFrom=\count90
\c@rankFrom=\count91
\c@fileTo=\count92
\c@rankTo=\count93
\c@ps@inverse=\count94
\c@ps@knightangle=\count95
\c@halfmove=\count96
\c@move=\count97
\c@helpgobble=\count98
\c@helpnumber=\count99
\c@helpnumberMove=\count100
\squarelength=\skip45
\square@multiplier=\count101
\showlength=\skip46
\ranklift=\skip47
\store@toks=\toks14
)
(/due/CMacTeX 4.3/texmf/tex/latex/base/latexsym.sty
Package: latexsym 1998/08/17 v2.2e Standard LaTeX package (lasy symbols)
\symlasy=\mathgroup4
LaTeX Font Info:    Overwriting symbol font `lasy' in version `bold'
(Font)                  U/lasy/m/n --> U/lasy/b/n on input line 42.
)
(/due/CMacTeX 4.3/texmf/tex/latex/base/fontenc.sty
Package: fontenc 2001/06/05 v1.94 Standard LaTeX package
(/due/CMacTeX 4.3/texmf/tex/latex/base/t1enc.def
File: t1enc.def 2001/06/05 v1.94 Standard LaTeX file
LaTeX Font Info:    Redeclaring font encoding T1 on input line 38.
))
(/due/CMacTeX 4.3/texmf/tex/latex/base/textcomp.sty
Package: textcomp 2001/06/05 v1.94 Standard LaTeX package
(/due/CMacTeX 4.3/texmf/tex/latex/base/ts1enc.def
File: ts1enc.def 2001/06/05 v3.0e (jk/car/fm) Standard LaTeX file
))
(/due/CMacTeX 4.3/texmf/tex/latex/tools/array.sty
Package: array 1998/05/13 v2.3m Tabular extension package (FMi)
\col@sep=\dimen105
\extrarowheight=\dimen106
\NC@list=\toks15
\extratabsurround=\skip48
\backup@length=\skip49
)
(/due/Desktop Folder/downloads/skaknew/SkakNew.aux)
\openout1 = `SkakNew.aux'.
LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 14.
LaTeX Font Info:    ... okay on input line 14.
LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 14.
LaTeX Font Info:    ... okay on input line 14.
LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 14.
LaTeX Font Info:    ... okay on input line 14.
LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 14.
LaTeX Font Info:    ... okay on input line 14.
LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 14.
LaTeX Font Info:    ... okay on input line 14.
LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 14.
LaTeX Font Info:    ... okay on input line 14.
LaTeX Font Info:    Checking defaults for TS1/cmr/m/n on input line 14.
LaTeX Font Info:    Try loading font information for TS1+cmr on input
line 14.
(/due/CMacTeX 4.3/texmf/tex/latex/base/ts1cmr.fd
File: ts1cmr.fd 1999/05/25 v2.5h Standard LaTeX font definitions
)
LaTeX Font Info:    ... okay on input line 14.
LaTeX Font Info:    Try loading font information for T1+cmtt on input
line 22.
(/due/CMacTeX 4.3/texmf/tex/latex/base/t1cmtt.fd
File: t1cmtt.fd 1999/05/25 v2.5h Standard LaTeX font definitions
) [1
Warning: pdflatex (file Skaknew.map): cannot open font map file
]
LaTeX Font Info:    External font `cmex10' loaded for size
(Font)              <7> on input line 89.
LaTeX Font Info:    External font `cmex10' loaded for size
(Font)              <5> on input line 89.
LaTeX Font Info:    Try loading font information for U+lasy on input
line 89.
 (/due/CMacTeX 4.3/texmf/tex/latex/base/ulasy.fd
File: ulasy.fd 1998/08/17 v2.2e LaTeX symbol font definitions
)
LaTeX Font Info:    Try loading font information for U+skak on input
line 137.
(/due/CMacTeX 4.3/texmf/tex/latex/base/uskak.fd)
! Font U/skak/m/n/10=skakf10 at 10.0pt not loadable: Metric (TFM) file
not foun
d.
<to be read again> 
                   relax 
l.137 23. Ne4}
 
? 
Missing character: There is no f in font nullfont!
Missing character: There is no g in font nullfont!
Missing character: There is no f in font nullfont!
Missing character: There is no g in font nullfont!
Missing character: There is no N in font nullfont!
Missing character: There is no c in font nullfont!
Missing character: There is no B in font nullfont!
Missing character: There is no e in font nullfont!
Missing character: There is no j in font nullfont!
Missing character: There is no k in font nullfont!
Missing character: There is no n in font nullfont!
Missing character: There is no B in font nullfont!
Missing character: There is no X in font nullfont!
Missing character: There is no + in font nullfont!
Missing character: There is no t in font nullfont!
Missing character: There is no X in font nullfont!
Missing character: There is no U in font nullfont!
Missing character: There is no N in font nullfont!
Missing character: There is no A in font nullfont!
Missing character: There is no Q in font nullfont!
Missing character: There is no C in font nullfont!
Missing character: There is no V in font nullfont!
Missing character: There is no B in font nullfont!
Missing character: There is no D in font nullfont!
Missing character: There is no m in font nullfont!
Missing character: There is no X in font nullfont!
Missing character: There is no E in font nullfont!
Missing character: There is no R in font nullfont!
Missing character: There is no X in font nullfont!
Missing character: There is no F in font nullfont!
Missing character: There is no B in font nullfont!
Missing character: There is no b in font nullfont!
Missing character: There is no R in font nullfont!
Missing character: There is no H in font nullfont!
Missing character: There is no Q in font nullfont!
Missing character: There is no G in font nullfont!
Missing character: There is no I in font nullfont!
Missing character: There is no Q in font nullfont!
Missing character: There is no O in font nullfont!
Missing character: There is no Q in font nullfont!
Missing character: There is no M in font nullfont!
Missing character: There is no B in font nullfont!
Missing character: There is no J in font nullfont!
Missing character: There is no N in font nullfont!
Missing character: There is no L in font nullfont!
Missing character: There is no N in font nullfont!
Missing character: There is no a in font nullfont!
Missing character: There is no Q in font nullfont!
Missing character: There is no o in font nullfont!
Missing character: There is no s in font nullfont!
Missing character: There is no u in font nullfont!
Missing character: There is no N in font nullfont!
Missing character: There is no q in font nullfont!
Missing character: There is no R in font nullfont!
Missing character: There is no d in font nullfont!
Missing character: There is no r in font nullfont!
Missing character: There is no X in font nullfont!
Missing character: There is no S in font nullfont!
Missing character: There is no R in font nullfont!
Missing character: There is no T in font nullfont!
Missing character: There is no B in font nullfont!
LaTeX Font Info:    Try loading font information for T1+cmss on input
line 137.
(/due/CMacTeX 4.3/texmf/tex/latex/base/t1cmss.fd
File: t1cmss.fd 1999/05/25 v2.5h Standard LaTeX font definitions
)
Missing character: There is no X in font nullfont!
Missing character: There is no N in font nullfont!
Missing character: There is no X in font nullfont!
Missing character: There is no B in font nullfont!
Missing character: There is no v in font nullfont!
Missing character: There is no R in font nullfont!
Missing character: There is no w in font nullfont!
Missing character: There is no Q in font nullfont!
Missing character: There is no P in font nullfont!
Missing character: There is no Q in font nullfont!
Missing character: There is no l in font nullfont!
Missing character: There is no Q in font nullfont!
Missing character: There is no x in font nullfont!
Missing character: There is no y in font nullfont!
Missing character: There is no N in font nullfont!
! Font U/skak/bx/n/10=skakf10b at 10.0pt not loadable: Metric (TFM) file
not fo
und.
<to be read again> 
                   relax 
l.163 23. Ne4}
 
? 
Non parliamo del pdf che esce, come sempre bianco!!
Ma come diavolo si fa a fargli installare dei fonts?
Ciao, grazie


Ce l'ho fatta!!! (quasi...)
P.s. è la seconda volta che mi capita di postare per chiedere aiuto e
poi riuscire a risolvere...Credetemi, non posto alla prima difficoltà,
in questo caso erano tre giorni che ci provavo...Comunque, a quanto
pare, porta fortuna!!
Grazie a tutti, ciao


 poi riuscire a risolvere...Credetemi, non posto alla prima difficoltà,
Tipico.
Consolati, non sei il solo. ;-)