Math & ScienceDiagram and '≅' sign using xymatrix

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
xetal
Posts: 14
Joined: Fri May 25, 2007 5:18 pm

Diagram and '≅' sign using xymatrix

Post by xetal »

Hello,

I would like to draw a vertical isomorphism sign (i.e. a vertical "\cong") using xymatrix. Can this be done?

To be more precise, the command "\ar@{=}[d]" draws a vertical equal sign, I would like to replace "=" with "≅".

Cheers

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

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Diagram and '≅' sign using xymatrix

Post by localghost »

xetal wrote:[...] To be more precise, the command "\ar@{=}[d]" draws a vertical equal sign, I would like to replace "=" with "≅". [...]
It would be most precise if you provide a complete and compilable example of what you want to do.


Best regards
Thorsten
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Diagram and '≅' sign using xymatrix

Post by frabjous »

I don't believe what you describe is possible using the xymatrix command from xypic alone, though it's certainly possible to create a vertical \cong of a certain length in other ways, but what would be most suitable depends on what use you're putting this to.

For example, the code below, using commands from graphicx, produces a vertical \cong of twice its usual length. But it may be hard to put that in a matrix in the right spot... hard to say without knowing what you're trying to do.

Code: Select all

\documentclass{article}
\usepackage{graphicx}
\begin{document}
\rotatebox{90}{\scalebox{2}[1]{$\cong$}}
\end{document}
daleif
Posts: 199
Joined: Wed Nov 19, 2008 12:46 am

Re: Diagram and '≅' sign using xymatrix

Post by daleif »

Since a stretched \cong looks stupid, it is much more common to simply write \ar[r]^[\cong}, then every body understands what you mean (a map from A to B which is also an isomorphy)
Post Reply