Math & Science ⇒ long formulas in xypic
long formulas in xypic
I have xypic diagrams with pretty long formulas in them and I would like to write those formulas on several lines but I want them to be all in the same entry in my xymatrix. Is that possible?
Thanks in advance for your help.
Smurfette
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
long formulas in xypic
I've never used the xypic package (I find its syntax rather "obscure") and perhaps I am misundertanding your question, but can't you just use the \\ command?
- Stefan Kottwitz
- Site Admin
- Posts: 10359
- Joined: Mon Mar 10, 2008 9:44 pm
Re: long formulas in xypic
welcome to the board!
You could use an array environment inside a xymatrix entry, or for instance amsmath macros like genfrac.
Stefan
long formulas in xypic
No that won't work, the \\ command is interpreted as starting a new line in the xymatrix.gmedina wrote:Hi,
I've never used the xypic package (I find its syntax rather "obscure") and perhaps I am misundertanding your question, but can't you just use the \\ command?
- Stefan Kottwitz
- Site Admin
- Posts: 10359
- Joined: Mon Mar 10, 2008 9:44 pm
long formulas in xypic
that's why I suggested to use a new environment like an array in the cell.smurfette wrote: the \\ command is interpreted as starting a new line in the xymatrix.
Stefan
long formulas in xypic
I tried that too, but it doesn't seem to support the array environment in an xymatrix entry...Stefan_K wrote:that's why I suggested to use a new environment like an array in the cell.smurfette wrote: the \\ command is interpreted as starting a new line in the xymatrix.
Stefan
long formulas in xypic
As I said before, I haven't used this package; however, it seems to support array environments, as the following simple variation of an example of the documentation shows:smurfette wrote:...I tried that too, but it doesn't seem to support the array environment in an xymatrix entry...
Code: Select all
\documentclass{article}
\usepackage{xypic}
\begin{document}
\xymatrix{
A \ar@<1ex>[dr]^a_{.} \\
& B \ar@<1ex>[ul]^{\begin{array}{c}f \\ g\end{array}} \ar@<1ex>[r]^c
& C \ar@<1ex>[l]^d_{.} }
\end{document}
- Stefan Kottwitz
- Site Admin
- Posts: 10359
- Joined: Mon Mar 10, 2008 9:44 pm
long formulas in xypic
I know it does. As long as you don't post your code we cannot correct it.smurfette wrote:I tried that too, but it doesn't seem to support the array environment in an xymatrix entry...Stefan_K wrote: that's why I suggested to use a new environment like an array in the cell.
Stefan