Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Does anyone know how to resize the names of entries which appear as vertices inside \xymatrix? I have huge commuative cubes with more then 40 inner or outer vertices and when these names become too large then one cannot distinguish the edges of diagrams between them...

share|improve this question
    
Welcome to TeX.sx! Usually, we don't put a greeting or a "thank you" in our posts. While this might seem strange at first, it is not a sign of lack of politeness, but rather part of our trying to keep everything very concise. Upvoting is the preferred way here to say "thank you" to users who helped you. A tip: You can use backticks ` to mark your inline code as I did in my edit. –  Kurt Oct 26 '12 at 13:29
add comment

1 Answer

here's an approach that's rather a hack, as it must be applied manually to every vertex.

\documentclass{article}
\usepackage{amsmath}
\usepackage[all]{xy}

\newcommand{\smxylabel}[1]{{\text{\small$#1$}}}

\begin{document}
This diagram has normal-sized labels.
\[
\xymatrix{%
  V_1 \ar[d]_\tau \ar[r]^{\rho_1(g) } & V_1 \ar[d]^\tau \\
  V_2             \ar[r]^{\rho_2(g) } & V_2
}
\]

This diagram has ``smallified'' labels, hard coded.
\[
\xymatrix{%
  \text{\small$V_1$} \ar[d]_{\text{\small$\tau$}} \ar[r]^{\text{\small$\rho_1(g)$} }
    & \text{\small$V_1$} \ar[d]^{\text{\small$\tau$}} \\
  \text{\small$V_2$}  \ar[r]^{\text{\small$\rho_2(g)$} }
    & \text{\small$V_2$}
}
\]

This diagram uses a macro to shrink the labels.
\[
\xymatrix{%
  \smxylabel{V_1} \ar[d]_{\smxylabel{\tau}} \ar[r]^{\smxylabel{\rho_1(g)} }
   & \smxylabel{V_1} \ar[d]^{\smxylabel{\tau}} \\
  \smxylabel{V_2}  \ar[r]^{\smxylabel{\rho_2(g)} }
   & \smxylabel{V_2}
}
\]
\end{document}

output of example code

edit: the original poster asks whether it's possible to use \objectbox. i'm not familiar with that command, and have never used it, but it's definitely available in xypic.

the way it's defined appears to correspond reasonably well to the concept of my hack. so i think it's worth a try.

share|improve this answer
    
Thank you for your answer very much! It improves a solution of my problem. Do you know may I also use size modifiers using \objectbox? –  Igor Bakovic Oct 26 '12 at 19:45
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.