- Questo topic ha 6 risposte, 2 partecipanti ed è stato aggiornato l'ultima volta 15 anni, 2 mesi fa da .
-
Topic
-
Salve. Io ho un problema con xy. Ho provato a scriverre il seguente testo di prova:`
\documentclass{article}
\usepackage[all]{xy}\begin{document}
\xy
\xymatrix{A & B \\
C & D }
\endxy\end{document}
`Al momento della compilazione ricevo questo messaggio:
`
! LaTeX Error: Two \documentclass or \documentstyle commands.
`La cosa che non capisco è che ho scaricato un file d’esempio e questo si è compilato senza problemi:
`
\documentclass[a4paper]{article}
%\usepackage{ldump}
%\usepackage[nodump]{ldump}
\usepackage[dvips,matrix,ps,color,line,graph]{xy}
\thispagestyle{empty}\addtolength\hoffset{-3cm}
\addtolength\voffset{-4cm}
\addtolength\textheight{2cm}
\addtolength\textwidth{5cm}%\latexdump
\UsePSheader{}
\begin{document}\mathversion{bold}
$$
\def\objectstyle{\mathbf}
\left(
\xy\drop!C[thicker][thicker][blue]\xybox{\xygraph{%
!M @=.7pc{
D & V && V &&& V &&&& V &&&&& V &&&&& \\
& D&V & V&V &&V&V &&&V&V &&&&V&V \\
&& D && V &&& V &&&& V &&&&& V \\
&&& D & V&V & V&V&V && V&V&V &&& V&V&V &&& \\
&&&& D & V && V&V &&& V&V &&&& V&V \\
&&&&& D &&& V &&&& V &&&&& V \\
&&&&&& D &V&V&V &V&V&V&V && V&V&V&V && \\
&&&&&&& D &V&V && V&V&V &&& V&V&V \\
&&&&&&&& D &V &&& V&V &&&& V&V \\
&&&&&&&&& D &&&& V &&&&& V \\
&&&&&&&&&& D &V&V&V&V & V&V&V&V&V & \\
&&&&&&&&&&& D &V&V&V && V&V&V&V \\
&&&&&&&&&&&& D &V&V &&& V&V&V \\
&&&&&&&&&&&&& D &V &&&& V&V \\
&&&&&&&&&&&&&& D &&&&& V \\
&&&&&&&&&&&&&&& D &V&V&V&V&V \\
&&&&&&&&&&&&&&&& D &V&V&V&V \\
&&&&&&&&&&&&&&&&& D &V&V&V \\
&&&&&&&&&&&&&&&&&& D &V&V \\
&&&&&&&&&&&&&&&&&&& D &V \\
&&&&&&&&&&&&&&&&&&&& D \\
% &&&&&&&&&&&&&&&&&&&& \\
}
%
!{*[green][|=A]{}}
“2,2”-@[A] “2,3”-@[A] “3,3”-@[A] “2,2”
“4,4”-@[A]”4,5″-@[A]”4,6″-@[A]”5,6″-@[A]”6,6″-@[A]”5,5″-@[A]”4,4″
“7,7”-@[A]”7,8″-@[A]”7,9″-@[A] “7,10”-@[A]”8,10″-@[A]”9,10″-@[A]
“10,10”-@[A]”9,9″-@[A]”8,8″-@[A] “7,7”
“11,11”-@[A]”11,12″-@[A]”11,13″-@[A]”11,14″-@[A] “11,15”-@[A]
“12,15”-@[A]”13,15″-@[A]”14,15″-@[A] “15,15”-@[A]
“14,14”-@[A]”13,13″-@[A]”12,12″-@[A] “11,11”
“16,16”-@[A]”16,17″-@[A]”16,18″-@[A]”16,19″-@[A]”16,20″-@[A] “16,21”-@[A]
“17,21”-@[A]”18,21″-@[A]”19,21″-@[A]”20,21″-@[A]”21,21″-@[A]
“20,20”-@[A]”19,19″-@[A]”18,18″-@[A]”17,17″-@[A] “16,16”
%
!{*[red][|=B]{}}
“2,4”-@ “2,5”-@ “3,5”-@ “2,4”
“2,7”-@ “2,8”-@ “3,8”-@ “2,7”
“2,11”-@ “2,12”-@ “3,12”-@ “2,11”
“2,16”-@ “2,17”-@ “3,17”-@ “2,16”
“4,7”-@“4,8”-@ “4,9”-@“5,9”-@ “6,9”-@“5,8”-@ “4,7”
“4,11”-@“4,12”-@ “4,13”-@“5,13”-@ “6,13”-@
“5,12”-@ “4,11”
“4,16”-@“4,17”-@ “4,18”-@“5,18”-@ “6,18”-@
“5,17”-@ “4,16”
“7,11”-@“7,12”-@ “7,13”-@ “7,14”-@“8,14”-@“9,14”-@
“10,14”-@“9,13”-@“8,12”-@ “7,11”
“7,16”-@“7,17”-@“7,18”-@ “7,19”-@“8,19”-@“9,19”-@
“10,19”-@“9,18”-@“8,17”-@ “7,16”
“11,16”-@“11,17”-@“11,18”-@“11,19”-@ “11,20”-@
“12,20”-@“13,20”-@“14,20”-@ “15,20”-@
“14,19”-@“13,18”-@“12,17”-@ “11,16”
}}
\endxy
\right)$$
%\bigskip
\begin{center}
\LARGE\mathversion{bold} $ N=6 $
\end{center}
\bigskip
\begin{center}\LARGE
The endomorphism ring of a large module \\
represented as a ring of matrices.
\end{center}\vfill
\begin{flushright}\Large\bfseries
Typeset using \Xy-pic.
\end{flushright}
\vfill
\end{document}
`Come mai?
Grazie,
davide
- Devi essere connesso per rispondere a questo topic.