2

I have been trying to draw something like enter image description here

Can anyone help me with the code? I have no idea how to do this. Your help would be appreciated.

Edit: Based on comments, I got the code

\documentclass{article}
\usepackage[usenames,dvipsnames]{pstricks} 
\usepackage{pstricks-add}
\usepackage{epsfig}
\usepackage{pst-grad} % For gradients
\usepackage{pst-plot} % For axes
\usepackage[space]{grffile} % For spaces in paths
\usepackage{etoolbox} % For spaces in paths
\makeatletter % For spaces in paths
\patchcmd\Gread@eps{\@inputcheck#1 }{\@inputcheck"#1"\relax}{}{}
\makeatother 
\documentclass{article}
\usepackage{tikz-cd}
\usepackage{amsmath}
\usetikzlibrary{arrows}

\def\ac{\rotatebox[origin=c]{90}{$\dashv$}} %rotate dash anti-cw
\def\cw{\rotatebox[origin=c]{-90}{$\dashv$}} %rotate dash cw
%\tikzset{adj/.style={pos=0.545,outer sep=3pt}} %adjust label position along path

\begin{document}
\begin{tikzcd}[column sep=small]
    q 
& &
    \arrow[bend left,above]{ll}{a} -q 
    %\arrow[bend left,above, adj]{ll}{U_G} Cat \arrow[bend left,below]{rr}{F_P}
& &
  q 
& &
    q^2 
    & & 
    -q^2\arrow[bend left,above]{ll}{b}
    & &
    q^2
    & &
    -q^2\arrow[bend left,above]{ll}{b}
    & & 
    -q
\end{tikzcd}
\end{document}

which gives enter image description here

But I am not able to draw the big underline.

3

1 Answer 1

2

Just add another arrow in a similar fashion you have added the ones.

\documentclass{article}
\usepackage{tikz-cd}
\usepackage{amsmath}
\usetikzlibrary{arrows}

\def\ac{\rotatebox[origin=c]{90}{$\dashv$}} %rotate dash anti-cw
\def\cw{\rotatebox[origin=c]{-90}{$\dashv$}} %rotate dash cw
%\tikzset{adj/.style={pos=0.545,outer sep=3pt}} %adjust label position along path

\begin{document}
\begin{tikzcd}[column sep=small]
    q 
& &
    \arrow[bend left,above]{ll}{a} -q 
    %\arrow[bend left,above, adj]{ll}{U_G} Cat \arrow[bend left,below]{rr}{F_P}
& &
   q  
& &
    q^2 
    & & 
    -q^2\arrow[bend left,above]{ll}{b}
    & &
    q^2
    & &
    -q^2\arrow[bend left,above]{ll}{b}
    & & 
    \arrow[bend left,above]{llllllllll}{b} % <--- addition
    -q\\
    &&  &&&&&\\
\end{tikzcd}
\end{document}

enter image description here

1
  • If you don't want an arrowhead, use the option dash in the arrow command like this \arrow[dash, bend left]....
    – Imran
    Dec 14, 2021 at 14:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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