Document ClassesEnlarge XY-Pic diagrams?

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
edc
Posts: 11
Joined: Sat May 24, 2008 1:46 pm

Enlarge XY-Pic diagrams?

Post by edc »

Does anyone know how to magnify XY-Pic diagrams?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

Enlarge XY-Pic diagrams?

Post by Stefan Kottwitz »

Hi Ed,

a simple method would be using \scalebox or \resizebox of the graphicx package, for example:

Code: Select all

\documentclass[a4paper,10pt]{article}
\usepackage[all]{xy}
\usepackage{graphicx}
\begin{document}
\scalebox{2}{
\begin{xy}
\xymatrix{
A \ar[r]^f \ar[d]_i & B \ar[d]^j \\
C \ar[r]_g & D
}
\end{xy}}
\end{document}
Alternatively you could change the spacing of the diagram, as it's described in the xy-pic user's guide, in the version on CTAN it's 3.3 Spacing and rotation. Of course the font size can be changed too.

Stefan
LaTeX.org admin
edc
Posts: 11
Joined: Sat May 24, 2008 1:46 pm

Re: Enlarge XY-Pic diagrams?

Post by edc »

Thanks!

"\scalebox" works like a charm!
Post Reply