Graphics, Figures & Tablesxypic: rotate text and arrow thickness

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
lauraf
Posts: 29
Joined: Tue Jan 13, 2009 12:44 pm

xypic: rotate text and arrow thickness

Post by lauraf »

Hello all,

I have created the following diagram with xypic, which I would now like to tweak:

Code: Select all

\documentclass[a4paper, 11pt, final]{article}

\usepackage[english]{babel}
\usepackage[fleqn]{amsmath}
\usepackage[all]{xy}
\xyoption{line}
\xyoption{rotate}

\title{Minimum working example} 

\date{\today}

\begin{document}
\maketitle

\begin{flalign*}
&&{\xymatrixcolsep{4pc}\xymatrixrowsep{8pc}
    \xymatrix{
        & \txt{N} \ar@<1.5ex>[dr]^{q{N}{V}} \ar@<0.5ex>[dl]^{q{N}{U}} &  \\
        \txt{U} \ar@<1.5ex>[ur]^{q{U}{N}} \ar@<0.5ex>[rr]^{q{U}{V}} && \txt{V} \ar@<0.5ex>[lu]^{q{V}{N}}  \ar@<1.5ex>[ll]^{q{V}{U}}
      }
       }&&
\end{flalign*}

\end{document}
Specifically, I would like to:
1) rotate the text to be parallel to the arrows, and
2) change the arrow thickness.

I see from the xypic reference manual (attached) that this is done with the options "rotate" and "line", respectively, but I have not been able to figure out how to implement these changes. Any input would be much appreciated. I work with TeXShop on Mac OS X 10.5.

Many many thanks!
Laura
Last edited by lauraf on Wed Jun 30, 2010 1:53 am, edited 1 time in total.

Recommended reading 2024:

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

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

daleif
Posts: 199
Joined: Wed Nov 19, 2008 12:46 am

xypic: rotate text and arrow thickness

Post by daleif »

The scaling does work, but not with our example because you need to specify a back end. With dvips it does work, then too bad your using TeXShop, and thus presumably pdflatex, because they do not mix.

This works with latex + dvips

Code: Select all

\documentclass[a4paper, 11pt, final]{article}

\usepackage[english]{babel}
\usepackage[fleqn]{amsmath}
\usepackage[all,dvips]{xy}
\xyoption{line}
\xyoption{rotate}

\title{Minimum working example}

\date{\today}

\begin{document}
\maketitle

\begin{flalign*}
&&{\xymatrixcolsep{4pc}\xymatrixrowsep{8pc}
    \xymatrix{
        & 
        \txt{N} \ar@<1.5ex>[dr]^{q{N}{V}} \ar@<0.5ex>[dl]^{q{N}{U}} 
        &  
        \\
        \txt{U} \ar@<1.5ex>[ur]^{q{U}{N}} \ar@<0.5ex>[rr]^{q{U}{V}} 
        &
        & 
        \txt{V} \ar@<0.5ex>@*{[|(3)]}[lu]^{q{V}{N}}  \ar@<1.5ex>[ll]^{q{V}{U}}
      }
       }&&
\end{flalign*}
\end{document}
The recent update to xypic, with the addition of pdfxy (or whatever it was called) might help.

As for the rotation stuff, I've no idea how that show work. Actually I would not rotate the texts because it makes the text harder to read
lauraf
Posts: 29
Joined: Tue Jan 13, 2009 12:44 pm

xypic: rotate text and arrow thickness

Post by lauraf »

Hi, many thanks for your reply.

Could you please tell me then how I can run this without using TeXShop? I have tried
latex filename.tex
from a terminal window, but this does not produce a pdf file.

Sorry if this is a basic question, but I don't really understand many of the technicalities --- like what a backend is :roll:

Thank you!
Laura
daleif
Posts: 199
Joined: Wed Nov 19, 2008 12:46 am

Re: xypic: rotate text and arrow thickness

Post by daleif »

latex + dvips + ps2pdf, i.e.

latex file.tex (perhaps several times)
dvips file.dvi
ps2pdf file.ps

Backend usually refers to what ever is doing the real work. In this case we use the dvips backend which will do several things directly in PostScript that we cannot do in TeX alone
lauraf
Posts: 29
Joined: Tue Jan 13, 2009 12:44 pm

Re: xypic: rotate text and arrow thickness

Post by lauraf »

Great, thank you!
Post Reply