[Xy-pic] Controlloing the dimensions of xy boxes
Luigi Santocanale
luigis@cpsc.ucalgary.ca
Sat, 27 Oct 2001 17:14:21 -0600
This is a multi-part message in MIME format.
--------------88E24D4B5EEB358D99E014B4
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Hi everybody,
I have several difficulties controlling the dimensions
produced by the environments \xy\endxy.
The following is an example of what I mean (Latex file
follows, dvi-file in attachment). There are two different
graph escapes which are supposed to draw the objects of a
categorical commutative square. However, even if very
similar, they behave in a very different manner.
Have you got any suggestion ?
Thanks,
Luigi
%%% Begin Latex File
\documentclass{article}
\usepackage[all]{xy}
%% Draw a square, 1st attempt
\newgraphescape{s}[8]{
[]*+{#1}="1"
(
:@{{}{}{}}[d(#5)r(#6)]*+{#2}="2"
:@{{}{}{}}[d(#8)r(#7)]*+{#4}="4",
:@{{}{}{}}[d(#8)r(#7)]*+{#3}="3"
)
}
\newgraphescape{S}[6]{
[]!s{#1}{#2}{#3}{#4}{#5}{0}{#6}{0}
}
\begin{document}
%% Draw a square, 2nd corrected attempt
\newgraphescape{t}[8]{
[]
:@{{}{}{}}[]*+{#1}="1" %% This line the only difference
(
:@{{}{}{}}[d(#5)r(#6)]*+{#2}="2"
:@{{}{}{}}[d(#8)r(#7)]*+{#4}="4",
:@{{}{}{}}[d(#8)r(#7)]*+{#3}="3"
)
}
\newgraphescape{T}[6]{
[]!t{#1}{#2}{#3}{#4}{#5}{0}{#6}{0}
}
$$
\fbox{\xy\xygraph{
[]
!S{a}{b}{c}{d}{1}{-1}
}\endxy}
\hspace{2em}
\fbox{\xy\xygraph{
[]
!T{a}{b}{c}{d}{1}{-1}
}\endxy}
$$
\end{document}
%%% End of Latex File
--
Luigi Santocanale
Department of Computer Science, University of Calgary.
Tel: (403) 220-5106, fax:(403) 284-4707.
http://www.cpsc.ucalgary.ca/~luigis/
--------------88E24D4B5EEB358D99E014B4
Content-Type: application/x-dvi;
name="fbox.dvi"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="fbox.dvi"
9wIBg5LAHDsAAAAAA+gbIFRlWCBvdXRwdXQgMjAwMS4xMC4yNzoxNzA0iwAAAAEAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/////oAJ5AACNoP2jAACgAj8AAI2g/eQA
AJ8MAACNjY2NkgCbRq6f99jkiQAAZmYAVGcFnzWgAI2EADWgAAAAZmaNn9KHHI2NjY2NjY2N
kSn1oZ8CJxzzCgugYj4ACgAAAAoAAAAGY21taTEwtWGOjo6OjY2NjZEqdOSfJ3jjYo6Ojo6N
jY2NkQYAAJ8neONkjo6Ojo2NjY2RBnBLnwInHGOOjo6Ojo6Ojo6RU5o5hAA1oAAAAGZmjp5m
ZokAAGZmAFRnBY6Ojo2NjZIBA621n/fY5IkAAGZmADYLnZ81oACNhAA1oAAAAGZmjZ/ShxyN
jY2NjY2NjZEp9aGfAiccYY6Ojo6NjY2NkSp05J8neONijo6Ojo2NjY2RBgAAnyd442SOjo6O
jY2NjZEGcEufAiccY46Ojo6Ojo6OjpE1PtGEADWgAAAAZmaOnmZmiQAAZmYANgudjo6Ojo6f
HgAAjZIA6AAA8wdL8WB5AAoAAAAKAAAABWNtcjEwsjGOjoz4AAAAKgGDksAcOwAAAAAD6AJ5
AAABlwAAABAAAfMKC6BiPgAKAAAACgAAAAZjbW1pMTDzB0vxYHkACgAAAAoAAAAFY21yMTD5
AAAB0wLf39/f39/f
--------------88E24D4B5EEB358D99E014B4--