-1

Could help me to do these? I am trying to draw these two diagrams myself, but I could not finish it. Therefore, I am requesting you guys to be kind enough to help me in this case and as I know it will help me a lot.

Here are the two diagrams: enter image description here

  • 4
    Welcome to TeX.SE! Try with use of the tikz-cd package. – Zarko Aug 08 '20 at 06:44
  • 3
    It would be great if you could show us what you have tried as this would at least give us some code to start from.. Posting a minimal working example makes it easier for people to help you, since they have some code to start from, and hence much more likely that some one will try to help you. –  Aug 08 '20 at 06:52
  • I still could not do it myself, but anyway thanks. – David James Aug 08 '20 at 06:52
  • Literally, I have followed this commutative diagram: https://tex.stackexchange.com/questions/218274/how-can-i-draw-commutative-diagrams-in-latex and I could not change it to as what I want above. – David James Aug 08 '20 at 07:00
  • @DavidJames have a look text data will have to be punched in – js bibra Aug 08 '20 at 07:02

2 Answers2

6

As starting point:

\documentclass[margin=3.1415692mm,varwidth]{standalone}
\usepackage{tikz-cd}

\begin{document} [ \begin{tikzcd}[column sep=small] & A \ar[dr,"k_*"] & \ \pi_1(U\cap V,p) \ar[ur,"i_*"] \ar[dr,"j_*" ']
& & \pi_1(X,p). \ & E \ar[ur,"l_*" '] & \end{tikzcd} ] [ \begin{tikzcd}[column sep=small] & A \ar[d, hook]\ar[dr,"k_*"] & \ \pi_1(U\cap V,p) \ar[ur,"i_*"] \ar[dr,"j_*" '] & \pi_1(U,p)\pi_1(V,p) \ar[r,"\phi"] & \pi_1(X,p). \ & E \ar[u, hook']\ar[ur,"l_" '] & \end{tikzcd} ] \end{document}

enter image description here

Now only need to replace A and E with your math expressions.

Zarko
  • 296,517
  • 1
    @DavidJames, you are welcome. Now I added firs image too, so now you have starting point for both images Since answer now solve your question, you can accept it (by clicking on check mark at top left side of answer) :-) – Zarko Aug 08 '20 at 07:42
  • Your codes worked with Overleaf but did not work with TexStudio and Kile since I am using them. Can you point out the solution for this point? – David James Aug 08 '20 at 08:08
  • 1
    @DavidJames , why you ask me? You accept different answer, so I assume that it solve all your problems .... BTW, I use MIkTeX and WinEdt as editor. – Zarko Aug 08 '20 at 08:30
  • Yes sure, thank you a lot. – David James Aug 08 '20 at 08:33
  • 1
    @DavidJames, my proposed solution is independent from used LaTeX distributions. Unfortunately, I'm not familiar with specific of Kile nor with TeXstudio editors. What error you receive if you copy my MWE to your editor and then compile it? – Zarko Aug 08 '20 at 08:41
  • The error are: Undefined control sequence \end{tikzcd} ,and Missing \endcsname inserted \end{tikzcd}. Check it if you have time and anyway, I think your help is enough for me so let me try it myself more. – David James Aug 08 '20 at 10:48
0

Will you be able to punch in the data

enter image description here

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

\begin{document}

\begin{tikzpicture}[commutative diagrams/every diagram] \node (P0) at (180:2cm) {A}; \node (P1) at (90:2.3cm) {B} ; \node (P2) at (-90:2cm) {C}; \node (P3) at (0:2cm) {D}; \path[commutative diagrams/.cd, every arrow, every label] (P0) edge node[] {A1} (P1) (P0) edge node[swap] {B1} (P2) (P2) edge node [swap]{C1} (P3) (P1) edge node {D1} (P3) ; \end{tikzpicture} \end{document}

js bibra
  • 21,280