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.

I have the diagram of the folllowing form:

\mor(1,1)(3,1) {$f$ }[\atright,\solidarrow]
\mor(1,1)(3,3) {$g$ }
\mor(3,1)(3,3) {$h$ }[\atright,\solidarrow]

I wonder if the "objects" A,B,C must be in normal math font only, i.e. we can't replace such A with \mathsf{A} or \mathfrak{A} or \mathbf{A}. If this is really a restriction, is there any other package that allows special math fonts as "objects"?

share|improve this question
Welcome to TeX.SE. It is always best to compose a fully compilable MWE that illustrates the problem including the \documentclass and the appropriate packages so that those trying to help don't have to recreate it. As well, I took the liberty to format your post a little. See this link for more details on available formatting. –  yo' Jun 24 '12 at 15:25
You can use \obj(1,1)[A]{$\mathsf{A}$}, but I strongly advise you to use a more modern and powerful package such as tikz-cd or xy. –  egreg Jun 24 '12 at 15:38
Thank you very much for both comments. –  Pachara Jun 24 '12 at 15:47
@egreg It seems that your comment answers the question, or at least comes close to doing so. Please consider adding it as an answer. –  Andrew Uzzell Oct 12 '12 at 8:50

2 Answers 2

You can use


so that the optional argument sets the node name. However, there are more modern and powerful packages than dcpic for any sort of commutative diagram. I've used XY-pic (\usepackage[all,cmtip]{xypic}), but the more recent tikz-cd seems very promising and easy to use.

share|improve this answer

As proposed by egreg, a more modern package would much easier for such things. The currently best package to learn should be tikz-cd (my recommendation). Here is your diagram using this.

% arara: pdflatex


                                                                       & C \\
    A\mathsf{A}\mathfrak{A}\mathbf{A} \arrow{r}[swap]{f} \arrow{ur}{g} & B \arrow{u}[swap]{h}   

enter image description here

share|improve this answer

Your Answer


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.