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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Stefan Kottwitz
Site Admin
Posts: 10364
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