Hi,
i am currently using xypic to draw commutative diagrams in latex. But one of these turns out to be too big and does not fit the right margin of the page!
Is there a way to scale a diagram or something to make it fit my page?
Any help would really be appreciated!
Thanks
Document Classes ⇒ xypic diagram is too big
NEW: TikZ book now 40% off at Amazon.com for a short time.

- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
xypic diagram is too big
You can try the \scalebox command from the graphicx package.
Best regards and welcome to the board
Thorsten¹
Best regards and welcome to the board
Thorsten¹
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: xypic diagram is too big
Thanks for your quick reply. But how do I use that?
my code is
$$
\xy
\xymatrix{
*Here is the diagram*
}
\endxy
$$
my code is
$$
\xy
\xymatrix{
*Here is the diagram*
}
\endxy
$$
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
xypic diagram is too big
Please, take a careful look at the documentation (Section 4.3 - Scaling, p. 9). Perhaps the \resizebox command is the better solution.
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10