TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

There are some diagrams which are little bit complicated, I use array package to draw basic ones I mean square ones. but is it possible to draw any diagram by [array] package? for example enter image description here can you help me in this, thin i can mimic the same way Thanks a lot

share|improve this question
Could you post minimal working example (MWE) – karathan Apr 2 '13 at 21:25
I am sorry to bother you, but I just noticed that although your questions have received several answers and you have up-voted them, you still haven't accepted any (up-voting and accepting are two different actions). Please revisit your questions and, for each one, consider accepting the answer that best solved your problems; in case of doubt, please see How do you accept an answer?. – Gonzalo Medina Apr 3 '13 at 0:56
bec i accept all of them :) – Rahman Apr 3 '13 at 12:28
up vote 8 down vote accepted

A rather nice diagram is obtained with tikz-cd:



\begin{tikzcd}[column sep=2.5pc,row sep=2pc]
{} & B \arrow{d} \arrow[bend left]{dddrr} \\
A \arrow{r} \arrow{rrd} \arrow[bend right]{rrrdd} & G \\
{} & {} & P \arrow{ul}[swap]{\tilde{\varphi}} \\
{} & {} & {} & B*C \arrow{ul}[swap]{\nu}


enter image description here

share|improve this answer
thanks a lot ..how did you know that i need phi with hat? :) – Rahman Apr 2 '13 at 21:54
@Rahman That was a guess. It's a tilde, by the way. If you want a hat, use \hat{\varphi} (always in math mode). – egreg Apr 2 '13 at 22:00

You could try the xypic package. See this page for manuals and documentation.

share|improve this answer
Welcome to TeX.sx! – texenthusiast Apr 2 '13 at 21:32

Or else using the tikz positioning library


Here's the code:

% arara: pdflatex


% arrows set as stealth fighters


    % setup the nodes
    \node (B){$B$};
    \node[below=of B](G){$G$};
    \node[left=of G](A){$A$};
    \node[below right=of G](P){$P$};
    \node[below right=of P](BstarC){$B*C$};
    % connect them
    \foreach \start/\finish/\mylabel in {B/G/, A/G/, A/P/, P/G/$\tilde{\varphi}$, BstarC/P/$\nu$}
        \draw[->](\start)--(\finish) node[midway,above]{\mylabel};
    % bended arrows
    \draw[->](A) to[bend right=30] (BstarC);
    \draw[->](BstarC) to[bend right=20] (B);

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.