I would like to know if there are interactive graphic-oriented programs to construct diagrams of latex.
For example, I know
There are others that do something similar?
I am struggling to do this diagram on tikz:
[
Thanks
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this communityI would like to know if there are interactive graphic-oriented programs to construct diagrams of latex.
For example, I know
There are others that do something similar?
I am struggling to do this diagram on tikz:
[
Thanks
It's true—TikZ can be intimidating at first. The 1000+ page manual is downright terrifying. But it's worth it! Start with some of the tutorials at the beginning of the manual. You'll be drawing pictures like these in no time!
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{decorations.markings}
\tikzset{dot/.style={fill, circle, inner sep=1pt},
myarrow/.style={decoration={markings, mark=at position .6 with {\arrow{>}}}, postaction={decorate}}}
\begin{document}
\begin{tikzpicture}
\draw circle[radius=2];
\draw[very thick, myarrow] (-80:2)node[dot, label={-90:{$B'$}}]{}arc(-80:80:2)node[dot, label={90:{$A'$}}]{};
\draw[very thick, myarrow] (100:2)node[dot, label={90:{$A$}}]{}arc(100:260:2)node[dot, label={-90:{$B$}}]{};
\end{tikzpicture}
\end{document}
A small variation of the nice @Sandy G answer (+1) which gives wee bit shorter code. For exercise :-)
\documentclass[border=3.14159]{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows.meta,
decorations.markings}
\begin{document}
\begin{tikzpicture}[
dot/.style = {circle, fill, inner sep=2pt, label=#1},
->-/.style = {decoration={markings,
mark=at position .52 with {\arrow{Straight Barb}}
},
very thick,
postaction={decorate}
}
]
\draw circle[radius=2];
\draw[->-] (100:2) node[dot=$A$ ] {}
arc(100:260:2) node[dot=below:$B$ ] {};
\draw[->-] (-80:2) node[dot=below:$B'$] {}
arc(-80:80:2) node[dot=$A'$] {};
\end{tikzpicture}
\end{document}
Remarks:
standalone
package as is done in above MWE (Minimal Working Example)Happy TeXing!