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.

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
1  
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
add comment

3 Answers 3

up vote 8 down vote accepted

A rather nice diagram is obtained with tikz-cd:

\documentclass{article}
\usepackage{tikz,tikz-cd}

\begin{document}

\[
\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}
\end{tikzcd}
\]

\end{document} 

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
1  
@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
add comment

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
add comment

Or else using the tikz positioning library

screenshot

Here's the code:

% arara: pdflatex

\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{positioning}

% arrows set as stealth fighters
\tikzset{>=stealth}

\begin{document}

\begin{tikzpicture}
    % 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);
\end{tikzpicture}

\end{document}
share|improve this answer
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.